From d5b99a446e55d5ba0298de9c8d0774553691bbdd Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 09:55:53 +0000 Subject: [PATCH 01/14] fix(view): an Egeria-held spec's analytic_binders warns as a local one does (O1-a) Architect read-back P2 of RS-EGERIA-TIER stage 1 (#563) against RS-W2-4 PR-0 (#561): a stage's analytic_binders key on a spec held in Egeria was recorded only as a generic "ignored" note, so #561's BINDERS_DEPRECATED_PREFIX warning never fired for the very case owner decision O1-a was for. - microflow_to_format_set now passes a stage's analytic_binders into the action. The PR-B ActionParameter shim drops it there, raises its DeprecationWarning and records the names, and the spec resolver warns with BINDERS_DEPRECATED_PREFIX, the same text as for a local spec. An empty binder stays silent; other unknown stage keys are still notes. Works for format 0 and microflow/1, and on every tier load, since the tier rebuilds from the cached micro-flow text, which keeps the key. - PR-0 P3: the shim's docstring now says the marker survives model_copy but not model_dump and a reload. - Tests: a synced Egeria-held spec (format 0 and microflow/1) with a non-empty binder resolves with exactly the #561 warning; empty, None, [] and absent stay silent. Signed-off-by: Dan Wolfson --- pyegeria/view/_output_format_models.py | 6 ++ pyegeria/view/microflow.py | 17 +++++- tests/micro-tests/test_rs_egeria_tier.py | 70 +++++++++++++++++++++++- 3 files changed, 89 insertions(+), 4 deletions(-) diff --git a/pyegeria/view/_output_format_models.py b/pyegeria/view/_output_format_models.py index 8c44dacf..0793b8ad 100644 --- a/pyegeria/view/_output_format_models.py +++ b/pyegeria/view/_output_format_models.py @@ -273,6 +273,12 @@ def _drop_deprecated_binders(cls, values, handler): one is dropped with a DeprecationWarning and a log warning naming the parameters: the routine must declare them as `inputs` instead, or its call will lack them. The names are kept on the model (`_dropped_binders`) so the spec resolver can report them as a warning. + + The marker is a private attribute: it survives `model_copy`, but NOT `model_dump` and a + reload (`model_validate_json(fs.model_dump_json())` has no marker and so no warning), since + the dump no longer holds the key. Resolve the loaded spec, not a serialised copy of it. The + EGERIA tier rebuilds its specs from the cached micro-flow text, which keeps the key, so + its marker is set afresh on every load. """ names: List[str] = [] if isinstance(values, dict) and "analytic_binders" in values: diff --git a/pyegeria/view/microflow.py b/pyegeria/view/microflow.py index bc868704..bb9f4a25 100644 --- a/pyegeria/view/microflow.py +++ b/pyegeria/view/microflow.py @@ -436,8 +436,20 @@ def microflow_to_format_set(mf: MicroflowV1, *, label: str, heading: Optional[st notes = notes if notes is not None else [] stages = list(mf.stages) kinds = [s.stage for s in stages] + binders: Dict[str, Any] = {} for i, s in enumerate(stages): - unknown = sorted((s.model_extra or {}).keys()) + extra = dict(s.model_extra or {}) + # A stage's `analytic_binders` (removed in RS-W2-3 PR-B) is passed on to the action, so the + # ActionParameter shim drops it there and records the names, and the spec resolver warns + # with BINDERS_DEPRECATED_PREFIX (owner decision O1-a): exactly as for a local spec. An + # empty one is dropped silently, as the shim does. + stage_binders = extra.pop("analytic_binders", None) + if stage_binders: + if isinstance(stage_binders, dict): + binders.update(stage_binders) + else: + binders[repr(stage_binders)] = stage_binders + unknown = sorted(extra.keys()) if unknown: notes.append(f"stage {i} ({s.stage}) carries key(s) this pyegeria does not read: " f"{', '.join(unknown)}; ignored") @@ -479,6 +491,9 @@ def microflow_to_format_set(mf: MicroflowV1, *, label: str, heading: Optional[st if not finds: action.update(required_params=required, optional_params=optional) + if binders and action: + action["analytic_binders"] = binders + formats = [] for out_type, f in mf.formatters.items(): if f.columns == "*": diff --git a/tests/micro-tests/test_rs_egeria_tier.py b/tests/micro-tests/test_rs_egeria_tier.py index 381d3abb..87721765 100644 --- a/tests/micro-tests/test_rs_egeria_tier.py +++ b/tests/micro-tests/test_rs_egeria_tier.py @@ -392,14 +392,78 @@ def test_no_allowlisted_method_reads_as_a_write(): assert not stale, f"reviewed entries no longer hit (remove them): {sorted(stale)}" -def test_unknown_stage_keys_are_recorded_as_notes(): +def test_unknown_stage_keys_are_recorded_as_notes_and_binders_go_to_the_action(): + import warnings mf, _, _ = mfm.parse_microflow({"format": "microflow/1", "stages": [ {"stage": "producer/find", "function": "CollectionManager.find_collections", "analytic_binders": {"x": 1}, "colour": "blue"}], "formatters": {"DICT": {"columns": ["display_name"]}}}) notes = [] - mfm.microflow_to_format_set(mf, label="T", notes=notes) - assert any("stage 0 (producer/find)" in n and "analytic_binders, colour" in n for n in notes), notes + with warnings.catch_warnings(record=True): + warnings.simplefilter("always") + fs = mfm.microflow_to_format_set(mf, label="T", notes=notes) + assert any("stage 0 (producer/find)" in n and n.endswith("colour; ignored") for n in notes), notes + assert not any("analytic_binders" in n for n in notes), notes + assert fs.action._dropped_binders == ["x"] + assert "analytic_binders" not in fs.model_dump()["action"] + + +# ── 2b. A binder on an Egeria-held spec warns exactly as #561 does for a local one (O1-a) ── + +def _binder_text(names): + from pyegeria.view import spec_resolver as sr + return (f"{sr.BINDERS_DEPRECATED_PREFIX} (binders for: {names}); declare these arguments as the routine's " + f"inputs, which the environment's role supply provides") + + +def _binder_microflow(fmt, binders): + stage = {"stage": "producer/find", "type": "Collection", "function": "CollectionManager.find_collections", + "params": {"search_string": "$search_string"}} + if binders is not _ABSENT: + stage["analytic_binders"] = binders + if fmt == 0: + return json.dumps([dict(stage, required_params=["search_string"], columns=["display_name"])]) + return json.dumps({"format": "microflow/1", "params": {"search_string": {"type": "string", "required": True}}, + "stages": [stage], "formatters": {"ALL": {"columns": ["display_name"]}}}) + + +_ABSENT = object() +_BINDER_GUID = "b1d0e400-0000-0000-0000-000000000002" + + +def _sync_and_resolve(fmt, binders): + import warnings + from pyegeria.view import spec_resolver as sr + eg = FakeEgeria() + eg.put(spec_element("E-Binder", guid=_BINDER_GUID, microflow=_binder_microflow(fmt, binders), aliases=[])) + with warnings.catch_warnings(record=True) as caught: + warnings.simplefilter("always") + report = esc.sync_report_specs(eg, folders=[FOLDER_QN]) + assert report.added == ["E-Binder"] and not report.skipped, report.render() + esc._invalidate_tier() + assert brf.report_spec_source("E-Binder")["tier"] == "egeria" + result = sr.resolve_all()["E-Binder"] + found = [w for w in result.warnings if w.startswith(sr.BINDERS_DEPRECATED_PREFIX)] + deprecations = [w for w in caught if issubclass(w.category, DeprecationWarning) + and "analytic_binders" in str(w.message)] + brf.unregister_report_spec("E-Binder") + return found, deprecations, report + + +@pytest.mark.parametrize("fmt", [0, 1]) +def test_egeria_held_spec_with_a_binder_resolves_with_exactly_the_561_warning(tier, fmt): + found, deprecations, report = _sync_and_resolve(fmt, {"ods": "x.OdsReader", "mgr": "os.getcwd"}) + assert found == [_binder_text("mgr, ods")] + assert deprecations # the PR-B shim's DeprecationWarning fired on the Egeria-held spec too + assert not any("analytic_binders" in n and "ignored" in n and "does not read" in n for n in report.notes) + + +@pytest.mark.parametrize("fmt", [0, 1]) +@pytest.mark.parametrize("empty", [{}, None, [], _ABSENT]) +def test_egeria_held_spec_with_an_empty_binder_stays_silent(tier, fmt, empty): + found, deprecations, report = _sync_and_resolve(fmt, empty) + assert found == [] and deprecations == [] + assert not any("analytic_binders" in n for n in report.notes) # ── 3. The sync ── From d39a0decb14a7caa35f56ff9924d8f40176cc429 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 10:16:18 +0000 Subject: [PATCH 02/14] feat(view): a positive find-method allowlist for specs held in Egeria The Architect's stage-2 allowlist items (read-back of RS-EGERIA-TIER stage 1, P2 and note (a) on 224f189c), pulled forward so pyegeria 6.2.28, the first release with the EGERIA tier, ships them. - The find_/get_/list_ prefix rule is gone. FIND_METHOD_ALLOWLIST is a positive list of Class.method entries (an _async_ twin is allowed too). It is _CENSUS_FIND_METHODS, the 45 find methods today's runnable built-in specs name (taken from the 437-spec census; the two unrunnable specs' missing methods are left out), plus FIND_METHOD_ADDITIONS, the reviewed additions, which is empty for now. A method not on it is refused with words, whatever its prefix. - FIND_METHOD_DENYLIST is kept as a second, independent check: it is tested first, it denies on any class, and a test fails if the two lists overlap. - The write-word scan now runs over the allowlist itself, on the name and on the first docstring line of both the sync method and its _async_ twin. The reviewed reads are keyed by Class.method: DataDiscovery.get_security_posture_history and ServerClient.get_attached_comments. - New test: every runnable built-in or generated spec's function is on the list, so the stage-2 seed cannot be refused. Plus tests that every entry resolves, that an _async_ twin is allowed, and that same-method different-class spellings are refused. - microflow-1.json and the module docstring describe the allowlist. Signed-off-by: Dan Wolfson --- pyegeria/view/microflow.py | 101 ++++++++++++++++---- pyegeria/view/schemas/microflow-1.json | 2 +- tests/micro-tests/test_rs_egeria_tier.py | 115 +++++++++++++---------- 3 files changed, 152 insertions(+), 66 deletions(-) diff --git a/pyegeria/view/microflow.py b/pyegeria/view/microflow.py index bb9f4a25..c2a1db08 100644 --- a/pyegeria/view/microflow.py +++ b/pyegeria/view/microflow.py @@ -21,9 +21,9 @@ `producer/analytic` stage) and raises `CannotRunYet` with words for anything else. Every Egeria-held spec is untrusted input. `check_allowlist` enforces §7a "Safety": a find stage -may name only `Class.method` on an EgeriaTech client class, read-only by name (`find_`, `get_`, -`list_`); an analytic stage only a registered analytic name; never a dotted module path or a -`python` binding. +may name only a `Class.method` on `FIND_METHOD_ALLOWLIST` (a positive list: the methods today's +built-in specs name, plus reviewed additions) and never one on `FIND_METHOD_DENYLIST`; an analytic +stage only a registered analytic name; never a dotted module path or a `python` binding. """ from __future__ import annotations @@ -36,6 +36,8 @@ __all__ = [ "MICROFLOW_FORMAT", + "FIND_METHOD_ALLOWLIST", + "FIND_METHOD_ADDITIONS", "FIND_METHOD_DENYLIST", "LEGACY_CLASS_ALIASES", "ParamDecl", @@ -56,12 +58,79 @@ MICROFLOW_FORMAT = "microflow/1" -#: Find methods an Egeria-held spec may never name even though they pass the name rules (§7a -#: "Safety"). A name prefix is not proof a method is read-only: each entry here starts with get_, -#: find_ or list_ but writes to Egeria. An entry denies the method on every class that has it (and its -#: `_async_` twin), since EgeriaTech and its subclasses inherit it. The micro-test -#: `test_no_allowlisted_method_reads_as_a_write` scans every method that passes the rules for write -#: words and fails on any hit that is neither here nor in its reviewed list. +#: The find methods a spec held in Egeria may name, as `Class.method` exactly as the spec writes it +#: (an `_async_` twin of an entry is allowed too). A POSITIVE list: a method that is not on it is +#: refused, whatever its name (a find_/get_/list_ prefix is not proof that a method only reads; see +#: FIND_METHOD_DENYLIST). It is the union of two named parts: +#: +#: - `_CENSUS_FIND_METHODS`: every find method a runnable built-in or generated spec names, taken from +#: the 437-spec census on 2026-11-09 (45 methods; the two unrunnable specs' methods, which do not +#: exist, are left out). The micro-test `test_every_runnable_builtin_spec_function_is_on_the_allowlist` +#: fails when a built-in or generated spec names one that is missing, so the stage-2 seed (today's +#: built-ins written into Egeria) can never be refused. +#: - `FIND_METHOD_ADDITIONS`: methods no built-in names yet, each added after reading it. +#: +#: Every entry is scanned for write words in its name and docstring by +#: `test_no_allowlisted_method_reads_as_a_write`; a hit must be reviewed there, by Class.method. +_CENSUS_FIND_METHODS: frozenset = frozenset({ + "ActorManager.find_actor_profiles", + "ActorManager.find_actor_roles", + "ActorManager.find_perspectives", + "ActorManager.find_skills", + "ActorManager.find_user_identities", + "AssetMaker.find_assets", + "ClassificationExplorer.get_elements", + "ClassificationExplorer.get_owners_elements", + "CollectionManager.find_collections", + "CollectionManager.get_collection_members", + "DataDesigner.find_data_fields", + "DataDesigner.find_data_structures", + "DataDesigner.find_data_value_specifications", + "DataDiscovery.get_security_findings", + "DataDiscovery.get_security_posture_history", + "EgeriaTech.get_elements_by_property_value", + "EgeriaTech.get_technology_type_elements", + "ExternalReference.find_external_identifiers", + "ExternalReference.find_external_references", + "ExternalReferences.find_external_references", + "GlossaryManager.find_glossaries", + "GlossaryManager.find_glossary_terms", + "GovernanceOfficer.find_governance_definitions", + "MetadataExpert.find_metadata_elements_with_string", + "MyProfile.get_my_profile", + "MyProfile.get_my_to_dos", + "ProjectManager.find_projects", + "ReferenceDataManager.find_valid_value_definitions", + "SecurityOfficer.find_statements_of_applicability", + "SecurityOfficer.get_statement_of_applicability_controls", + "ServerClient.find_comments", + "ServerClient.find_notes", + "ServerClient.find_tags", + "ServerClient.find_technology_types", + "ServerClient.get_attached_comments", + "ServerClient.get_tech_type_detail", + "SolutionArchitect.find_concept_model_elements", + "SolutionArchitect.find_design_patterns", + "SolutionArchitect.find_information_supply_chains", + "SolutionArchitect.find_solution_blueprints", + "SolutionArchitect.find_solution_components", + "SolutionArchitect.find_solution_roles", + "ValidMetadataManager.get_valid_metadata_values", + "_client_new.find_search_keywords", + "reference_data.find_valid_value_definitions", +}) + +#: Reviewed additions: find methods no built-in spec names yet. Empty in 6.2.28; add an entry only +#: after reading the method (it must only read), and give the reason in a comment beside it. +FIND_METHOD_ADDITIONS: frozenset = frozenset() + +FIND_METHOD_ALLOWLIST: frozenset = _CENSUS_FIND_METHODS | FIND_METHOD_ADDITIONS + +#: Find methods an Egeria-held spec may never name. Kept beside the positive allowlist as a second, +#: independent check (belt and braces): an entry here is refused even if it is ever added to the +#: allowlist by mistake, and the micro-tests fail if the two lists overlap. Each entry here reads +#: like a find but writes to Egeria. An entry denies the method on every class that has it (and its +#: `_async_` twin), since EgeriaTech and its subclasses inherit it. FIND_METHOD_DENYLIST: frozenset = frozenset({ # "Create a CSV file element from a template if it doesn't exist": an Egeria write. "AutomatedCuration.get_create_csv_data_file_element_from_template", @@ -73,7 +142,6 @@ #: the allowlist accepts exactly these, and no other unknown name. LEGACY_CLASS_ALIASES: Dict[str, str] = {"_client_new": "EgeriaTech"} -_READ_ONLY_PREFIXES = ("find_", "get_", "list_") _FIND_STAGE = "producer/find" _ANALYTIC_STAGE = "producer/analytic" _STAGE_KINDS_RUNNABLE = (_FIND_STAGE, _ANALYTIC_STAGE) @@ -283,9 +351,9 @@ def find_method_allowed(func_decl: Any) -> Tuple[bool, str]: """Whether an Egeria-held spec may name `func_decl` as its find method, and the words why not. Allowed: `Class.method` (exactly one dot) where `Class` is an EgeriaTech client class (or a - name the executor maps to one, `_CLIENT_CLASS_MAP` / `LEGACY_CLASS_ALIASES`), the method exists - there, its name starts with find_, get_ or list_, and it is not on `FIND_METHOD_DENYLIST` (on any - class).""" + name the executor maps to one, `_CLIENT_CLASS_MAP` / `LEGACY_CLASS_ALIASES`), `Class.method` + (or the method's `_async_` twin) is on `FIND_METHOD_ALLOWLIST`, it is not on + `FIND_METHOD_DENYLIST` (on any class), and the method exists there.""" from pyegeria.view.format_set_executor import _CLIENT_CLASS_MAP from pyegeria.view.spec_resolver import _find_method @@ -307,12 +375,13 @@ def find_method_allowed(func_decl: Any) -> Tuple[bool, str]: pass else: return False, f"its find method's class '{class_name}' is not an EgeriaTech client class" - if not bare.startswith(_READ_ONLY_PREFIXES): - return False, (f"its find method '{func_decl}' is not read-only by name (it must start with " - f"{', '.join(_READ_ONLY_PREFIXES)})") if (func_decl in FIND_METHOD_DENYLIST or f"{class_name}.{bare}" in FIND_METHOD_DENYLIST or bare in _DENIED_METHOD_NAMES): return False, f"its find method '{func_decl}' is on the denylist" + if f"{class_name}.{bare}" not in FIND_METHOD_ALLOWLIST: + return False, (f"its find method '{func_decl}' is not on the allowlist of find methods a spec held in " + f"Egeria may name (FIND_METHOD_ALLOWLIST: the methods today's built-in specs name, " + f"plus reviewed additions)") method, why = _find_method(f"{class_name}.{bare}") if method is None: return False, why diff --git a/pyegeria/view/schemas/microflow-1.json b/pyegeria/view/schemas/microflow-1.json index d4da356e..c9d21a98 100644 --- a/pyegeria/view/schemas/microflow-1.json +++ b/pyegeria/view/schemas/microflow-1.json @@ -33,7 +33,7 @@ "description": "producer/find or producer/analytic in stage 1; other kinds are valid but not run yet."}, "type": {"type": "string", "description": "The open metadata type a find stage looks for."}, "function": {"type": "string", - "description": "producer/find: Class.method on an EgeriaTech client class, read-only by name (find_, get_, list_). producer/analytic: a registered analytic name. Never a dotted module path."}, + "description": "producer/find: Class.method on an EgeriaTech client class, on pyegeria's find-method allowlist (FIND_METHOD_ALLOWLIST). producer/analytic: a registered analytic name. Never a dotted module path."}, "params": {"type": "object", "description": "Argument bindings: \"$name\" names a spec parameter, anything else is a constant."}, "out": {"type": "string", "description": "The shape the stage produces (recorded, not checked, in stage 1)."} }, diff --git a/tests/micro-tests/test_rs_egeria_tier.py b/tests/micro-tests/test_rs_egeria_tier.py index 87721765..9730aae1 100644 --- a/tests/micro-tests/test_rs_egeria_tier.py +++ b/tests/micro-tests/test_rs_egeria_tier.py @@ -292,10 +292,12 @@ def test_every_function_todays_runnable_local_specs_name_passes_the_allowlist(ti @pytest.mark.parametrize("func,words", [ ("pyegeria.omvs.collection_manager.CollectionManager.find_collections", "dotted module path"), ("os.system", "not an EgeriaTech client class"), - ("CollectionManager.create_collection", "not read-only by name"), - ("CollectionManager.delete_collection", "not read-only by name"), + ("CollectionManager.create_collection", "not on the allowlist"), + ("CollectionManager.delete_collection", "not on the allowlist"), + ("CollectionManager.get_collection_by_guid", "not on the allowlist"), # read-only by name, not listed + ("EgeriaTech.find_collections", "not on the allowlist"), # entries are Class.method as written ("NotAClient.find_things", "not an EgeriaTech client class"), - ("CollectionManager.find_no_such_thing", "does not exist"), + ("CollectionManager.find_no_such_thing", "not on the allowlist"), ]) def test_allowlist_refuses_with_words(func, words): ok, why = mfm.find_method_allowed(func) @@ -326,66 +328,81 @@ def test_denylist_refuses_the_csv_template_write_on_every_class_and_async_twin() assert not ok and "denylist" in why, (decl, why) +def test_async_twin_of_an_allowlisted_method_is_allowed(): + assert mfm.find_method_allowed("CollectionManager._async_find_collections") == (True, "") + + +def test_allowlist_is_the_census_plus_additions_and_never_meets_the_denylist(): + assert mfm.FIND_METHOD_ALLOWLIST == mfm._CENSUS_FIND_METHODS | mfm.FIND_METHOD_ADDITIONS + assert len(mfm._CENSUS_FIND_METHODS) == 45 + assert not (mfm.FIND_METHOD_ALLOWLIST & mfm.FIND_METHOD_DENYLIST) + denied = {e.rsplit(".", 1)[-1] for e in mfm.FIND_METHOD_DENYLIST} + assert not {e.rsplit(".", 1)[-1] for e in mfm.FIND_METHOD_ALLOWLIST} & denied + + +def test_every_allowlist_entry_passes_the_allowlist(): + """Each entry's class maps to an EgeriaTech client class and the method exists there.""" + refused = {} + for decl in sorted(mfm.FIND_METHOD_ALLOWLIST): + ok, why = mfm.find_method_allowed(decl) + if not ok: + refused[decl] = why + assert not refused, refused + + +def test_every_runnable_builtin_spec_function_is_on_the_allowlist(tier): + """The stage-2 seed writes today's built-in and generated specs into Egeria; none may be refused.""" + from pyegeria.view.spec_resolver import resolve + missing = {} + for source in (brf.base_report_specs, brf.generated_format_sets): + for label, fs in source.items(): + a = fs.action if isinstance(fs.action, dict) or fs.action is None else fs.action.model_dump() + func = (a or {}).get("function") + if not func or not resolve(fs, label).runnable: + continue + ok, why = mfm.find_method_allowed(func) + if not ok: + missing.setdefault(func, []).append(label) + assert not missing, missing + + # Write words, per the Architect's read-back of stage 1 (P1). A name matches when one of its # _-separated words starts with one; a docstring's first line when a word there does. _WRITE_WORDS = r"(create|add|update|delete|remove|attach|detach|set|start|stop|run|register|refresh|clear|load)" -# Reviewed 2026-11-09: each passes the allowlist, matches a write word, and is a read. Why it matched: +# Reviewed 2026-11-09, keyed by Class.method as on the allowlist: each matches a write word and is a +# read. Why it matched: _REVIEWED_READS = { - "find_tabular_data_sets": "'data sets' (set) - retrieves tabular data set elements", - "get_tabular_data_set": "'data set' (set) - retrieves a tabular data set report", - "get_active_configuration": "'if it is running' - returns a server's configuration", - "get_active_server_instance_status": "'services running' - status of a server's services", - "get_approved_engine_actions": "'approved to run' - lists engine actions", - "get_attached_collections": "'attached' - lists linked collections", - "get_attached_comments": "'attached' - lists comments", - "get_attached_likes": "'attached' - lists likes", - "get_attached_note_logs": "'attached' - lists note logs", - "get_attached_ratings": "'attached' - lists ratings", - "get_attached_tags": "'attached' - lists informal tags", - "get_connector_config": "'connector running' - reads configuration properties", - "get_integration_connector_config_properties": "'connector running' - reads configuration properties", - "get_connector_type": "'as registered' - returns a connector type", - "get_endpoints_by_network_address": "'address' (add) - POST to /endpoints/by-network-address, a search", - "get_platform_report": "'running platform' - returns platform details", - "get_server_report": "'running server' - returns server details", - "get_project_hierarchy": "'starting with' - returns a project hierarchy", - "get_registered_services": "'registered' - lists registered services", - "get_security_posture_history": "'test run' - returns posture summaries", - "get_software_capabilities_for_infrastructure": "'attached' - lists software capabilities", - "get_user_list": "'registered' - lists platform users", - "get_valid_classification_types": "'can be attached' - returns TypeDefs", - "get_valid_relationship_types": "'can be attached' - returns TypeDefs", + "DataDiscovery.get_security_posture_history": "'one per test run' - returns posture summaries", + "ServerClient.get_attached_comments": "'attached' - lists the comments attached to an element", } def test_no_allowlisted_method_reads_as_a_write(): - """Scan every method on the EgeriaTech classes that passes the allowlist for write words in its - name or its docstring's first line. Any hit must be on the denylist (and so not pass) or in - `_REVIEWED_READS`. A new hit means: read the method; if it writes, add it to - FIND_METHOD_DENYLIST; if it reads, add it to `_REVIEWED_READS` with why it matched.""" + """Scan every FIND_METHOD_ALLOWLIST entry for write words in its method name or its docstring's + first line (sync and `_async_` twin). A hit must be in `_REVIEWED_READS`, keyed by Class.method. + A new hit means: read the method; if it writes, take it off the allowlist (and add it to + FIND_METHOD_DENYLIST); if it reads, add it to `_REVIEWED_READS` with why it matched.""" import inspect import re - from pyegeria.view.spec_resolver import _egeria_tech_classes + import sys + from pyegeria.view.spec_resolver import _find_method name_re = re.compile(r"(^|_)" + _WRITE_WORDS) doc_re = re.compile(r"\b" + _WRITE_WORDS, re.I) - passing, hits = 0, {} - for cls in _egeria_tech_classes(): - for attr in dir(cls): - bare = attr[len("_async_"):] if attr.startswith("_async_") else attr - if not bare.startswith(("find_", "get_", "list_")) or not callable(getattr(cls, attr, None)): - continue - ok, _why = mfm.find_method_allowed(f"{cls.__name__}.{attr}") - if not ok: - continue - passing += 1 - doc = (inspect.getdoc(getattr(cls, attr)) or "").strip().splitlines() - first = doc[0] if doc else "" - if name_re.search(bare) or doc_re.search(first): - hits.setdefault(bare, f"{cls.__name__}.{attr}: {first[:120]}") - assert passing > 1000 # the scan really ran over the client classes - assert _WRITE_CSV not in hits + hits = {} + for decl in sorted(mfm.FIND_METHOD_ALLOWLIST): + bare = decl.rsplit(".", 1)[-1] + method, why = _find_method(decl) + assert method is not None, (decl, why) + # `_find_method` returns the `_async_` function; its defining class holds the sync twin. + owner = getattr(sys.modules.get(method.__module__), method.__qualname__.split(".")[0], None) + firsts = [] + for m in (method, getattr(owner, bare, None)): + doc = (inspect.getdoc(m) or "").strip().splitlines() if m is not None else [] + firsts.append(doc[0] if doc else "") + if name_re.search(bare) or any(doc_re.search(f) for f in firsts): + hits[decl] = " | ".join(f[:120] for f in firsts if f) unreviewed = {k: v for k, v in hits.items() if k not in _REVIEWED_READS} assert not unreviewed, unreviewed stale = set(_REVIEWED_READS) - set(hits) From e2e8a8c87b89b06cde2ddafb4cdf030e3cdf9845 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 10:30:11 +0000 Subject: [PATCH 03/14] fix(view): repoint the two unrunnable built-in specs; census 0 unrunnable The owner's fix for the census's two unrunnable specs (pyegeria 6.2.28). - Asset-Graph named ServerClient.get_asset_graph, which no longer exists. It now calls AssetCatalog.get_asset_graph_by_guid. The required parameter is now guid instead of asset_guid; the optional ones are start_from and page_size. commands/cat/ get_asset_graph.py (the hey_egeria asset graph command) passes the new name. - Data-Classes named DataDesigner.find_data_classes, which no longer exists. It now calls DataDesigner.find_data_value_specifications with spec_params={"metadata_element_subtypes": ["DataClass"]}. DataClass is a DataValueSpecification subtype that shares the same search endpoint, and the filter travels in the search body as metadataElementSubtypeNames (through **kwargs into _async_find_request). The two subtype keys are removed from the spec's optional params so a caller cannot override the filter. - Live READ against qs-view-server (no writes): - The DataClass filter returns 6 DataClass elements; DataGrain returns none, so the filter is honoured. - Data-Classes DICT returns 6 DataClass rows. It fills the same columns as Data-Value-Spec does on the same data. - Asset-Graph DICT and MERMAID run on a real asset guid. - AssetCatalog.get_asset_graph_by_guid is added to the positive allowlist (46 entries). find_data_value_specifications was already on it. The every-runnable- built-in test now covers both specs. - Census: 437 specs, 376 runnable, 61 format-only, 0 unrunnable (was 374 / 61 / 2). The resolver tests that used Data-Classes as their unrunnable example now register a probe spec. KNOWN_UNRUNNABLE is now empty. The log_lines fixture re-enables the pyegeria logger, because another module's test can leave it disabled. - Docs: the census numbers in output-formats-and-report-specs.md are updated, and the two "unrunnable today" examples are now history with their fix. A new docs/release-notes/6.2.28.md is added. Signed-off-by: Dan Wolfson --- commands/cat/get_asset_graph.py | 2 +- docs/output-formats-and-report-specs.md | 6 ++- docs/release-notes/6.2.28.md | 12 ++++++ pyegeria/view/base_report_formats.py | 17 +++++--- pyegeria/view/microflow.py | 5 ++- tests/micro-tests/test_rs_egeria_tier.py | 19 +++++---- .../micro-tests/test_rs_w2_2_spec_resolver.py | 42 +++++++++++++------ 7 files changed, 73 insertions(+), 30 deletions(-) create mode 100644 docs/release-notes/6.2.28.md diff --git a/commands/cat/get_asset_graph.py b/commands/cat/get_asset_graph.py index ff56cba3..6499c43c 100644 --- a/commands/cat/get_asset_graph.py +++ b/commands/cat/get_asset_graph.py @@ -40,7 +40,7 @@ def asset_viewer(asset_guid: str, output_format: str = "TABLE", view_server: str render_table: bool = False, table_caption: str | None = None, use_pager: bool = True): try: list_generic(report_spec="Asset-Graph", output_format=output_format, view_server=view_server, - view_url=view_url, user=user, user_pass=user_pass, params={"asset_guid": asset_guid}, + view_url=view_url, user=user, user_pass=user_pass, params={"guid": asset_guid}, render_table=render_table, write_file = write_file, table_caption=table_caption, use_pager=use_pager, width=width, jupyter=jupyter, prompt_missing=prompt_missing) diff --git a/docs/output-formats-and-report-specs.md b/docs/output-formats-and-report-specs.md index 0eacccca..2e0b536f 100644 --- a/docs/output-formats-and-report-specs.md +++ b/docs/output-formats-and-report-specs.md @@ -1227,7 +1227,7 @@ Check 1 on a report spec that names a dotted path says, for example: *Report spe - **Runnable:** a `ResolvedSpec`. Its `notes` say which checks did not run and why; its `warnings` are defects that bite only when a caller uses an optional parameter. - **Unrunnable:** an `Unrunnable` with `words` and `checks`. It failed at least one check. -- **Format-only:** an `Unrunnable` of `kind="format_only"` with `checks=[1]`: the spec has no `action`, so it formats elements another call fetched (a detail view, or a command's output format). **This is not broken**: the words say `it has no action, so it formats elements another call fetched`. On the registry as of 6.2.27 there are 374 runnable, 61 format-only and 2 unrunnable specs. +- **Format-only:** an `Unrunnable` of `kind="format_only"` with `checks=[1]`: the spec has no `action`, so it formats elements another call fetched (a detail view, or a command's output format). **This is not broken**: the words say `it has no action, so it formats elements another call fetched`. On the registry as of 6.2.28 there are 376 runnable, 61 format-only and no unrunnable specs (6.2.27 had 374 runnable and 2 unrunnable; see below). **Listing them.** @@ -1249,13 +1249,15 @@ for name, spec in unrunnable_specs().items(): # format-only left out; p - `load_egeria_report_specs()` (the Egeria question-spec load); - `commands/tech/refresh_specs.py`, which resolves everything after regenerating and logs the count. -**Reading the words: the two specs that are unrunnable today.** Both fail check 1, both are `find` specs, and both name a find method that does not exist, so the words tell you exactly what to fix: +**Reading the words: the two specs that were unrunnable in 6.2.27.** Both failed check 1, both were `find` specs, and both named a find method that no longer existed, so the words said exactly what to fix: - `Spec 'Asset-Graph' cannot run (check 1): its find method 'ServerClient.get_asset_graph' does not exist: EgeriaTech or any client it proxies to has no '_async_get_asset_graph'.` - `Spec 'Data-Classes' cannot run (check 1): its find method 'DataDesigner.find_data_classes' does not exist: client class DataDesigner has no '_async_find_data_classes'.` Read it left to right: *the check* (1, names), *the thing named* (`ServerClient.get_asset_graph`), *where the resolver looked* (the client class the executor would use for that name, here EgeriaTech and everything it proxies to), and *what was missing* (an `_async_` method of that name). They are listed with these words by `list_report_specs(with_status=True)` rather than being left to fail when someone runs them. +6.2.28 fixed both, as the words pointed: `Asset-Graph` now calls `AssetCatalog.get_asset_graph_by_guid` (parameter `guid`), and `Data-Classes` calls `DataDesigner.find_data_value_specifications` with `metadata_element_subtypes=["DataClass"]` (a DataClass is a DataValueSpecification subtype and shares its search). + > **Planned, not shipped.** Report specs held in Egeria itself (synced, cached and addressed as `egeria:...`) are being built in a first stage; see `portal-docs/Internals/report-spec-pipeline-model.md` (v5.5) in egeria-workspaces. This section describes only specs loaded from files, entry points and the runtime registry. diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md new file mode 100644 index 00000000..9184b986 --- /dev/null +++ b/docs/release-notes/6.2.28.md @@ -0,0 +1,12 @@ +# pyegeria 6.2.28 + +## Fixed + +- **The two unrunnable built-in report specs run again.** `Asset-Graph` named + `ServerClient.get_asset_graph`, which no longer exists; it now calls + `AssetCatalog.get_asset_graph_by_guid`, and its required parameter is `guid` (was `asset_guid`; the + `hey_egeria` asset graph command passes the new name). + `Data-Classes` named `DataDesigner.find_data_classes`, which no longer exists; it now calls + `DataDesigner.find_data_value_specifications` restricted to the `DataClass` subtype + (`metadata_element_subtypes=["DataClass"]`). The load-time census is now 437 specs: 376 runnable, + 61 format-only, none unrunnable (6.2.27: 374 runnable, 2 unrunnable). diff --git a/pyegeria/view/base_report_formats.py b/pyegeria/view/base_report_formats.py index 17fcf206..606310f0 100644 --- a/pyegeria/view/base_report_formats.py +++ b/pyegeria/view/base_report_formats.py @@ -1423,9 +1423,11 @@ def _user_report_specs_dir() -> str: ) ], action=ActionParameter( - function="ServerClient.get_asset_graph", - optional_params=OPTIONAL_FILTER_PARAMS + TIME_PARAMETERS, - required_params=["asset_guid"], + # ServerClient.get_asset_graph no longer exists; the asset graph is AssetCatalog's + # assets/{guid}/as-graph (6.2.28). + function="AssetCatalog.get_asset_graph_by_guid", + required_params=["guid"], + optional_params=["start_from", "page_size"], spec_params={}, ) ), @@ -2949,9 +2951,14 @@ def _user_report_specs_dir() -> str: )], action=ActionParameter( - function="DataDesigner.find_data_classes", + # DataDesigner.find_data_classes no longer exists. DataClass is a subtype of + # DataValueSpecification and shares its search endpoint; the subtype filter travels in the + # search body as metadataElementSubtypeNames (6.2.28). + function="DataDesigner.find_data_value_specifications", required_params=["search_string"], - spec_params={}, + optional_params=[p for p in OPTIONAL_SEARCH_PARAMS + if p not in ("metadata_element_subtypes", "metadata_element_type")], + spec_params={"metadata_element_subtypes": ["DataClass"]}, ) ), "Data-Value-Spec": FormatSet( diff --git a/pyegeria/view/microflow.py b/pyegeria/view/microflow.py index c2a1db08..ccb1e175 100644 --- a/pyegeria/view/microflow.py +++ b/pyegeria/view/microflow.py @@ -64,8 +64,8 @@ #: FIND_METHOD_DENYLIST). It is the union of two named parts: #: #: - `_CENSUS_FIND_METHODS`: every find method a runnable built-in or generated spec names, taken from -#: the 437-spec census on 2026-11-09 (45 methods; the two unrunnable specs' methods, which do not -#: exist, are left out). The micro-test `test_every_runnable_builtin_spec_function_is_on_the_allowlist` +#: the 437-spec census on 2026-11-09 (46 methods, every spec runnable since 6.2.28 repointed +#: Asset-Graph and Data-Classes). The micro-test `test_every_runnable_builtin_spec_function_is_on_the_allowlist` #: fails when a built-in or generated spec names one that is missing, so the stage-2 seed (today's #: built-ins written into Egeria) can never be refused. #: - `FIND_METHOD_ADDITIONS`: methods no built-in names yet, each added after reading it. @@ -78,6 +78,7 @@ "ActorManager.find_perspectives", "ActorManager.find_skills", "ActorManager.find_user_identities", + "AssetCatalog.get_asset_graph_by_guid", "AssetMaker.find_assets", "ClassificationExplorer.get_elements", "ClassificationExplorer.get_owners_elements", diff --git a/tests/micro-tests/test_rs_egeria_tier.py b/tests/micro-tests/test_rs_egeria_tier.py index 9730aae1..67493bad 100644 --- a/tests/micro-tests/test_rs_egeria_tier.py +++ b/tests/micro-tests/test_rs_egeria_tier.py @@ -130,6 +130,7 @@ def tier(monkeypatch, tmp_path): def log_lines(): from loguru import logger lines = [] + logger.enable("pyegeria") # another test module may have left pyegeria's logger disabled sink = logger.add(lambda m: lines.append(m.record["message"]), level="WARNING") yield lines logger.remove(sink) @@ -279,11 +280,10 @@ def test_every_function_todays_runnable_local_specs_name_passes_the_allowlist(ti ok, why = mfm.find_method_allowed(func) if not ok: refused[func] = (labels, why) - # Exactly the find methods of the two specs the resolver already lists as unrunnable (their - # methods do not exist); every other find method a local spec names is allowed. - assert set(refused) == {"ServerClient.get_asset_graph", "DataDesigner.find_data_classes"}, refused - for func, (labels, _why) in refused.items(): - assert all(not results[lb].runnable for lb in labels) + # Since 6.2.28 repointed Asset-Graph and Data-Classes, every spec is runnable and every find + # method a local spec names is allowed. + assert not refused, refused + assert all(r.runnable or r.kind == "format_only" for r in results.values()) for name in analytics: ok, why = mfm._analytic_allowed(name) assert ok, (name, why) @@ -334,7 +334,7 @@ def test_async_twin_of_an_allowlisted_method_is_allowed(): def test_allowlist_is_the_census_plus_additions_and_never_meets_the_denylist(): assert mfm.FIND_METHOD_ALLOWLIST == mfm._CENSUS_FIND_METHODS | mfm.FIND_METHOD_ADDITIONS - assert len(mfm._CENSUS_FIND_METHODS) == 45 + assert len(mfm._CENSUS_FIND_METHODS) == 46 assert not (mfm.FIND_METHOD_ALLOWLIST & mfm.FIND_METHOD_DENYLIST) denied = {e.rsplit(".", 1)[-1] for e in mfm.FIND_METHOD_DENYLIST} assert not {e.rsplit(".", 1)[-1] for e in mfm.FIND_METHOD_ALLOWLIST} & denied @@ -351,7 +351,8 @@ def test_every_allowlist_entry_passes_the_allowlist(): def test_every_runnable_builtin_spec_function_is_on_the_allowlist(tier): - """The stage-2 seed writes today's built-in and generated specs into Egeria; none may be refused.""" + """The stage-2 seed writes today's built-in and generated specs into Egeria; none may be refused. + Covers the two specs 6.2.28 repointed (Asset-Graph, Data-Classes).""" from pyegeria.view.spec_resolver import resolve missing = {} for source in (brf.base_report_specs, brf.generated_format_sets): @@ -364,6 +365,10 @@ def test_every_runnable_builtin_spec_function_is_on_the_allowlist(tier): if not ok: missing.setdefault(func, []).append(label) assert not missing, missing + assert brf.base_report_specs["Asset-Graph"].action.function == "AssetCatalog.get_asset_graph_by_guid" + assert brf.base_report_specs["Data-Classes"].action.function == "DataDesigner.find_data_value_specifications" + for label in ("Asset-Graph", "Data-Classes"): + assert resolve(brf.base_report_specs[label], label).runnable, label # Write words, per the Architect's read-back of stage 1 (P1). A name matches when one of its diff --git a/tests/micro-tests/test_rs_w2_2_spec_resolver.py b/tests/micro-tests/test_rs_w2_2_spec_resolver.py index 6b4a22cd..7c835256 100644 --- a/tests/micro-tests/test_rs_w2_2_spec_resolver.py +++ b/tests/micro-tests/test_rs_w2_2_spec_resolver.py @@ -42,11 +42,10 @@ def _clean(): # ── The census over every registered spec (base_report_formats + analytic demo specs) ── -#: The unrunnable specs the first resolution found, each a real defect (see the PR body). -KNOWN_UNRUNNABLE = { - "Asset-Graph": "its find method 'ServerClient.get_asset_graph' does not exist", - "Data-Classes": "its find method 'DataDesigner.find_data_classes' does not exist", -} +#: The unrunnable specs: the first resolution found two (Asset-Graph naming the missing +#: ServerClient.get_asset_graph, Data-Classes naming the missing DataDesigner.find_data_classes); +#: 6.2.28 repointed both, so there are none. +KNOWN_UNRUNNABLE: dict = {} def test_every_registered_spec_resolves_and_the_unrunnable_ones_are_the_known_defects(): @@ -216,10 +215,16 @@ def test_formatset_accepts_target_type_name(): def test_list_report_specs_is_unchanged_by_default_and_gains_status_on_request(): names = brf.list_report_specs() assert names and all(isinstance(n, str) for n in names) - status = {d["name"]: d for d in brf.list_report_specs(with_status=True)} - assert set(status) == set(names) - assert status["Data-Classes"]["runnable"] is False - assert "check 1" in status["Data-Classes"]["unrunnable_reason"] + brf.register_report_specs({"Probe-Missing": _spec(_find(function="DataDesigner.find_no_such_things"))}, + source="test") + try: + status = {d["name"]: d for d in brf.list_report_specs(with_status=True)} + finally: + brf.unregister_report_spec("Probe-Missing") + assert set(status) == set(names) | {"Probe-Missing"} + assert status["Probe-Missing"]["runnable"] is False + assert "check 1" in status["Probe-Missing"]["unrunnable_reason"] + assert status["Data-Classes"]["runnable"] is True and status["Asset-Graph"]["runnable"] is True assert status["Analytic Demo - Element Count by Type"] == { "name": "Analytic Demo - Element Count by Type", "runnable": True, "unrunnable_reason": "", # RS-EGERIA-TIER: where the spec comes from, and whether it shadows or is shadowed @@ -268,14 +273,25 @@ def _captured(fn) -> str: return "".join(lines) -def test_refresh_report_specs_logs_the_unrunnable_count_and_words(): +def test_refresh_report_specs_logs_all_runnable_when_none_is_unrunnable(): brf.get_report_registry() # startup has happened text = _captured(brf.refresh_report_specs) - assert "Report specs resolved at refresh_report_specs: 2 of" in text - assert "Spec 'Data-Classes' cannot run (check 1)" in text + assert "Report specs resolved at refresh_report_specs: all " in text and "cannot run" not in text + + +def test_refresh_report_specs_logs_the_unrunnable_count_and_words(): + brf.get_report_registry() # startup has happened + brf.register_report_specs({"Probe-Missing": _spec(_find(function="DataDesigner.find_no_such_things"))}, + source="test") + try: + text = _captured(lambda: sr.log_resolution_summary(force=True, where="refresh_report_specs")) + finally: + brf.unregister_report_spec("Probe-Missing") + assert "Report specs resolved at refresh_report_specs: 1 of" in text + assert "Spec 'Probe-Missing' cannot run (check 1)" in text def test_the_summary_is_logged_once_unless_forced(): sr.log_resolution_summary() assert _captured(sr.log_resolution_summary) == "" - assert "cannot run" in _captured(lambda: sr.log_resolution_summary(force=True, where="test")) + assert "Report specs resolved at test" in _captured(lambda: sr.log_resolution_summary(force=True, where="test")) From eb511d24fef95f781db571de2fea781da9c48893 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 11:05:13 +0000 Subject: [PATCH 04/14] feat: search and get filters universal, checked and typed (6.2.28) Every public find_*/get_* method that sends a request body (509, sync and async) now accepts **kwargs and forwards them to the shared request helper; the 53 that dropped them (find_all_data_structures/find_all_data_fields, the RuntimeManager lookups, get_collection_hierarchy, ...) are fixed. pyegeria.core.request_filters is the one source: - GetFilters / ListFilters / SearchFilters / FindFilters TypedDicts (PEP 692, a docstring per field); 281 methods annotate **kwargs: Unpack[...]. The other 208 name some filters explicitly, which PEP 692 forbids repeating in the TypedDict, so they keep plain **kwargs. - filter_body_kwargs(kind, kwargs), called by every shared helper, derives the valid names from the request-body model, maps the public spellings to wire names, and warns (UnknownFilterWarning, also logged) on unknown names. Report-spec spec_params reach the same check through the executor. - filter_reference_markdown() renders the tables in docs/search-and-get-filters.md; micro-tests fail if the TypedDicts, models or docs drift. Unknown names warn in 6.2.28; a later release will raise. Signed-off-by: Dan Wolfson --- docs/release-notes/6.2.28.md | 48 ++ docs/search-and-get-filters.md | 202 +++++++++ pyegeria/core/_filter_kwargs_survey.py | 162 +++++++ pyegeria/core/_server_client.py | 45 +- pyegeria/core/request_filters.py | 414 ++++++++++++++++++ pyegeria/omvs/action_author.py | 22 +- pyegeria/omvs/actor_manager.py | 138 +++++- pyegeria/omvs/asset_catalog.py | 25 +- pyegeria/omvs/asset_maker.py | 215 +++++++-- pyegeria/omvs/automated_curation.py | 75 +++- pyegeria/omvs/classification_explorer.py | 274 ++++++++++-- pyegeria/omvs/collection_manager.py | 93 +++- pyegeria/omvs/community_matters_omvs.py | 6 + pyegeria/omvs/data_designer.py | 215 ++++++--- pyegeria/omvs/data_discovery.py | 130 ++++-- pyegeria/omvs/data_engineer.py | 12 +- pyegeria/omvs/digital_business.py | 24 +- pyegeria/omvs/external_links.py | 62 ++- pyegeria/omvs/glossary_manager.py | 36 +- pyegeria/omvs/governance_officer.py | 75 +++- pyegeria/omvs/location_arena.py | 18 + pyegeria/omvs/metadata_expert.py | 73 ++- pyegeria/omvs/my_profile.py | 114 ++++- pyegeria/omvs/product_catalog.py | 15 +- pyegeria/omvs/product_manager.py | 79 +++- pyegeria/omvs/project_manager.py | 53 ++- pyegeria/omvs/reference_data.py | 26 +- pyegeria/omvs/runtime_manager.py | 151 +++++-- pyegeria/omvs/schema_maker.py | 80 +++- pyegeria/omvs/security_officer.py | 66 ++- pyegeria/omvs/solution_architect.py | 198 +++++++-- pyegeria/omvs/subject_area.py | 18 + pyegeria/omvs/time_keeper.py | 18 + pyegeria/omvs/valid_metadata.py | 46 +- .../test_search_get_filter_kwargs.py | 282 ++++++++++++ 35 files changed, 3063 insertions(+), 447 deletions(-) create mode 100644 docs/release-notes/6.2.28.md create mode 100644 docs/search-and-get-filters.md create mode 100644 pyegeria/core/_filter_kwargs_survey.py create mode 100644 pyegeria/core/request_filters.py create mode 100644 tests/micro-tests/test_search_get_filter_kwargs.py diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md new file mode 100644 index 00000000..b50703c3 --- /dev/null +++ b/docs/release-notes/6.2.28.md @@ -0,0 +1,48 @@ +# pyegeria 6.2.28 + + + +## Search and get filters: universal, checked, documented + +- **Every `find_*` / `get_*` takes the standard filters as keyword arguments.** Each public + method that sends a request body to Egeria (509 of them, sync and async) accepts `**kwargs` and + passes them to the shared request helper. Signatures are unchanged apart from that. Methods + that previously could not filter now can — including `DataDesigner.find_all_data_structures` + / `find_all_data_fields`, `RuntimeManager.get_platforms_by_name` / `get_servers_by_name` and + the other runtime lookups, `CollectionManager.get_collection_hierarchy` / `get_member_list`, + and the get-by-GUID family (`GetFilters` now reach `GetRequestBody`; before, a filter + keyword on a get-by-GUID was silently dropped). For example: + + ```python + client.find_data_value_specifications("*", metadata_element_subtypes=["DataClass"]) + ``` + +- **Filter names are checked.** An unknown name warns with `UnknownFilterWarning` (a + `UserWarning`, also logged at WARNING), naming the bad key and listing the valid ones, and is + left out of the request. The valid names come from the request-body model the call sends + (`SearchStringRequestBody`, `FilterRequestBody`, `GetRequestBody`, ...). Report specs' + `spec_params` go through the same check, so a typo in a spec warns too. + **A future release will raise `TypeError` instead of warning** — fix any warnings now. +- **Typed filters (PEP 692).** `SearchFilters`, `ListFilters`, `GetFilters` and `FindFilters` + (in `pyegeria.core.request_filters`) are `TypedDict`s with a description per field. Methods + annotate `**kwargs: Unpack[...]` so editors complete the filter names. Methods that already + name some filters as explicit parameters keep a plain `**kwargs` (PEP 692 forbids the overlap); + their filters still pass through and are checked. +- **Docs:** [Search and get filters](../search-and-get-filters.md) — the full tables, which + Egeria request body each maps to, and examples. + +### Behaviour changes to check + +- A filter keyword that was silently dropped before now reaches Egeria. In particular + `classification_names` on a find is now sent as `includeOnlyClassifiedElements` (it already + meant that on a by-name get), so the Dr.Egeria `*-DrE-*` report specs that pass + `classification_names` (e.g. Campaign → `find_projects`) now return only elements carrying + that classification instead of all of them. +- A filter given as `None` never overrides a method's own default. +- `MetadataExpert.find_metadata_elements` builds its default body from any `FindRequestBody` + field given as a keyword (before: a fixed subset). +- Two built-in report-spec families pass a filter their method does not have, and now warn + when run: `metadata_element_types` → `ExternalReferences.find_external_references` + (12 `Cited-Document-*`, `External-Data-Source-*`... specs) and `classification` → + `GlossaryManager.find_glossary_terms` (`Question-DrE-*`). Those filters were always + ignored; the fix belongs in the Dr.Egeria compact specs. diff --git a/docs/search-and-get-filters.md b/docs/search-and-get-filters.md new file mode 100644 index 00000000..577bc45a --- /dev/null +++ b/docs/search-and-get-filters.md @@ -0,0 +1,202 @@ +# Search and get filters + +Every pyegeria `find_*` and `get_*` method that sends a request body to Egeria accepts the +standard **filters** as keyword arguments, and passes them to one shared request helper. The +signatures stay short: a method lists its everyday parameters (`search_string`, `start_from`, +`page_size`, `output_format`, `report_spec`, `body` ...) and takes the rest through `**kwargs`. + +```python +from pyegeria import EgeriaTech + +client = EgeriaTech("qs-view-server", "https://localhost:9443", "erinoverview", "secret") +client.create_egeria_bearer_token() + +# Only the DataClass subtype of DataValueSpecification: +data_classes = client.find_data_value_specifications( + "*", metadata_element_subtypes=["DataClass"], +) + +# Glossary terms that are ACTIVE, newest first, as they were on 1 March: +terms = client.find_glossary_terms( + "customer", + limit_results_by_status=["ACTIVE"], + sequencing_order="CREATION_DATE_RECENT", + as_of_time="2026-03-01T00:00:00Z", +) + +# A get-by-GUID that leaves the noisy relationships out of the returned graph: +spec = client.get_data_value_specification_by_guid( + guid, skip_relationships=["SemanticAssignment"], graph_query_depth=1, +) + +# A by-name lookup restricted to elements anchored in one glossary: +fields = client.get_data_fields_by_name("customer id", anchor_guid=glossary_guid) +``` + +## Which filters a method accepts + +There are three request kinds, each with its own Egeria request body, and so its own filter set: + +| Methods | Filter set | Egeria request body | +|---|---|---| +| `find_*` | `SearchFilters` | `SearchStringRequestBody` (or `FindPropertyNamesProperties` when `property_names` is given) | +| `get_*_by_name` and other list gets | `ListFilters` | `FilterRequestBody` / `ResultsRequestBody` | +| `get_*_by_guid` and other single-element gets | `GetFilters` | `GetRequestBody` | +| `find_metadata_elements`, `find_root_elements` | `FindFilters` | `FindRequestBody` | + +`SearchFilters` ⊃ `ListFilters` ⊃ `GetFilters`: a search accepts everything a list does, +and a list everything a get does. Each method's docstring has one line naming its set. + +The sets are PEP 692 `TypedDict`s in `pyegeria.core.request_filters`. Where a method's +signature is `**kwargs: Unpack[SearchFilters]`, your editor completes the filter names and +shows each one's description. + +The activity-, content- and deployment-status finds (for example `find_digital_products`) +accept the same filters plus their own explicit status-list parameter. + +### Filters are checked + +The names you pass are checked against the fields of the request body that call sends — the +check is derived from pyegeria's request-body models, not a hand-kept list. An unknown name +(usually a typo) is **ignored with a warning**: + +```text +UnknownFilterWarning: DataDesigner.find_data_value_specifications: unknown filter +'metadata_element_subtipes' ignored. Valid filters for this request: anchor_domain, +anchor_guid, ... metadata_element_subtypes, metadata_element_type, ... +``` + +`UnknownFilterWarning` is a `UserWarning`, so it shows by default. The same message goes to +pyegeria's log (loguru, level WARNING), so it is not lost where stderr is not visible (the +Egeria portal, the MCP server). A filter that exists but does not apply to the request (for +example `anchor_guid` on a get-by-GUID, which `GetRequestBody` has no field for) warns too. + +To turn the warnings into errors now, for example in tests: + +```python +import warnings +from pyegeria.core.request_filters import UnknownFilterWarning + +warnings.simplefilter("error", UnknownFilterWarning) +``` + +**Plan:** pyegeria 6.2.28 warns. A later release will raise `TypeError` for an unknown +filter name instead. Fix any warnings you see now. + +### Report specs + +A report spec's `spec_params` (and the parameters a caller passes to `run_report` / +`exec_report_spec`) go into the same `**kwargs`, so a typo there warns in the same way — +through the report executor, with the method's name in the message: + +```python +"Data-Classes": FormatSet( + ..., + action=ActionParameter( + function="DataDesigner.find_data_value_specifications", + required_params=["search_string"], + spec_params={"metadata_element_subtypes": ["DataClass"]}, + ), +) +``` + +### Notes + +- `None` means "not set": a filter passed as `None` never overrides the method's own default. +- When you pass a complete `body=`, the body is sent as given and the filter keywords are not + merged into it (their names are still checked). +- `metadata_element_subtypes` is honoured by searches and lists. Egeria ignores it on a + get-by-GUID (Egeria moved it from `GetOptions` to `QueryOptions`); it is still accepted there. +- Some older methods name a filter explicitly in their signature (for example + `metadata_element_type`, `skip_relationships`). Those parameters work as before. PEP 692 does + not allow a `TypedDict` key to repeat a named parameter, so those methods keep a plain + `**kwargs` annotation; the filters still pass through and are still checked. + +## Filter reference + +The tables below are generated from `pyegeria.core.request_filters` (a micro-test fails if +they drift). The "Wire name" is the field name in the JSON request body Egeria receives. + + +### `GetFilters` + +Used by get_*_by_guid and other single-element gets. Maps to `GetRequestBody`. + +| Filter | Type | Wire name | Meaning | +|---|---|---|---| +| `metadata_element_type` | `str` | `metadataElementTypeName` | Restrict results to this open metadata type (and its subtypes), e.g. `"DataClass"`. | +| `metadata_element_subtypes` | `list[str]` | `metadataElementSubtypeNames` | Only return elements of these subtypes, e.g. `["DataClass"]`. Honoured on searches and lists; Egeria ignores it on a get-by-GUID. | +| `skip_relationships` | `list[str]` | `skipRelationships` | Relationship type names to leave out of each element's related-element graph. | +| `include_only_relationships` | `list[str]` | `includeOnlyRelationships` | Only include these relationship type names in each element's related-element graph. | +| `skip_classified_elements` | `list[str]` | `skipClassifiedElements` | Leave out elements that carry any of these classifications. | +| `include_only_classified_elements` | `list[str]` | `includeOnlyClassifiedElements` | Only return elements that carry one of these classifications. | +| `max_mermaid_node_count` | `int` | `maxMermaidNodeCount` | Largest number of nodes Egeria draws in the returned Mermaid graph. | +| `governance_zone_filter` | `list[str]` | `governanceZoneFilter` | Only return elements in these governance zones. | +| `as_of_time` | `datetime \| str` | `asOfTime` | Query the repository as it was at this time (ISO-8601 string or datetime). | +| `effective_time` | `datetime \| str` | `effectiveTime` | Only return elements (and relationships) effective at this time. | +| `relationship_page_size` | `int` | `relationshipsPageSize` | Page size for the relationships returned with each element (0 = server default). | +| `for_lineage` | `bool` | `forLineage` | Include elements marked Memento (deleted but kept for lineage). | +| `for_duplicate_processing` | `bool` | `forDuplicateProcessing` | Return duplicates as stored, without deduplication processing. | +| `external_source_guid` | `str` | `externalSourceGUID` | GUID of the external metadata source the request is made on behalf of. | +| `external_source_name` | `str` | `externalSourceName` | Qualified name of the external metadata source the request is made on behalf of. | +| `request_id` | `str` | `requestId` | Caller-supplied id echoed in Egeria's audit log for tracing the request. | + +### `ListFilters` + +Used by get_*_by_name and other list gets. Maps to `FilterRequestBody` (by name) / `ResultsRequestBody`. Everything in `GetFilters`, plus: + +| Filter | Type | Wire name | Meaning | +|---|---|---|---| +| `anchor_guid` | `str` | `anchorGUID` | Only return elements anchored to the element with this GUID. | +| `anchor_domain` | `str` | `anchorDomainName` | Only return elements whose anchor is in this domain (an open metadata type name). | +| `anchor_scope_guid` | `str` | `anchorScopeGUID` | Only return elements whose anchor scope is the element with this GUID. | +| `limit_results_by_status` | `list[str]` | `limitResultsByStatus` | Only return elements whose status is one of these, e.g. `["ACTIVE", "DRAFT"]`. | +| `sequencing_order` | `str` | `sequencingOrder` | Order of the results; `PROPERTY_ASCENDING`/`PROPERTY_DESCENDING` need `sequencing_property`. | +| `sequencing_property` | `str` | `sequencingProperty` | Property name to sort on when `sequencing_order` is a PROPERTY_* order. | + +### `SearchFilters` + +Used by find_*. Maps to `SearchStringRequestBody` / `FindPropertyNamesRequestBody`. Everything in `ListFilters`, plus: + +| Filter | Type | Wire name | Meaning | +|---|---|---|---| +| `property_names` | `list[str]` | `propertyNames` | Search only these properties (switches the request to `FindPropertyNamesProperties`). | + +### `FindFilters` + +Used by the complex-query finds (find_metadata_elements, find_root_elements). Maps to `FindRequestBody`. Everything in `ListFilters`, plus: + +| Filter | Type | Wire name | Meaning | +|---|---|---|---| +| `search_properties` | `dict` | `searchProperties` | A `SearchProperties` structure: property conditions the elements must match. | +| `match_classifications` | `dict` | `matchClassifications` | A `MatchClassifications` structure: classification conditions the elements must match. | +| `skip_subtypes` | `bool` | `skipSubtypes` | When true, `metadata_element_subtypes` lists subtypes to EXCLUDE rather than the only ones to include. | + +### Call parameters (explicit on the method, also accepted as filters) + +| Request body | Parameters | +|---|---| +| `GetRequestBody` | `graph_query_depth` | +| `ResultsRequestBody` | `graph_query_depth`, `page_size`, `start_from` | +| `FilterRequestBody` | `filter_string`, `graph_query_depth`, `page_size`, `start_from` | +| `SearchStringRequestBody` | `ends_with`, `graph_query_depth`, `ignore_case`, `page_size`, `property_value`, `search_string`, `start_from`, `starts_with` | +| `FindRequestBody` | `graph_query_depth`, `page_size`, `start_from` | + +### Other accepted spellings + +| You may write | Same as | +|---|---| +| `metadata_element_type` | `metadata_element_type_name` | +| `metadata_element_subtypes` | `metadata_element_subtype_names` | +| `anchor_domain` | `anchor_domain_name` | +| `relationship_page_size` | `relationships_page_size` | +| `classification_names` | `include_only_classified_elements` | +| `metadata_element_name` | `metadata_element_type_name` | +| `limit_result_by_status` | `limit_results_by_status` | +| `sort_order` | `sequencing_order` | +| `output_sort_order` | `sequencing_order` | +| `order_property_name` | `sequencing_property` | +| `anchor_scope_id` | `anchor_scope_guid` | + +Each model field's camelCase wire name (e.g. `metadataElementSubtypeNames`) is accepted as well. These rendering options are passed through to output formatting and are not warned about: `filter_string`, `include_children`, `include_peers`, `include_preamble`, `max_depth`, `refresh_spec`, `report_format`, `search_string`. + diff --git a/pyegeria/core/_filter_kwargs_survey.py b/pyegeria/core/_filter_kwargs_survey.py new file mode 100644 index 00000000..ef0ca7fc --- /dev/null +++ b/pyegeria/core/_filter_kwargs_survey.py @@ -0,0 +1,162 @@ +"""Static survey of pyegeria's public find_*/get_* methods and the request filters they reach. + +Used by the micro-test ``test_search_get_filter_kwargs.py`` (and by the one-off +script that added the ``Unpack[...]`` annotations), so both use one definition of +"a method that sends a filterable request body". Not part of the public API. + +A method is in scope when, following ``self.(...)`` calls within +``pyegeria/omvs``, it reaches one of the shared request helpers in +``_server_client`` or builds a body with ``filter_body_kwargs(, kwargs)``. +""" + +from __future__ import annotations + +import ast +import collections +import pathlib +from dataclasses import dataclass, field + +PACKAGE = pathlib.Path(__file__).resolve().parents[1] + +# Shared helper -> the TypedDict that documents its filters. +HELPER_FILTERS: dict[str, str] = { + "_async_find_request": "SearchFilters", + "_async_activity_status_search_request": "SearchFilters", + "_async_content_status_search_request": "SearchFilters", + "_async_deployment_status_search_request": "SearchFilters", + "_async_get_name_request": "ListFilters", + "_async_activity_status_filter_request": "ListFilters", + "_async_content_status_filter_request": "ListFilters", + "_async_deployment_status_filter_request": "ListFilters", + "_async_activity_status_request": "ListFilters", + "_async_get_results_body_request": "ListFilters", + "_async_get_guid_request": "GetFilters", + "_async_get_request_body_request": "GetFilters", +} +# filter_body_kwargs("", ...) called directly by a method -> TypedDict +KIND_FILTERS: dict[str, str] = { + "search": "SearchFilters", "deployment_search": "SearchFilters", "activity_search": "SearchFilters", + "content_search": "SearchFilters", "find": "FindFilters", + "name": "ListFilters", "list": "ListFilters", "get": "GetFilters", +} +_RANK = {"GetFilters": 0, "ListFilters": 1, "SearchFilters": 2, "FindFilters": 3} + + +@dataclass +class Method: + file: str + cls: str + name: str + node: ast.FunctionDef | ast.AsyncFunctionDef + reaches: set[str] = field(default_factory=set) + + @property + def qualname(self) -> str: + return f"{self.cls}.{self.name}" + + @property + def base(self) -> str: + return self.name.removeprefix("_async_") + + @property + def is_public_find_get(self) -> bool: + if self.name.startswith("_") and not self.name.startswith("_async_"): + return False + return self.base.startswith(("find_", "get_")) + + @property + def filters(self) -> str | None: + names = {HELPER_FILTERS.get(r) or KIND_FILTERS.get(r.removeprefix("kind:")) for r in self.reaches} + names.discard(None) + return max(names, key=_RANK.__getitem__) if names else None + + @property + def explicit_params(self) -> set[str]: + a = self.node.args + return {x.arg for x in a.posonlyargs + a.args + a.kwonlyargs} + + @property + def kwargs_name(self) -> str | None: + return self.node.args.kwarg.arg if self.node.args.kwarg else None + + def passes_kwargs(self) -> bool: + """True when **kwargs is forwarded: as **kwargs in a call or dict, or handed to filter_body_kwargs.""" + kwn = self.kwargs_name + if kwn is None: + return False + for n in ast.walk(self.node): + if isinstance(n, ast.keyword) and n.arg is None and isinstance(n.value, ast.Name) and n.value.id == kwn: + return True + if isinstance(n, ast.Dict) and any(k is None and isinstance(v, ast.Name) and v.id == kwn + for k, v in zip(n.keys, n.values)): + return True + if isinstance(n, ast.Call) and any(isinstance(x, ast.Name) and x.id == kwn for x in n.args): + return True + return False + + def unpack_annotation(self) -> str | None: + """'SearchFilters' when declared as **kwargs: Unpack[SearchFilters], else None.""" + kw = self.node.args.kwarg + ann = kw.annotation if kw is not None else None + if isinstance(ann, ast.Subscript) and isinstance(ann.value, ast.Name) and ann.value.id == "Unpack" \ + and isinstance(ann.slice, ast.Name): + return ann.slice.id + return None + + +def _self_calls(fn) -> tuple[set[str], set[str]]: + calls, kinds = set(), set() + for c in ast.walk(fn): + if not isinstance(c, ast.Call): + continue + f = c.func + if isinstance(f, ast.Attribute) and isinstance(f.value, ast.Name) and f.value.id == "self": + calls.add(f.attr) + if isinstance(f, ast.Name) and f.id == "filter_body_kwargs" and c.args \ + and isinstance(c.args[0], ast.Constant): + kinds.add(f"kind:{c.args[0].value}") + return calls, kinds + + +def survey(package: pathlib.Path = PACKAGE) -> list[Method]: + """Every method in pyegeria/omvs, with the request helpers it reaches.""" + methods: dict[tuple[str, str, str], Method] = {} + calls: dict[tuple[str, str, str], set[str]] = {} + for path in sorted((package / "omvs").glob("*.py")): + tree = ast.parse(path.read_text(encoding="utf-8")) + for cls in (n for n in tree.body if isinstance(n, ast.ClassDef)): + for fn in cls.body: + if isinstance(fn, (ast.FunctionDef, ast.AsyncFunctionDef)): + key = (path.name, cls.name, fn.name) + m = Method(path.name, cls.name, fn.name, fn) + c, kinds = _self_calls(fn) + m.reaches |= kinds + methods[key], calls[key] = m, c + by_name = collections.defaultdict(list) + for key in methods: + by_name[key[2]].append(key) + memo: dict = {} + + def reach(key, stack=()): + if key in memo: + return memo[key] + if key in stack: + return set() + out = set(methods[key].reaches) + for name in calls[key]: + if name in HELPER_FILTERS: + out.add(name) + continue + same_file = [k for k in by_name.get(name, []) if k[0] == key[0]] + for k in same_file or by_name.get(name, []): + out |= reach(k, stack + (key,)) + memo[key] = out + return out + + for key, m in methods.items(): + m.reaches = reach(key) + return list(methods.values()) + + +def in_scope(methods: list[Method]) -> list[Method]: + return [m for m in methods if m.is_public_find_get and m.filters] diff --git a/pyegeria/core/_server_client.py b/pyegeria/core/_server_client.py index 1f36ef33..b77561ee 100644 --- a/pyegeria/core/_server_client.py +++ b/pyegeria/core/_server_client.py @@ -87,6 +87,7 @@ ActionRequestBody ) from pyegeria.core.async_runner import run_sync +from pyegeria.core.request_filters import filter_body_kwargs __all__ = [ # Models @@ -6480,6 +6481,7 @@ async def _async_find_request(self, url: str, _type: str, _gen_output: Callable[ body: dict | SearchStringRequestBody | FindPropertyNamesRequestBody = None, **kwargs) -> Any: report_spec = await self._async_refresh_report_spec(report_spec, kwargs) # refresh_spec=True (RS-EGERIA-TIER) + _filters = filter_body_kwargs("search", kwargs) # check names; map to wire names effective_search_string = None if search_string == '*' else search_string @@ -6521,9 +6523,9 @@ async def _async_find_request(self, url: str, _type: str, _gen_output: Callable[ "anchorDomainName": anchor_domain, "anchorScopeGUID": anchor_scope_guid, "governanceZoneFilter": governance_zone_filter, - **kwargs + **_filters } - if not metadata_element_type: + if not body.get("metadataElementTypeName"): body.pop("metadataElementTypeName", None) validated_body = self._validate_body(FindPropertyNamesRequestBody.model_validate, body) else: @@ -6553,9 +6555,9 @@ async def _async_find_request(self, url: str, _type: str, _gen_output: Callable[ "sequencingProperty": sequencing_property, "startFrom": start_from, "pageSize": page_size, - **kwargs + **_filters } - if not metadata_element_type: + if not body.get("metadataElementTypeName"): body.pop("metadataElementTypeName", None) validated_body = self._validate_body(SearchStringRequestBody.model_validate, body) @@ -6594,6 +6596,7 @@ async def _async_get_name_request(self, url: str, _type: str, _gen_output: Calla legacy_type_name = kwargs.pop("metadata_element_type", None) if metadata_element_type_name is None: metadata_element_type_name = legacy_type_name + _filters = filter_body_kwargs("name", kwargs) # check names; map to wire names if isinstance(body, FilterRequestBody): validated_body = body @@ -6614,7 +6617,7 @@ async def _async_get_name_request(self, url: str, _type: str, _gen_output: Calla "pageSize": page_size, "includeOnlyClassifiedElements": classification_names, "maxMermaidNodeCount": max_mermaid_node_count, - **kwargs + **_filters } validated_body = self._validate_body(FilterRequestBody.model_validate, body) @@ -6660,6 +6663,7 @@ async def _async_get_guid_request(self, url: str, _type: str, _gen_output: Calla this helper understands the singular "elementGraph" response key. """ report_spec = await self._async_refresh_report_spec(report_spec, kwargs) # refresh_spec=True (RS-EGERIA-TIER) + _filters = filter_body_kwargs("get", kwargs) # check names; map to wire names if isinstance(body, (GetRequestBody, ResultsRequestBody)): validated_body = body elif isinstance(body, dict): @@ -6676,7 +6680,7 @@ async def _async_get_guid_request(self, url: str, _type: str, _gen_output: Calla "skipRelationships": skip_relationships, "graphQueryDepth": graph_query_depth, "maxMermaidNodeCount": max_mermaid_node_count, - **kwargs + **_filters } validated_body = self._validate_body(body_model.model_validate, body) @@ -6723,6 +6727,7 @@ async def _async_get_request_body_request(self, url: str, _type: str, _gen_outpu graph_query_depth (): """ report_spec = await self._async_refresh_report_spec(report_spec, kwargs) # refresh_spec=True (RS-EGERIA-TIER) + _filters = filter_body_kwargs("get", kwargs) # check names; map to wire names if isinstance(body, GetRequestBody): validated_body = body elif isinstance(body, dict): @@ -6733,7 +6738,7 @@ async def _async_get_request_body_request(self, url: str, _type: str, _gen_outpu "metadataElementTypeName": _type, "maxMermaidNodeCount": max_mermaid_node_count, "graphQueryDepth": graph_query_depth, - **kwargs + **_filters } validated_body = self._validate_body(GetRequestBody.model_validate, body) @@ -6787,6 +6792,7 @@ async def _async_activity_status_search_request( body: dict | ActivityStatusSearchString | None = None, **kwargs ) -> Any: + _filters = filter_body_kwargs("activity_search", kwargs) # check names; map to wire names if isinstance(body, ActivityStatusSearchString): validated_body = body elif isinstance(body, dict): @@ -6820,7 +6826,7 @@ async def _async_activity_status_search_request( "sequencingProperty": sequencing_property, "start_from": start_from, "page_size": page_size, - **kwargs + **_filters } validated_body = self._validate_body(ActivityStatusSearchString.model_validate, body) @@ -6851,6 +6857,7 @@ async def _async_activity_status_filter_request( body: Optional[dict | ActivityStatusFilterRequestBody] = None, **kwargs ) -> Any: + _filters = filter_body_kwargs("activity_filter", kwargs) # check names; map to wire names if isinstance(body, ActivityStatusFilterRequestBody): validated_body = body elif isinstance(body, dict): @@ -6863,7 +6870,7 @@ async def _async_activity_status_filter_request( "activityStatusList": activity_status_list, "start_from": start_from, "page_size": page_size, - **kwargs + **_filters } validated_body = self._validate_body(ActivityStatusFilterRequestBody.model_validate, body) @@ -6896,6 +6903,7 @@ async def _async_activity_status_request( body: Optional[dict | ActivityStatusRequestBody] = None, **kwargs ) -> Any: + _filters = filter_body_kwargs("activity", kwargs) # check names; map to wire names if isinstance(body, ActivityStatusRequestBody): validated_body = body elif isinstance(body, dict): @@ -6909,7 +6917,7 @@ async def _async_activity_status_request( "limitResultsByStatus": limit_results_by_status, "sequencingOrder": sequencing_order, "sequencingProperty": sequencing_property, - **kwargs + **_filters } validated_body = self._validate_body(ActivityStatusRequestBody.model_validate, body) @@ -6959,6 +6967,7 @@ async def _async_content_status_search_request( body: dict | ContentStatusSearchString | None = None, **kwargs ) -> Any: + _filters = filter_body_kwargs("content_search", kwargs) # check names; map to wire names if isinstance(body, ContentStatusSearchString): validated_body = body elif isinstance(body, dict): @@ -6992,7 +7001,7 @@ async def _async_content_status_search_request( "sequencingProperty": sequencing_property, "start_from": start_from, "page_size": page_size, - **kwargs + **_filters } validated_body = self._validate_body(ContentStatusSearchString.model_validate, body) @@ -7023,6 +7032,7 @@ async def _async_content_status_filter_request( body: Optional[dict | ContentStatusFilterRequestBody] = None, **kwargs ) -> Any: + _filters = filter_body_kwargs("content_filter", kwargs) # check names; map to wire names if isinstance(body, ContentStatusFilterRequestBody): validated_body = body elif isinstance(body, dict): @@ -7035,7 +7045,7 @@ async def _async_content_status_filter_request( "contentStatusList": content_status_list, "start_from": start_from, "page_size": page_size, - **kwargs + **_filters } validated_body = self._validate_body(ContentStatusFilterRequestBody.model_validate, body) @@ -7085,6 +7095,7 @@ async def _async_deployment_status_search_request( body: dict | DeploymentStatusSearchString | None = None, **kwargs ) -> Any: + _filters = filter_body_kwargs("deployment_search", kwargs) # check names; map to wire names if isinstance(body, DeploymentStatusSearchString): validated_body = body elif isinstance(body, dict): @@ -7118,7 +7129,7 @@ async def _async_deployment_status_search_request( "sequencingProperty": sequencing_property, "startFrom": start_from, "pageSize": page_size, - **kwargs + **_filters } validated_body = self._validate_body(DeploymentStatusSearchString.model_validate, body) @@ -7149,6 +7160,7 @@ async def _async_deployment_status_filter_request( body: Optional[dict | DeploymentStatusFilterRequestBody] = None, **kwargs ) -> Any: + _filters = filter_body_kwargs("deployment_filter", kwargs) # check names; map to wire names if isinstance(body, DeploymentStatusFilterRequestBody): validated_body = body elif isinstance(body, dict): @@ -7161,7 +7173,7 @@ async def _async_deployment_status_filter_request( "deploymentStatusList": deployment_status_list, "start_from": start_from, "page_size": page_size, - **kwargs + **_filters } validated_body = self._validate_body(DeploymentStatusFilterRequestBody.model_validate, body) @@ -7197,6 +7209,7 @@ async def _async_get_results_body_request(self, url: str, _type: str, _gen_outpu default request body doesn't wrongly filter results by it. """ report_spec = await self._async_refresh_report_spec(report_spec, kwargs) # refresh_spec=True (RS-EGERIA-TIER) + _filters = filter_body_kwargs("list", kwargs) # check names; map to wire names if isinstance(body, ResultsRequestBody): validated_body = body elif isinstance(body, dict): @@ -7207,10 +7220,10 @@ async def _async_get_results_body_request(self, url: str, _type: str, _gen_outpu "graphQueryDepth": graph_query_depth, "start_from": start_from, "page_size": page_size, - **kwargs + **_filters } if filter_results_by_type: - body["metadataElementTypeName"] = _type + body.setdefault("metadataElementTypeName", _type) validated_body = self._validate_body(ResultsRequestBody.model_validate, body) json_body = validated_body.model_dump_json(indent=2, exclude_none=True) diff --git a/pyegeria/core/request_filters.py b/pyegeria/core/request_filters.py new file mode 100644 index 00000000..a387ed10 --- /dev/null +++ b/pyegeria/core/request_filters.py @@ -0,0 +1,414 @@ +"""Standard request filters for pyegeria's find_* and get_* methods. + +Every public ``find_*`` / ``get_*`` method that sends a request body accepts the +standard filters as ``**kwargs`` and passes them to the shared request helper in +``pyegeria.core._server_client``. Signatures stay short; this module is the one +place that says what those filters are: + +* ``GetFilters``, ``ListFilters`` and ``SearchFilters`` are the PEP 692 TypedDicts + the methods annotate as ``**kwargs: Unpack[...]`` (editor completion, one-line + signatures). Each field carries a docstring. +* ``valid_filter_names(kind)`` derives the names each helper accepts from the + matching request-body model (``GetRequestBody``, ``ResultsRequestBody``, + ``FilterRequestBody``, ``SearchStringRequestBody`` ...), so it cannot drift from + what pyegeria actually sends. +* ``filter_body_kwargs(kind, kwargs)`` is what the helpers call: it maps the + public spellings onto the body's wire names and warns (``UnknownFilterWarning``) + on any name that is neither a filter nor a known rendering option. +* ``filter_reference_markdown()`` renders the tables in + ``docs/search-and-get-filters.md`` from the TypedDicts + models (a micro-test + checks the page is current). + +A micro-test checks that each TypedDict, mapped through ``PUBLIC_ALIASES`` and +together with ``CALL_PARAMETERS``, covers exactly the fields of its model. + +Plan: an unknown name WARNS in 6.2.28; a later release will raise instead. +""" + +from __future__ import annotations + +import ast +import asyncio +import inspect +import os +import re +import warnings +from datetime import datetime +from functools import lru_cache +from typing import Any, Literal, TypedDict + +from loguru import logger + +from pyegeria.models.models import ( + ActivityStatusFilterRequestBody, + ActivityStatusRequestBody, + ActivityStatusSearchString, + ContentStatusFilterRequestBody, + ContentStatusSearchString, + DeploymentStatusFilterRequestBody, + DeploymentStatusSearchString, + FilterRequestBody, + FindPropertyNamesRequestBody, + FindRequestBody, + GetRequestBody, + ResultsRequestBody, + SearchStringRequestBody, +) + +__all__ = [ + "GetFilters", + "ListFilters", + "SearchFilters", + "FindFilters", + "UnknownFilterWarning", + "FilterKind", + "valid_filter_names", + "filter_body_kwargs", + "filter_reference_markdown", + "PUBLIC_ALIASES", + "CALL_PARAMETERS", + "RENDER_OPTIONS", +] + + +class UnknownFilterWarning(UserWarning): + """A find_*/get_* call was given a keyword argument that is not a filter for its request. + + pyegeria 6.2.28 warns; a later release will raise ``TypeError`` instead. + """ + + +# -------------------------------------------------------------------------------------- +# The TypedDicts (PEP 692). Keys are the public, snake_case spellings. +# -------------------------------------------------------------------------------------- + + +class GetFilters(TypedDict, total=False): + """Standard filters for a get_* call that retrieves one element (``GetRequestBody``).""" + + metadata_element_type: str + """Restrict results to this open metadata type (and its subtypes), e.g. ``"DataClass"``.""" + metadata_element_subtypes: list[str] + """Only return elements of these subtypes, e.g. ``["DataClass"]``. Honoured on searches and lists; Egeria ignores it on a get-by-GUID.""" + skip_relationships: list[str] + """Relationship type names to leave out of each element's related-element graph.""" + include_only_relationships: list[str] + """Only include these relationship type names in each element's related-element graph.""" + skip_classified_elements: list[str] + """Leave out elements that carry any of these classifications.""" + include_only_classified_elements: list[str] + """Only return elements that carry one of these classifications.""" + max_mermaid_node_count: int + """Largest number of nodes Egeria draws in the returned Mermaid graph.""" + governance_zone_filter: list[str] + """Only return elements in these governance zones.""" + as_of_time: datetime | str + """Query the repository as it was at this time (ISO-8601 string or datetime).""" + effective_time: datetime | str + """Only return elements (and relationships) effective at this time.""" + relationship_page_size: int + """Page size for the relationships returned with each element (0 = server default).""" + for_lineage: bool + """Include elements marked Memento (deleted but kept for lineage).""" + for_duplicate_processing: bool + """Return duplicates as stored, without deduplication processing.""" + external_source_guid: str + """GUID of the external metadata source the request is made on behalf of.""" + external_source_name: str + """Qualified name of the external metadata source the request is made on behalf of.""" + request_id: str + """Caller-supplied id echoed in Egeria's audit log for tracing the request.""" + + +class ListFilters(GetFilters, total=False): + """Standard filters for a get_* call that returns a list, e.g. get_*_by_name (``FilterRequestBody`` / ``ResultsRequestBody``).""" + + anchor_guid: str + """Only return elements anchored to the element with this GUID.""" + anchor_domain: str + """Only return elements whose anchor is in this domain (an open metadata type name).""" + anchor_scope_guid: str + """Only return elements whose anchor scope is the element with this GUID.""" + limit_results_by_status: list[str] + """Only return elements whose status is one of these, e.g. ``["ACTIVE", "DRAFT"]``.""" + sequencing_order: Literal[ + "ANY", "CREATION_DATE_RECENT", "CREATION_DATE_OLDEST", "LAST_UPDATE_RECENT", + "LAST_UPDATE_OLDEST", "PROPERTY_ASCENDING", "PROPERTY_DESCENDING", + ] | str + """Order of the results; ``PROPERTY_ASCENDING``/``PROPERTY_DESCENDING`` need ``sequencing_property``.""" + sequencing_property: str + """Property name to sort on when ``sequencing_order`` is a PROPERTY_* order.""" + + +class SearchFilters(ListFilters, total=False): + """Standard filters for a find_* call (``SearchStringRequestBody`` / ``FindPropertyNamesRequestBody``).""" + + property_names: list[str] + """Search only these properties (switches the request to ``FindPropertyNamesProperties``).""" + + +class FindFilters(ListFilters, total=False): + """Filters for the complex-query finds that send a ``FindRequestBody`` (find_metadata_elements, find_root_elements).""" + + search_properties: dict + """A ``SearchProperties`` structure: property conditions the elements must match.""" + match_classifications: dict + """A ``MatchClassifications`` structure: classification conditions the elements must match.""" + skip_subtypes: bool + """When true, ``metadata_element_subtypes`` lists subtypes to EXCLUDE rather than the only ones to include.""" + + +FilterKind = Literal[ + "get", "list", "name", "search", "find", + "activity_search", "activity_filter", "activity", + "content_search", "content_filter", + "deployment_search", "deployment_filter", +] + +# Which request-body model(s) each helper kind sends, and which TypedDict documents it. +_KIND_MODELS: dict[str, tuple[type, ...]] = { + "get": (GetRequestBody,), + "list": (ResultsRequestBody,), + "name": (FilterRequestBody,), + "search": (SearchStringRequestBody, FindPropertyNamesRequestBody), + "find": (FindRequestBody,), + "activity_search": (ActivityStatusSearchString,), + "activity_filter": (ActivityStatusFilterRequestBody,), + "activity": (ActivityStatusRequestBody,), + "content_search": (ContentStatusSearchString,), + "content_filter": (ContentStatusFilterRequestBody,), + "deployment_search": (DeploymentStatusSearchString,), + "deployment_filter": (DeploymentStatusFilterRequestBody,), +} + +TYPED_DICT_FOR_MODEL: dict[type, type] = { + GetRequestBody: GetFilters, + ResultsRequestBody: ListFilters, + FilterRequestBody: ListFilters, + SearchStringRequestBody: SearchFilters, + FindRequestBody: FindFilters, +} + +# Public spelling -> request-body model field. The public spelling is the one the +# search helper (_async_find_request) has always used; the model spelling is accepted too. +PUBLIC_ALIASES: dict[str, str] = { + "metadata_element_type": "metadata_element_type_name", + "metadata_element_subtypes": "metadata_element_subtype_names", + "anchor_domain": "anchor_domain_name", + "relationship_page_size": "relationships_page_size", +} + +# Legacy spellings that are accepted (not advertised in the TypedDicts). +LEGACY_ALIASES: dict[str, str] = { + # _async_get_name_request's parameter for include_only_classified_elements + "classification_names": "include_only_classified_elements", + # Dr.Egeria / report-param spellings (format_set_executor._normalize_report_params maps + # them to the canonical name but leaves the original key in the params it forwards) + "metadata_element_name": "metadata_element_type_name", + "limit_result_by_status": "limit_results_by_status", + "sort_order": "sequencing_order", + "output_sort_order": "sequencing_order", + "order_property_name": "sequencing_property", + "anchor_scope_id": "anchor_scope_guid", +} + +# Body fields every method declares as an explicit parameter (or that the helper +# fills itself). They are valid filter names but are not repeated in the TypedDicts, +# because PEP 692 forbids a TypedDict key that duplicates a named parameter. +CALL_PARAMETERS: dict[type, frozenset[str]] = { + GetRequestBody: frozenset({"graph_query_depth"}), + ResultsRequestBody: frozenset({"graph_query_depth", "start_from", "page_size"}), + FilterRequestBody: frozenset({"graph_query_depth", "start_from", "page_size", "filter_string"}), + SearchStringRequestBody: frozenset({ + "graph_query_depth", "start_from", "page_size", + "search_string", "starts_with", "ends_with", "ignore_case", + }), + FindRequestBody: frozenset({"graph_query_depth", "start_from", "page_size"}), +} +# FindPropertyNamesRequestBody's property_value is the search string in property-names mode. +_FIND_PROPERTY_NAMES_CALL_PARAMETERS = frozenset({"property_value"}) + +# kwargs that are not request filters but that the helpers legitimately pass on to +# output rendering (_gen_output / generate_output) or consume themselves. +RENDER_OPTIONS: frozenset[str] = frozenset({ + "refresh_spec", # RS-EGERIA-TIER: fetch the report spec from Egeria for this call + "report_format", # legacy spelling of report_spec in the output formatters + "max_depth", "include_peers", "include_children", # graph/tree renderers + "include_preamble", # generate_output + "search_string", "filter_string", # echoed into report headings by _gen_output +}) + + +@lru_cache(maxsize=None) +def _model_names(model: type) -> tuple[frozenset[str], dict[str, str]]: + """(field names, {field name or alias -> wire alias}) for a request-body model, without ``class``.""" + names: set[str] = set() + to_wire: dict[str, str] = {} + for field_name, info in model.model_fields.items(): + if field_name == "class_": + continue + wire = info.alias or field_name + names.add(field_name) + to_wire[field_name] = wire + to_wire[wire] = wire + return frozenset(names), to_wire + + +@lru_cache(maxsize=None) +def _wire_map(kind: str) -> dict[str, str]: + """Every accepted spelling for ``kind`` -> the body's wire (camelCase) name.""" + out: dict[str, str] = {} + for model in _KIND_MODELS[kind]: + _, to_wire = _model_names(model) + out.update(to_wire) + for public, field_name in {**PUBLIC_ALIASES, **LEGACY_ALIASES}.items(): + if field_name in out: + out.setdefault(public, out[field_name]) + return out + + +def valid_filter_names(kind: str) -> frozenset[str]: + """The snake_case filter names a ``kind`` of request accepts (model fields + public aliases).""" + names: set[str] = set() + for model in _KIND_MODELS[kind]: + names |= _model_names(model)[0] + names |= {p for p, f in PUBLIC_ALIASES.items() if f in names} + return frozenset(names) + + +def _calling_method() -> str: + """Best-effort name of the public pyegeria method a warning is about.""" + best = None + frame = inspect.currentframe() + while frame is not None: + name = frame.f_code.co_name + if re.match(r"^(_async_)?(find|get)_", name) and not name.endswith("_request") \ + and "pyegeria" in frame.f_code.co_filename: + owner = frame.f_locals.get("self") + best = f"{type(owner).__name__}.{name.removeprefix('_async_')}" if owner is not None else name + frame = frame.f_back + return best or "a find/get call" + + +_SKIP_PREFIXES = ( + os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + os.sep, # the pyegeria package + os.path.dirname(os.path.abspath(asyncio.__file__)) + os.sep, # event-loop plumbing (run_sync) +) + + +def filter_body_kwargs(kind: str, kwargs: dict[str, Any], *, ignore: frozenset[str] | set[str] = frozenset()) -> dict[str, Any]: + """Return the request-body entries for the filter kwargs of a ``kind`` request. + + Keys are the body's wire names (camelCase), so they override the helper's own + defaults when splatted last into the body dict; ``None`` values are dropped. A name that is neither a filter + for this request, a rendering option, nor in ``ignore`` raises an + ``UnknownFilterWarning`` that names the bad key(s) and lists the valid ones; + it is left out of the body (Pydantic would have dropped it silently anyway). + """ + wire = _wire_map(kind) + body: dict[str, Any] = {} + unknown: list[str] = [] + for key, value in kwargs.items(): + if key in wire: + if value is not None: # None means "not set": never override the helper's own default + body[wire[key]] = value + elif key in RENDER_OPTIONS or key in ignore: + continue + else: + unknown.append(key) + if unknown: + valid = sorted(valid_filter_names(kind) - set(PUBLIC_ALIASES.values())) + method = _calling_method() + plural = "s" if len(unknown) > 1 else "" + msg = (f"{method}: unknown filter{plural} {', '.join(repr(k) for k in unknown)} ignored. " + f"Valid filters for this request: {', '.join(valid)}. " + f"(pyegeria will raise an error for unknown filters in a future release.)") + logger.warning(msg) + warnings.warn(msg, UnknownFilterWarning, skip_file_prefixes=_SKIP_PREFIXES) + return body + + +# -------------------------------------------------------------------------------------- +# Documentation tables, rendered from the TypedDicts and models above. +# -------------------------------------------------------------------------------------- + +@lru_cache(maxsize=None) +def _field_docs() -> dict[str, dict[str, str]]: + """{TypedDict name: {field: docstring}} parsed from this module's source.""" + with open(__file__, encoding="utf-8") as f: + tree = ast.parse(f.read()) + docs: dict[str, dict[str, str]] = {} + for node in tree.body: + if isinstance(node, ast.ClassDef) and node.name in {"GetFilters", "ListFilters", "SearchFilters", "FindFilters"}: + fields: dict[str, str] = {} + body = node.body + for i, stmt in enumerate(body): + if isinstance(stmt, ast.AnnAssign) and isinstance(stmt.target, ast.Name): + nxt = body[i + 1] if i + 1 < len(body) else None + if isinstance(nxt, ast.Expr) and isinstance(nxt.value, ast.Constant) and isinstance(nxt.value.value, str): + fields[stmt.target.id] = nxt.value.value + docs[node.name] = fields + return docs + + +def _own_fields(td: type) -> list[str]: + parents = [b for b in td.__orig_bases__ if b is not TypedDict and isinstance(b, type)] + inherited = set().union(*(set(p.__annotations__) for p in parents)) if parents else set() + return [k for k in td.__annotations__ if k not in inherited] + + +def _type_text(td: type, key: str) -> str: + with open(__file__, encoding="utf-8") as f: + tree = ast.parse(f.read()) + for node in tree.body: + if isinstance(node, ast.ClassDef) and node.name == td.__name__: + for stmt in node.body: + if isinstance(stmt, ast.AnnAssign) and getattr(stmt.target, "id", None) == key: + text = ast.unparse(stmt.annotation) + return "str" if text.startswith("Literal[") else text.replace("Literal[...] | ", "") + return "" + + +def filter_reference_markdown() -> str: + """Markdown tables of the standard filters, generated from the TypedDicts and request-body models.""" + docs = _field_docs() + lines: list[str] = [] + rows = [ + ("GetFilters", GetFilters, "`GetRequestBody`", "get_*_by_guid and other single-element gets"), + ("ListFilters", ListFilters, "`FilterRequestBody` (by name) / `ResultsRequestBody`", "get_*_by_name and other list gets"), + ("SearchFilters", SearchFilters, "`SearchStringRequestBody` / `FindPropertyNamesRequestBody`", "find_*"), + ("FindFilters", FindFilters, "`FindRequestBody`", "the complex-query finds (find_metadata_elements, find_root_elements)"), + ] + for name, td, body, used in rows: + lines.append(f"### `{name}`") + lines.append("") + parent = [b.__name__ for b in td.__orig_bases__ if isinstance(b, type) and b.__name__ in {"GetFilters", "ListFilters"}] + extra = f" Everything in `{parent[0]}`, plus:" if parent else "" + lines.append(f"Used by {used}. Maps to {body}.{extra}") + lines.append("") + lines.append("| Filter | Type | Wire name | Meaning |") + lines.append("|---|---|---|---|") + wire = _wire_map({"GetFilters": "get", "ListFilters": "name", "SearchFilters": "search", "FindFilters": "find"}[name]) + for key in _own_fields(td): + doc = docs[name].get(key, "").replace("``", "`") + lines.append(f"| `{key}` | `{_type_text(td, key)}` | `{wire[key]}` | {doc} |".replace(" | str`", " \\| str`")) + lines.append("") + lines.append("### Call parameters (explicit on the method, also accepted as filters)") + lines.append("") + lines.append("| Request body | Parameters |") + lines.append("|---|---|") + for model, params in CALL_PARAMETERS.items(): + extra = _FIND_PROPERTY_NAMES_CALL_PARAMETERS if model is SearchStringRequestBody else frozenset() + lines.append(f"| `{model.__name__}` | {', '.join(f'`{p}`' for p in sorted(params | extra))} |") + lines.append("") + lines.append("### Other accepted spellings") + lines.append("") + lines.append("| You may write | Same as |") + lines.append("|---|---|") + for alias, field_name in {**PUBLIC_ALIASES, **LEGACY_ALIASES}.items(): + lines.append(f"| `{alias}` | `{field_name}` |") + lines.append("") + lines.append("Each model field's camelCase wire name (e.g. `metadataElementSubtypeNames`) is accepted as well. " + "These rendering options are passed through to output formatting and are not warned about: " + + ", ".join(f"`{o}`" for o in sorted(RENDER_OPTIONS)) + ".") + return "\n".join(lines) + "\n" diff --git a/pyegeria/omvs/action_author.py b/pyegeria/omvs/action_author.py index e9bbcce5..c6fc7a2c 100644 --- a/pyegeria/omvs/action_author.py +++ b/pyegeria/omvs/action_author.py @@ -10,6 +10,8 @@ from pydantic import Field +from typing import Unpack +from pyegeria.core.request_filters import GetFilters from pyegeria.core._server_client import ServerClient from pyegeria.models import ( NewRelationshipRequestBody, @@ -353,7 +355,7 @@ async def _async_get_governance_action_process( output_format: str = "JSON", report_spec: str | dict = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | list | str: """Retrieve the governance action process metadata element with the supplied unique identifier. Async version. @@ -368,6 +370,9 @@ async def _async_get_governance_action_process( body : dict | GetRequestBody, optional The request body. Defaults to None. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | list | str @@ -390,7 +395,7 @@ def get_governance_action_process( output_format: str = "JSON", report_spec: str | dict = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | list | str: """Retrieve the governance action process metadata element with the supplied unique identifier. @@ -405,6 +410,9 @@ def get_governance_action_process( body : dict | GetRequestBody, optional The request body. Defaults to None. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | list | str @@ -423,7 +431,7 @@ async def _async_get_governance_action_process_graph( output_format: str = "JSON", report_spec: str | dict = None, body: dict | FilterRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | list | str: """Retrieve the governance action process metadata element with the supplied unique identifier along with the flow definition describing its implementation. Async version. @@ -439,6 +447,9 @@ async def _async_get_governance_action_process_graph( body : dict | FilterRequestBody, optional The request body. Defaults to None. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | list | str @@ -461,7 +472,7 @@ def get_governance_action_process_graph( output_format: str = "JSON", report_spec: str | dict = None, body: dict | FilterRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | list | str: """Retrieve the governance action process metadata element with the supplied unique identifier along with the flow definition describing its implementation. @@ -477,6 +488,9 @@ def get_governance_action_process_graph( body : dict | FilterRequestBody, optional The request body. Defaults to None. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | list | str diff --git a/pyegeria/omvs/actor_manager.py b/pyegeria/omvs/actor_manager.py index 87809783..ffb95fab 100644 --- a/pyegeria/omvs/actor_manager.py +++ b/pyegeria/omvs/actor_manager.py @@ -12,6 +12,8 @@ from loguru import logger from pydantic import HttpUrl +from typing import Unpack +from pyegeria.core.request_filters import SearchFilters from pyegeria.view.base_report_formats import select_report_spec, get_report_spec_match from pyegeria.models import (SearchStringRequestBody, FilterRequestBody, GetRequestBody, NewElementRequestBody, TemplateRequestBody, NewAttachmentRequestBody, @@ -777,6 +779,9 @@ async def _async_find_actor_profiles( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -873,6 +878,9 @@ def find_actor_profiles( body : dict, optional Request body for additional parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -943,6 +951,9 @@ async def _async_get_actor_profiles_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -1013,6 +1024,9 @@ def get_actor_profiles_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -1065,6 +1079,9 @@ async def _async_get_actor_profile_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1118,6 +1135,9 @@ def get_actor_profile_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -2330,6 +2350,9 @@ async def _async_find_actor_roles( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -2426,6 +2449,9 @@ def find_actor_roles( body : dict, optional Request body for additional parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -2496,6 +2522,9 @@ async def _async_get_actor_roles_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -2566,6 +2595,9 @@ def get_actor_roles_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -2618,6 +2650,9 @@ async def _async_get_actor_role_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -2671,6 +2706,9 @@ def get_actor_role_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -3991,6 +4029,9 @@ async def _async_find_user_identities( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -4087,6 +4128,9 @@ def find_user_identities( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -4157,6 +4201,9 @@ async def _async_get_user_identities_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -4239,6 +4286,9 @@ def get_user_identities_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -4291,6 +4341,9 @@ async def _async_get_user_identity_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -4345,6 +4398,9 @@ def get_user_identity_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -4847,6 +4903,9 @@ async def _async_get_contribution_records_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -4929,6 +4988,9 @@ def get_contribution_records_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -5011,6 +5073,9 @@ async def _async_find_contribution_records( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -5106,6 +5171,9 @@ def find_contribution_records( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -5140,7 +5208,7 @@ async def _async_find_all_contribution_records( page_size: int = 100, output_format: str = "JSON", report_spec: Optional[str | dict] = "Contribution-Records", - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Retrieve all contribution record metadata elements. Async Version. @@ -5155,6 +5223,9 @@ async def _async_find_all_contribution_records( report_spec: dict, optional, default = "Contribution-Records" The desired output columns/fields to include. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -5175,7 +5246,7 @@ def find_all_contribution_records( page_size: int = 100, output_format: str = "JSON", report_spec: Optional[str | dict] = "Contribution-Records", - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Retrieve all contribution record metadata elements. @@ -5190,6 +5261,9 @@ def find_all_contribution_records( report_spec: dict, optional, default = "Contribution-Records" The desired output columns/fields to include. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -5235,6 +5309,9 @@ async def _async_get_contribution_record_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -5289,6 +5366,9 @@ def get_contribution_record_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -6026,6 +6106,9 @@ async def _async_get_contact_details_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -6108,6 +6191,9 @@ def get_contact_details_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -6190,6 +6276,9 @@ async def _async_find_contact_details( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -6285,6 +6374,9 @@ def find_contact_details( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -6343,6 +6435,9 @@ async def _async_get_contact_details_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -6397,6 +6492,9 @@ def get_contact_details_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -6829,6 +6927,9 @@ async def _async_get_perspectives_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -6911,6 +7012,9 @@ def get_perspectives_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -6993,6 +7097,9 @@ async def _async_find_perspectives( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -7088,6 +7195,9 @@ def find_perspectives( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -7146,6 +7256,9 @@ async def _async_get_perspective_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -7200,6 +7313,9 @@ def get_perspective_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -7632,6 +7748,9 @@ async def _async_get_skills_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -7714,6 +7833,9 @@ def get_skills_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -7796,6 +7918,9 @@ async def _async_find_skills( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -7891,6 +8016,9 @@ def find_skills( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -7949,6 +8077,9 @@ async def _async_get_skill_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -8003,6 +8134,9 @@ def get_skill_by_guid( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str diff --git a/pyegeria/omvs/asset_catalog.py b/pyegeria/omvs/asset_catalog.py index e5f155c1..ba57bcd0 100644 --- a/pyegeria/omvs/asset_catalog.py +++ b/pyegeria/omvs/asset_catalog.py @@ -13,6 +13,8 @@ from loguru import logger +from typing import Unpack +from pyegeria.core.request_filters import ListFilters from pyegeria.core._server_client import ServerClient from pyegeria.view.base_report_formats import select_report_format, get_report_spec_match from pyegeria.models import SearchStringRequestBody, ResultsRequestBody @@ -228,6 +230,9 @@ async def _async_find_in_asset_domain( **kwargs : dict, optional Additional parameters supported by the underlying find request. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -325,6 +330,9 @@ def find_in_asset_domain( **kwargs : dict, optional Additional parameters supported by the underlying find request. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -367,7 +375,7 @@ async def _async_get_asset_graph_by_guid( output_format: str = "MERMAID", report_spec: str | dict = "Common-Mermaid", body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | dict: """Return all the elements that are anchored to an asset plus relationships between these elements and to other elements. @@ -391,6 +399,9 @@ async def _async_get_asset_graph_by_guid( **kwargs : dict, optional Additional query parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- str | dict @@ -426,7 +437,7 @@ def get_asset_graph_by_guid( output_format: str = "MERMAID", report_spec: str | dict = "Common-Mermaid", body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | dict: """Return all the elements that are anchored to an asset plus relationships between these elements and to other elements. @@ -448,6 +459,9 @@ def get_asset_graph_by_guid( **kwargs : dict, optional Additional query parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- str | dict @@ -478,7 +492,7 @@ def get_asset_mermaid_graph( self, guid: str, start_from: int = 0, - page_size: int = 0, + page_size: int = 0, **kwargs: Unpack[ListFilters], ) -> str: """Return the asset graph as mermaid markdown string. @@ -491,6 +505,9 @@ def get_asset_mermaid_graph( page_size : int, default 0 The maximum number of items to fetch. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- str @@ -505,7 +522,7 @@ def get_asset_mermaid_graph( The principle specified by the user_id does not have authorization for the requested action. """ - asset_graph = self.get_asset_graph_by_guid(guid=guid, start_from=start_from, page_size=page_size) + asset_graph = self.get_asset_graph_by_guid(guid=guid, start_from=start_from, page_size=page_size, **kwargs) return asset_graph[0] async def _async_get_asset_lineage_graph_by_guid( diff --git a/pyegeria/omvs/asset_maker.py b/pyegeria/omvs/asset_maker.py index c456dca6..ce7e39d0 100644 --- a/pyegeria/omvs/asset_maker.py +++ b/pyegeria/omvs/asset_maker.py @@ -9,6 +9,8 @@ import asyncio from typing import Any, Optional +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters from pyegeria.core._server_client import ServerClient from pyegeria.core._globals import max_paging_size, NO_ELEMENTS_FOUND, NO_GUID_RETURNED from pyegeria.models import ( @@ -646,6 +648,9 @@ async def _async_get_assets_by_name( body: dict | FilterRequestBody, optional Additional filter parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -741,6 +746,9 @@ def get_assets_by_name( body: dict | FilterRequestBody, optional Additional filter parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -1011,6 +1019,9 @@ async def _async_get_asset_by_guid( report_spec: dict | str, optional Specification for report formatting. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1086,6 +1097,9 @@ def get_asset_by_guid( report_spec: dict | str, optional Specification for report formatting. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1379,7 +1393,7 @@ async def _async_get_catalog_target( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | str: """Retrieve a specific catalog target associated with an integration connector. Async version. @@ -1396,6 +1410,9 @@ async def _async_get_catalog_target( body: dict | GetRequestBody, optional Additional parameters for the request. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1432,7 +1449,7 @@ def get_catalog_target( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | str: """Retrieve a specific catalog target associated with an integration connector. @@ -1449,6 +1466,9 @@ def get_catalog_target( body: dict | GetRequestBody, optional Additional parameters for the request. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1480,7 +1500,7 @@ async def _async_get_catalog_targets( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the details of the metadata elements identified as catalog targets with an integration connector. Async version. @@ -1502,6 +1522,9 @@ async def _async_get_catalog_targets( body: dict | ResultsRequestBody, optional Additional filter parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -1545,7 +1568,7 @@ def get_catalog_targets( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the details of the metadata elements identified as catalog targets with an integration connector. @@ -1566,6 +1589,9 @@ def get_catalog_targets( body: dict | ResultsRequestBody, optional Additional filter parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -2037,6 +2063,9 @@ async def _async_find_data_assets( body: dict | ContentStatusSearchString, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -2165,6 +2194,9 @@ def find_data_assets( body: dict | ContentStatusSearchString, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -2226,7 +2258,7 @@ async def _async_get_data_assets_by_category( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | ContentStatusFilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Returns the list of data assets matching the category and optional content status. Async version. @@ -2250,6 +2282,9 @@ async def _async_get_data_assets_by_category( body: dict | ContentStatusFilterRequestBody, optional - the request body + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -2293,7 +2328,7 @@ def get_data_assets_by_category( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | ContentStatusFilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Returns the list of data assets matching the category and optional content status. Sync version. @@ -2317,6 +2352,9 @@ def get_data_assets_by_category( body: dict | ContentStatusFilterRequestBody, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -2686,24 +2724,31 @@ def link_placement_report( async def _async_get_placement_reports( self, dashboard_guid: str, - placement_qualified_names: list[str], + placement_qualified_names: list[str], **kwargs: Unpack[GetFilters], ) -> dict[str, dict]: """Read which report each placement of a dashboard is bound to. Async version. Returns one entry per placement qualified name; see `resolve_placement_reports` for the states. Raises if the dashboard itself cannot be retrieved, rather than reporting every placement as unbound: a dashboard that was never read says nothing about its placements. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). """ element = await self._async_get_asset_by_guid(dashboard_guid, - include_only_relationships=["DataSetContent"]) + include_only_relationships=["DataSetContent"], **kwargs) if not isinstance(element, dict): raise ValueError(f"Dashboard {dashboard_guid} could not be retrieved: {element}") return resolve_placement_reports(element, placement_qualified_names) @dynamic_catch - def get_placement_reports(self, dashboard_guid: str, placement_qualified_names: list[str]) -> dict[str, dict]: - """Read which report each placement of a dashboard is bound to. See `_async_get_placement_reports`.""" - return run_sync(self._async_get_placement_reports(dashboard_guid, placement_qualified_names)) + def get_placement_reports(self, dashboard_guid: str, placement_qualified_names: list[str], **kwargs: Unpack[GetFilters]) -> dict[str, dict]: + """Read which report each placement of a dashboard is bound to. See `_async_get_placement_reports`. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ + return run_sync(self._async_get_placement_reports(dashboard_guid, placement_qualified_names, **kwargs)) @dynamic_catch async def _async_detach_placement_report( @@ -3316,6 +3361,9 @@ async def _async_find_infrastructure( body: dict | DeploymentStatusSearchString, optional - the request body + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -3414,6 +3462,9 @@ def find_infrastructure( body: dict | DeploymentStatusSearchString, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -3475,7 +3526,7 @@ async def _async_get_infrastructure_by_category( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | DeploymentStatusFilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Returns the list of infrastructure assets matching the category and optional deployment status. Async version. @@ -3499,6 +3550,9 @@ async def _async_get_infrastructure_by_category( body: dict | DeploymentStatusFilterRequestBody, optional - the request body + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -3542,7 +3596,7 @@ def get_infrastructure_by_category( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | DeploymentStatusFilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Returns the list of infrastructure assets matching the category and optional deployment status. Sync version. @@ -3566,6 +3620,9 @@ def get_infrastructure_by_category( body: dict | DeploymentStatusFilterRequestBody, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -3973,6 +4030,9 @@ async def _async_find_processes( report_spec: str | dict, optional body: dict | ActivityStatusSearchString, optional + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -4081,6 +4141,9 @@ def find_processes( body: dict | ActivityStatusSearchString, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -4142,7 +4205,7 @@ async def _async_get_processes_by_category( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | ActivityStatusFilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the processes that match the category name and status. Async version. @@ -4159,6 +4222,9 @@ async def _async_get_processes_by_category( report_spec: str | dict, optional body: dict | ActivityStatusFilterRequestBody, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -4202,7 +4268,7 @@ def get_processes_by_category( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | ActivityStatusFilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the processes that match the category name and status. Sync version. @@ -4226,6 +4292,9 @@ def get_processes_by_category( body: dict | ActivityStatusFilterRequestBody, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -4591,7 +4660,7 @@ async def _async_get_action_target( output_format: str = "JSON", report_spec: str | dict = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> list | dict | str: """ Retrieve a specific action target associated with an action. Async version. @@ -4605,6 +4674,9 @@ async def _async_get_action_target( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -4630,7 +4702,7 @@ def get_action_target( output_format: str = "JSON", report_spec: str | dict = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> list | dict | str: """ Retrieve a specific action target associated with an action. Sync version. @@ -4644,6 +4716,9 @@ def get_action_target( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -4693,6 +4768,9 @@ async def _async_get_action_targets( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -4749,6 +4827,9 @@ def get_action_targets( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -4807,6 +4888,9 @@ async def _async_get_actions_for_action_target( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -4863,6 +4947,9 @@ def get_actions_for_action_target( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -5087,6 +5174,9 @@ async def _async_get_assigned_actions( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -5143,6 +5233,9 @@ def get_assigned_actions( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -5201,6 +5294,9 @@ async def _async_get_actions_for_sponsor( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -5257,6 +5353,9 @@ def get_actions_for_sponsor( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -5315,6 +5414,9 @@ async def _async_get_actions_for_requester( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -5371,6 +5473,9 @@ def get_actions_for_requester( output_format: str, default = "JSON" report_spec: str | dict, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -5661,7 +5766,7 @@ async def _async_get_software_capability_by_guid( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | str: """Retrieve a specific software capability. Async version. @@ -5680,6 +5785,9 @@ async def _async_get_software_capability_by_guid( report_spec: dict | str, optional Specification for report formatting. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -5716,7 +5824,7 @@ def get_software_capability_by_guid( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | str: """Retrieve a specific software capability. @@ -5735,6 +5843,9 @@ def get_software_capability_by_guid( report_spec: dict | str, optional Specification for report formatting. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -5847,6 +5958,9 @@ async def _async_find_software_capabilities( body: dict | SearchStringRequestBody, optional Additional search parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | dict | str @@ -6004,6 +6118,9 @@ def find_software_capabilities( body: dict | SearchStringRequestBody, optional Additional search parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | dict | str @@ -6057,7 +6174,7 @@ async def _async_get_software_capabilities_by_name( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | FilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """Retrieve the list of software capabilities with a particular name. Async version. @@ -6075,6 +6192,9 @@ async def _async_get_software_capabilities_by_name( report_spec: str | dict, optional body: dict | FilterRequestBody, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -6117,7 +6237,7 @@ def get_software_capabilities_by_name( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | FilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """Retrieve the list of software capabilities with a particular name. @@ -6135,6 +6255,9 @@ def get_software_capabilities_by_name( report_spec: str | dict, optional body: dict | FilterRequestBody, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -6175,7 +6298,7 @@ async def _async_get_software_capabilities_by_deployed_implementation_type( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | FilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """Retrieve the list of software capabilities with a particular deployed implementation type. Async version. @@ -6193,6 +6316,9 @@ async def _async_get_software_capabilities_by_deployed_implementation_type( report_spec: str | dict, optional body: dict | FilterRequestBody, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -6235,7 +6361,7 @@ def get_software_capabilities_by_deployed_implementation_type( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | FilterRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """Retrieve the list of software capabilities with a particular deployed implementation type. @@ -6253,6 +6379,9 @@ def get_software_capabilities_by_deployed_implementation_type( report_spec: str | dict, optional body: dict | FilterRequestBody, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -6292,7 +6421,7 @@ async def _async_get_software_capabilities_for_infrastructure( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the list of software capabilities attached to a specific infrastructure element. Async version. @@ -6307,6 +6436,9 @@ async def _async_get_software_capabilities_for_infrastructure( output_format: str, default "JSON" report_spec: dict | str, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -6346,7 +6478,7 @@ def get_software_capabilities_for_infrastructure( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the list of software capabilities attached to a specific infrastructure element. @@ -6361,6 +6493,9 @@ def get_software_capabilities_for_infrastructure( output_format: str, default "JSON" report_spec: dict | str, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -6571,7 +6706,7 @@ async def _async_get_capability_use( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the software capabilities using a particular asset. Async version. @@ -6586,6 +6721,9 @@ async def _async_get_capability_use( output_format: str, default "JSON" report_spec: dict | str, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -6625,7 +6763,7 @@ def get_capability_use( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the software capabilities using a particular asset. @@ -6640,6 +6778,9 @@ def get_capability_use( output_format: str, default "JSON" report_spec: dict | str, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -6678,7 +6819,7 @@ async def _async_get_governance_engines( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the governance engines connected to a particular governance service. Async version. @@ -6693,6 +6834,9 @@ async def _async_get_governance_engines( output_format: str, default "JSON" report_spec: dict | str, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -6732,7 +6876,7 @@ def get_governance_engines( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the governance engines connected to a particular governance service. @@ -6747,6 +6891,9 @@ def get_governance_engines( output_format: str, default "JSON" report_spec: dict | str, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -6942,7 +7089,7 @@ async def _async_get_integration_groups( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the integration groups connected to a particular integration connector. Async version. @@ -6957,6 +7104,9 @@ async def _async_get_integration_groups( output_format: str, default "JSON" report_spec: dict | str, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str @@ -6996,7 +7146,7 @@ def get_integration_groups( output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | ResultsRequestBody | None = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | dict | str: """Retrieve the integration groups connected to a particular integration connector. @@ -7011,6 +7161,9 @@ def get_integration_groups( output_format: str, default "JSON" report_spec: dict | str, optional + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | dict | str diff --git a/pyegeria/omvs/automated_curation.py b/pyegeria/omvs/automated_curation.py index 7b5e948e..29b2175c 100644 --- a/pyegeria/omvs/automated_curation.py +++ b/pyegeria/omvs/automated_curation.py @@ -13,6 +13,8 @@ from httpx import Response from loguru import logger from pydantic import HttpUrl +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core._globals import NO_ELEMENTS_FOUND from pyegeria.core._server_client import ServerClient from pyegeria.core._validators import validate_guid, validate_name, validate_search_string @@ -2788,6 +2790,9 @@ async def _async_get_engine_actions_by_name( **kwargs : dict, optional Additional query parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -2881,6 +2886,9 @@ def get_engine_actions_by_name( **kwargs : dict, optional Additional query parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list of dict | str @@ -2965,6 +2973,9 @@ async def _async_find_engine_actions( **kwargs : dict, optional Additional query parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -3063,6 +3074,9 @@ def find_engine_actions( **kwargs : dict, optional Additional query parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -3914,7 +3928,7 @@ async def _async_get_catalog_targets( output_format: str = "JSON", report_spec: str | dict = "CatalogTarget", body: Optional[dict | FilterRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Retrieve the list of catalog target metadata elements. @@ -3937,6 +3951,9 @@ async def _async_get_catalog_targets( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -3975,7 +3992,7 @@ def get_catalog_targets( output_format: str = "JSON", report_spec: str | dict = "CatalogTarget", body: Optional[dict | FilterRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Retrieve the list of catalog target metadata elements. @@ -3996,6 +4013,9 @@ def get_catalog_targets( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -4021,7 +4041,7 @@ async def _async_get_catalog_target( output_format: str = "JSON", report_spec: str | dict = "CatalogTarget", body: Optional[dict | GetRequestBody] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Retrieve a specific catalog target associated with an integration connector. @@ -4040,6 +4060,9 @@ async def _async_get_catalog_target( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -4079,7 +4102,7 @@ def get_catalog_target( output_format: str = "JSON", report_spec: str | dict = "CatalogTarget", body: Optional[dict | GetRequestBody] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Retrieve a specific catalog target associated with an integration connector. @@ -4096,6 +4119,9 @@ def get_catalog_target( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -4429,7 +4455,7 @@ async def _async_get_tech_types_for_open_metadata_type( output_format: str = "JSON", report_spec: str | dict = "TechType", body: Optional[dict | FilterRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Retrieve the list of technology types linked to an open metadata type. @@ -4454,6 +4480,9 @@ async def _async_get_tech_types_for_open_metadata_type( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -4487,7 +4516,7 @@ def get_tech_types_for_open_metadata_type( output_format: str = "JSON", report_spec: str | dict = "TechType", body: Optional[dict | FilterRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Retrieve the list of technology types linked to an open metadata type. @@ -4510,6 +4539,9 @@ def get_tech_types_for_open_metadata_type( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -4849,6 +4881,9 @@ async def _async_find_technology_types( **kwargs : dict, optional Additional parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -4954,6 +4989,9 @@ def find_technology_types( **kwargs : dict, optional Additional query parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -5008,7 +5046,11 @@ async def _async_find_technology_types_body( body: Optional[dict | SearchStringRequestBody] = None, **kwargs ) -> list | str: - """Retrieve the list of technology types that contain the search string. Async version.""" + """Retrieve the list of technology types that contain the search string. Async version. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type_name) kwargs.pop("effective_time", None) @@ -5124,6 +5166,9 @@ def find_technology_types_body( **kwargs : dict, optional Additional parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -5174,7 +5219,7 @@ async def _async_get_all_technology_types( page_size: int = 0, output_format: str = "JSON", report_spec: str = "TechType", - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Retrieve all technology types. @@ -5193,6 +5238,9 @@ async def _async_get_all_technology_types( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -5208,7 +5256,7 @@ def get_all_technology_types( page_size: int = 0, output_format: str = "JSON", report_spec: str = "TechType", - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Retrieve all technology types. @@ -5225,6 +5273,9 @@ def get_all_technology_types( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -5302,6 +5353,9 @@ async def _async_get_technology_type_elements( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -5405,6 +5459,9 @@ def get_technology_type_elements( **kwargs : Any Additional keyword arguments to pass to the request. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str diff --git a/pyegeria/omvs/classification_explorer.py b/pyegeria/omvs/classification_explorer.py index c2578b7f..1bd08468 100644 --- a/pyegeria/omvs/classification_explorer.py +++ b/pyegeria/omvs/classification_explorer.py @@ -13,6 +13,9 @@ from httpx import Response from loguru import logger from typing import Any, Optional +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters +from pyegeria.core.request_filters import filter_body_kwargs from pyegeria.core._exceptions import PyegeriaException, PyegeriaInvalidParameterException from pyegeria.core._server_client import ServerClient from pyegeria.core._globals import default_timeout, NO_ELEMENTS_FOUND @@ -381,7 +384,7 @@ async def _async_get_owners_elements( body: Optional[dict | FilterRequestBody] = None, output_format: str = "JSON", report_spec: dict | str = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Return information about the elements classified with the ownership classification. Async version. @@ -398,6 +401,9 @@ async def _async_get_owners_elements( Type of output to return. report_spec: dict | str, default = None Output format set to use. If None, the default output format set is used. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -447,7 +453,7 @@ def get_owners_elements( body: Optional[dict | FilterRequestBody] = None, output_format: str = "JSON", report_spec: dict | str = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Return information about the elements classified with the ownership classification. @@ -464,6 +470,9 @@ def get_owners_elements( Type of output to return. report_spec: dict | str, default = None Output format set to use. If None, the default output format set is used. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -504,7 +513,7 @@ async def _async_get_root_elements_by_category( body: Optional[dict | FilterRequestBody] = None, output_format: str = "JSON", report_spec: dict | str = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve elements by a value found in the category property. The value must match exactly. Async version. @@ -521,6 +530,9 @@ async def _async_get_root_elements_by_category( Type of output to return. report_spec: dict | str, default = None Output format set to use. If None, the default output format set is used. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -568,7 +580,7 @@ def get_root_elements_by_category( body: Optional[dict | FilterRequestBody] = None, output_format: str = "JSON", report_spec: dict | str = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve elements by a value found in the category property. The value must match exactly. @@ -585,6 +597,9 @@ def get_root_elements_by_category( Type of output to return. report_spec: dict | str, default = None Output format set to use. If None, the default output format set is used. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -623,7 +638,7 @@ async def _async_get_subject_area_members( body: dict | FilterRequestBody, output_format: str = "JSON", report_spec: dict | str = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Return information about the elements classified with the subject area classification. Async version. @@ -640,6 +655,9 @@ async def _async_get_subject_area_members( Type of output to return. report_spec: dict | str, default = None Output format set to use. If None, the default output format set is used. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -690,7 +708,7 @@ def get_subject_area_members( body: dict | FilterRequestBody, output_format: str = "JSON", report_spec: dict | str = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Return information about the elements classified with the subject area classification. @@ -707,6 +725,9 @@ def get_subject_area_members( Type of output to return. report_spec: dict | str, default = None Output format set to use. If None, the default output format set is used. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1166,7 +1187,7 @@ async def _async_get_governed_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via a "governed-by" relationship to the requested governance definition. Async version. @@ -1187,6 +1208,9 @@ async def _async_get_governed_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1231,7 +1255,7 @@ def get_governed_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via a "governed-by" relationship to the requested governance definition. @@ -1252,6 +1276,9 @@ def get_governed_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1294,7 +1321,7 @@ async def _async_get_governed_by_definitions( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the governance definitions linked via a "governed-by" relationship to the specified element. Async version. @@ -1315,6 +1342,9 @@ async def _async_get_governed_by_definitions( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1359,7 +1389,7 @@ def get_governed_by_definitions( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the governance definitions linked via a "governed-by" relationship to the specified element. @@ -1380,6 +1410,9 @@ def get_governed_by_definitions( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1422,7 +1455,7 @@ async def _async_get_source_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via a SourceFrom relationship to the requested element. @@ -1446,6 +1479,9 @@ async def _async_get_source_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1490,7 +1526,7 @@ def get_source_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via a SourceFrom relationship to the requested element. @@ -1514,6 +1550,9 @@ def get_source_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1556,7 +1595,7 @@ async def _async_get_elements_sourced_from( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via the SourcedFrom relationship to the requested element. The elements @@ -1579,6 +1618,9 @@ async def _async_get_elements_sourced_from( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1623,7 +1665,7 @@ def get_elements_sourced_from( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via the SourcedFrom relationship to the requested element. The elements @@ -1646,6 +1688,9 @@ def get_elements_sourced_from( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1688,7 +1733,7 @@ async def _async_get_scopes( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the scopes linked via the ScopedBy relationship to the requested element. Async version. @@ -1709,6 +1754,9 @@ async def _async_get_scopes( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1753,7 +1801,7 @@ def get_scopes( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the scopes linked via the ScopedBy relationship to the requested element. @@ -1774,6 +1822,9 @@ def get_scopes( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1816,7 +1867,7 @@ async def _async_get_scoped_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via the ScopedBy relationship to the scope. Async version. @@ -1837,6 +1888,9 @@ async def _async_get_scoped_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1886,7 +1940,7 @@ def get_scoped_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via the ScopedBy relationship to the scope. @@ -1907,6 +1961,9 @@ def get_scoped_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1948,7 +2005,7 @@ async def _async_get_licensed_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via a License relationship to the requested LicenseType. Async version. @@ -1968,6 +2025,9 @@ async def _async_get_licensed_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2012,7 +2072,7 @@ def get_licensed_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via a License relationship to the requested LicenseType. @@ -2033,6 +2093,9 @@ def get_licensed_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2075,7 +2138,7 @@ async def _async_get_licenses( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the license types linked via a License relationship to the requested element. Async version. @@ -2096,6 +2159,9 @@ async def _async_get_licenses( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2140,7 +2206,7 @@ def get_licenses( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the license types linked via a License relationship to the requested element. @@ -2161,6 +2227,9 @@ def get_licenses( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2203,7 +2272,7 @@ async def _async_get_certified_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via a Certification relationship to the requested CertificationType. Async version. @@ -2224,6 +2293,9 @@ async def _async_get_certified_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2268,7 +2340,7 @@ def get_certified_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via a Certification relationship to the requested CertificationType. @@ -2289,6 +2361,9 @@ def get_certified_elements( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2331,7 +2406,7 @@ async def _async_get_certifications( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the certification types linked via a Certification relationship to the requested element. @@ -2353,6 +2428,9 @@ async def _async_get_certifications( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2397,7 +2475,7 @@ def get_certifications( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the certification types linked via a Certification relationship to the requested element. @@ -2418,6 +2496,9 @@ def get_certifications( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2485,6 +2566,9 @@ async def _async_get_elements( body: dict | ResultsRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2540,6 +2624,9 @@ def get_elements( body: dict | ResultsRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2653,6 +2740,9 @@ async def _async_get_elements_by_property_value( body: dict | FindPropertyNamesRequestBody | SearchStringRequestBody, default = None - Body of the request. If None, the default body is used. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -2782,6 +2872,9 @@ def get_elements_by_property_value( body: dict | FindPropertyNamesRequestBody | SearchStringRequestBody, default = None - Body of the request. If None, the default body is used. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -2916,6 +3009,9 @@ async def _async_find_elements_by_property_value( body: Optional[dict | FindPropertyNamesRequestBody] = None - Full request body - supercedes other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -3044,6 +3140,9 @@ def find_elements_by_property_value( body: Optional[dict | FindPropertyNamesRequestBody] = None - Full request body - supercedes other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -3109,7 +3208,7 @@ async def _async_get_element_by_guid( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict | str = "Referenceable", body: Optional[dict | GetRequestBody] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """ Retrieve element by its unique identifier. Async version. @@ -3129,6 +3228,9 @@ async def _async_get_element_by_guid( body: dict | GetRequestBody, default = None - full request specification - if provided, overrides other parameters. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -3165,7 +3267,7 @@ def get_element_by_guid( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | GetRequestBody] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """ Retrieve element by its unique identifier. @@ -3185,6 +3287,9 @@ def get_element_by_guid( body: dict | GetRequestBody, default = None - full request specification - if provided, overrides other parameters. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -3208,9 +3313,13 @@ def get_element_by_guid( ) return response - def get_actor_for_guid(self, guid: str) -> str: - """Get the name of the actor from the supplied guid.""" - details = self.get_element_by_guid(guid, element_type_name="UserIdentity") + def get_actor_for_guid(self, guid: str, **kwargs: Unpack[GetFilters]) -> str: + """Get the name of the actor from the supplied guid. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ + details = self.get_element_by_guid(guid, element_type_name="UserIdentity", **kwargs) if type(details) is str: return details if details["elementHeader"]["type"]["typeName"] != "UserIdentity": @@ -3403,7 +3512,7 @@ def get_element_guid_by_unique_name( return response async def _async_get_guid_for_name(self, name: str, property_name: list[str] = ["qualifiedName", "displayName"], - type_name: str = None, **kwargs) -> str: + type_name: str = None, **kwargs: Unpack[SearchFilters]) -> str: """ Retrieve the guid associated with the supplied element name. If more than one element returned, an exception is thrown. Async version. @@ -3417,6 +3526,9 @@ async def _async_get_guid_for_name(self, name: str, property_name: list[str] = [ type_name: str, default = "ValidMetadataValue" - metadata element type name to be used to restrict the search + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- str @@ -3440,7 +3552,7 @@ async def _async_get_guid_for_name(self, name: str, property_name: list[str] = [ def get_guid_for_name( self, name: str, property_name: list[str] = ["qualifiedName", "displayName"], - type_name: str = None, **kwargs + type_name: str = None, **kwargs: Unpack[SearchFilters] ) -> str: """ Retrieve the guid associated with the supplied element name. @@ -3455,6 +3567,9 @@ def get_guid_for_name( type_name: str, default = "ValidMetadataValue" - metadata element type name to be used to restrict the search + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- str @@ -3481,7 +3596,7 @@ async def _async_get_elements_by_classification( output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve elements with the requested classification name. It is also possible to limit the results @@ -3505,6 +3620,9 @@ async def _async_get_elements_by_classification( body: dict | ResultsRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -3541,7 +3659,7 @@ def get_elements_by_classification( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve elements with the requested classification name. It is also possible to limit the results @@ -3565,6 +3683,9 @@ def get_elements_by_classification( body: dict | ResultsRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -3681,6 +3802,9 @@ async def _async_get_elements_by_classification_with_property_value( body: dict | FindPropertyNamesRequestBody | SearchStringRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -3814,6 +3938,9 @@ def get_elements_by_classification_with_property_value( body: dict | FindPropertyNamesRequestBody | SearchStringRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -3921,6 +4048,9 @@ async def _async_find_elements_by_classification_with_property_value( body: Optional[dict | SearchStringRequestBody] = None - Full request body - supercedes other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -4045,6 +4175,9 @@ def find_elements_by_classification_with_property_value( body: Optional[dict | SearchStringRequestBody] = None - Full request body - supercedes other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -4102,7 +4235,7 @@ async def _async_get_related_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve elements linked by relationship type name. If the relationship type is None, then all related elements @@ -4131,6 +4264,9 @@ async def _async_get_related_elements( body: dict | ResultsRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -4173,7 +4309,7 @@ def get_related_elements( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve elements linked by relationship type name. If the relationship type is None, then all related elements @@ -4201,6 +4337,9 @@ def get_related_elements( body: dict | ResultsRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -4324,6 +4463,9 @@ async def _async_get_related_elements_with_property_value( body: dict | FindPropertyNamesRequestBody | SearchStringRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -4432,6 +4574,9 @@ def get_related_elements_with_property_value( report_spec: dict | str, default = None - Output format set to use. If None, the default output format set is used. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -4547,6 +4692,9 @@ async def _async_find_related_elements_with_property_value( body: Optional[dict | SearchStringRequestBody] = None - Full request body - supercedes other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -4680,6 +4828,9 @@ def find_related_elements_with_property_value( body: Optional[dict | SearchStringRequestBody] = None - Full request body - supercedes other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -5105,6 +5256,9 @@ async def _async_find_relationships_with_property_value( body: Optional[dict | SearchStringRequestBody] = None - Full request body - supercedes other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -5245,6 +5399,9 @@ def find_relationships_with_property_value( body: Optional[dict | SearchStringRequestBody] = None - Full request body - supercedes other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -6950,7 +7107,7 @@ async def _async_get_resource_list( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the resources linked via the ResourceList relationship to the requested element. Async version. @@ -6972,6 +7129,9 @@ async def _async_get_resource_list( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -7016,7 +7176,7 @@ def get_resource_list( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the resources linked via the ResourceList relationship to the requested element. @@ -7038,6 +7198,9 @@ def get_resource_list( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -7080,7 +7243,7 @@ async def _async_get_supported_by_resource( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via the ResourceList relationship to the requested resource -- ie the @@ -7103,6 +7266,9 @@ async def _async_get_supported_by_resource( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -7147,7 +7313,7 @@ def get_supported_by_resource( output_format: str = "JSON", report_spec: dict | str = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> list | str: """ Retrieve the elements linked via the ResourceList relationship to the requested resource -- ie the @@ -7170,6 +7336,9 @@ def get_supported_by_resource( body: dict | ResultsRequestBody Details of the query. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -12489,6 +12658,9 @@ async def _async_find_root_elements( body: dict | FindRequestBody, optional - if specified, this takes precedence over other parameters. + Accepts the standard find filters as keyword arguments (see ``FindFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -12534,6 +12706,7 @@ async def _async_find_root_elements( "matchClassifications": match_classifications, "startFrom": start_from, "pageSize": page_size, + **filter_body_kwargs("find", kwargs), } validated_body = FindRequestBody.model_validate(body_dict) @@ -12590,6 +12763,9 @@ def find_root_elements( body: dict | FindRequestBody, optional - if specified, this takes precedence over other parameters. + Accepts the standard find filters as keyword arguments (see ``FindFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -12672,6 +12848,9 @@ async def _async_find_authored_elements( body: dict | ContentStatusSearchString, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -12780,6 +12959,9 @@ def find_authored_elements( body: dict | ContentStatusSearchString, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -12825,7 +13007,7 @@ async def _async_find_authored_elements_by_category( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, body: dict | ContentStatusFilterRequestBody = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Returns the list of authored elements matching the category and optional content status. Async version. @@ -12847,6 +13029,9 @@ async def _async_find_authored_elements_by_category( body: dict | ContentStatusFilterRequestBody, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -12898,7 +13083,7 @@ def find_authored_elements_by_category( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, body: dict | ContentStatusFilterRequestBody = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Returns the list of authored elements matching the category and optional content status. @@ -12919,6 +13104,9 @@ def find_authored_elements_by_category( body: dict | ContentStatusFilterRequestBody, optional - the request body to use for the request. If specified, this takes precedence over other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str diff --git a/pyegeria/omvs/collection_manager.py b/pyegeria/omvs/collection_manager.py index f53ad27d..2c8c80fa 100644 --- a/pyegeria/omvs/collection_manager.py +++ b/pyegeria/omvs/collection_manager.py @@ -13,6 +13,9 @@ from loguru import logger from pydantic import Field, HttpUrl +from typing import Unpack +from pyegeria.core.request_filters import ListFilters +from pyegeria.core.request_filters import filter_body_kwargs from pyegeria.core._exceptions import PyegeriaInvalidParameterException from pyegeria.core._globals import NO_ELEMENTS_FOUND, NO_GUID_RETURNED from pyegeria.view.base_report_formats import select_report_spec, get_report_spec_match @@ -437,6 +440,9 @@ async def _async_find_collections( **kwargs : dict, optional Additional query parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -537,6 +543,9 @@ def find_collections( **kwargs : dict, optional Additional query parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -631,6 +640,9 @@ async def _async_find_digital_products( **kwargs : dict, optional - Additional query parameters + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -662,7 +674,7 @@ async def _async_find_digital_products( "includeOnlyRelationships": include_only_relationships, "skipRelationships": skip_relationships, "graphQueryDepth": graph_query_depth, - **kwargs, + **filter_body_kwargs("deployment_search", kwargs), } validated_body = DeploymentStatusSearchString.model_validate(body_dict) @@ -701,6 +713,9 @@ def find_digital_products( ) -> list | str: """ Returns the list of digital products matching the search string and optional deployment status. Sync version. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. """ return run_sync( self._async_find_digital_products( @@ -847,7 +862,11 @@ async def _async_get_collections_by_name( body: Optional[dict | FilterRequestBody] = None, **kwargs, ) -> list | str: - """Returns the list of collections with a particular name. Async version.""" + """Returns the list of collections with a particular name. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ if name is None and "filter_string" in kwargs: name = kwargs.pop("filter_string") @@ -894,7 +913,11 @@ def get_collections_by_name( body: Optional[dict | FilterRequestBody] = None, **kwargs, ) -> list | str: - """Returns the list of collections matching the search string.""" + """Returns the list of collections matching the search string. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_collections_by_name( name=name, @@ -953,7 +976,7 @@ def get_collections_by_name( async def _async_get_collections_by_category(self, category: str, classification_names: Optional[list[str]] = None, body: Optional[dict | FilterRequestBody] = None, start_from: int = 0, page_size: int = 0, output_format: str = 'JSON', - report_spec: str | dict = None) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """Returns the list of collections with a particular category. This is an optional text field in the collection element. @@ -976,6 +999,9 @@ async def _async_get_collections_by_category(self, category: str, classification report_spec: str | dict , optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1008,7 +1034,7 @@ async def _async_get_collections_by_category(self, category: str, classification _gen_output=self._generate_collection_output, filter_string=category, classification_names=classification_names, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body) + output_format=output_format, report_spec=report_spec, body=body, **kwargs) return response @@ -1017,7 +1043,7 @@ async def _async_get_collections_by_category(self, category: str, classification def get_collections_by_category(self, category: str, classification_names: Optional[list[str]] = None, body: Optional[dict | FilterRequestBody] = None, start_from: int = 0, page_size: int = 0, output_format: str = 'JSON', - report_spec: str | dict = None) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """Returns the list of collections with a particular collectionType. This is an optional text field in the collection element. @@ -1040,6 +1066,9 @@ def get_collections_by_category(self, category: str, classification_names: Optio report_spec: str | dict, optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1076,7 +1105,7 @@ def get_collections_by_category(self, category: str, classification_names: Optio return run_sync( self._async_get_collections_by_category(category, classification_names, body, start_from, page_size, - output_format, report_spec)) + output_format, report_spec, **kwargs)) @dynamic_catch @@ -1091,7 +1120,11 @@ async def _async_get_collection_by_guid( body: Optional[dict | GetRequestBody] = None, **kwargs, ) -> dict | str: - """Return the properties of a specific collection. Async version.""" + """Return the properties of a specific collection. Async version. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ if guid is None and "collection_guid" in kwargs: guid = kwargs.pop("collection_guid") @@ -1127,7 +1160,11 @@ def get_collection_by_guid( body: Optional[dict | GetRequestBody] = None, **kwargs, ) -> dict | str: - """Return the properties of a specific collection.""" + """Return the properties of a specific collection. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_collection_by_guid( guid=guid, @@ -1146,7 +1183,7 @@ def get_collection_by_guid( async def _async_get_collection_members(self, collection_guid: Optional[str] = None, collection_name: Optional[str] = None, collection_qname: Optional[str] = None, body: Optional[dict | ResultsRequestBody] = None, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", - report_spec: str | dict = None, **kwargs) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """Return a list of elements that are a member of a collection. Async version. Parameters @@ -1172,6 +1209,9 @@ async def _async_get_collection_members(self, collection_guid: Optional[str] = N report_spec: str | dict , optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1224,7 +1264,7 @@ async def _async_get_collection_members(self, collection_guid: Optional[str] = N def get_collection_members(self, collection_guid: Optional[str] = None, collection_name: Optional[str] = None, collection_qname: Optional[str] = None, body: dict = None, start_from: int = 0, page_size: int = 0, - output_format: str = "JSON", report_spec: str | dict = None, **kwargs) -> list | str: + output_format: str = "JSON", report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """Return a list of elements that are a member of a collection. Parameters ---------- @@ -1249,6 +1289,9 @@ def get_collection_members(self, collection_guid: Optional[str] = None, collecti report_spec: str | dict , optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1288,7 +1331,7 @@ def get_collection_members(self, collection_guid: Optional[str] = None, collecti @dynamic_catch async def _async_get_collection_hierarchy(self, collection_guid: str, body: Optional[dict | ResultsRequestBody] = None, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", - report_spec: str | dict = None) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """ Return a hierarchy of nested collections. Request body is optional Async version. Parameters @@ -1308,6 +1351,9 @@ async def _async_get_collection_hierarchy(self, collection_guid: str, body: Opti report_spec: dict , optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1345,13 +1391,13 @@ async def _async_get_collection_hierarchy(self, collection_guid: str, body: Opti start_from=start_from, page_size=page_size, output_format=output_format, report_spec=report_spec, - body=body) + body=body, **kwargs) return response def get_collection_hierarchy(self, collection_guid: Optional[str] = None, body: dict| ResultsRequestBody = None, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", - report_spec: str | dict = None) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """ Return a graph of elements that are the nested members of a collection along with elements immediately connected to the starting collection. The result includes a mermaid graph of the returned elements. @@ -1373,6 +1419,9 @@ def get_collection_hierarchy(self, collection_guid: Optional[str] = None, body: report_spec: str | dict , optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1403,7 +1452,7 @@ def get_collection_hierarchy(self, collection_guid: Optional[str] = None, body: """ return run_sync( self._async_get_collection_hierarchy(collection_guid, body, start_from, page_size, - output_format, report_spec)) + output_format, report_spec, **kwargs)) @dynamic_catch @@ -7259,7 +7308,7 @@ def remove_term_from_category(self, folder_guid: str, term_guid: str, @dynamic_catch async def _async_get_member_list(self, collection_guid: Optional[str] = None, collection_name: Optional[str] = None, - collection_qname: Optional[str] = None, ) -> list | str: + collection_qname: Optional[str] = None, **kwargs: Unpack[ListFilters], ) -> list | str: """Get the member list for the collection - async version. Parameters ---------- @@ -7273,6 +7322,9 @@ async def _async_get_member_list(self, collection_guid: Optional[str] = None, co qualified name of the collection to return members for. If none, collection_guid or collection_name are used. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -7289,7 +7341,7 @@ async def _async_get_member_list(self, collection_guid: Optional[str] = None, co # now find the members of the collection member_list = [] - members = await self._async_get_collection_members(collection_guid, collection_name, collection_qname) + members = await self._async_get_collection_members(collection_guid, collection_name, collection_qname, **kwargs) if (type(members) is str) or (len(members) == 0): logger.trace(f"No members found for collection {collection_guid}") return "No members found" @@ -7311,7 +7363,7 @@ async def _async_get_member_list(self, collection_guid: Optional[str] = None, co def get_member_list(self, collection_guid: Optional[str] = None, collection_name: Optional[str] = None, - collection_qname: Optional[str] = None, ) -> list | bool: + collection_qname: Optional[str] = None, **kwargs: Unpack[ListFilters], ) -> list | bool: """Get the member list for a collection - async version. Parameters ---------- @@ -7324,6 +7376,9 @@ def get_member_list(self, collection_guid: Optional[str] = None, collection_name collection_qname: str, qualified name of the collection to return members for. If none, collection_guid or collection_name are used. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | bool @@ -7336,7 +7391,7 @@ def get_member_list(self, collection_guid: Optional[str] = None, collection_name """ resp = run_sync( - self._async_get_member_list(collection_guid, collection_name, collection_qname)) + self._async_get_member_list(collection_guid, collection_name, collection_qname, **kwargs)) return resp def _extract_digital_product_properties(self, element: dict, guid: str, output_format: str) -> dict: diff --git a/pyegeria/omvs/community_matters_omvs.py b/pyegeria/omvs/community_matters_omvs.py index 43a2100a..d536f969 100644 --- a/pyegeria/omvs/community_matters_omvs.py +++ b/pyegeria/omvs/community_matters_omvs.py @@ -282,6 +282,9 @@ async def _async_find_communities( **kwargs : dict, optional Additional parameters supported by the find request. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -379,6 +382,9 @@ def find_communities( **kwargs : dict, optional Additional parameters supported by the find request. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str diff --git a/pyegeria/omvs/data_designer.py b/pyegeria/omvs/data_designer.py index 127ac7f5..7ab441af 100644 --- a/pyegeria/omvs/data_designer.py +++ b/pyegeria/omvs/data_designer.py @@ -11,6 +11,8 @@ from loguru import logger +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core._server_client import max_paging_size, ServerClient from pyegeria.view.base_report_formats import select_report_spec, get_report_spec_match from pyegeria.models import (SearchStringRequestBody, FilterRequestBody, GetRequestBody, NewElementRequestBody, @@ -72,7 +74,7 @@ async def _async_find_data_value_specifications( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Find data value specifications by search string. Async version. @@ -99,6 +101,9 @@ async def _async_find_data_value_specifications( report_spec : str | dict, optional The report specification. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -138,7 +143,7 @@ def find_data_value_specifications( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Find data value specifications by search string. @@ -165,6 +170,9 @@ def find_data_value_specifications( report_spec : str | dict, optional The report specification. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -906,7 +914,7 @@ def create_data_structure_from_template(self, body: dict | TemplateRequestBody) @dynamic_catch async def _async_find_all_data_structures(self, graph_query_depth: int = 3, output_format: str = 'JSON', - report_spec: str | dict = None) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[SearchFilters]) -> list | str: """Returns a list of all known data structures. Async version. Parameters @@ -916,6 +924,9 @@ async def _async_find_all_data_structures(self, graph_query_depth: int = 3, outp - output format of the data structure. Possible values: "DICT", "JSON", "MERMAID". report_spec: dict, optional, default = None - The desired output columns/field options. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -935,10 +946,10 @@ async def _async_find_all_data_structures(self, graph_query_depth: int = 3, outp return await self._async_find_data_structures(search_string="*", metadata_element_type="DataStructure", output_format=output_format, - report_spec=report_spec) + report_spec=report_spec, **kwargs) @dynamic_catch - def find_all_data_structures(self, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None) -> list | str: + def find_all_data_structures(self, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, **kwargs: Unpack[SearchFilters]) -> list | str: """Returns a list of all known data structures. Parameters @@ -948,6 +959,9 @@ def find_all_data_structures(self, graph_query_depth: int = 3, output_format: st - output format of the data structure. Possible values: "DICT", "JSON", "MERMAID". report_spec: dict, optional, default = None - The desired output columns/field options. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -965,7 +979,7 @@ def find_all_data_structures(self, graph_query_depth: int = 3, output_format: st """ return run_sync(self._async_find_all_data_structures(output_format=output_format, - report_spec=report_spec)) + report_spec=report_spec, **kwargs)) @dynamic_catch async def _async_find_data_structures( @@ -979,7 +993,7 @@ async def _async_find_data_structures( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """Find the list of data structure metadata elements that contain the search string. Async version. @@ -1023,6 +1037,9 @@ async def _async_find_data_structures( - sequencing_property (str): Property to use for sequencing - property_names (list[str]): Property names to search for + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -1073,7 +1090,7 @@ def find_data_structures( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """Find the list of data structure metadata elements that contain the search string. @@ -1117,6 +1134,9 @@ def find_data_structures( - sequencing_property (str): Property to use for sequencing - property_names (list[str]): Property names to search for + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -1156,7 +1176,7 @@ async def _async_get_data_structures_by_name(self, name: Optional[str] = None, c page_size: int = 0, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[ListFilters]) -> list | str: """ Get the list of data structure metadata elements with a matching name to the search string filter. Async version. @@ -1175,6 +1195,9 @@ async def _async_get_data_structures_by_name(self, name: Optional[str] = None, c report_spec: str | dict, optional, default = None - The desired output columns/field options. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1228,7 +1251,7 @@ def get_data_structures_by_name(self, name: Optional[str] = None, classification body: Optional[dict | FilterRequestBody] = None, start_from: int = 0, page_size: int = max_paging_size, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[ListFilters]) -> list | str: """ Get the list of data structure metadata elements with a matching name to the search string filter. Parameters @@ -1246,6 +1269,9 @@ def get_data_structures_by_name(self, name: Optional[str] = None, classification report_spec: str | dict, optional, default = None - The desired output columns/field options. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1274,7 +1300,7 @@ async def _async_get_data_structure_by_guid(self, guid: str = None, element_type body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[GetFilters]) -> list | str: """ Get the data structure metadata elements for the specified GUID. Async version. @@ -1291,6 +1317,9 @@ async def _async_get_data_structure_by_guid(self, guid: str = None, element_type report_spec: str | dict, optional, default = None - The desired output columns/field options. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1341,7 +1370,7 @@ async def _async_get_data_structure_by_guid(self, guid: str = None, element_type def get_data_structure_by_guid(self, guid: str = None, element_type: Optional[str] = None, body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[GetFilters]) -> list | str: """ Get the data structure metadata element with the specified unique identifier.. Parameters @@ -1357,6 +1386,9 @@ def get_data_structure_by_guid(self, guid: str = None, element_type: Optional[st report_spec: str | dict, optional, default = None - The desired output columns/field options. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -1626,55 +1658,83 @@ def collect(elements: list[dict], guids: list, names: list, qnames: list) -> Non "mermaid": mermaid, } - def get_data_field_rel_elements(self, guid: str) -> dict | str: - """return the lists of objects related to a data field""" + def get_data_field_rel_elements(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict | str: + """return the lists of objects related to a data field + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ - data_field_entry = self.get_data_field_by_guid(guid, output_format="JSON") + data_field_entry = self.get_data_field_by_guid(guid, output_format="JSON", **kwargs) if isinstance(data_field_entry, str): return None return self.get_data_rel_elements_dict(data_field_entry) - async def _async_get_data_field_rel_elements(self, guid: str) -> dict | None: - """Async version: return the lists of objects related to a data field.""" - data_field_entry = await self._async_get_data_field_by_guid(guid, output_format="JSON") + async def _async_get_data_field_rel_elements(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict | None: + """Async version: return the lists of objects related to a data field. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ + data_field_entry = await self._async_get_data_field_by_guid(guid, output_format="JSON", **kwargs) if isinstance(data_field_entry, str) or data_field_entry is None: return None return self.get_data_rel_elements_dict(data_field_entry) - def get_data_class_rel_elements(self, guid: str) -> dict | str: - """return the lists of objects related to a data class""" + def get_data_class_rel_elements(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict | str: + """return the lists of objects related to a data class - data_class_entry = self.get_data_class_by_guid(guid, output_format="JSON") + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ + + data_class_entry = self.get_data_class_by_guid(guid, output_format="JSON", **kwargs) if isinstance(data_class_entry, str): return None return self.get_data_rel_elements_dict(data_class_entry) - async def _async_get_data_class_rel_elements(self, guid: str) -> dict | None: - """Async version: return the lists of objects related to a data class.""" - data_class_entry = await self._async_get_data_class_by_guid(guid, output_format="JSON") + async def _async_get_data_class_rel_elements(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict | None: + """Async version: return the lists of objects related to a data class. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ + data_class_entry = await self._async_get_data_class_by_guid(guid, output_format="JSON", **kwargs) if isinstance(data_class_entry, str) or data_class_entry is None: return None return self.get_data_rel_elements_dict(data_class_entry) - def get_data_value_specification_rel_elements(self, guid: str) -> dict | str: - """return the lists of objects related to a data value specification""" + def get_data_value_specification_rel_elements(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict | str: + """return the lists of objects related to a data value specification + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ - spec_entry = self.get_data_value_specification_by_guid(guid, output_format="JSON") + spec_entry = self.get_data_value_specification_by_guid(guid, output_format="JSON", **kwargs) if isinstance(spec_entry, str): return None return self.get_data_rel_elements_dict(spec_entry) - async def _async_get_data_value_specification_rel_elements(self, guid: str) -> dict | None: - """Async version: return the lists of objects related to a data value specification.""" - spec_entry = await self._async_get_data_value_specification_by_guid(guid, output_format="JSON") + async def _async_get_data_value_specification_rel_elements(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict | None: + """Async version: return the lists of objects related to a data value specification. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ + spec_entry = await self._async_get_data_value_specification_by_guid(guid, output_format="JSON", **kwargs) if isinstance(spec_entry, str) or spec_entry is None: return None return self.get_data_rel_elements_dict(spec_entry) - def get_data_grain_rel_elements(self, guid: str) -> dict | str: - """return the lists of objects related to a data grain""" + def get_data_grain_rel_elements(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict | str: + """return the lists of objects related to a data grain - grain_entry = self.get_data_grain_by_guid(guid, output_format="JSON") + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ + + grain_entry = self.get_data_grain_by_guid(guid, output_format="JSON", **kwargs) if isinstance(grain_entry, str): return None return self.get_data_rel_elements_dict(grain_entry) @@ -2591,7 +2651,7 @@ def delete_data_structure(self, data_struct_guid: str, body: dict = None, cascad @dynamic_catch async def _async_find_all_data_fields(self, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - body: dict|SearchStringRequestBody| None= None) -> list | str: + body: dict|SearchStringRequestBody| None= None, **kwargs: Unpack[SearchFilters]) -> list | str: """Returns a list of all known data fields. Async version. Parameters @@ -2604,6 +2664,9 @@ async def _async_find_all_data_fields(self, graph_query_depth: int = 3, output_f body: dict|SearchStringRequestBody, optional, default = None - The body of the request. If None, no body is sent. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -2623,11 +2686,11 @@ async def _async_find_all_data_fields(self, graph_query_depth: int = 3, output_f return await self._async_find_data_fields(search_string="*", metadata_element_type="DataField", output_format=output_format, - report_spec=report_spec, body=body) + report_spec=report_spec, body=body, **kwargs) @dynamic_catch def find_all_data_fields(self, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - body: dict | SearchStringRequestBody| None = None) -> list | str: + body: dict | SearchStringRequestBody| None = None, **kwargs: Unpack[SearchFilters]) -> list | str: """ Returns a list of all known data fields. Parameters @@ -2639,6 +2702,9 @@ def find_all_data_fields(self, graph_query_depth: int = 3, output_format: str = body: dict|SearchStringRequestBody, optional, default = None - The body of the request. If None, no body is sent. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -2656,7 +2722,7 @@ def find_all_data_fields(self, graph_query_depth: int = 3, output_format: str = """ response = run_sync( - self._async_find_all_data_fields(graph_query_depth, output_format, report_spec, body)) + self._async_find_all_data_fields(graph_query_depth, output_format, report_spec, body, **kwargs)) return response @dynamic_catch @@ -2671,7 +2737,7 @@ async def _async_find_data_fields( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """Retrieve the list of data fields elements that contain the search string filter. Async version. @@ -2732,6 +2798,9 @@ async def _async_find_data_fields( body: dict, optional, default = None - additional optional specifications for the search. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -2849,6 +2918,9 @@ def find_data_fields(self, search_string: str, body: dict, optional, default = None - additional optional specifications for the search. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- [dict] | str @@ -2886,7 +2958,7 @@ async def _async_get_data_fields_by_name(self, filter_string: str | None = None, body: Optional[dict | FilterRequestBody] = None, start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = 'JSON', - report_spec: str | dict = None, **kwargs) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """ Get the list of data class metadata elements with a matching name to the search string filter. Async version. @@ -2905,6 +2977,9 @@ async def _async_get_data_fields_by_name(self, filter_string: str | None = None, report_spec: str | dict, optional, default = None - The desired output columns/field options. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2949,7 +3024,7 @@ async def _async_get_data_fields_by_name(self, filter_string: str | None = None, def get_data_fields_by_name(self, filter_string: str | None = None, classification_names: Optional[list[str]] = None, body: dict = None, start_from: int = 0, page_size: int = max_paging_size, graph_query_depth: int = 3, output_format: str = 'JSON', - report_spec: str | dict = None, **kwargs) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """ Get the list of data class elements with a matching name to the search string filter. Parameters @@ -2967,6 +3042,9 @@ def get_data_fields_by_name(self, filter_string: str | None = None, classificati report_spec: str | dict, optional, default = None - The desired output columns/field options. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2995,8 +3073,12 @@ def get_data_fields_by_name(self, filter_string: str | None = None, classificati async def _async_get_data_field_by_guid(self, guid: str, element_type: Optional[str] = None, body: Optional[dict] = None, graph_query_depth: int = 3, output_format: str = 'JSON', - report_spec: str | dict = None, **kwargs) -> list | str: - """Get a data field by its GUID. Async version.""" + report_spec: str | dict = None, **kwargs: Unpack[GetFilters]) -> list | str: + """Get a data field by its GUID. Async version. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.ref_data_designer_command_base}/data-fields/{guid}/retrieve" _type = element_type if element_type else "DataField" return await self._async_get_guid_request(url, _type=_type, @@ -3007,8 +3089,12 @@ async def _async_get_data_field_by_guid(self, guid: str, element_type: Optional[ @dynamic_catch def get_data_field_by_guid(self, guid: str, element_type: Optional[str] = None, body: Optional[dict] = None, - graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, **kwargs) -> list | str: - """Get a data field by its GUID.""" + graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, **kwargs: Unpack[GetFilters]) -> list | str: + """Get a data field by its GUID. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_data_field_by_guid(guid, element_type, body, graph_query_depth, output_format, report_spec, **kwargs)) @@ -3018,7 +3104,7 @@ async def _async_get_data_value_specifications_by_name(self, filter_string: str body: Optional[dict | FilterRequestBody] = None, start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = 'JSON', - report_spec: str | dict = None, **kwargs) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """ Get data value specifications by name. Async version. Parameters @@ -3036,6 +3122,9 @@ async def _async_get_data_value_specifications_by_name(self, filter_string: str report_spec: str | dict, optional, default = None - The desired output columns/field options. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -3080,7 +3169,7 @@ async def _async_get_data_value_specifications_by_name(self, filter_string: str def get_data_value_specifications_by_name(self, filter_string: str | None = None, classification_names: Optional[list[str]] = None, body: dict = None, start_from: int = 0, page_size: int = max_paging_size, graph_query_depth: int = 3, output_format: str = 'JSON', - report_spec: str | dict = None, **kwargs) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """ Get data value specifications by name. Parameters @@ -3099,6 +3188,9 @@ def get_data_value_specifications_by_name(self, filter_string: str | None = None - The desired output columns/field options. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -3126,7 +3218,7 @@ def get_data_value_specifications_by_name(self, filter_string: str | None = None async def _async_get_data_value_specification_by_guid(self, guid: str, element_type: Optional[str] = None, body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', - report_spec: str | dict = None, **kwargs) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[GetFilters]) -> list | str: """ Get the data value specification metadata elements for the specified GUID. Async version. @@ -3143,6 +3235,9 @@ async def _async_get_data_value_specification_by_guid(self, guid: str, element_t report_spec: str | dict, optional, default = None - The desired output columns/field options. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -3185,7 +3280,7 @@ async def _async_get_data_value_specification_by_guid(self, guid: str, element_t @dynamic_catch def get_data_value_specification_by_guid(self, guid: str, element_type: Optional[str] = None, body: Optional[dict | GetRequestBody] = None, - graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, **kwargs) -> list | str: + graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, **kwargs: Unpack[GetFilters]) -> list | str: """ Get the data value specification metadata element with the specified unique identifier.. Parameters @@ -3201,6 +3296,9 @@ def get_data_value_specification_by_guid(self, guid: str, element_type: Optional report_spec: str | dict, optional, default = None - The desired output columns/field options. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -3239,9 +3337,12 @@ async def _async_get_data_class_by_guid(self, guid: str = None, element_type: Op body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[GetFilters]) -> list | str: """Get a data class by its GUID. Async version. Uses the data-value-specifications parent endpoint since DataClass is a subtype. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). """ if guid is None and "data_class_guid" in kwargs: guid = kwargs.pop("data_class_guid") @@ -3263,8 +3364,12 @@ async def _async_get_data_class_by_guid(self, guid: str = None, element_type: Op def get_data_class_by_guid(self, guid: str = None, element_type: Optional[str] = None, body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> list | str: - """Get a data class by its GUID.""" + **kwargs: Unpack[GetFilters]) -> list | str: + """Get a data class by its GUID. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_data_class_by_guid(guid=guid, element_type=element_type, body=body, graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, **kwargs)) @@ -3272,8 +3377,12 @@ def get_data_class_by_guid(self, guid: str = None, element_type: Optional[str] = def get_data_grain_by_guid(self, guid: str = None, element_type: Optional[str] = None, body: Optional[dict] = None, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> list | str: - """Get a data grain by its GUID. Alias for get_data_value_specification_by_guid with DataGrain type.""" + **kwargs: Unpack[GetFilters]) -> list | str: + """Get a data grain by its GUID. Alias for get_data_value_specification_by_guid with DataGrain type. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_data_value_specification_by_guid( guid=guid, element_type=element_type or "DataGrain", body=body, output_format=output_format, report_spec=report_spec, **kwargs)) diff --git a/pyegeria/omvs/data_discovery.py b/pyegeria/omvs/data_discovery.py index 68ae9c4c..1c66eb85 100644 --- a/pyegeria/omvs/data_discovery.py +++ b/pyegeria/omvs/data_discovery.py @@ -9,6 +9,8 @@ import uuid from typing import Optional +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core._server_client import ServerClient from pyegeria.core._globals import NO_ELEMENTS_FOUND from pyegeria.models import ( @@ -872,7 +874,7 @@ async def _async_get_annotations_by_name( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Get annotations by name. Async version. @@ -893,6 +895,9 @@ async def _async_get_annotations_by_name( report_spec : str | dict, optional The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -944,7 +949,7 @@ def get_annotations_by_name( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Get annotations by name. @@ -965,6 +970,9 @@ def get_annotations_by_name( report_spec : str | dict, optional The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -1010,7 +1018,7 @@ async def _async_get_annotations_by_analysis_step( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: """Get annotations by analysis step. Async version. @@ -1025,6 +1033,9 @@ async def _async_get_annotations_by_analysis_step( "pageSize": 10 } ``` + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/data-discovery/annotations/by-analysis-step" return await self._async_get_name_request( @@ -1048,9 +1059,13 @@ def get_annotations_by_analysis_step( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: - """Get annotations by analysis step.""" + """Get annotations by analysis step. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_annotations_by_analysis_step( analysis_step, body, start_from, page_size, output_format, report_spec, **kwargs @@ -1066,7 +1081,7 @@ async def _async_get_annotations_by_annotation_type( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: """Get annotations by annotation type. Async version. @@ -1081,6 +1096,9 @@ async def _async_get_annotations_by_annotation_type( "pageSize": 10 } ``` + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/data-discovery/annotations/by-annotation-type" return await self._async_get_name_request( @@ -1104,9 +1122,13 @@ def get_annotations_by_annotation_type( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: - """Get annotations by annotation type.""" + """Get annotations by annotation type. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_annotations_by_annotation_type( annotation_type, body, start_from, page_size, output_format, report_spec, **kwargs @@ -1122,7 +1144,7 @@ async def _async_get_annotations_for_element( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: """Get the annotations associated with an element. Async version. @@ -1136,6 +1158,9 @@ async def _async_get_annotations_for_element( "pageSize": 10 } ``` + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/data-discovery/elements/{element_guid}/associated-annotations" return await self._async_get_results_body_request( @@ -1158,9 +1183,13 @@ def get_annotations_for_element( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: - """Get the annotations associated with an element.""" + """Get the annotations associated with an element. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_annotations_for_element( element_guid, body, start_from, page_size, output_format, report_spec, **kwargs @@ -1176,7 +1205,7 @@ async def _async_get_new_annotations( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: """Get the new annotations for a survey report. Async version. @@ -1190,6 +1219,9 @@ async def _async_get_new_annotations( "pageSize": 10 } ``` + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/data-discovery/survey-reports/{survey_report_guid}/new-annotations" return await self._async_get_results_body_request( @@ -1212,9 +1244,13 @@ def get_new_annotations( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: - """Get the new annotations for a survey report.""" + """Get the new annotations for a survey report. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_new_annotations( survey_report_guid, body, start_from, page_size, output_format, report_spec, **kwargs @@ -1230,7 +1266,7 @@ async def _async_get_annotation_extensions( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: """Get the annotations that extend an annotation. Async version. @@ -1244,6 +1280,9 @@ async def _async_get_annotation_extensions( "pageSize": 10 } ``` + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/data-discovery/annotations/{annotation_guid}/annotation-extensions" return await self._async_get_results_body_request( @@ -1266,9 +1305,13 @@ def get_annotation_extensions( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: - """Get the annotations that extend an annotation.""" + """Get the annotations that extend an annotation. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_annotation_extensions( annotation_guid, body, start_from, page_size, output_format, report_spec, **kwargs @@ -1284,7 +1327,7 @@ async def _async_get_previous_annotations( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: """Get the annotations that precede an annotation. Async version. @@ -1298,6 +1341,9 @@ async def _async_get_previous_annotations( "pageSize": 10 } ``` + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/data-discovery/annotations/{annotation_guid}/previous-annotations" return await self._async_get_results_body_request( @@ -1320,9 +1366,13 @@ def get_previous_annotations( page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[ListFilters], ) -> str | list[dict]: - """Get the annotations that precede an annotation.""" + """Get the annotations that precede an annotation. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_previous_annotations( annotation_guid, body, start_from, page_size, output_format, report_spec, **kwargs @@ -1341,7 +1391,7 @@ async def _async_find_annotations( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Referenceable", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of annotation metadata elements that contain the search string. Async Version. @@ -1398,6 +1448,9 @@ async def _async_find_annotations( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -1451,7 +1504,7 @@ def find_annotations( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Referenceable", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of annotation metadata elements that contain the search string. @@ -1508,6 +1561,9 @@ def find_annotations( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -1549,7 +1605,7 @@ async def _async_get_annotation_by_guid( body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Get annotation by GUID. Async version. @@ -1566,6 +1622,9 @@ async def _async_get_annotation_by_guid( report_spec : str | dict, optional The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1614,7 +1673,7 @@ def get_annotation_by_guid( body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Annotations", - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Get annotation by GUID. @@ -1631,6 +1690,9 @@ def get_annotation_by_guid( report_spec : str | dict, optional The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1742,7 +1804,7 @@ async def _async_get_security_findings( finding_types: Optional[list[str]] = None, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Return the security findings in one survey report, or about one element, most severe first. Async version. @@ -1763,6 +1825,9 @@ async def _async_get_security_findings( report_spec : str | dict, optional Defaults to "Security-Findings". + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -1813,11 +1878,14 @@ def get_security_findings( finding_types: Optional[list[str]] = None, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Return the security findings in one survey report, or about one element, most severe first. See _async_get_security_findings. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. """ return run_sync( self._async_get_security_findings(report_guid, element_guid, min_severity, finding_types, @@ -1830,7 +1898,7 @@ async def _async_get_security_posture_history( report_qualified_name_prefix: Optional[str] = None, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Return the security posture summaries, one per test run, oldest first. Async version. @@ -1844,6 +1912,9 @@ async def _async_get_security_posture_history( report_spec : str | dict, optional Defaults to "Security-Posture". + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -1879,11 +1950,14 @@ def get_security_posture_history( report_qualified_name_prefix: Optional[str] = None, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Return the security posture summaries, one per test run, oldest first. See _async_get_security_posture_history. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. """ return run_sync( self._async_get_security_posture_history(report_qualified_name_prefix, output_format, diff --git a/pyegeria/omvs/data_engineer.py b/pyegeria/omvs/data_engineer.py index fe48278f..70fccb93 100644 --- a/pyegeria/omvs/data_engineer.py +++ b/pyegeria/omvs/data_engineer.py @@ -9,6 +9,8 @@ from pydantic import HttpUrl +from typing import Unpack +from pyegeria.core.request_filters import SearchFilters from pyegeria.core._exceptions import PyegeriaException from pyegeria.core.utils import dynamic_catch, transform_json_to_tabular from pyegeria.core._server_client import ServerClient @@ -85,7 +87,7 @@ async def _async_find_tabular_data_sets( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Referenceable", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of tabular data set metadata elements that contain the search string. Async Version. @@ -142,6 +144,9 @@ async def _async_find_tabular_data_sets( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -195,7 +200,7 @@ def find_tabular_data_sets( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Referenceable", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of tabular data set metadata elements that contain the search string. @@ -252,6 +257,9 @@ def find_tabular_data_sets( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str diff --git a/pyegeria/omvs/digital_business.py b/pyegeria/omvs/digital_business.py index 961a919e..6a618366 100644 --- a/pyegeria/omvs/digital_business.py +++ b/pyegeria/omvs/digital_business.py @@ -11,6 +11,8 @@ import asyncio from typing import Optional +from typing import Unpack +from pyegeria.core.request_filters import GetFilters from pyegeria.omvs.collection_manager import CollectionManager from pyegeria.core._server_client import ServerClient from pyegeria.models import ( @@ -321,7 +323,7 @@ async def _async_get_business_capability_by_guid( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = "BusinessCapabilities", body: Optional[dict] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Return the properties of a specific business capability by GUID. Async version. @@ -336,6 +338,9 @@ async def _async_get_business_capability_by_guid( body : dict, optional Request body (typically empty for retrieval). + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -373,7 +378,7 @@ def get_business_capability_by_guid( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = "BusinessCapabilities", body: Optional[dict] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Return the properties of a specific business capability by GUID. Sync version. @@ -388,6 +393,9 @@ def get_business_capability_by_guid( body : dict, optional Request body (typically empty for retrieval). + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -452,6 +460,9 @@ async def _async_get_business_capabilities_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -533,6 +544,9 @@ def get_business_capabilities_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -626,6 +640,9 @@ async def _async_find_business_capabilities( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -722,6 +739,9 @@ def find_business_capabilities( body : dict, optional Request body for additional parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str diff --git a/pyegeria/omvs/external_links.py b/pyegeria/omvs/external_links.py index 1c9e5532..aa0e0647 100644 --- a/pyegeria/omvs/external_links.py +++ b/pyegeria/omvs/external_links.py @@ -12,6 +12,8 @@ from loguru import logger from pydantic import HttpUrl +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core._globals import NO_GUID_RETURNED from pyegeria.view.base_report_formats import select_report_spec, get_report_spec_match from pyegeria.models import (SearchStringRequestBody, FilterRequestBody, GetRequestBody, NewElementRequestBody, @@ -1207,7 +1209,7 @@ async def _async_find_external_references( page_size: int = 100, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = "ExternalReference", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of external reference metadata elements that contain the search string. Async Version. @@ -1264,6 +1266,9 @@ async def _async_find_external_references( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -1318,7 +1323,7 @@ def find_external_references( page_size: int = 100, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = "ExternalReference", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of external reference metadata elements that contain the search string. @@ -1375,6 +1380,9 @@ def find_external_references( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -1415,7 +1423,7 @@ async def _async_get_external_references_by_name(self, name: Optional[str] = Non start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = "ExternalReference", - **kwargs) -> list | str: + **kwargs: Unpack[ListFilters]) -> list | str: """ Returns the list of external references with a particular name. Parameters @@ -1436,6 +1444,9 @@ async def _async_get_external_references_by_name(self, name: Optional[str] = Non report_spec: dict , optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1479,7 +1490,7 @@ def get_external_references_by_name(self, name: Optional[str] = None, classifica body: Optional[dict | FilterRequestBody] = None, start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = "ExternalReference", - **kwargs) -> list | str: + **kwargs: Unpack[ListFilters]) -> list | str: """Returns the list of external references matching the filter string. Async version. The search string is located in the request body and is interpreted as a plain string. The request parameters, startsWith, endsWith, and ignoreCase can be used to allow a fuzzy search. @@ -1502,6 +1513,9 @@ def get_external_references_by_name(self, name: Optional[str] = None, classifica report_spec: str | dict, optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1525,7 +1539,7 @@ async def _async_get_external_reference_by_guid(self, guid: str, element_type: O body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = "ExternalReference", - **kwargs) -> dict | str: + **kwargs: Unpack[GetFilters]) -> dict | str: """Return the properties of a specific external reference. Async version. Parameters @@ -1541,6 +1555,9 @@ async def _async_get_external_reference_by_guid(self, guid: str, element_type: O report_spec: str | dict, optional, default = None The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1594,7 +1611,7 @@ def get_external_reference_by_guid(self, guid: str, element_type: Optional[str] body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = "ExternalReference", - **kwargs) -> dict | str: + **kwargs: Unpack[GetFilters]) -> dict | str: """ Return the properties of a specific external reference. Async version. Parameters @@ -1611,6 +1628,9 @@ def get_external_reference_by_guid(self, guid: str, element_type: Optional[str] The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -2076,7 +2096,7 @@ async def _async_get_external_identifiers_by_name(self, name: str = "*", start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: Optional[str | dict] = "ExternalIdentifier", - **kwargs) -> Any: + **kwargs: Unpack[ListFilters]) -> Any: """ Returns the list of external identifiers with a particular name. Async version. @@ -2100,6 +2120,9 @@ async def _async_get_external_identifiers_by_name(self, name: str = "*", report_spec: str | dict, optional, default = "ExternalIdentifier" The report specification to use. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- Any - list of matching metadata elements or formatted output @@ -2141,7 +2164,7 @@ def get_external_identifiers_by_name(self, name: str = "*", start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: Optional[str | dict] = "ExternalIdentifier", - **kwargs) -> Any: + **kwargs: Unpack[ListFilters]) -> Any: """ Returns the list of external identifiers with a particular name. Parameters @@ -2164,6 +2187,9 @@ def get_external_identifiers_by_name(self, name: str = "*", report_spec: str | dict, optional, default = "ExternalIdentifier" The report specification to use. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- Any - list of matching metadata elements or formatted output @@ -2179,7 +2205,7 @@ async def _async_find_external_identifiers(self, search_string: str = "*", ignore_case: bool = True, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: Optional[str | dict] = "ExternalIdentifier", - **kwargs) -> Any: + **kwargs: Unpack[SearchFilters]) -> Any: """ Retrieve the list of external identifiers metadata elements that contain the search string. Async version. @@ -2212,6 +2238,9 @@ async def _async_find_external_identifiers(self, search_string: str = "*", report_spec: str | dict, optional, default = "ExternalIdentifier" The report specification to use. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- Any - list of matching metadata elements or formatted output @@ -2257,7 +2286,7 @@ def find_external_identifiers(self, search_string: str = "*", ignore_case: bool = True, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: Optional[str | dict] = "ExternalIdentifier", - **kwargs) -> Any: + **kwargs: Unpack[SearchFilters]) -> Any: """ Retrieve the list of external identifiers metadata elements that contain the search string. Parameters @@ -2289,6 +2318,9 @@ def find_external_identifiers(self, search_string: str = "*", report_spec: str | dict, optional, default = "ExternalIdentifier" The report specification to use. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- Any - list of matching metadata elements or formatted output @@ -2303,7 +2335,7 @@ async def _async_get_external_identifiers_by_guid(self, guid: str, body: Optional[dict | GetRequestBody] = None, output_format: str = "JSON", report_spec: Optional[str | dict] = "ExternalIdentifier", - **kwargs) -> Any: + **kwargs: Unpack[GetFilters]) -> Any: """ Return the properties of a specific external identifier. Async version. @@ -2321,6 +2353,9 @@ async def _async_get_external_identifiers_by_guid(self, guid: str, report_spec: str | dict, optional, default = "ExternalIdentifier" The report specification to use. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- Any - the matching metadata element or formatted output @@ -2354,7 +2389,7 @@ def get_external_identifiers_by_guid(self, guid: str, body: Optional[dict | GetRequestBody] = None, output_format: str = "JSON", report_spec: Optional[str | dict] = "ExternalIdentifier", - **kwargs) -> Any: + **kwargs: Unpack[GetFilters]) -> Any: """ Return the properties of a specific external identifier. Parameters @@ -2371,6 +2406,9 @@ def get_external_identifiers_by_guid(self, guid: str, report_spec: str | dict, optional, default = "ExternalIdentifier" The report specification to use. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- Any - the matching metadata element or formatted output diff --git a/pyegeria/omvs/glossary_manager.py b/pyegeria/omvs/glossary_manager.py index 0a190306..6384e726 100644 --- a/pyegeria/omvs/glossary_manager.py +++ b/pyegeria/omvs/glossary_manager.py @@ -15,6 +15,8 @@ from loguru import logger from pydantic import Field +from typing import Unpack +from pyegeria.core.request_filters import GetFilters from pyegeria.core._exceptions import PyegeriaInvalidParameterException, PyegeriaException from pyegeria.core._globals import NO_GUID_RETURNED from pyegeria.core._validators import validate_guid @@ -3463,6 +3465,9 @@ async def _async_find_glossaries( **kwargs : dict, optional Additional parameters supported by the find request. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -3517,7 +3522,11 @@ def find_glossaries( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """Retrieve the list of glossary metadata elements that contain the search string.""" + """Retrieve the list of glossary metadata elements that contain the search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync( self._async_find_glossaries( search_string=search_string, @@ -3851,6 +3860,9 @@ async def _async_find_glossary_terms( **kwargs : dict, optional Additional parameters supported by the find request. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -3906,7 +3918,11 @@ def find_glossary_terms( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """Retrieve the list of glossary term metadata elements that contain the search string.""" + """Retrieve the list of glossary term metadata elements that contain the search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync( self._async_find_glossary_terms( search_string=search_string, @@ -3930,7 +3946,7 @@ def find_glossary_terms( ) ) - async def _async_get_glossary_for_term(self, term_guid: str) -> dict: + async def _async_get_glossary_for_term(self, term_guid: str, **kwargs: Unpack[GetFilters]) -> dict: """Returns the glossary containing the term with the supplied GUID. Async version. Parameters @@ -3938,6 +3954,9 @@ async def _async_get_glossary_for_term(self, term_guid: str) -> dict: term_guid : str The unique identifier of the term to find the glossary for. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict @@ -3948,7 +3967,7 @@ async def _async_get_glossary_for_term(self, term_guid: str) -> dict: PyegeriaException If the term is not found, or it is not anchored to any glossary. """ - term = await self._async_get_term_by_guid(term_guid, output_format="JSON") + term = await self._async_get_term_by_guid(term_guid, output_format="JSON", **kwargs) if not isinstance(term, dict): raise PyegeriaException("Term not found or invalid format returned") @@ -3962,10 +3981,10 @@ async def _async_get_glossary_for_term(self, term_guid: str) -> dict: if not glossary_guid: raise PyegeriaException(f"Term '{term_guid}' is not anchored to any glossary") - return await self._async_get_glossary_by_guid(glossary_guid) + return await self._async_get_glossary_by_guid(glossary_guid, **kwargs) @dynamic_catch - def get_glossary_for_term(self, term_guid: str) -> dict: + def get_glossary_for_term(self, term_guid: str, **kwargs: Unpack[GetFilters]) -> dict: """Returns the glossary containing the term with the supplied GUID. Parameters @@ -3973,6 +3992,9 @@ def get_glossary_for_term(self, term_guid: str) -> dict: term_guid : str The unique identifier of the term to find the glossary for. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict @@ -3983,7 +4005,7 @@ def get_glossary_for_term(self, term_guid: str) -> dict: PyegeriaException If the term is not found, or it is not anchored to any glossary. """ - return run_sync(self._async_get_glossary_for_term(term_guid)) + return run_sync(self._async_get_glossary_for_term(term_guid, **kwargs)) # # Naming standards classifications (0438) -- Egeria PR #9166. Simple marker diff --git a/pyegeria/omvs/governance_officer.py b/pyegeria/omvs/governance_officer.py index 6a5232a8..6e714a39 100644 --- a/pyegeria/omvs/governance_officer.py +++ b/pyegeria/omvs/governance_officer.py @@ -15,6 +15,8 @@ from loguru import logger from pydantic import Field +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core._server_client import ServerClient from pyegeria.view.base_report_formats import select_report_spec, get_report_spec_match from pyegeria.view.output_formatter import ( @@ -2107,7 +2109,7 @@ async def _async_find_governance_definitions( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of governance definition metadata elements that contain the search string. Async Version. @@ -2164,6 +2166,9 @@ async def _async_find_governance_definitions( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -2221,7 +2226,7 @@ def find_governance_definitions( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of governance definition metadata elements that contain the search string. @@ -2278,6 +2283,9 @@ def find_governance_definitions( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -2323,7 +2331,7 @@ async def _async_find_governance_action_processes( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of governance action process metadata elements that contain the search string. Async Version. @@ -2351,6 +2359,9 @@ async def _async_find_governance_action_processes( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -2384,9 +2395,13 @@ def find_governance_action_processes( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: - """ Retrieve the list of governance action process metadata elements that contain the search string.""" + """ Retrieve the list of governance action process metadata elements that contain the search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync( self._async_find_governance_action_processes( search_string=search_string, @@ -2494,7 +2509,7 @@ async def _async_get_governance_definitions_by_name(self, name: Optional[str] = start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[ListFilters]) -> list | str: """ Returns the list of governance definitions with a particular name. Async Version. Parameters @@ -2511,6 +2526,9 @@ async def _async_get_governance_definitions_by_name(self, name: Optional[str] = REPORT - output markdown with a preamble for a report MERMAID - output mermaid markdown + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2574,7 +2592,7 @@ def get_governance_definitions_by_name(self, name: Optional[str] = None, classif start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[ListFilters]) -> list | str: """ Returns the list of governance definitions with a particular name. Parameters @@ -2598,6 +2616,9 @@ def get_governance_definitions_by_name(self, name: Optional[str] = None, classif REPORT - output markdown with a preamble for a report MERMAID - output mermaid markdown + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2641,7 +2662,7 @@ async def _async_get_governance_definition_by_guid(self, guid: str, body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[GetFilters]) -> list | str: """ Returns the governance definitions with a particular GUID. Async Version. Parameters @@ -2658,6 +2679,9 @@ async def _async_get_governance_definition_by_guid(self, guid: str, REPORT - output markdown with a preamble for a report MERMAID - output mermaid markdown + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2722,7 +2746,7 @@ def get_governance_definition_by_guid(self, guid: str, body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[GetFilters]) -> list | str: """ Returns the a governance definitions with a particular GUID. Parameters @@ -2742,6 +2766,9 @@ def get_governance_definition_by_guid(self, guid: str, REPORT - output markdown with a preamble for a report MERMAID - output mermaid markdown + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2786,7 +2813,7 @@ async def _async_get_gov_def_in_context(self, guid: str, body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[GetFilters]) -> list | str: """ Returns the governance definitions in context. Async Version. Parameters @@ -2803,6 +2830,9 @@ async def _async_get_gov_def_in_context(self, guid: str, REPORT - output markdown with a preamble for a report MERMAID - output mermaid markdown + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -2826,7 +2856,7 @@ def get_gov_def_in_context(self, guid: str, body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[GetFilters]) -> list | str: """ Returns the governance definitions in context. Parameters @@ -2845,6 +2875,9 @@ def get_gov_def_in_context(self, guid: str, FORM - output markdown with a preamble for a form REPORT - output markdown with a preamble for a report MERMAID - output mermaid markdown + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). """ response = run_sync( self._async_get_gov_def_in_context(guid=guid, element_type=element_type, body=body, @@ -2859,7 +2892,7 @@ def get_gov_def_in_context(self, guid: str, async def _async_get_governance_action_process_graph(self, guid: str, element_type: Optional[str] = None, body: Optional[dict | FilterRequestBody] = None, output_format: str = "JSON", - report_spec: dict = None, **kwargs) -> dict | str: + report_spec: dict = None, **kwargs: Unpack[GetFilters]) -> dict | str: """ Retrieve the governance action process metadata element with the supplied unique identifier along with the flow definition describing its implementation. Async version. @@ -2874,6 +2907,9 @@ async def _async_get_governance_action_process_graph(self, guid: str, element_ty output_format: str The output format to use. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- @@ -2924,7 +2960,7 @@ async def _async_get_governance_action_process_graph(self, guid: str, element_ty @dynamic_catch def get_governance_action_process_graph(self, guid: str, element_type: Optional[str] = None, body: dict = None, output_format: str = "JSON", - report_spec: dict = None, **kwargs) -> dict | str: + report_spec: dict = None, **kwargs: Unpack[GetFilters]) -> dict | str: """ Retrieve the governance action process metadata element with the supplied unique identifier along with the flow definition describing its implementation. @@ -2939,6 +2975,9 @@ def get_governance_action_process_graph(self, guid: str, element_type: Optional[ output_format: str, default = "JSON" The output format to use. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- @@ -2982,7 +3021,7 @@ async def _async_get_governance_action_process( output_format: str = "JSON", report_spec: str | dict = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | list | str: """Retrieve the governance action process metadata element with the supplied unique identifier. Async version. @@ -2999,6 +3038,9 @@ async def _async_get_governance_action_process( body : dict | GetRequestBody, optional The request body. Defaults to None. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | list | str @@ -3023,7 +3065,7 @@ def get_governance_action_process( output_format: str = "JSON", report_spec: str | dict = None, body: dict | GetRequestBody | None = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | list | str: """Retrieve the governance action process metadata element with the supplied unique identifier. @@ -3040,6 +3082,9 @@ def get_governance_action_process( body : dict | GetRequestBody, optional The request body. Defaults to None. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | list | str diff --git a/pyegeria/omvs/location_arena.py b/pyegeria/omvs/location_arena.py index 188dfc48..d770b942 100644 --- a/pyegeria/omvs/location_arena.py +++ b/pyegeria/omvs/location_arena.py @@ -1018,6 +1018,9 @@ async def _async_find_locations( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -1114,6 +1117,9 @@ def find_locations( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -1184,6 +1190,9 @@ async def _async_get_locations_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1264,6 +1273,9 @@ def get_locations_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -1327,6 +1339,9 @@ async def _async_get_location_by_guid( body: dict | GetRequestBody, optional full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1381,6 +1396,9 @@ def get_location_by_guid( body: dict | GetRequestBody, optional full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str diff --git a/pyegeria/omvs/metadata_expert.py b/pyegeria/omvs/metadata_expert.py index 1236fe15..5b139be7 100644 --- a/pyegeria/omvs/metadata_expert.py +++ b/pyegeria/omvs/metadata_expert.py @@ -9,6 +9,9 @@ from loguru import logger from typing import Any, Optional, Union, Dict, List from httpx import Response +from typing import Unpack +from pyegeria.core.request_filters import FindFilters +from pyegeria.core.request_filters import filter_body_kwargs from pyegeria.models import (NewOpenMetadataElementRequestBody, TemplateRequestBody, UpdatePropertiesRequestBody, MetadataSourceRequestBody, ReIdentifyRequestBody, ReTypeRequestBody, ReHomeRequestBody, @@ -1446,6 +1449,9 @@ async def _async_get_metadata_element_by_guid( body: dict | GetRequestBody, default = None - details of the request supersede parameters. Body, if present overrides parameters. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1487,7 +1493,7 @@ async def _async_get_metadata_element_by_guid( response = await self._async_get_guid_request(url=url, _type="Referenceable", _gen_output=self._generate_referenceable_output, output_format=output_format, - report_spec=None, body=body) + report_spec=None, body=body, **kwargs) return response @dynamic_catch @@ -1512,6 +1518,9 @@ def get_metadata_element_by_guid( body: dict | GetRequestBody, default = None - details of the request supersede parameters. Body, if present overrides parameters. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1554,6 +1563,9 @@ async def _async_get_anchored_element_graph(self, guid: Optional[str] = None, as body: dict | GetRequestBody, default = None - details of the request supersede parameters. Body, if present, overrides parameters. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1597,7 +1609,7 @@ async def _async_get_anchored_element_graph(self, guid: Optional[str] = None, as ) response = await self._async_get_guid_request( url=url, _type="Referenceable", _gen_output=self._generate_referenceable_output, - output_format="JSON", report_spec=None, body=body + output_format="JSON", report_spec=None, body=body, **kwargs ) if mermaid_only: return response.get("mermaidGraph", "No Mermaid Graph Found") @@ -1624,6 +1636,9 @@ def get_anchored_element_graph( body: dict | GetRequestBody, default = None - details of the request supersede parameters. Body, if present, overrides parameters. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -2238,6 +2253,9 @@ async def _async_find_metadata_elements_with_string(self, search_string: str = " body (SearchStringRequestBody | dict | None): A payload containing additional search parameters or overrides. Defaults to None. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns: list | str: Returns the search results as a list of metadata elements, or as a string in cases where the output is serialized in text format. @@ -2334,6 +2352,9 @@ def find_metadata_elements_with_string(self, search_string: str = "*", starts_wi body (SearchStringRequestBody | dict | None): A payload containing additional search parameters or overrides. Defaults to None. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns: list | str: Returns the search results as a list of metadata elements, or as a string in cases where the output is serialized in text format. @@ -2421,6 +2442,9 @@ async def _async_find_elements_for_anchor(self, guid: Optional[str] = None, sear body (SearchStringRequestBody | dict | None): A payload containing additional search parameters or overrides. Defaults to None. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns: list | str: Returns the search results as a list of metadata elements, or as a string in cases where the output is serialized in text format. @@ -2516,6 +2540,9 @@ def find_elements_for_anchor(self, guid: Optional[str] = None, search_string: st body (SearchStringRequestBody | dict | None): A payload containing additional search parameters or overrides. Defaults to None. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns: list | str: Returns the search results as a list of metadata elements, or as a string in cases where the output is serialized in text format. @@ -2602,6 +2629,9 @@ async def _async_find_elements_in_anchor_domain(self, search_string: str = "*", body (SearchStringRequestBody | dict | None): A payload containing additional search parameters or overrides. Defaults to None. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns: list | str: Returns the search results as a list of metadata elements, or as a string in cases where the output is serialized in text format. @@ -2697,6 +2727,9 @@ def find_elements_in_anchor_domain(self, search_string: str = "*", starts_with: body (SearchStringRequestBody | dict | None): A payload containing additional search parameters or overrides. Defaults to None. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns: list | str: Returns the search results as a list of metadata elements, or as a string in cases where the output is serialized in text format. @@ -2785,6 +2818,9 @@ async def _async_find_elements_in_anchor_scope(self, guid: Optional[str] = None, body (SearchStringRequestBody | dict | None): A payload containing additional search parameters or overrides. Defaults to None. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns: list | str: Returns the search results as a list of metadata elements, or as a string in cases where the output is serialized in text format. @@ -2883,6 +2919,9 @@ def find_elements_in_anchor_scope(self, guid: Optional[str] = None, search_strin body (SearchStringRequestBody | dict | None): A payload containing additional search parameters or overrides. Defaults to None. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns: list | str: Returns the search results as a list of metadata elements, or as a string in cases where the output is serialized in text format. @@ -3576,7 +3615,7 @@ async def _async_find_metadata_elements( self, body: Optional[dict] = None, timeout: int = default_timeout, - **kwargs, + **kwargs: Unpack[FindFilters], ) -> list | str: """Return a list of metadata elements that match the supplied criteria. The results can be returned over many pages. Async version. @@ -3618,6 +3657,9 @@ async def _async_find_metadata_elements( `search_properties`, `match_classifications`, `effective_time`, `limit_results_by_status`, `as_of_time`, `sequencing_order`, `sequencing_property`, `start_from`, `page_size`. + Accepts the standard find filters as keyword arguments (see ``FindFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -3690,21 +3732,11 @@ async def _async_find_metadata_elements( """ if body is None: - body = { - "class": "FindRequestBody", - "metadataElementTypeName": kwargs.get("metadata_element_type_name"), - "metadataElementSubtypeNames": kwargs.get("metadata_element_subtype_names"), - "skipSubtypes": kwargs.get("skip_subtypes"), - "searchProperties": kwargs.get("search_properties"), - "matchClassifications": kwargs.get("match_classifications"), - "effectiveTime": kwargs.get("effective_time"), - "limitResultsByStatus": kwargs.get("limit_results_by_status"), - "asOfTime": kwargs.get("as_of_time"), - "sequencingOrder": kwargs.get("sequencing_order"), - "sequencingProperty": kwargs.get("sequencing_property"), - "startFrom": kwargs.get("start_from"), - "pageSize": kwargs.get("page_size"), - } + # Every FindRequestBody field may be given as a keyword (snake_case, or the + # metadata_element_type / metadata_element_subtypes spellings); unknown names warn. + body = {"class": "FindRequestBody", **filter_body_kwargs("find", kwargs)} + elif kwargs: + filter_body_kwargs("find", kwargs) # body wins; still warn about misspelt names url = f"{base_path(self, self.view_server)}/metadata-elements/by-search-conditions" @@ -3727,7 +3759,7 @@ def find_metadata_elements( self, body: Optional[dict] = None, timeout: int = default_timeout, - **kwargs, + **kwargs: Unpack[FindFilters], ) -> list | str: """ Retrieve the relationships linking the supplied elements. @@ -3747,6 +3779,9 @@ def find_metadata_elements( **kwargs: - Backward compatibility parameters for individual criteria if `body` is not provided. + Accepts the standard find filters as keyword arguments (see ``FindFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str diff --git a/pyegeria/omvs/my_profile.py b/pyegeria/omvs/my_profile.py index 721c0be7..3163c725 100644 --- a/pyegeria/omvs/my_profile.py +++ b/pyegeria/omvs/my_profile.py @@ -11,6 +11,8 @@ from loguru import logger from typing import Any, Optional +from typing import Unpack +from pyegeria.core.request_filters import ListFilters from pyegeria import NO_ELEMENTS_FOUND, PyegeriaInvalidParameterException from pyegeria.omvs.asset_maker import AssetMaker from pyegeria.core._validators import validate_name @@ -668,9 +670,13 @@ async def _async_get_my_actors( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: - """Return the list of actors linked to the user's profile. Async version.""" + """Return the list of actors linked to the user's profile. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.my_profile_command_root}/actors" # filter_results_by_type=False: "ActorProfile" is only a rendering hint. The # endpoint's .http example sends no type filter, and sending one made every @@ -700,9 +706,13 @@ def get_my_actors( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: - """Return the list of actors linked to the user's profile.""" + """Return the list of actors linked to the user's profile. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_my_actors( graph_query_depth=graph_query_depth, @@ -724,9 +734,13 @@ async def _async_get_my_user_identities( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: - """Return the list of user identities linked to the user's profile. Async version.""" + """Return the list of user identities linked to the user's profile. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.my_profile_command_root}/actors/user-identities" # filter_results_by_type=False: "UserIdentity" is only a rendering hint. The # endpoint's .http example sends no type filter, and with one the server @@ -755,9 +769,13 @@ def get_my_user_identities( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: - """Return the list of user identities linked to the user's profile.""" + """Return the list of user identities linked to the user's profile. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_my_user_identities( graph_query_depth=graph_query_depth, @@ -779,9 +797,13 @@ async def _async_get_my_roles( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: - """Return the list of assigned roles linked to the user's profile. Async version.""" + """Return the list of assigned roles linked to the user's profile. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.my_profile_command_root}/actors/assigned-roles" # filter_results_by_type=False: "GovernanceRole" is only a rendering hint. The # endpoint's .http example sends no type filter, and with one the server @@ -810,9 +832,13 @@ def get_my_roles( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: - """Return the list of assigned roles linked to the user's profile.""" + """Return the list of assigned roles linked to the user's profile. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_my_roles( graph_query_depth=graph_query_depth, @@ -834,9 +860,13 @@ async def _async_get_my_resources( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: - """Return the list of assigned resources linked to the user's profile. Async version.""" + """Return the list of assigned resources linked to the user's profile. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.my_profile_command_root}/assigned-resources?includeUserIds=true&includeRoles=true" # filter_results_by_type=False: "Resource" is only a rendering hint, not an # Egeria type. Sent as metadataElementTypeName it made every call fail with @@ -866,9 +896,13 @@ def get_my_resources( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | ResultsRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: - """Return the list of assigned resources linked to the user's profile.""" + """Return the list of assigned resources linked to the user's profile. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_my_resources( graph_query_depth=graph_query_depth, @@ -897,7 +931,11 @@ async def _async_get_my_assigned_actions( body: Optional[dict | ActivityStatusRequestBody] = None, **kwargs, ) -> list | str: - """Get assigned actions for the user profile. Async version.""" + """Get assigned actions for the user profile. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.my_profile_command_root}/assigned-actions?includeUserIds=true&includeRoles=true" # metadata_element_type/metadata_element_subtypes are intentionally NOT # forwarded into the request body here. The real ActivityStatusRequestBody/ @@ -951,7 +989,11 @@ def get_my_assigned_actions( body: Optional[dict | ActivityStatusRequestBody] = None, **kwargs, ) -> list | str: - """Get assigned actions for the user profile.""" + """Get assigned actions for the user profile. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_my_assigned_actions( metadata_element_type=metadata_element_type, @@ -983,7 +1025,11 @@ async def _async_get_my_sponsored_actions( body: Optional[dict | ActivityStatusRequestBody] = None, **kwargs, ) -> list | str: - """Get actions sponsored by the user profile. Async version.""" + """Get actions sponsored by the user profile. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.my_profile_command_root}/sponsored-actions?includeUserIds=true&includeRoles=true" return await self._async_activity_status_request( url, @@ -1015,7 +1061,11 @@ def get_my_sponsored_actions( body: Optional[dict | ActivityStatusRequestBody] = None, **kwargs, ) -> list | str: - """Get actions sponsored by the user profile.""" + """Get actions sponsored by the user profile. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_my_sponsored_actions( activity_status_list=activity_status_list, @@ -1045,7 +1095,11 @@ async def _async_get_my_requested_actions( body: Optional[dict | ActivityStatusRequestBody] = None, **kwargs, ) -> list | str: - """Get actions requested by the user profile. Async version.""" + """Get actions requested by the user profile. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.my_profile_command_root}/requested-actions?includeUserIds=true&includeRoles=true" return await self._async_activity_status_request( url, @@ -1077,7 +1131,11 @@ def get_my_requested_actions( body: Optional[dict | ActivityStatusRequestBody] = None, **kwargs, ) -> list | str: - """Get actions requested by the user profile.""" + """Get actions requested by the user profile. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_my_requested_actions( activity_status_list=activity_status_list, @@ -1574,7 +1632,11 @@ async def _async_get_my_to_dos( page_size: int = 100, **kwargs, ) -> list | str: - """find To-Do items. Async version.""" + """find To-Do items. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return await self._async_get_my_assigned_actions( metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, @@ -1598,7 +1660,11 @@ def get_my_to_dos( page_size: int = 100, **kwargs, ) -> list | str: - """find To-Do items.""" + """find To-Do items. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return self.get_my_assigned_actions( metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, diff --git a/pyegeria/omvs/product_catalog.py b/pyegeria/omvs/product_catalog.py index d814da35..6b3b7151 100644 --- a/pyegeria/omvs/product_catalog.py +++ b/pyegeria/omvs/product_catalog.py @@ -11,6 +11,8 @@ import asyncio from typing import Optional +from typing import Unpack +from pyegeria.core.request_filters import SearchFilters from pyegeria.core.utils import dynamic_catch from pyegeria.models import SearchStringRequestBody from pyegeria.omvs.collection_manager import CollectionManager @@ -46,7 +48,7 @@ async def _async_find_digital_product_catalogs( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | SearchStringRequestBody] = None, - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Find digital product catalogs, or the products in them, through the product-catalog view service. Async version. @@ -68,6 +70,9 @@ async def _async_find_digital_product_catalogs( body : dict | SearchStringRequestBody, optional A full request body, used instead of the arguments above. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -102,10 +107,14 @@ def find_digital_product_catalogs( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | SearchStringRequestBody] = None, - **kwargs, + **kwargs: Unpack[SearchFilters], ) -> list | str: """Find digital product catalogs, or the products in them ("DigitalProduct"), through the - product-catalog view service. See _async_find_digital_product_catalogs for the parameters.""" + product-catalog view service. See _async_find_digital_product_catalogs for the parameters. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync(self._async_find_digital_product_catalogs( search_string, metadata_element_type_name, starts_with, ends_with, ignore_case, start_from, page_size, output_format, report_spec, body, **kwargs)) diff --git a/pyegeria/omvs/product_manager.py b/pyegeria/omvs/product_manager.py index 19674de0..aa701fa4 100644 --- a/pyegeria/omvs/product_manager.py +++ b/pyegeria/omvs/product_manager.py @@ -11,6 +11,8 @@ import asyncio from typing import Optional +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.omvs.collection_manager import CollectionManager from pyegeria.core._server_client import ServerClient from pyegeria.models import ( @@ -378,7 +380,7 @@ async def _async_get_digital_product_by_guid( body: Optional[dict] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Return the properties of a specific digital product. Async version. @@ -393,6 +395,9 @@ async def _async_get_digital_product_by_guid( report_spec : str | dict, optional The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -439,7 +444,7 @@ def get_digital_product_by_guid( body: Optional[dict] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Return the properties of a specific digital product. Sync version. @@ -454,6 +459,9 @@ def get_digital_product_by_guid( report_spec : str | dict, optional The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -481,7 +489,7 @@ async def _async_get_digital_products_by_name( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Returns the list of digital products with a particular name. Async version. @@ -502,6 +510,9 @@ async def _async_get_digital_products_by_name( report_spec : str | dict, optional The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -521,7 +532,7 @@ async def _async_get_digital_products_by_name( classification_names=classification_names, start_from=start_from, page_size=page_size, graph_query_depth=graph_query_depth, output_format=output_format, - report_spec=report_spec, body=body) + report_spec=report_spec, body=body, **kwargs) return response def get_digital_products_by_name( @@ -533,7 +544,7 @@ def get_digital_products_by_name( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Returns the list of digital products with a particular name. Sync version. @@ -554,6 +565,9 @@ def get_digital_products_by_name( report_spec : str | dict, optional The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -584,7 +598,7 @@ async def _async_find_digital_products( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, metadata_element_subtype: Optional[list[str]] = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """Returns the list of digital products matching the search string. Async version. @@ -641,6 +655,9 @@ async def _async_find_digital_products( body : dict, optional If provided, the search parameters in the body supersede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -691,7 +708,7 @@ def find_digital_products( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, metadata_element_subtype: Optional[list[str]] = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """Returns the list of digital products matching the search string. Sync version. @@ -748,6 +765,9 @@ def find_digital_products( body : dict, optional If provided, the search parameters in the body supersede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -1378,7 +1398,7 @@ async def _async_get_digital_product_catalog_by_guid( body: Optional[dict] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Return the properties of a specific digital product catalog by GUID. Async version. @@ -1393,6 +1413,9 @@ async def _async_get_digital_product_catalog_by_guid( report_spec : str | dict, optional Report specification for formatting. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1432,7 +1455,7 @@ def get_digital_product_catalog_by_guid( body: Optional[dict] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Return the properties of a specific digital product catalog by GUID. Sync version. @@ -1447,6 +1470,9 @@ def get_digital_product_catalog_by_guid( report_spec : str | dict, optional Report specification for formatting. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1474,7 +1500,7 @@ async def _async_get_digital_product_catalogs_by_name( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Returns the list of digital product catalogs with a particular name. Async version. @@ -1495,6 +1521,9 @@ async def _async_get_digital_product_catalogs_by_name( report_spec : str | dict, optional Report specification for formatting. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -1513,7 +1542,7 @@ async def _async_get_digital_product_catalogs_by_name( classification_names=classification_names, start_from=start_from, page_size=page_size, graph_query_depth=graph_query_depth, output_format=output_format, - report_spec=report_spec, body=body) + report_spec=report_spec, body=body, **kwargs) return response def get_digital_product_catalogs_by_name( @@ -1525,7 +1554,7 @@ def get_digital_product_catalogs_by_name( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Returns the list of digital product catalogs with a particular name. Sync version. @@ -1546,6 +1575,9 @@ def get_digital_product_catalogs_by_name( report_spec : str | dict, optional Report specification for formatting. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -1575,7 +1607,7 @@ async def _async_find_digital_product_catalogs( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """Returns the list of digital product catalogs matching the search string. Async version. @@ -1632,6 +1664,9 @@ async def _async_find_digital_product_catalogs( body : dict, optional Request body for additional parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -1676,7 +1711,7 @@ def find_digital_product_catalogs( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """Returns the list of digital product catalogs matching the search string. Sync version. @@ -1733,6 +1768,9 @@ def find_digital_product_catalogs( body : dict, optional Request body for additional parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -2055,7 +2093,7 @@ async def _async_get_governance_action_processes_by_name( page_size: int = 0, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Retrieve the governance action processes with a matching qualified or display name, from the Product Catalog view service (`/product-catalog/governance-definitions/by-name`). A digital product's @@ -2079,6 +2117,9 @@ async def _async_get_governance_action_processes_by_name( report_spec : str | dict, optional The desired output columns/fields. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -2100,10 +2141,14 @@ def get_governance_action_processes_by_name( page_size: int = 0, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Retrieve the governance action processes with a matching qualified or display name (for example a - digital product's subscription types).""" + digital product's subscription types). + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync(self._async_get_governance_action_processes_by_name( name, body=body, start_from=start_from, page_size=page_size, output_format=output_format, report_spec=report_spec, **kwargs)) diff --git a/pyegeria/omvs/project_manager.py b/pyegeria/omvs/project_manager.py index 51d53a9f..592ecded 100644 --- a/pyegeria/omvs/project_manager.py +++ b/pyegeria/omvs/project_manager.py @@ -10,6 +10,8 @@ import asyncio from typing import Any, Optional +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters from pyegeria.core._globals import NO_ELEMENTS_FOUND from pyegeria.core._server_client import ServerClient from pyegeria.models import (SearchStringRequestBody, FilterRequestBody, GetRequestBody, NewElementRequestBody, @@ -98,7 +100,7 @@ async def _async_get_linked_projects( body: Optional[dict | GetRequestBody] = None, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> list | str: """Returns the list of projects that are linked off of the supplied element. Any relationship will do. The request body is optional, but if supplied acts as a filter on project status. Async version. @@ -119,6 +121,9 @@ async def _async_get_linked_projects( page_size: int, [default=None] The number of items to return in a single page. If not specified, the default will be taken from the class instance. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -156,7 +161,7 @@ def get_linked_projects( body: Optional[dict | GetRequestBody] = None, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> str | dict: + **kwargs: Unpack[GetFilters]) -> str | dict: """Returns the list of projects that are linked off of the supplied element. Any relationship will do. The request body is optional, but if supplied acts as a filter on project status. @@ -179,6 +184,9 @@ def get_linked_projects( page_size: int, [default=None] The number of items to return in a single page. If not specified, the default will be taken from the class instance. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -216,7 +224,7 @@ async def _async_get_classified_projects( output_format: str = 'JSON', report_spec: str | dict = None, body: Optional[dict | GetRequestBody] = None, - **kwargs) -> str | dict: + **kwargs: Unpack[ListFilters]) -> str | dict: """Returns the list of projects with a particular classification. The name of the classification is supplied in the request body. Examples of these classifications include StudyProject, PersonalProject, @@ -231,6 +239,9 @@ async def _async_get_classified_projects( page_size: int, [default=None] The number of items to return in a single page. If not specified, the default will be taken from the class instance. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -268,7 +279,7 @@ def get_classified_projects( output_format: str = 'JSON', report_spec: str | dict = None, body: Optional[dict | GetRequestBody] = None, - **kwargs + **kwargs: Unpack[ListFilters] ) -> str | dict: """Returns the list of projects with a particular classification. The name of the classification is supplied in the request body. Examples of these classifications include StudyProject, PersonalProject, @@ -286,6 +297,9 @@ def get_classified_projects( page_size: int, [default=None] The number of items to return in a single page. If not specified, the default will be taken from the class instance. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -897,6 +911,9 @@ async def _async_find_projects( **kwargs : dict, optional Additional parameters supported by the find request. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -952,7 +969,11 @@ def find_projects( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """ Retrieve the list of project metadata elements that contain the search string. """ + """ Retrieve the list of project metadata elements that contain the search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync( self._async_find_projects( search_string=search_string, @@ -1060,7 +1081,11 @@ async def _async_get_project_by_guid( body: Optional[dict | GetRequestBody] = None, **kwargs, ) -> dict | str: - """Return the properties of a specific project. Async version.""" + """Return the properties of a specific project. Async version. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/project-manager/projects/{project_guid}" @@ -1091,7 +1116,11 @@ def get_project_by_guid( body: Optional[dict | GetRequestBody] = None, **kwargs, ) -> dict | str: - """Return the properties of a specific project.""" + """Return the properties of a specific project. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ resp = run_sync( self._async_get_project_by_guid( project_guid=project_guid, @@ -1115,7 +1144,7 @@ async def _async_get_project_graph( body: Optional[dict | GetRequestBody] = None, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | str: """Return the mermaid graph of a specific project. Async version. @@ -1126,6 +1155,9 @@ async def _async_get_project_graph( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- str @@ -1161,7 +1193,7 @@ def get_project_graph( body: Optional[dict | GetRequestBody] = None, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[GetFilters] ) -> dict | str: """Return the mermaid graph of a specific project. Async version. @@ -1172,6 +1204,9 @@ def get_project_graph( body: dict | GetRequestBody, optional, default = None full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- str diff --git a/pyegeria/omvs/reference_data.py b/pyegeria/omvs/reference_data.py index 9c4e5656..0b46ff1d 100644 --- a/pyegeria/omvs/reference_data.py +++ b/pyegeria/omvs/reference_data.py @@ -10,6 +10,8 @@ import asyncio from typing import Any, Optional +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.view.base_report_formats import select_report_spec from pyegeria.core._server_client import ServerClient from pyegeria.view.base_report_formats import get_report_spec_match @@ -156,7 +158,7 @@ async def _async_find_valid_value_definitions( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Returns the list of valid value definitions matching the search string. The search string is located in the request body and is interpreted as a plain string. @@ -185,6 +187,9 @@ async def _async_find_valid_value_definitions( page_size: int, [default=None] The number of items to return in a single page. If not specified, the default will be taken from the class instance. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -237,7 +242,7 @@ def find_valid_value_definitions( graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Returns the list of valid value definitions matching the search string. @@ -262,6 +267,9 @@ def find_valid_value_definitions( page_size: int, [default=None] The number of items to return in a single page. If not specified, the default will be taken from the class instance. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -301,7 +309,7 @@ async def _async_get_valid_value_definitions_by_name( start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[ListFilters]) -> list | str: if name is None and "filter_string" in kwargs: name = kwargs.pop("filter_string") @@ -332,7 +340,7 @@ def get_valid_value_definitions_by_name( start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> list | str: + **kwargs: Unpack[ListFilters]) -> list | str: resp = run_sync( self._async_get_valid_value_definitions_by_name( @@ -354,7 +362,7 @@ async def _async_get_valid_value_definition_by_guid(self, guid: str, element_typ body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> dict | str: + **kwargs: Unpack[GetFilters]) -> dict | str: """Return the properties of a specific project. Async version. Parameters @@ -370,6 +378,9 @@ async def _async_get_valid_value_definition_by_guid(self, guid: str, element_typ report_spec: str | dict, optional, default = None The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -418,7 +429,7 @@ def get_valid_value_definition_by_guid(self, guid: str, element_type: Optional[s body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, - **kwargs) -> dict | str: + **kwargs: Unpack[GetFilters]) -> dict | str: """Return the properties of a specific project. Parameters @@ -434,6 +445,9 @@ def get_valid_value_definition_by_guid(self, guid: str, element_type: Optional[s report_spec: str | dict, optional, default = None The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str diff --git a/pyegeria/omvs/runtime_manager.py b/pyegeria/omvs/runtime_manager.py index 46453d21..0578069d 100644 --- a/pyegeria/omvs/runtime_manager.py +++ b/pyegeria/omvs/runtime_manager.py @@ -10,6 +10,8 @@ from loguru import logger from requests import Response +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters from pyegeria.core.utils import body_slimmer, dynamic_catch from pyegeria.core._server_client import ServerClient from pyegeria.core._globals import max_paging_size, default_timeout, NO_ELEMENTS_FOUND @@ -2027,7 +2029,7 @@ def get_platforms_by_name( page_size: int = max_paging_size, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Platforms", - body: Optional[dict | FilterRequestBody] = None, + body: Optional[dict | FilterRequestBody] = None, **kwargs: Unpack[ListFilters], ) -> str | list | dict: """Returns the list of platforms with a particular name. The name is specified in the filter. @@ -2048,6 +2050,9 @@ def get_platforms_by_name( body : dict | FilterRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- Response @@ -2061,7 +2066,7 @@ def get_platforms_by_name( graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, - body=body + body=body, **kwargs ) ) return response @@ -2074,7 +2079,7 @@ async def _async_get_platforms_by_name( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Platforms", - body: Optional[dict | FilterRequestBody] = None, + body: Optional[dict | FilterRequestBody] = None, **kwargs: Unpack[ListFilters], ) -> str | list | dict: """Returns the list of platforms with a particular name. The name is specified in the filter. Async version. @@ -2097,6 +2102,9 @@ async def _async_get_platforms_by_name( body : dict | FilterRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- Response @@ -2121,7 +2129,7 @@ async def _async_get_platforms_by_name( filter_string=filter_string, start_from=start_from, page_size=page_size, graph_query_depth=graph_query_depth, output_format=output_format, - report_spec=report_spec, body=body) + report_spec=report_spec, body=body, **kwargs) @dynamic_catch async def _async_get_platforms_by_type( @@ -2131,7 +2139,7 @@ async def _async_get_platforms_by_type( page_size: int = max_paging_size, output_format: str = "JSON", report_spec: str | dict = "Platforms", - body: Optional[dict | FilterRequestBody] = None, + body: Optional[dict | FilterRequestBody] = None, **kwargs: Unpack[ListFilters], ) -> str | list | dict: """Returns the list of platforms with a particular deployed implementation type. The value is specified in the filter. If it is null, or no request body is supplied, all platforms are returned. Async version. @@ -2154,6 +2162,9 @@ async def _async_get_platforms_by_type( body : dict | GetRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- Response @@ -2177,7 +2188,7 @@ async def _async_get_platforms_by_type( return await self._async_get_name_request(url, _type="Platforms", _gen_output=self._generate_platform_output, filter_string=filter_string, start_from=start_from, page_size=page_size, output_format=output_format, - report_spec=report_spec, body=body) + report_spec=report_spec, body=body, **kwargs) def get_platforms_by_type( self, @@ -2186,7 +2197,7 @@ def get_platforms_by_type( page_size: int = max_paging_size, output_format: str = "JSON", report_spec: str | dict = "Platforms", - body: Optional[dict | GetRequestBody] = None, + body: Optional[dict | GetRequestBody] = None, **kwargs: Unpack[ListFilters], ) -> str | list | dict: """Returns the list of platforms with a particular deployed implementation type. The value is specified in the filter. If it is null, or no request body is supplied, all platforms are returned. @@ -2208,6 +2219,9 @@ def get_platforms_by_type( body : dict, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- A list of JSON dict with the platform reports. @@ -2226,7 +2240,7 @@ def get_platforms_by_type( page_size=page_size, output_format=output_format, report_spec=report_spec, - body=body + body=body, **kwargs ) ) @@ -2237,7 +2251,7 @@ async def _async_get_platform_templates_by_type( start_from: int = 0, page_size: int = max_paging_size, output_format: str = "JSON", report_spec: str | dict = "Platforms", - body: Optional[dict | FilterRequestBody] = None, + body: Optional[dict | FilterRequestBody] = None, **kwargs, ) -> str | list: """Returns the list of platform templates for a particular deployed implementation type. The value is specified in the filter. If it is null, or no request body is supplied, all platforms are returned. @@ -2261,6 +2275,9 @@ async def _async_get_platform_templates_by_type( body : dict | FilterRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSON dict with the platform reports. @@ -2284,7 +2301,7 @@ async def _async_get_platform_templates_by_type( return await self._async_get_name_request(url, _type="Platforms", _gen_output=self._generate_platform_output, filter_string=filter_string, classification_names=["Template"], start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body) + output_format=output_format, report_spec=report_spec, body=body, **kwargs) def get_platform_templates_by_type( self, @@ -2293,7 +2310,7 @@ def get_platform_templates_by_type( start_from: int = 0, page_size: int = max_paging_size, output_format: str = "JSON", report_spec: str | dict = "Platforms", - body: Optional[dict | FilterRequestBody] = None, + body: Optional[dict | FilterRequestBody] = None, **kwargs, ) -> str | list: """Returns the list of platform templates with a particular deployed implementation type. The value is specified in the filter. If it is null, or no request body is supplied, all platforms are returned. @@ -2316,6 +2333,9 @@ def get_platform_templates_by_type( body : dict | FilterRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSON dict with the platform reports. @@ -2335,7 +2355,7 @@ def get_platform_templates_by_type( page_size=page_size, output_format=output_format, report_spec=report_spec, - body=body + body=body, **kwargs ) ) return response @@ -2429,7 +2449,7 @@ async def _async_get_platform_by_guid( platform_guid: str, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Platforms", - body: Optional[dict | GetRequestBody] = None + body: Optional[dict | GetRequestBody] = None, **kwargs: Unpack[GetFilters] ) -> str | list: """Returns details about the platform's catalog entry (asset). Async version. @@ -2444,6 +2464,9 @@ async def _async_get_platform_by_guid( body : dict | GetRequestBody, optional Request body to pass directly to the API. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- Response @@ -2460,7 +2483,7 @@ async def _async_get_platform_by_guid( graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, - body=body + body=body, **kwargs ) return response @@ -2468,7 +2491,7 @@ def get_platform_by_guid( self, platform_guid: str, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Platforms", - body: Optional[dict | GetRequestBody] = None, + body: Optional[dict | GetRequestBody] = None, **kwargs: Unpack[GetFilters], ) -> str | list: """Returns details about the platform's catalog entry (asset). @@ -2484,6 +2507,9 @@ def get_platform_by_guid( body : dict | GetRequestBody, optional Request body to pass directly to the API. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSON dict with the platform reports. @@ -2496,7 +2522,7 @@ def get_platform_by_guid( """ response = run_sync( - self._async_get_platform_by_guid(platform_guid, graph_query_depth, output_format, report_spec, body) + self._async_get_platform_by_guid(platform_guid, graph_query_depth, output_format, report_spec, body, **kwargs) ) return response @@ -2556,7 +2582,7 @@ async def _async_get_server_by_guid( server_guid: Optional[str] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "OMAGServers", - body: Optional[dict | GetRequestBody] = None, + body: Optional[dict | GetRequestBody] = None, **kwargs: Unpack[GetFilters], ) -> str | dict: """Returns details about the server's catalog entry (asset). Async version. @@ -2571,6 +2597,9 @@ async def _async_get_server_by_guid( body : dict | GetRequestBody, optional Request body to pass directly to the API. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSON dict with the platform reports. @@ -2590,7 +2619,7 @@ async def _async_get_server_by_guid( graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, - body=body + body=body, **kwargs ) return response @@ -2601,7 +2630,7 @@ def get_server_by_guid( server_guid: Optional[str] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "OMAGServers", - body: Optional[dict | GetRequestBody] = None, + body: Optional[dict | GetRequestBody] = None, **kwargs: Unpack[GetFilters], ) -> str | dict: """Returns details about the platform's catalog entry (asset). @@ -2616,6 +2645,9 @@ def get_server_by_guid( body : dict | GetRequestBody, optional Request body to pass directly to the API. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSON dict with the platform reports. @@ -2630,7 +2662,7 @@ def get_server_by_guid( response = run_sync( self._async_get_server_by_guid(server_guid, output_format=output_format, graph_query_depth=graph_query_depth, - report_spec=report_spec, body=body) + report_spec=report_spec, body=body, **kwargs) ) return response @@ -2642,7 +2674,7 @@ async def _async_get_servers_by_name( page_size: int = max_paging_size, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "OMAGServers", - body: Optional[dict | FilterRequestBody] = None, + body: Optional[dict | FilterRequestBody] = None, **kwargs: Unpack[ListFilters], ) -> str | list | dict: """Returns the list of servers with a particular name. The name is specified in the filter. Async version. @@ -2662,6 +2694,9 @@ async def _async_get_servers_by_name( body : dict | FilterRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSON dict with the server reports. @@ -2682,7 +2717,7 @@ async def _async_get_servers_by_name( filter_string=filter_string, start_from=start_from, page_size=page_size, graph_query_depth=graph_query_depth, output_format=output_format, - report_spec=report_spec, body=body) + report_spec=report_spec, body=body, **kwargs) @dynamic_catch def get_servers_by_name( @@ -2692,7 +2727,7 @@ def get_servers_by_name( page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "OMAGServers", - body: Optional[dict | SearchStringRequestBody] = None, + body: Optional[dict | SearchStringRequestBody] = None, **kwargs: Unpack[ListFilters], ) -> str | list | dict: """Returns the list of servers with a particular name. The name is specified in the filter. @@ -2712,6 +2747,9 @@ def get_servers_by_name( body : dict | SearchStringRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSON dict with the server reports. @@ -2731,7 +2769,7 @@ def get_servers_by_name( graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, - body=body + body=body, **kwargs ) ) return response @@ -2740,7 +2778,7 @@ def get_servers_by_name( async def _async_get_servers_by_dep_impl_type(self, filter_string: str, start_from: int = 0, page_size: int = 0, output_format:str="JSON", report_spec: str = "OMAGServers", - body: Optional[dict | FilterRequestBody] = None) -> str | list: + body: Optional[dict | FilterRequestBody] = None, **kwargs: Unpack[ListFilters]) -> str | list: """Returns the list of servers with a particular deployed implementation type. The value is specified in the filter. If it is null, or no request body is supplied, all servers are returned. Async version. @@ -2757,6 +2795,9 @@ async def _async_get_servers_by_dep_impl_type(self, filter_string: str, body : dict | FilterRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSON dict with the platform reports. @@ -2778,13 +2819,13 @@ async def _async_get_servers_by_dep_impl_type(self, filter_string: str, _gen_output=self._generate_omag_server_output, filter_string=filter_string, start_from=start_from, page_size=page_size, output_format=output_format, - report_spec=report_spec, body=body) + report_spec=report_spec, body=body, **kwargs) @dynamic_catch def get_servers_by_dep_impl_type(self, search_string: str = "*", effective_time: Optional[str] = None, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = "OMAGServers", - body: Optional[dict | FilterRequestBody] = None) -> str | list: + body: Optional[dict | FilterRequestBody] = None, **kwargs) -> str | list: """Returns the list of servers with a particular deployed implementation type. The value is specified in the filter. If it is null, or no request body is supplied, all servers are returned. @@ -2803,6 +2844,9 @@ def get_servers_by_dep_impl_type(self, search_string: str = "*", effective_time: body : dict | GetRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- Response @@ -2821,7 +2865,7 @@ def get_servers_by_dep_impl_type(self, search_string: str = "*", effective_time: """ response = run_sync( self._async_get_servers_by_dep_impl_type(search_string, start_from,page_size, - output_format, report_spec, body) + output_format, report_spec, body, **kwargs) ) return response @@ -2831,7 +2875,7 @@ async def _async_get_server_templates_by_dep_impl_type( start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: dict = "OMAGServers", - body: Optional[dict | FilterRequestBody] = None, + body: Optional[dict | FilterRequestBody] = None, **kwargs: Unpack[ListFilters], ) -> str | list: """Returns the list of server templates with a particular deployed implementation type. The value is specified in the filter. If it is null, or no request body is supplied, all servers are returned. @@ -2855,6 +2899,9 @@ async def _async_get_server_templates_by_dep_impl_type( body : dict | FilterRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSONdict with the platform reports. @@ -2873,7 +2920,7 @@ async def _async_get_server_templates_by_dep_impl_type( _gen_output=self._generate_omag_server_output, filter_string=filter_string, classification_names=["Template"], start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body) + output_format=output_format, report_spec=report_spec, body=body, **kwargs) def get_server_templates_by_dep_impl_type( @@ -2882,7 +2929,7 @@ def get_server_templates_by_dep_impl_type( start_from: int = 0, page_size: int = max_paging_size, output_format: str = "JSON", report_spec: dict = "OMAGServers", - body: Optional[dict | FilterRequestBody] = None, + body: Optional[dict | FilterRequestBody] = None, **kwargs: Unpack[ListFilters], ) -> str | list: """Returns the list of server templates with a particular deployed implementation type. The value is specified in the filter. If it is null, or no request body is supplied, @@ -2904,6 +2951,9 @@ def get_server_templates_by_dep_impl_type( body : dict | FilterRequestBody, optional Request body to pass directly to the API. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List of JSON dict with the platform reports. @@ -2922,7 +2972,7 @@ def get_server_templates_by_dep_impl_type( page_size=page_size, output_format=output_format, report_spec=report_spec, - body=body + body=body, **kwargs ) ) return response @@ -3428,6 +3478,9 @@ async def _async_get_metadata_repository_cohorts_by_name( body: dict, optional Provides a full request body. If specified, the body supercedes other attributes. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -3470,7 +3523,11 @@ def get_metadata_repository_cohorts_by_name( body: Optional[dict | FilterRequestBody] = None, **kwargs, ) -> list | str: - """Returns the list of metadata repository cohorts with a particular name.""" + """Returns the list of metadata repository cohorts with a particular name. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_metadata_repository_cohorts_by_name( name, metadata_element_type_name, metadata_element_subtypes, graph_query_depth, @@ -3524,6 +3581,9 @@ async def _async_find_metadata_repository_cohorts( body: dict | SearchStringRequestBody, optional If provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -3570,7 +3630,11 @@ def find_metadata_repository_cohorts( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """Retrieve the list of metadata repository cohorts that contain the search string.""" + """Retrieve the list of metadata repository cohorts that contain the search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync( self._async_find_metadata_repository_cohorts( search_string, starts_with, ends_with, ignore_case, metadata_element_type_name, @@ -3587,7 +3651,7 @@ async def _async_get_metadata_repository_cohort_by_guid( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | GetRequestBody] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: """Return the properties of a specific metadata repository cohort. Async version. @@ -3604,6 +3668,9 @@ async def _async_get_metadata_repository_cohort_by_guid( body: dict | GetRequestBody, optional full request body. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -3633,9 +3700,13 @@ def get_metadata_repository_cohort_by_guid( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | GetRequestBody] = None, - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: - """Return the properties of a specific metadata repository cohort.""" + """Return the properties of a specific metadata repository cohort. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_metadata_repository_cohort_by_guid( guid, graph_query_depth, output_format, report_spec, body, **kwargs @@ -3872,6 +3943,9 @@ async def _async_get_elements_by_category( body: dict | FilterRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str @@ -3950,6 +4024,9 @@ def get_elements_by_category( body: dict | FilterRequestBody, optional - full request specification - if provided, overrides other parameters. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- [dict] | str diff --git a/pyegeria/omvs/schema_maker.py b/pyegeria/omvs/schema_maker.py index 57f4c266..39dec74f 100644 --- a/pyegeria/omvs/schema_maker.py +++ b/pyegeria/omvs/schema_maker.py @@ -12,6 +12,8 @@ from loguru import logger +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core._server_client import ServerClient from pyegeria.models import ( NewElementRequestBody, @@ -227,7 +229,7 @@ async def _async_find_schema_types( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Referenceable", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of schema type metadata elements that contain the search string. Async Version. @@ -284,6 +286,9 @@ async def _async_find_schema_types( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -338,7 +343,7 @@ def find_schema_types( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Referenceable", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of schema type metadata elements that contain the search string. @@ -395,6 +400,9 @@ def find_schema_types( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -437,7 +445,7 @@ async def _async_get_schema_type_by_guid( body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "SchemaTypes", - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: if guid is None and "schema_type_guid" in kwargs: guid = kwargs.pop("schema_type_guid") @@ -467,7 +475,7 @@ def get_schema_type_by_guid( body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "SchemaTypes", - **kwargs, + **kwargs: Unpack[GetFilters], ) -> dict | str: return run_sync( self._async_get_schema_type_by_guid( @@ -498,43 +506,75 @@ def create_schema_attribute_from_template(self, body: dict | TemplateRequestBody return run_sync(self._async_create_schema_attribute_from_template(body)) @dynamic_catch - async def _async_get_schema_types_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs) -> list | str: - """Get schema types by name. Async version.""" + async def _async_get_schema_types_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs: Unpack[ListFilters]) -> list | str: + """Get schema types by name. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/schema-maker/schema-types/by-name" return await self._async_get_name_request(url, _type="SchemaType", _gen_output=self._generate_schema_output, filter_string=name, start_from=start_from, page_size=page_size, **kwargs) - def get_schema_types_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs) -> list | str: - """Get schema types by name.""" + def get_schema_types_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs: Unpack[ListFilters]) -> list | str: + """Get schema types by name. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync(self._async_get_schema_types_by_name(name, start_from, page_size, **kwargs)) @dynamic_catch - async def _async_get_schema_attributes_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs) -> list | str: - """Get schema attributes by name. Async version.""" + async def _async_get_schema_attributes_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs: Unpack[ListFilters]) -> list | str: + """Get schema attributes by name. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/schema-maker/schema-attributes/by-name" return await self._async_get_name_request(url, _type="SchemaAttribute", _gen_output=self._generate_schema_output, filter_string=name, start_from=start_from, page_size=page_size, **kwargs) - def get_schema_attributes_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs) -> list | str: - """Get schema attributes by name.""" + def get_schema_attributes_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs: Unpack[ListFilters]) -> list | str: + """Get schema attributes by name. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync(self._async_get_schema_attributes_by_name(name, start_from, page_size, **kwargs)) @dynamic_catch - async def _async_find_schema_attributes(self, search_string: str = "*", start_from: int = 0, page_size: int = 100, **kwargs) -> list | str: - """Find schema attributes. Async version.""" + async def _async_find_schema_attributes(self, search_string: str = "*", start_from: int = 0, page_size: int = 100, **kwargs: Unpack[SearchFilters]) -> list | str: + """Find schema attributes. Async version. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/schema-maker/schema-attributes/by-search-string" return await self._async_find_request(url, _type="SchemaAttribute", _gen_output=self._generate_schema_output, search_string=search_string, start_from=start_from, page_size=page_size, **kwargs) - def find_schema_attributes(self, search_string: str = "*", start_from: int = 0, page_size: int = 100, **kwargs) -> list | str: - """Find schema attributes.""" + def find_schema_attributes(self, search_string: str = "*", start_from: int = 0, page_size: int = 100, **kwargs: Unpack[SearchFilters]) -> list | str: + """Find schema attributes. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync(self._async_find_schema_attributes(search_string, start_from, page_size, **kwargs)) @dynamic_catch - async def _async_get_schema_attribute_by_guid(self, guid: str, **kwargs) -> dict | str: - """Get schema attribute by GUID. Async version.""" + async def _async_get_schema_attribute_by_guid(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict | str: + """Get schema attribute by GUID. Async version. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/schema-maker/schema-attributes/{guid}/retrieve" return await self._async_get_guid_request(url, _type="SchemaAttribute", _gen_output=self._generate_schema_output, **kwargs) - def get_schema_attribute_by_guid(self, guid: str, **kwargs) -> dict | str: - """Get schema attribute by GUID.""" + def get_schema_attribute_by_guid(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict | str: + """Get schema attribute by GUID. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync(self._async_get_schema_attribute_by_guid(guid, **kwargs)) # diff --git a/pyegeria/omvs/security_officer.py b/pyegeria/omvs/security_officer.py index 38388e97..381b75f7 100644 --- a/pyegeria/omvs/security_officer.py +++ b/pyegeria/omvs/security_officer.py @@ -11,6 +11,8 @@ import uuid from typing import Optional, Union, Any +from typing import Unpack +from pyegeria.core.request_filters import ListFilters from pyegeria.core._server_client import ServerClient from pyegeria.core._globals import NO_ELEMENTS_FOUND from pyegeria.core._exceptions import PyegeriaNotFoundException @@ -455,7 +457,11 @@ async def _async_find_security_roles( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """Return the list of security roles matching the search string. Async version.""" + """Return the list of security roles matching the search string. Async version. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ url = f"{self.security_officer_base_url}/collections/by-search-string" params = { "search_string": search_string, @@ -507,7 +513,11 @@ def find_security_roles( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """Return the list of security roles matching the search string.""" + """Return the list of security roles matching the search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync( self._async_find_security_roles( search_string=search_string, @@ -553,7 +563,11 @@ async def _async_find_security_groups( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """Return the list of security groups matching the search string. Async version.""" + """Return the list of security groups matching the search string. Async version. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ url = f"{self.security_officer_base_url}/collections/by-search-string" params = { "search_string": search_string, @@ -605,7 +619,11 @@ def find_security_groups( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """Return the list of security groups matching the search string.""" + """Return the list of security groups matching the search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync( self._async_find_security_groups( search_string=search_string, @@ -879,7 +897,11 @@ async def _async_get_statements_of_applicability_by_name( body: Optional[dict | FilterRequestBody] = None, **kwargs, ) -> list | str: - """Return the statements of applicability with a particular name. Async version.""" + """Return the statements of applicability with a particular name. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.security_officer_base_url}/statements-of-applicability/by-name" return await self._async_get_name_request( url, @@ -913,7 +935,11 @@ def get_statements_of_applicability_by_name( body: Optional[dict | FilterRequestBody] = None, **kwargs, ) -> list | str: - """Return the statements of applicability with a particular name.""" + """Return the statements of applicability with a particular name. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_statements_of_applicability_by_name( filter_string=filter_string, @@ -952,7 +978,11 @@ async def _async_find_statements_of_applicability( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """Return the statements of applicability that contain the search string. Async version.""" + """Return the statements of applicability that contain the search string. Async version. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ url = f"{self.security_officer_base_url}/statements-of-applicability/by-search-string" return await self._async_find_request( url, @@ -1000,7 +1030,11 @@ def find_statements_of_applicability( body: Optional[dict | SearchStringRequestBody] = None, **kwargs, ) -> list | str: - """Return the statements of applicability that contain the search string.""" + """Return the statements of applicability that contain the search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync( self._async_find_statements_of_applicability( search_string=search_string, @@ -1040,6 +1074,9 @@ async def _async_get_statement_of_applicability_by_guid( Each linked control, with its ControlApplicability relationship properties, is returned in the element's otherRelatedElements list. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). """ url = f"{self.security_officer_base_url}/statements-of-applicability/{soa_guid}/retrieve" return await self._async_get_guid_request( @@ -1071,6 +1108,9 @@ def get_statement_of_applicability_by_guid( Each linked control, with its ControlApplicability relationship properties, is returned in the element's otherRelatedElements list. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). """ return run_sync( self._async_get_statement_of_applicability_by_guid( @@ -1182,7 +1222,7 @@ async def _async_get_statement_of_applicability_controls( output_format: str = "JSON", report_spec: str | dict | None = None, body: Optional[dict | GetRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Return the controls assessed in a statement of applicability, one row per control. Async version. @@ -1201,6 +1241,9 @@ async def _async_get_statement_of_applicability_controls( body : dict | GetRequestBody, optional Passed to get_statement_of_applicability_by_guid. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -1226,11 +1269,14 @@ def get_statement_of_applicability_controls( output_format: str = "JSON", report_spec: str | dict | None = None, body: Optional[dict | GetRequestBody] = None, - **kwargs, + **kwargs: Unpack[ListFilters], ) -> list | str: """Return the controls assessed in a statement of applicability, one row per control. See _async_get_statement_of_applicability_controls. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). """ return run_sync( self._async_get_statement_of_applicability_controls( diff --git a/pyegeria/omvs/solution_architect.py b/pyegeria/omvs/solution_architect.py index f642b6ee..a0fa9e7d 100644 --- a/pyegeria/omvs/solution_architect.py +++ b/pyegeria/omvs/solution_architect.py @@ -14,6 +14,8 @@ from httpx import Response from loguru import logger +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core._globals import NO_ELEMENTS_FOUND, NO_GUID_RETURNED from pyegeria.core._server_client import ServerClient, max_paging_size from pyegeria.core._validators import validate_guid @@ -226,7 +228,7 @@ def delete_design_pattern(self, guid: str, body: Optional[dict | DeleteElementRe async def _async_find_design_patterns(self, search_string: str = "*", body: Optional[dict | SearchStringRequestBody] = None, starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, start_from: int = 0, page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", - report_spec: str | dict = "Design-Pattern-DrE", **kwargs): + report_spec: str | dict = "Design-Pattern-DrE", **kwargs: Unpack[SearchFilters]): url = f"{self.solution_architect_command_root}/design-patterns/by-search-string" params = { 'graph_query_depth': graph_query_depth, @@ -249,8 +251,12 @@ async def _async_find_design_patterns(self, search_string: str = "*", body: Opti def find_design_patterns(self, search_string: str = "*", body: Optional[dict | SearchStringRequestBody] = None, starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, start_from: int = 0, page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", - report_spec: str | dict = "Design-Pattern-DrE", **kwargs): - """Find design patterns.""" + report_spec: str | dict = "Design-Pattern-DrE", **kwargs: Unpack[SearchFilters]): + """Find design patterns. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync(self._async_find_design_patterns(search_string, body, starts_with, ends_with, ignore_case, start_from, page_size, graph_query_depth, @@ -258,7 +264,7 @@ def find_design_patterns(self, search_string: str = "*", body: Optional[dict | S async def _async_get_design_patterns_by_name(self, name: Optional[str] = None, body: Optional[dict | SearchStringRequestBody] = None, start_from: int = 0, page_size: int = max_paging_size, - graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Design-Pattern-DrE", **kwargs): + graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Design-Pattern-DrE", **kwargs: Unpack[ListFilters]): if name is None and "filter_string" in kwargs: name = kwargs.pop("filter_string") url = f"{self.solution_architect_command_root}/design-patterns/by-name" @@ -278,14 +284,18 @@ async def _async_get_design_patterns_by_name(self, name: Optional[str] = None, b def get_design_patterns_by_name(self, name: Optional[str] = None, body: Optional[dict | SearchStringRequestBody] = None, start_from: int = 0, page_size: int = max_paging_size, - graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Design-Pattern-DrE", **kwargs): - """Get design patterns by name.""" + graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Design-Pattern-DrE", **kwargs: Unpack[ListFilters]): + """Get design patterns by name. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync(self._async_get_design_patterns_by_name(name=name, body=body, start_from=start_from, page_size=page_size, graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, **kwargs)) async def _async_get_design_pattern_by_guid(self, guid: str = None, body: Optional[dict | GetRequestBody] = None, - graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Design-Pattern-DrE", **kwargs): + graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Design-Pattern-DrE", **kwargs: Unpack[GetFilters]): if guid is None and "design_pattern_guid" in kwargs: guid = kwargs.pop("design_pattern_guid") validate_guid(guid) @@ -302,8 +312,12 @@ async def _async_get_design_pattern_by_guid(self, guid: str = None, body: Option _gen_output=self.generate_design_pattern_output, **params) def get_design_pattern_by_guid(self, guid: str = None, body: Optional[dict | GetRequestBody] = None, - graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Design-Pattern-DrE", **kwargs): - """Get a design pattern by GUID.""" + graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Design-Pattern-DrE", **kwargs: Unpack[GetFilters]): + """Get a design pattern by GUID. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync(self._async_get_design_pattern_by_guid(guid=guid, body=body, graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, **kwargs)) async def _async_update_solution_blueprint_status(self, guid: str, body: dict | UpdateElementRequestBody): @@ -1628,6 +1642,9 @@ def find_all_information_supply_chains(self, add_implementation: bool = True, body: dict, optional, default = None - additional optional specifications for the search. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list[dict] | str @@ -1704,7 +1721,7 @@ async def _async_find_information_supply_chains( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list[dict] | str: """Retrieve the information supply chain metadata elements that contain the search string. https://egeria-project.org/concepts/information-supply-chain @@ -1770,6 +1787,9 @@ async def _async_find_information_supply_chains( body: dict, optional, default = None - additional optional specifications for the search. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list[dict] | str @@ -1838,7 +1858,7 @@ def find_information_supply_chains( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list[dict] | str: """Retrieve the information supply chain metadata elements that contain the search string. https://egeria-project.org/concepts/information-supply-chain @@ -1903,6 +1923,9 @@ def find_information_supply_chains( body: dict, optional, default = None - additional optional specifications for the search. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list[dict] | str @@ -3030,7 +3053,7 @@ async def _async_find_solution_blueprints( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Solution-Blueprint", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list[dict] | str: """Retrieve the solution blueprint elements that contain the search string. https://egeria-project.org/concepts/solution-blueprint @@ -3094,6 +3117,9 @@ async def _async_find_solution_blueprints( body: dict, optional, default = None - additional optional specifications for the search. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list[dict] | str @@ -3158,7 +3184,7 @@ def find_solution_blueprints( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Solution-Blueprint", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list[dict] | str: """Retrieve the list of solution blueprint elements that contain the search string. https://egeria-project.org/concepts/solution-blueprint @@ -3188,6 +3214,9 @@ def find_solution_blueprints( REPORT - output markdown with a preamble for a report MERMAID - output mermaid markdown + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list[dict] | str @@ -3243,6 +3272,9 @@ def find_all_solution_blueprints(self, classification_names: Optional[list[str]] body: dict| SearchStringRequestBody = None, **kwargs) -> list[dict] | str: """Retrieve a list of all solution blueprint elements https://egeria-project.org/concepts/solution-blueprint + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. """ # NOTE: must be called with keyword arguments only. find_solution_blueprints' own # positional parameter order does not match this method's — a previous all-positional @@ -4619,7 +4651,7 @@ async def _async_find_solution_components( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list[dict] | str: """ Retrieve the solution component elements that contain the search string. The solutions components returned include information about consumers, actors, and other solution components that are associated with them. @@ -4684,6 +4716,9 @@ async def _async_find_solution_components( body: dict, optional, default = None - additional optional specifications for the search - supersedes search filter, + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list[dict] | str @@ -4748,7 +4783,7 @@ def find_solution_components( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list[dict] | str: """ Retrieve the solution component elements that contain the search string. The solutions components returned include information about consumers, actors, and other solution components that are associated with them. @@ -4774,6 +4809,9 @@ def find_solution_components( REPORT - output markdown with a preamble for a report MERMAID - output mermaid markdown + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list[dict] | str @@ -4831,6 +4869,9 @@ def find_all_solution_components(self, classification_names: Optional[list[str]] body: dict| SearchStringRequestBody = None, **kwargs) -> list[dict] | str: """Retrieve a list of all solution component elements https://egeria-project.org/concepts/solution-components + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. """ # NOTE: must be called with keyword arguments only — see find_all_solution_blueprints # for why an all-positional call here is unsafe (parameter orders don't match, and it @@ -4992,7 +5033,7 @@ def get_solution_components_by_name(self, name: Optional[str] = None, body: dict return response async def _async_get_solution_component_by_guid(self, guid: str = None, body: dict = None, - graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str = "Solution-Component-DrE", **kwargs) -> dict | str: + graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str = "Solution-Component-DrE", **kwargs: Unpack[GetFilters]) -> dict | str: """ Return the properties of a specific solution component. Async Version. Parameters @@ -5011,6 +5052,9 @@ async def _async_get_solution_component_by_guid(self, guid: str = None, body: di report_spec: str, default = "Solution-Component-DrE" Structure of output to produce: + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict - details of the solution component @@ -5065,7 +5109,7 @@ async def _async_get_solution_component_by_guid(self, guid: str = None, body: di # return self.generate_solution_components_output(element, None, output_format) # return response.json().get("element", NO_ELEMENTS_FOUND) - def get_solution_component_by_guid(self, guid: str = None, body: dict = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Solution-Component-DrE", **kwargs) -> dict | str: + def get_solution_component_by_guid(self, guid: str = None, body: dict = None, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Solution-Component-DrE", **kwargs: Unpack[GetFilters]) -> dict | str: """ Return the properties of a specific solution component. Parameters @@ -5082,6 +5126,9 @@ def get_solution_component_by_guid(self, guid: str = None, body: dict = None, gr REPORT - output markdown with a preamble for a report MERMAID - output mermaid markdown + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict - details of the solution component @@ -5113,8 +5160,12 @@ def get_solution_component_by_guid(self, guid: str = None, body: dict = None, gr - def get_component_related_elements(self, guid: str, **kwargs) -> dict: - """ Get related elements about the component""" + def get_component_related_elements(self, guid: str, **kwargs: Unpack[GetFilters]) -> dict: + """ Get related elements about the component + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ response = self.get_solution_component_by_guid(guid, output_format='JSON', **kwargs) if isinstance(response, str): @@ -6026,7 +6077,7 @@ async def _async_find_solution_roles( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list[dict] | str: """Retrieve the solution role elements that contain the search string. https://egeria-project.org/concepts/actor @@ -6090,6 +6141,9 @@ async def _async_find_solution_roles( body: dict, optional, default = None - additional optional specifications for the search. Body details, if provided, override search-filter. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list[dict] | str @@ -6155,7 +6209,7 @@ def find_solution_roles( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list[dict] | str: """Retrieve the solution role elements that contain the search string. https://egeria-project.org/concepts/actor @@ -6218,6 +6272,9 @@ def find_solution_roles( body: dict, optional, default = None - additional optional specifications for the search. Body details, if provided, override search-filter. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list[dict] | str @@ -6279,6 +6336,9 @@ def find_all_solution_roles( ) -> list[dict] | str: """Retrieve a list of all solution blueprint elements https://egeria-project.org/concepts/actor + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. """ return self.find_solution_roles( search_string="*", @@ -6640,8 +6700,12 @@ async def _async_find_concept_model_elements(self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, start_from: int = 0, page_size: int = 100, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs) -> list | str: - """Find concept model elements matching a search string. Async version.""" + **kwargs: Unpack[SearchFilters]) -> list | str: + """Find concept model elements matching a search string. Async version. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ url = f"{self.solution_architect_command_root}/concept-model-elements/by-search-string" return await self._async_find_request( url, _type="ConceptModelElement", _gen_output=self._generate_concept_model_element_output, @@ -6655,8 +6719,12 @@ def find_concept_model_elements(self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, start_from: int = 0, page_size: int = 100, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs) -> list | str: - """Find concept model elements matching a search string.""" + **kwargs: Unpack[SearchFilters]) -> list | str: + """Find concept model elements matching a search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync(self._async_find_concept_model_elements( search_string, body, starts_with, ends_with, ignore_case, start_from, page_size, output_format, report_spec, **kwargs)) @@ -6666,8 +6734,12 @@ async def _async_get_concept_model_elements_by_name(self, name: str | None = Non body: Optional[dict | SearchStringRequestBody] = None, start_from: int = 0, page_size: int = max_paging_size, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs) -> list | str: - """Return the concept model elements with a specific name. Async version.""" + **kwargs: Unpack[ListFilters]) -> list | str: + """Return the concept model elements with a specific name. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.solution_architect_command_root}/concept-model-elements/by-name" return await self._async_get_name_request( url, _type="ConceptModelElement", _gen_output=self._generate_concept_model_element_output, @@ -6679,16 +6751,24 @@ def get_concept_model_elements_by_name(self, name: str | None = None, body: Optional[dict | SearchStringRequestBody] = None, start_from: int = 0, page_size: int = max_paging_size, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs) -> list | str: - """Return the concept model elements with a specific name.""" + **kwargs: Unpack[ListFilters]) -> list | str: + """Return the concept model elements with a specific name. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync(self._async_get_concept_model_elements_by_name( name, body, start_from, page_size, output_format, report_spec, **kwargs)) @dynamic_catch async def _async_get_concept_model_element_by_guid(self, guid: str, body: Optional[dict | GetRequestBody] = None, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs) -> dict | str: - """Return the properties of a specific concept model element. Async version.""" + **kwargs: Unpack[GetFilters]) -> dict | str: + """Return the properties of a specific concept model element. Async version. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ validate_guid(guid) url = f"{self.solution_architect_command_root}/concept-model-elements/{guid}/retrieve" return await self._async_get_guid_request( @@ -6698,8 +6778,12 @@ async def _async_get_concept_model_element_by_guid(self, guid: str, body: Option @dynamic_catch def get_concept_model_element_by_guid(self, guid: str, body: Optional[dict | GetRequestBody] = None, output_format: str = "JSON", report_spec: str | dict | None = None, - **kwargs) -> dict | str: - """Return the properties of a specific concept model element.""" + **kwargs: Unpack[GetFilters]) -> dict | str: + """Return the properties of a specific concept model element. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync(self._async_get_concept_model_element_by_guid( guid, body, output_format, report_spec, **kwargs)) @@ -6920,8 +7004,12 @@ async def _async_find_solution_ports(self, search_string: str = "*", ignore_case: bool = False, start_from: int = 0, page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs) -> list[dict] | str: - """Retrieve the solution ports whose properties contain the search string. Async version.""" + **kwargs: Unpack[SearchFilters]) -> list[dict] | str: + """Retrieve the solution ports whose properties contain the search string. Async version. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ url = f"{self.solution_architect_command_root}/solution-ports/by-search-string" return await self._async_find_request(url, _type="SolutionPort", _gen_output=self._generate_referenceable_output, @@ -6938,8 +7026,12 @@ def find_solution_ports(self, search_string: str = "*", ignore_case: bool = False, start_from: int = 0, page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = None, - **kwargs) -> list[dict] | str: - """Retrieve the solution ports whose properties contain the search string.""" + **kwargs: Unpack[SearchFilters]) -> list[dict] | str: + """Retrieve the solution ports whose properties contain the search string. + + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + """ return run_sync( self._async_find_solution_ports(search_string, body, starts_with, ends_with, ignore_case, start_from, page_size, graph_query_depth, output_format, @@ -6950,8 +7042,12 @@ async def _async_get_solution_ports_by_name(self, name: str | None = None, body: Optional[dict | FilterRequestBody] = None, start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", - report_spec: str | dict = None, **kwargs) -> list | str: - """Retrieve the solution ports with a particular name. Async version.""" + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: + """Retrieve the solution ports with a particular name. Async version. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.solution_architect_command_root}/solution-ports/by-name" return await self._async_get_name_request(url, _type="SolutionPort", _gen_output=self._generate_referenceable_output, @@ -6965,8 +7061,12 @@ def get_solution_ports_by_name(self, name: str | None = None, body: Optional[dict | FilterRequestBody] = None, start_from: int = 0, page_size: int = 0, graph_query_depth: int = 3, output_format: str = "JSON", - report_spec: str | dict = None, **kwargs) -> list | str: - """Retrieve the solution ports with a particular name.""" + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: + """Retrieve the solution ports with a particular name. + + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_solution_ports_by_name(name, body, start_from, page_size, graph_query_depth, output_format, report_spec, **kwargs)) @@ -6974,8 +7074,12 @@ def get_solution_ports_by_name(self, name: str | None = None, @dynamic_catch async def _async_get_solution_port_by_guid(self, solution_port_guid: str, body: Optional[dict] = None, graph_query_depth: int = 3, output_format: str = "JSON", - report_spec: str | dict = None, **kwargs) -> dict | str: - """Return the properties of a specific solution port. Async version.""" + report_spec: str | dict = None, **kwargs: Unpack[GetFilters]) -> dict | str: + """Return the properties of a specific solution port. Async version. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ url = f"{self.solution_architect_command_root}/solution-ports/{solution_port_guid}/retrieve" return await self._async_get_guid_request(url, _type="SolutionPort", _gen_output=self._generate_referenceable_output, @@ -6986,8 +7090,12 @@ async def _async_get_solution_port_by_guid(self, solution_port_guid: str, body: @dynamic_catch def get_solution_port_by_guid(self, solution_port_guid: str, body: Optional[dict] = None, graph_query_depth: int = 3, output_format: str = "JSON", - report_spec: str | dict = None, **kwargs) -> dict | str: - """Return the properties of a specific solution port.""" + report_spec: str | dict = None, **kwargs: Unpack[GetFilters]) -> dict | str: + """Return the properties of a specific solution port. + + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + """ return run_sync( self._async_get_solution_port_by_guid(solution_port_guid, body, graph_query_depth, output_format, report_spec, **kwargs)) diff --git a/pyegeria/omvs/subject_area.py b/pyegeria/omvs/subject_area.py index fef4bca5..569e6fcb 100644 --- a/pyegeria/omvs/subject_area.py +++ b/pyegeria/omvs/subject_area.py @@ -612,6 +612,9 @@ async def _async_get_subject_areas_by_name( body : dict | FilterRequestBody, optional The request body for the search. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -698,6 +701,9 @@ def get_subject_areas_by_name( body : dict | FilterRequestBody, optional The request body for the search. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -797,6 +803,9 @@ async def _async_find_subject_areas( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -893,6 +902,9 @@ def find_subject_areas( body : dict, optional Request body for additional parameters. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- list | str @@ -951,6 +963,9 @@ async def _async_get_subject_area_by_guid( body : dict | GetRequestBody, optional The request body for the search. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1010,6 +1025,9 @@ def get_subject_area_by_guid( body : dict | GetRequestBody, optional The request body for the search. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str diff --git a/pyegeria/omvs/time_keeper.py b/pyegeria/omvs/time_keeper.py index a4c7b501..afd7c116 100644 --- a/pyegeria/omvs/time_keeper.py +++ b/pyegeria/omvs/time_keeper.py @@ -1330,6 +1330,9 @@ async def _async_get_context_events_by_name( body : dict | FilterRequestBody, optional The request body for the search. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -1416,6 +1419,9 @@ def get_context_events_by_name( body : dict | FilterRequestBody, optional The request body for the search. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- list | str @@ -1515,6 +1521,9 @@ async def _async_find_context_events( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -1611,6 +1620,9 @@ def find_context_events( body: dict | SearchStringRequestBody, optional - if provided, the search parameters in the body will supercede other attributes. + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -1669,6 +1681,9 @@ async def _async_get_context_event_by_guid( body : dict | GetRequestBody, optional The request body for the retrieval. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -1728,6 +1743,9 @@ def get_context_event_by_guid( body : dict | GetRequestBody, optional The request body for the retrieval. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str diff --git a/pyegeria/omvs/valid_metadata.py b/pyegeria/omvs/valid_metadata.py index c434975c..a9d4165a 100644 --- a/pyegeria/omvs/valid_metadata.py +++ b/pyegeria/omvs/valid_metadata.py @@ -10,6 +10,8 @@ import re from typing import Any, Optional from loguru import logger +from typing import Unpack +from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core._server_client import ServerClient from pyegeria.core._validators import validate_guid from pyegeria.models import SearchStringRequestBody, ResultsRequestBody, FilterRequestBody, GetRequestBody, \ @@ -2903,7 +2905,7 @@ async def _async_find_specification_property( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Referenceable", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of specification property metadata elements that contain the search string. Async Version. @@ -2960,6 +2962,9 @@ async def _async_find_specification_property( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -3015,7 +3020,7 @@ def find_specification_property( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: str | dict = "Referenceable", - **kwargs + **kwargs: Unpack[SearchFilters] ) -> list | str: """ Retrieve the list of specification property metadata elements that contain the search string. @@ -3072,6 +3077,9 @@ def find_specification_property( body: dict | SearchStringRequestBody, optional, default = None - if provided, the search parameters in the body will supercede other attributes, such as "search_string" + Accepts the standard search filters as keyword arguments (see ``SearchFilters`` + in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. + Returns ------- List | str @@ -3109,7 +3117,7 @@ def find_specification_property( async def _async_get_specification_property_by_type(self, spec_property_type: str, body: Optional[dict | ResultsRequestBody] = None, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", - report_spec: str | dict = None) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """ Return the list of specification properties containing the supplied type. Async version. Parameters @@ -3128,6 +3136,9 @@ async def _async_get_specification_property_by_type(self, spec_property_type: st report_spec: dict , optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -3169,14 +3180,14 @@ async def _async_get_specification_property_by_type(self, spec_property_type: st start_from=start_from, page_size=page_size, output_format=output_format, report_spec=report_spec, - body=body) + body=body, **kwargs) return response def get_specification_property_by_type(self, spec_property_type:str, body: Optional[dict | ResultsRequestBody] = None, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", - report_spec: str | dict = None) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """ Return the list of specification properties containing the supplied type. @@ -3196,6 +3207,9 @@ def get_specification_property_by_type(self, spec_property_type:str, body: Optio report_spec: str | dict , optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List | str @@ -3226,12 +3240,12 @@ def get_specification_property_by_type(self, spec_property_type:str, body: Optio """ return run_sync( self._async_get_specification_property_by_type(spec_property_type, body, start_from, page_size, - output_format, report_spec)) + output_format, report_spec, **kwargs)) @dynamic_catch async def _async_get_specification_property_by_name(self, name: Optional[str] = None, start_from: int = 0, page_size: int = 0, category: Optional[str] = None, classification_names: list[str]= None, body: Optional[dict | FilterRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", - report_spec: str | dict = None, **kwargs) -> list | str: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list | str: """ Return the list of specification properties containing the supplied name. Async version. Parameters @@ -3250,6 +3264,9 @@ async def _async_get_specification_property_by_name(self, name: Optional[str] = report_spec: str | dict = None), optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List @@ -3302,7 +3319,7 @@ async def _async_get_specification_property_by_name(self, name: Optional[str] = def get_specification_property_by_name(self, name: Optional[str] = None, start_from: int = 0, page_size: int = 0, category: Optional[str] = None, classification_names: list[str]= None, body: Optional[dict | FilterRequestBody] = None, graph_query_depth: int = 3, output_format: str = "JSON", - report_spec: str | dict = None, **kwargs) -> list: + report_spec: str | dict = None, **kwargs: Unpack[ListFilters]) -> list: """ Return the list of specification properties containing the supplied name. Parameters @@ -3321,6 +3338,9 @@ def get_specification_property_by_name(self, name: Optional[str] = None, start_f report_spec: str | dict = None), optional, default = None The desired output columns/fields to include. + Accepts the standard list filters as keyword arguments (see ``ListFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- List @@ -3362,7 +3382,7 @@ def get_specification_property_by_name(self, name: Optional[str] = None, start_f async def _async_get_specification_property_by_guid(self, guid: str = None, element_type: Optional[str] = None, body: Optional[dict | GetRequestBody] = None, graph_query_depth: int = 3, output_format: str = 'JSON', - report_spec: str | dict = None, **kwargs) -> dict | str: + report_spec: str | dict = None, **kwargs: Unpack[GetFilters]) -> dict | str: """Return the properties of a specific collection. Async version. Parameters @@ -3378,6 +3398,9 @@ async def _async_get_specification_property_by_guid(self, guid: str = None, elem report_spec: str | dict, optional, default = None The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str @@ -3422,7 +3445,7 @@ async def _async_get_specification_property_by_guid(self, guid: str = None, elem @dynamic_catch def get_specification_property_by_guid(self, guid: str = None, element_type: Optional[str] = None, body: dict | GetRequestBody= None, - graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, **kwargs) -> dict | str: + graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, **kwargs: Unpack[GetFilters]) -> dict | str: """ Return the properties of a specific collection. Async version. Parameters @@ -3439,6 +3462,9 @@ def get_specification_property_by_guid(self, guid: str = None, element_type: Opt The desired output columns/fields to include. + Accepts the standard get filters as keyword arguments (see ``GetFilters`` + in ``pyegeria.core.request_filters``). + Returns ------- dict | str diff --git a/tests/micro-tests/test_search_get_filter_kwargs.py b/tests/micro-tests/test_search_get_filter_kwargs.py new file mode 100644 index 00000000..f3e269cc --- /dev/null +++ b/tests/micro-tests/test_search_get_filter_kwargs.py @@ -0,0 +1,282 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright Contributors to the ODPi Egeria project. +"""Search and get filters are universal, checked and documented (pyegeria 6.2.28). + +* every public find_*/get_* method that sends a filterable request body accepts + **kwargs and forwards it toward the shared request helper; +* the TypedDicts in pyegeria.core.request_filters, the name check and the docs page + all come from the request-body models, and cannot drift from them; +* an unknown filter name warns (UnknownFilterWarning) and a known one reaches the + request body -- including through a report spec's spec_params. +""" +from __future__ import annotations + +import json +import pathlib +import warnings + +import pytest + +from pyegeria.core import request_filters as rf +from pyegeria.core._filter_kwargs_survey import in_scope, survey +from pyegeria.core.request_filters import UnknownFilterWarning + +REPO = pathlib.Path(__file__).resolve().parents[2] + +# Methods that reach a shared helper only incidentally (a platform-GUID lookup, or an +# aggregate over another call) -- the request they are named for has no filterable body. +EXEMPT = { + "SecurityOfficer._async_get_user_account": "GET user-account; helper reached only via the platform-GUID lookup", + "SecurityOfficer.get_user_account": "as above", + "SecurityOfficer._async_get_user_list": "GET user-accounts; helper reached only via the platform-GUID lookup", + "SecurityOfficer.get_user_list": "as above", + "SecurityOfficer._async_get_security_access_control": "GET access control; helper reached only via the platform-GUID lookup", + "SecurityOfficer.get_security_access_control": "as above", + "SecurityOfficer._async_get_control_implementation_summary": "a computed summary over one statement of applicability", + "SecurityOfficer.get_control_implementation_summary": "as above", +} + + +@pytest.fixture(scope="module") +def methods(): + return in_scope(survey()) + + +# ---------------------------------------------------------------------------- part 1 + +def test_survey_finds_the_find_and_get_families(methods): + names = {m.qualname for m in methods} + assert "DataDesigner.find_data_value_specifications" in names + assert "DataDesigner.find_all_data_structures" in names + assert "DataDesigner.find_all_data_fields" in names + assert "CollectionManager.find_digital_products" in names + assert "MetadataExpert.find_metadata_elements" in names + assert len(methods) > 450 + + +def test_every_find_and_get_method_accepts_and_forwards_kwargs(methods): + missing = [m.qualname for m in methods + if m.qualname not in EXEMPT and not (m.kwargs_name and m.passes_kwargs())] + assert not missing, ( + "These find_*/get_* methods send a filterable request but do not accept **kwargs " + "or do not pass it on toward the shared request helper:\n " + "\n ".join(sorted(missing))) + + +def test_exemptions_are_still_needed(methods): + by_name = {m.qualname: m for m in methods} + stale = [q for q in EXEMPT if q not in by_name or (by_name[q].kwargs_name and by_name[q].passes_kwargs())] + assert not stale, f"remove from EXEMPT: {stale}" + + +def test_unpack_annotation_matches_the_request_kind(methods): + """Annotated methods name the right TypedDict; un-annotated ones have a PEP 692 overlap reason.""" + wrong, unexplained = [], [] + for m in methods: + if m.qualname in EXEMPT: + continue + td = getattr(rf, m.filters) + ann = m.unpack_annotation() + if ann is not None and ann != m.filters: + wrong.append(f"{m.qualname}: Unpack[{ann}] but sends {m.filters}") + overlap = m.explicit_params & set(td.__annotations__) + if ann is not None and overlap: + wrong.append(f"{m.qualname}: Unpack[{ann}] duplicates explicit params {sorted(overlap)}") + if ann is None and not overlap: + unexplained.append(m.qualname) + assert not wrong, "\n".join(wrong) + assert not unexplained, ("Annotate **kwargs: Unpack[...] on: " + ", ".join(sorted(unexplained))) + + +# ---------------------------------------------------------------------------- one source + +@pytest.mark.parametrize("model, td", list(rf.TYPED_DICT_FOR_MODEL.items()), + ids=lambda x: getattr(x, "__name__", str(x))) +def test_typed_dict_covers_exactly_the_model(model, td): + model_fields = {n for n in model.model_fields if n != "class_"} + mapped = {rf.PUBLIC_ALIASES.get(k, k) for k in td.__annotations__} + call = set(rf.CALL_PARAMETERS[model]) + if model is rf.SearchStringRequestBody: # also covers FindPropertyNamesRequestBody + model_fields |= {n for n in rf.FindPropertyNamesRequestBody.model_fields if n != "class_"} + call |= rf._FIND_PROPERTY_NAMES_CALL_PARAMETERS + assert not (mapped & call), "a call parameter is repeated in the TypedDict" + assert mapped | call == model_fields, ( + f"{td.__name__} vs {model.__name__}: missing {sorted(model_fields - mapped - call)}, " + f"extra {sorted((mapped | call) - model_fields)}") + + +def test_every_typed_dict_field_has_a_docstring(): + docs = rf._field_docs() + for td in (rf.GetFilters, rf.ListFilters, rf.SearchFilters, rf.FindFilters): + own = rf._own_fields(td) + assert own and all(docs[td.__name__].get(k) for k in own), td.__name__ + + +def test_docs_page_tables_are_generated_from_the_module(): + page = (REPO / "docs" / "search-and-get-filters.md").read_text(encoding="utf-8") + start, end = "\n", "" + generated = page.split(start, 1)[1].split(end, 1)[0] + assert generated == rf.filter_reference_markdown(), ( + "docs/search-and-get-filters.md is stale: regenerate the block with " + "pyegeria.core.request_filters.filter_reference_markdown()") + + +# ---------------------------------------------------------------------------- part 2 + +def test_known_filter_maps_to_wire_name_and_unknown_warns(): + with pytest.warns(UnknownFilterWarning, match=r"'metadata_element_subtipes'.*metadata_element_subtypes"): + body = rf.filter_body_kwargs("search", {"metadata_element_subtypes": ["DataClass"], + "metadata_element_subtipes": ["X"], + "max_depth": 2, "anchorGUID": "a1", "sequencing_order": None}) + assert body == {"metadataElementSubtypeNames": ["DataClass"], "anchorGUID": "a1"} + + +def test_render_options_do_not_warn(): + with warnings.catch_warnings(): + warnings.simplefilter("error", UnknownFilterWarning) + assert rf.filter_body_kwargs("get", {"refresh_spec": False, "include_peers": True}) == {} + + +def test_valid_sets_come_from_the_models(): + assert "metadata_element_subtypes" in rf.valid_filter_names("get") + assert "anchor_guid" not in rf.valid_filter_names("get") # not on GetRequestBody + assert "anchor_guid" in rf.valid_filter_names("name") + assert "filter_string" in rf.valid_filter_names("name") + assert "property_names" in rf.valid_filter_names("search") + assert "skip_subtypes" in rf.valid_filter_names("find") + assert "skip_subtypes" not in rf.valid_filter_names("search") + + +class _Response: + def __init__(self, payload): + self._payload = payload + + def json(self): + return self._payload + + +@pytest.fixture +def designer(monkeypatch): + from pyegeria.omvs.data_designer import DataDesigner + + monkeypatch.setattr(DataDesigner, "check_connection", lambda self: "test") + client = DataDesigner("view-server", "https://egeria.example:9443", "user", "pwd") + sent: list[dict] = [] + + async def fake_request(method, url, payload=None, *args, **kwargs): + sent.append(json.loads(payload) if isinstance(payload, str) else (payload or {})) + return _Response({"elements": [{"elementHeader": {"guid": "g1"}}], "element": {"elementHeader": {"guid": "g1"}}}) + + monkeypatch.setattr(client, "_async_make_request", fake_request) + client.sent = sent + return client + + +def test_find_data_value_specifications_restricted_to_data_class(designer): + with warnings.catch_warnings(): + warnings.simplefilter("error", UnknownFilterWarning) + designer.find_data_value_specifications("*", metadata_element_subtypes=["DataClass"]) + assert designer.sent[-1]["metadataElementSubtypeNames"] == ["DataClass"] + + +def test_find_unknown_filter_warns_and_is_not_sent(designer): + with pytest.warns(UnknownFilterWarning, match="find_data_value_specifications"): + designer.find_data_value_specifications("*", metadata_element_subtipes=["DataClass"]) + assert "metadataElementSubtypeNames" not in designer.sent[-1] + assert "metadata_element_subtipes" not in designer.sent[-1] + + +def test_find_all_data_fields_now_filters(designer): + designer.find_all_data_fields(limit_results_by_status=["ACTIVE"]) + assert designer.sent[-1]["limitResultsByStatus"] == ["ACTIVE"] + + +def test_get_by_guid_forwards_get_filters(designer): + designer.get_data_class_by_guid("g1", as_of_time="2026-01-01T00:00:00", skip_relationships=["Foo"]) + body = designer.sent[-1] + assert body["skipRelationships"] == ["Foo"] and body["asOfTime"].startswith("2026-01-01") + + +def test_get_by_name_forwards_public_spelling(designer): + designer.get_data_value_specifications_by_name("x", metadata_element_subtypes=["DataClass"], anchor_domain="Glossary") + body = designer.sent[-1] + assert body["metadataElementSubtypeNames"] == ["DataClass"] + assert body["anchorDomainName"] == "Glossary" + + +def test_get_by_guid_unknown_filter_warns(designer): + with pytest.warns(UnknownFilterWarning, match="anchor_guid"): # anchor filters are list/search only + designer.get_data_class_by_guid("g1", anchor_guid="a1") + + +# ---------------------------------------------------------------------------- report specs + +def test_spec_params_typo_warns_through_the_report_executor(designer, monkeypatch): + """A report spec's spec_params go into the same kwargs, so a typo there warns too.""" + import pyegeria.view.format_set_executor as fse + from pyegeria.omvs.data_designer import DataDesigner + + fmt = {"action": {"function": "DataDesigner.find_data_value_specifications", + "required_params": [], "optional_params": ["search_string"], + "spec_params": {"metadata_element_subtypes": ["DataClass"], + "metadata_element_subtipes": ["DataClass"]}}} + monkeypatch.setattr(fse, "select_report_spec", lambda name, kind: fmt) + monkeypatch.setattr(fse, "_resolve_client_and_method", + lambda decl: (DataDesigner, decl.split(".")[-1])) + monkeypatch.setattr(fse, "_resolve_action_target_client", lambda client, cls: designer) + + class _Tech: + user_id, user_pwd = "user", "pwd" + + def get_token(self): + return "token" + + import asyncio + with pytest.warns(UnknownFilterWarning, match="metadata_element_subtipes"): + out = asyncio.run(fse._async_run_report_impl("Data-Classes-Test", _Tech(), output_format="JSON", + params={"search_string": "*"})) + assert out["kind"] == "json" + assert designer.sent[-1]["metadataElementSubtypeNames"] == ["DataClass"] + + +def test_report_param_aliases_do_not_warn(): + import pyegeria.view.format_set_executor as fse + params = fse._normalize_report_params({"metadata_element_name": "DataClass", "sort_order": "ANY", + "order_property_name": "name", "anchor_scope_id": "s1", + "limit_result_by_status": "ACTIVE"}, action_mode="find") + with warnings.catch_warnings(): + warnings.simplefilter("error", UnknownFilterWarning) + body = rf.filter_body_kwargs("search", params) + assert body["metadataElementTypeName"] == "DataClass" + assert body["sequencingOrder"] == "ANY" and body["anchorScopeGUID"] == "s1" + + +# Built-in report specs whose spec_params name a filter the target method does not have. +# These were always silently dropped; 6.2.28 warns about them. Fix at the source (the +# Dr.Egeria compact specs / gen_report_specs) and remove them from this list. +KNOWN_BAD_SPEC_PARAMS = { + ("metadata_element_types", "ExternalReferences.find_external_references"), + ("classification", "GlossaryManager.find_glossary_terms"), +} + + +def test_builtin_report_spec_params_are_valid_filters(methods): + from pyegeria.view.base_report_formats import get_report_registry + + kind = {"SearchFilters": "search", "ListFilters": "name", "GetFilters": "get", "FindFilters": "find"} + by_name = {(m.cls, m.name): m for m in methods} + found = set() + for spec_name, fs in get_report_registry().items(): + action = getattr(fs, "action", None) + func = getattr(action, "function", "") or "" + if "." not in func: + continue + cls, meth = func.split(".")[:2] + m = by_name.get((cls, meth)) or by_name.get((cls, "_async_" + meth.removeprefix("_async_"))) + if m is None: + continue + wire = rf._wire_map(kind[m.filters]) + for key in (getattr(action, "spec_params", None) or {}): + if key not in wire and key not in rf.RENDER_OPTIONS and key not in m.explicit_params: + found.add((key, func)) + assert found <= KNOWN_BAD_SPEC_PARAMS, f"new invalid spec_params: {sorted(found - KNOWN_BAD_SPEC_PARAMS)}" + assert found == KNOWN_BAD_SPEC_PARAMS, f"fixed -- remove from KNOWN_BAD_SPEC_PARAMS: {sorted(KNOWN_BAD_SPEC_PARAMS - found)}" From 883d33e4d00d46aeda7d4644ac1f2d5e6bcd94ce Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 11:11:43 +0000 Subject: [PATCH 05/14] fix(view): Asset-Graph renders the asset graph in every format it declares MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the Architect's P2 on e2e8a8c8 (READBACK-allowlist-specfix-cappedscans-2026-11-09 §2). Asset-Graph resolved and ran, but its output was not the graph. What was actually wrong, checked live and against a recorded response: - The anchor graph column's key was misspelt `anchorMermaidGRaph`, so Anchor Graph was always empty. It is now `anchorMermaidGraph`, and an Action Graph column (`actionMermaidGraph`, which the response also carries) is added. - The spec declared only ALL. Requesting ALL as an output format returned a 62-82 char markdown string holding just the asset's name, labelled kind "json". - Requesting MD or FORM rendered a Dr.Egeria "Update Asset" form, and LIST a markdown table, none of which can show a graph. Two read-back findings did not reproduce: - REPORT and MERMAID were not empty. They return kind "text" with the graph in `content` (`data` is not used for text results). The read-back read `data`. - DICT's single row is the asset itself. On this repository the first find_assets result is a GovernanceActionProcessInstance, whose display name reads like an audit message. DICT gave one row equal to the asset on four asset types live. Changes: - Asset-Graph declares DICT/TABLE/JSON, REPORT/HTML and MERMAID: - DICT, TABLE and JSON give the asset's own fields plus the graphs as text. - REPORT and HTML give the fields, with the asset, anchor and action graphs rendered as mermaid. - MERMAID gives the asset graph. - The columns are a named ASSET_GRAPH_COLUMNS list. ALL, MD, FORM and LIST are dropped, with the reason in a comment. Asking for one now raises the executor's existing error, which lists the declared formats. - format_set_executor: a ValueError from the find path was printed and swallowed, so the call returned None. It is now logged and re-raised. - Tests (17) against a recorded get_asset_graph_by_guid response (tests/micro-tests/data/asset_graph_by_guid_response.json, from qs-view-server, read only, relationships trimmed). They run the real path from exec_report_spec down to _generate_asset_output; only the HTTP request is replaced, and building a real client fails the test. They cover: - each declared format, with DICT a single row that is the asset and has all three graphs; - REPORT with three mermaid blocks; - MERMAID equal to the rendered mermaidGraph; - ALL, MD, FORM and LIST raising with words; - no declared format returning None. - Live READ against qs-view-server, after the fix: - DICT is 1 row with Mermaid 740 / Anchor 878 / Action 804 characters. - REPORT has 3 mermaid blocks; HTML and MERMAID carry the graph. - ALL and MD raise with words. - DICT is one row, the asset itself, on Notification, EngineAction and ConnectorActivityReport assets. - docs/release-notes/6.2.28.md is updated. Signed-off-by: Dan Wolfson --- docs/release-notes/6.2.28.md | 11 + pyegeria/view/base_report_formats.py | 49 +- pyegeria/view/format_set_executor.py | 5 +- .../data/asset_graph_by_guid_response.json | 485 ++++++++++++++++++ tests/micro-tests/test_asset_graph_spec.py | 152 ++++++ 5 files changed, 685 insertions(+), 17 deletions(-) create mode 100644 tests/micro-tests/data/asset_graph_by_guid_response.json create mode 100644 tests/micro-tests/test_asset_graph_spec.py diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index 9184b986..242b40c6 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -10,3 +10,14 @@ `DataDesigner.find_data_value_specifications` restricted to the `DataClass` subtype (`metadata_element_subtypes=["DataClass"]`). The load-time census is now 437 specs: 376 runnable, 61 format-only, none unrunnable (6.2.27: 374 runnable, 2 unrunnable). +- **`Asset-Graph` renders the graph in every format it declares.** It declares DICT, TABLE and + JSON (the asset's own fields plus its graphs as text), REPORT and HTML (the asset's fields with + the asset, anchor and action graphs rendered as mermaid), and MERMAID (the asset graph). Each + returns one row or one document for the asset itself. The anchor graph's column key was + misspelt (`anchorMermaidGRaph`), so the anchor graph was always empty; it is now + `anchorMermaidGraph`, and an Action Graph column (`actionMermaidGraph`) is added. ALL, MD, FORM + and LIST are no longer declared: MD and FORM are Dr.Egeria update forms, LIST is a markdown + table that cannot show a graph, and ALL rendered only the asset's name. Asking for one of them + is an error that names the formats the spec does declare. +- **`exec_report_spec` no longer returns `None` when a find method raises `ValueError`.** It logs + the error and raises it, so the caller sees the words. diff --git a/pyegeria/view/base_report_formats.py b/pyegeria/view/base_report_formats.py index 606310f0..ea9d368b 100644 --- a/pyegeria/view/base_report_formats.py +++ b/pyegeria/view/base_report_formats.py @@ -628,6 +628,22 @@ def _user_report_specs_dir() -> str: TIME_PARAMETERS = ["as_of_time", "effective_time"] +#: The Asset-Graph spec's columns: the asset's own fields, then the graphs get_asset_graph_by_guid +#: returns at the top level of its response (keys as Egeria writes them). +ASSET_GRAPH_COLUMNS = COMMON_COLUMNS + COMMON_METADATA_COLUMNS + [ + Column(name="Classifications", key='classifications'), + Column(name="Created By", key='created_by'), + Column(name="Create Time", key='create_time'), + Column(name="Updated By", key='updated_by'), + Column(name="Update Time", key='update_time'), + Column(name="Version", key='version'), + Column(name="Open Metadata Type Name", key='type_name'), + Column(name="Mermaid Graph", key='mermaidGraph'), + Column(name="Anchor Graph", key='anchorMermaidGraph'), + Column(name="Action Graph", key='actionMermaidGraph'), + Column(name="Field Level Lineage Graph", key='fieldLevelLineageGraph'), +] + # Modularized report_specs base_report_specs = FormatSetDict({ "Referenceable": FormatSet( @@ -1402,25 +1418,28 @@ def _user_report_specs_dir() -> str: "Asset-Graph": FormatSet( target_type="Asset", heading="Asset Graph", - description="Attributes that apply to all Assets", + description=("An asset, the elements anchored to it and their relationships, as Egeria's asset graph " + "(AssetCatalog.get_asset_graph_by_guid): the asset's own fields and its mermaid graphs."), annotations={}, # No specific annotations family="AssetCatalog", + # One element (the asset) with its graphs. Declared formats only (6.2.28): ALL, MD, FORM and LIST + # are left out on purpose. MD and FORM are Dr.Egeria update forms ("Update Asset"), which do not + # fit a read-only graph view; LIST is a markdown table, where a mermaid graph cannot render; and + # ALL, requested as an output format, rendered only the asset's name. Asking for one of them is + # an error with words (the executor lists the formats this spec declares), never a silent None. formats=[ Format( - types=["ALL"], - attributes=COMMON_COLUMNS + COMMON_METADATA_COLUMNS + [ - Column(name="Classifications", key='classifications'), - Column(name="Created By", key='created_by'), - Column(name="Create Time", key='create_time'), - Column(name="Updated By", key='updated_by'), - Column(name="Update Time", key='update_time'), - Column(name="Version", key='version'), - Column(name="Open Metadata Type Name", key='type_name'), - Column(name="Mermaid Graph", key='mermaidGraph'), - Column(name="Anchor Graph", key='anchorMermaidGRaph'), - Column(name="Field Level Lineage Graph", key='fieldLevelLineageGraph'), - ], - ) + types=["DICT", "TABLE", "JSON"], + attributes=ASSET_GRAPH_COLUMNS, + ), + Format( + types=["REPORT", "HTML"], + attributes=ASSET_GRAPH_COLUMNS, + ), + Format( + types=["MERMAID"], + attributes=[Column(name="Mermaid Graph", key='mermaidGraph')], + ), ], action=ActionParameter( # ServerClient.get_asset_graph no longer exists; the asset graph is AssetCatalog's diff --git a/pyegeria/view/format_set_executor.py b/pyegeria/view/format_set_executor.py index 4d40438e..3be2cb28 100644 --- a/pyegeria/view/format_set_executor.py +++ b/pyegeria/view/format_set_executor.py @@ -1308,8 +1308,9 @@ def _exec_report_spec_impl( print_validation_error(e) raise except ValueError as e: - import traceback - traceback.print_exc() + # Never a silent None (6.2.28): the caller gets the error and its words. + logger.error(f"Report spec '{format_set_name}' ({output_format}) failed: {e}") + raise finally: try: diff --git a/tests/micro-tests/data/asset_graph_by_guid_response.json b/tests/micro-tests/data/asset_graph_by_guid_response.json new file mode 100644 index 00000000..e5a867ef --- /dev/null +++ b/tests/micro-tests/data/asset_graph_by_guid_response.json @@ -0,0 +1,485 @@ +{ + "_recorded": "AssetCatalog.get_asset_graph_by_guid(output_format='JSON') against qs-view-server, 2026-11-09, read only; relationships trimmed to the first of 4", + "response": { + "class": "AssetGraph", + "elementHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "206a6e44-ffe7-408b-8e59-79842d362776", + "typeName": "GovernanceActionProcessInstance", + "superTypeNames": [ + "TransientEmbeddedProcess", + "EmbeddedProcess", + "Action", + "Process", + "Asset", + "Referenceable", + "OpenMetadataRoot" + ], + "typeVersion": 1, + "typeDescription": "Represents a single run of a governance action process. It is linked to the parent governance action process using the GovernedBy relationship.", + "typeCategory": "ENTITY_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "egeriagovernanceengine", + "maintainedBy": [ + "baudotnpa", + "egeriagovernanceengine" + ], + "createTime": "2026-11-09T11:05:12.882+00:00", + "updateTime": "2026-11-09T11:05:17.237+00:00", + "version": 4, + "lastRequestId": "7807c843-3774-40b4-bd2c-31460308ebb9" + }, + "guid": "bf1d5f61-9d79-41bc-a89a-d863222585ff", + "anchor": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "aa44f302-2e43-4669-a1e7-edaae414fc6e", + "typeName": "Anchors", + "typeVersion": 1, + "typeDescription": "Identifies the anchor entity for an element that is part of a large composite object such as an asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:12.871+00:00", + "updateTime": "2026-11-09T11:05:12.871+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "Anchors", + "classificationProperties": { + "class": "AnchorsProperties", + "typeName": "Anchors", + "anchorGUID": "33884dcc-c0b8-455e-8991-52c704a84d46", + "anchorTypeName": "ProvisioningActionProcess", + "anchorDomainName": "AuthoredReferenceable" + } + } + }, + "properties": { + "class": "GovernanceActionProcessInstanceProperties", + "typeName": "GovernanceActionProcessInstance", + "qualifiedName": "ProvisioningActionProcess::provisioningGovernanceActionType::95ff50a4-13fe-4479-90f2-22d4c9c48ad9@1794222312842::77bd32e3-074f-4405-98c0-8df53021a9df", + "displayName": "provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026", + "requestedTime": "2026-11-09T11:05:12.842+00:00", + "requestedStartTime": "2026-11-09T11:05:13.136+00:00", + "startTime": "2026-11-09T11:05:17.104+00:00", + "activityStatus": "IN_PROGRESS" + }, + "governedBy": [ + { + "class": "RelatedMetadataElementSummary", + "relationshipHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "89c3c695-9e8d-4660-9f44-ed971fd55f89", + "typeName": "GovernedBy", + "superTypeNames": [ + "LabeledRelationship" + ], + "typeVersion": 1, + "typeDescription": "Shows the resources that are governed by a specific governance definition.", + "typeCategory": "RELATIONSHIP_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:13.014+00:00", + "updateTime": "2026-11-09T11:05:13.014+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "guid": "6d6fc1ff-4717-41cf-8f73-ea2b8025f4b1" + }, + "relatedElement": { + "elementHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "c010a7df-ac08-4ad6-ac86-c9292fae2961", + "typeName": "ProvisioningActionProcess", + "superTypeNames": [ + "GovernanceActionProcess", + "GovernanceAction", + "GovernanceControl", + "GovernanceDefinition", + "AuthoredReferenceable", + "Referenceable", + "OpenMetadataRoot" + ], + "typeVersion": 1, + "typeDescription": "A governance action process that is used to provision a digital resource to a target environment.", + "typeCategory": "ENTITY_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "egeriagovernanceengine", + "updatedBy": "egeriagovernanceengine", + "maintainedBy": [ + "egeriagovernanceengine" + ], + "createTime": "2026-11-07T22:59:57.540+00:00", + "updateTime": "2026-11-07T22:59:57.540+00:00", + "version": 1, + "lastRequestId": "5c93efd8-f28d-44e9-a1db-cad2c92ae15f" + }, + "guid": "33884dcc-c0b8-455e-8991-52c704a84d46", + "anchor": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "aa44f302-2e43-4669-a1e7-edaae414fc6e", + "typeName": "Anchors", + "typeVersion": 1, + "typeDescription": "Identifies the anchor entity for an element that is part of a large composite object such as an asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "egeriagovernanceengine", + "updatedBy": "egeriagovernanceengine", + "maintainedBy": [ + "egeriagovernanceengine" + ], + "createTime": "2026-11-07T22:59:57.538+00:00", + "updateTime": "2026-11-07T22:59:57.538+00:00", + "version": 1, + "lastRequestId": "5c93efd8-f28d-44e9-a1db-cad2c92ae15f" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "Anchors", + "classificationProperties": { + "class": "AnchorsProperties", + "typeName": "Anchors", + "anchorGUID": "95ff50a4-13fe-4479-90f2-22d4c9c48ad9", + "anchorTypeName": "DigitalSubscription", + "anchorDomainName": "AuthoredReferenceable" + } + } + }, + "properties": { + "class": "ProvisioningActionProcessProperties", + "typeName": "ProvisioningActionProcess", + "qualifiedName": "ProvisioningActionProcess::provisioningGovernanceActionType::95ff50a4-13fe-4479-90f2-22d4c9c48ad9", + "displayName": "provisioningGovernanceActionType", + "description": "The governance action type that implements the provisioning action." + } + }, + "relatedElementAtEnd1": false + } + ], + "relationships": [ + { + "class": "RelatedMetadataNodeSummary", + "relationshipHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "207e2594-e3e4-4be8-a12c-4c401656e241", + "typeName": "ActionTarget", + "typeVersion": 1, + "typeDescription": "Associates an action with one or more elements to work on.", + "typeCategory": "RELATIONSHIP_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:15.465+00:00", + "updateTime": "2026-11-09T11:05:15.465+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "guid": "bc072387-85c6-4e91-a5af-68be4e8d38b4" + }, + "relationshipProperties": { + "class": "ActionTargetProperties", + "typeName": "ActionTarget", + "actionTargetName": "destinationDataSet" + }, + "relatedElement": { + "elementHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "8f5614c5-1777-4760-a500-07e60ba29746", + "typeName": "TabularDataSetCollection", + "superTypeNames": [ + "DataSet", + "DataAsset", + "Asset", + "Referenceable", + "OpenMetadataRoot" + ], + "typeVersion": 1, + "typeDescription": "Collection of related tabular data sets, not necessarily stored together.", + "typeCategory": "ENTITY_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "peterprofile", + "updatedBy": "peterprofile", + "maintainedBy": [ + "peterprofile" + ], + "createTime": "2026-11-07T22:59:45.646+00:00", + "updateTime": "2026-11-07T22:59:45.646+00:00", + "version": 1, + "lastRequestId": "d57a595b-b11b-46a8-bcc4-ea44fec06456", + "lastOperationId": "28401e15-455a-4179-9aec-0bda05f1796b" + }, + "guid": "408e542a-272d-4773-ba9b-4cea3d539f01", + "anchor": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "aa44f302-2e43-4669-a1e7-edaae414fc6e", + "typeName": "Anchors", + "typeVersion": 1, + "typeDescription": "Identifies the anchor entity for an element that is part of a large composite object such as an asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "peterprofile", + "updatedBy": "peterprofile", + "maintainedBy": [ + "peterprofile" + ], + "createTime": "2026-11-07T22:59:45.629+00:00", + "updateTime": "2026-11-07T22:59:45.629+00:00", + "version": 1, + "lastRequestId": "d57a595b-b11b-46a8-bcc4-ea44fec06456" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "Anchors", + "classificationProperties": { + "class": "AnchorsProperties", + "typeName": "Anchors", + "anchorTypeName": "TabularDataSetCollection", + "anchorDomainName": "Asset" + } + }, + "dataScope": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "22f996d0-c4b7-433a-af0b-6a3e9478e488", + "typeName": "DataScope", + "typeVersion": 2, + "typeDescription": "Identifies the scope of the data stored in the digital resource(s).", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "egeriagovernanceengine", + "updatedBy": "olcatnpa", + "maintainedBy": [ + "egeriagovernanceengine", + "olcatnpa" + ], + "createTime": "2026-11-08T00:42:56.193+00:00", + "updateTime": "2026-11-09T11:05:15.494+00:00", + "version": 124, + "lastRequestId": "6859ec57-a5a4-4b18-91ca-82728bb4ea76" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "DataScope", + "classificationProperties": { + "class": "DataScopeProperties", + "typeName": "DataScope", + "dataCollectionStartTime": "2026-11-07T23:36:00.865+00:00", + "dataCollectionEndTime": "2026-11-09T09:57:27.956+00:00", + "additionalProperties": { + "lastWrittenAt": "2026-11-09T09:57:27.956Z", + "analysisTime": "2026-11-09T09:43:16Z", + "writePattern": "APPENDED", + "lastWrittenByRunId": "ee66603d-6075-43c5-a446-ae7edb660d97", + "analysisWindowEnd": "2026-11-09T09:43:16Z", + "writersInWindow": "1", + "analysisService": "open-lineage-data-scope-governance-service", + "writesPerDay": "2.84", + "writesInWindow": "82", + "lastWriteInWindow": "2026-11-09T09:39:24Z", + "firstWriteInWindow": "2026-11-07T23:41:36Z", + "writeCount": "68", + "analysisWindowStart": "2026-10-10T09:43:16Z" + } + } + }, + "usageActivity": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "cfae23a1-8020-431f-a603-1f1bb0e01cb3", + "typeName": "UsageActivity", + "typeVersion": 1, + "typeDescription": "Describes the usage activity around an anchor element and its anchored elements: how often it is explicitly retrieved, found through searches, has its properties updated, and has its attachments and feedback updated or deleted.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "peterprofile", + "updatedBy": "pepysnpa", + "maintainedBy": [ + "peterprofile", + "pepysnpa" + ], + "createTime": "2026-11-07T22:59:45.639+00:00", + "updateTime": "2026-11-08T23:29:46.590+00:00", + "version": 8, + "lastRequestId": "a5b5ae2c-02f5-4114-bf0e-7b97eb0084f3" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "UsageActivity", + "classificationProperties": { + "class": "UsageActivityProperties", + "typeName": "UsageActivity", + "explicitGetCount": 2608, + "findCount": 87, + "updatePropertyCount": 0, + "updateAttachmentCount": 1, + "updateFeedbackCount": 0, + "deleteAttachmentCount": 0, + "deleteFeedbackCount": 0 + } + }, + "dataAssetEncoding": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "3f6a1513-d3ea-4666-b5fd-c76477b0245e", + "typeName": "DataAssetEncoding", + "typeVersion": 1, + "typeDescription": "Description for how data is organized and represented in a data asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "peterprofile", + "updatedBy": "peterprofile", + "maintainedBy": [ + "peterprofile" + ], + "createTime": "2026-11-07T22:59:45.639+00:00", + "updateTime": "2026-11-07T22:59:45.639+00:00", + "version": 1, + "lastRequestId": "d57a595b-b11b-46a8-bcc4-ea44fec06456", + "lastOperationId": "28401e15-455a-4179-9aec-0bda05f1796b" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "DataAssetEncoding", + "classificationProperties": { + "class": "DataAssetEncodingProperties", + "typeName": "DataAssetEncoding", + "encodingType": "relational", + "encodingLanguage": "SQL" + } + } + }, + "properties": { + "class": "TabularDataSetCollectionProperties", + "typeName": "TabularDataSetCollection", + "qualifiedName": "PostgreSQL Tabular Data Set Collection::Coco PostgreSQL Server 1::subscription_staging.coco_austin_haz_mat__goods_inventory_stock", + "displayName": "subscription_staging.coco_austin_haz_mat__goods_inventory_stock", + "description": "Austin HazMat Inventory (Coco core) copy of the Goods Inventory Stock digital product. Hazardous Material Holdings depends on it (hazardous holdings).", + "versionIdentifier": "V1.0", + "deployedImplementationType": "PostgreSQL Tabular Data Set Collection", + "contentStatus": "ACTIVE" + } + }, + "relatedElementAtEnd1": false, + "startingElementGUID": "1de658d3-6af5-4c32-b915-5fb6bd5bb524" + } + ], + "mermaidGraph": "---\ntitle: GovernanceActionProcessInstance - provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026 [bf1d5f61-9d79-41bc-a89a-d863222585ff]\n---\nflowchart TD\n%%{init: {\"flowchart\": {\"htmlLabels\": false}} }%%\n\n1@{ shape: rounded, label: \"*Governance Action Process Instance*\n**provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026**\"}\n2@{ shape: trap-t, label: \"*Engine Action*\n**provision-subscription (EgeriaGovernance)**\"}\n1==>|\"Action Requester\"|2\n3@{ shape: processes, label: \"*Provisioning Action Process*\n**provisioningGovernanceActionType**\"}\n1==>|\"Governed By\"|3\nstyle 1 color:#000000, fill:#e0ab18, stroke:#004563\nstyle 2 color:#000000, fill:#7fffd4, stroke:#000000\nstyle 3 color:#000000, fill:#40E0D0, stroke:#000000\n", + "anchorMermaidGraph": "---\ntitle: Asset - provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026 [bf1d5f61-9d79-41bc-a89a-d863222585ff]\n---\nflowchart LR\n%%{init: {\"flowchart\": {\"htmlLabels\": false}} }%%\n\nsubgraph 1 [Classifications]\ndirection TB\n2@{ shape: rounded, label: \"*Anchors*\n\"}\nend\n3@{ shape: rounded, label: \"*Governance Action Process Instance*\n**provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026**\"}\n4@{ shape: rounded, label: \"*Engine Action*\n**provision-subscription (EgeriaGovernance)**\"}\n5@{ shape: stadium, label: \"*Integration Connector*\n**BaudotDigitalProductSubscriptionManagerIntegrationConnector**\"}\n5==>|\"Action Requester\"|4\n3==>|\"Action Requester\"|4\nstyle 1 color:#000000, fill:#F9F7ED, stroke:#b7c0c7\nstyle 3 color:#000000, fill:#e0ab18, stroke:#004563\nstyle 4 color:#000000, fill:#ffffe0, stroke:#004563\nstyle 5 color:#000000, fill:#BDB76B, stroke:#004563\n", + "actionMermaidGraph": "---\ntitle: Actions associated with Asset - provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026 [bf1d5f61-9d79-41bc-a89a-d863222585ff]\n---\nflowchart LR\n%%{init: {\"flowchart\": {\"htmlLabels\": false}} }%%\n\n1@{ shape: rounded, label: \"*Governance Action Process Instance*\n**provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026**\"}\n2@{ shape: cyl, label: \"*Tabular Data Set Collection*\n**subscription_staging.coco_austin_haz_mat__goods_inventory_stock**\"}\n3==>|\"destinationDataSet [Action Target]\"|2\n4@{ shape: cyl, label: \"*Tabular Data Set Collection*\n**coco_data_hub.goods_inventory_stock**\"}\n3==>|\"sourceDataSet [Action Target]\"|4\nstyle 1 color:#000000, fill:#e0ab18, stroke:#004563\nstyle 2 color:#000000, fill:#BDB76B, stroke:#004563\nstyle 4 color:#000000, fill:#BDB76B, stroke:#004563\n" + } +} \ No newline at end of file diff --git a/tests/micro-tests/test_asset_graph_spec.py b/tests/micro-tests/test_asset_graph_spec.py new file mode 100644 index 00000000..5a4f38a1 --- /dev/null +++ b/tests/micro-tests/test_asset_graph_spec.py @@ -0,0 +1,152 @@ +"""The Asset-Graph report spec renders Egeria's asset graph in every format it declares (6.2.28). + +Recorded input: `data/asset_graph_by_guid_response.json`, one AssetCatalog.get_asset_graph_by_guid +response from qs-view-server (read only). The executor tests run the real path, +exec_report_spec -> AssetCatalog.get_asset_graph_by_guid -> _async_get_results_body_request -> +_generate_asset_output; only the HTTP request is replaced by the recording. +""" +from __future__ import annotations + +import copy +import json +from pathlib import Path + +import pytest + +import pyegeria.view.base_report_formats as brf +from pyegeria.omvs.asset_catalog import AssetCatalog +from pyegeria.view.format_set_executor import exec_report_spec + +pytestmark = pytest.mark.unit + +RECORDED = json.loads((Path(__file__).parent / "data" / "asset_graph_by_guid_response.json").read_text())["response"] +GUID = RECORDED["elementHeader"]["guid"] +NAME = RECORDED["properties"]["displayName"] +DECLARED = ["DICT", "TABLE", "JSON", "REPORT", "HTML", "MERMAID"] +GRAPH_COLUMNS = {"Mermaid Graph": "mermaidGraph", "Anchor Graph": "anchorMermaidGraph", + "Action Graph": "actionMermaidGraph"} + + +class _Response: + status_code = 200 + + def __init__(self, body): + self._body = body + + def json(self): + return copy.deepcopy(self._body) + + +@pytest.fixture +def offline_asset_catalog(monkeypatch): + """AssetCatalog with no platform: the request returns the recorded graph.""" + calls = [] + + def _init(self, view_server, platform_url, user_id=None, user_pwd=None, **_): + self.view_server, self.platform_url, self.user_id = view_server, platform_url, user_id + + async def _request(self, method, url, payload=None, *a, **k): + calls.append((method, url)) + return _Response({"class": "AssetGraphResponse", "element": RECORDED}) + + # The executor maps every class name to EgeriaTech, which proxies to AssetCatalog; build the + # AssetCatalog directly so nothing can reach a platform, and fail loudly if EgeriaTech is built. + import pyegeria.view.format_set_executor as fse + from pyegeria.egeria_tech_client import EgeriaTech + real_resolve = fse._resolve_client_and_method + + def _resolve(decl): + cls, method = real_resolve(decl) + return (AssetCatalog, method) if decl == "AssetCatalog.get_asset_graph_by_guid" else (cls, method) + + def _no_egeria_tech(self, *a, **k): + raise AssertionError("the test would have built a real EgeriaTech client") + + monkeypatch.setattr(fse, "_resolve_client_and_method", _resolve) + monkeypatch.setattr(EgeriaTech, "__init__", _no_egeria_tech) + monkeypatch.setattr(AssetCatalog, "__init__", _init) + monkeypatch.setattr(AssetCatalog, "_async_make_request", _request) + monkeypatch.setattr(AssetCatalog, "create_egeria_bearer_token", lambda self, *a, **k: "token") + monkeypatch.setattr(AssetCatalog, "close_session", lambda self: None) + return calls + + +def _run(fmt): + return exec_report_spec("Asset-Graph", output_format=fmt, params={"guid": GUID}, + view_server="qs-view-server", view_url="https://localhost:9443", + user="tester", user_pass="unused") + + +def test_the_spec_declares_exactly_the_graph_formats_and_the_corrected_key(): + spec = brf.base_report_specs["Asset-Graph"] + types = sorted(t for f in spec.formats for t in f.types) + assert types == sorted(DECLARED) + keys = {c.key for f in spec.formats for c in f.attributes} + assert "anchorMermaidGRaph" not in keys + assert {"mermaidGraph", "anchorMermaidGraph", "actionMermaidGraph"} <= keys + assert spec.action.function == "AssetCatalog.get_asset_graph_by_guid" + assert spec.action.required_params == ["guid"] + + +@pytest.mark.parametrize("fmt", ["DICT", "TABLE"]) +def test_dict_and_table_are_one_row_the_asset_itself_with_its_graphs(offline_asset_catalog, fmt): + result = _run(fmt) + assert result["kind"] == "json" + rows = result["data"] + assert isinstance(rows, list) and len(rows) == 1 # the asset, not its related elements + row = rows[0] + assert row["GUID"] == GUID and row["Display Name"] == NAME + for column, key in GRAPH_COLUMNS.items(): + assert row[column] == RECORDED[key], column + assert offline_asset_catalog and offline_asset_catalog[0][1].endswith(f"/assets/{GUID}/as-graph") + + +def test_json_is_the_raw_graph(offline_asset_catalog): + result = _run("JSON") + assert result["kind"] == "json" and result["data"]["mermaidGraph"] == RECORDED["mermaidGraph"] + + +def test_report_carries_the_asset_fields_and_every_graph(offline_asset_catalog): + result = _run("REPORT") + assert result["kind"] == "text" and result["content"] + content = result["content"] + assert NAME in content and GUID in content + assert content.count("```mermaid") == len(GRAPH_COLUMNS) + for column in GRAPH_COLUMNS: + assert f"### {column}" in content, column + + +def test_html_carries_the_graphs(offline_asset_catalog): + result = _run("HTML") + assert result["kind"] == "text" and result["mime"] == "text/html" + assert "mermaid" in result["content"] and NAME in result["content"] + + +def test_mermaid_is_the_asset_graph(offline_asset_catalog): + result = _run("MERMAID") + assert result["kind"] == "text" + content = result["content"] + assert content.count("```mermaid") == 1 + # Exactly the recorded asset graph (mermaidGraph) as the formatter renders it, not the anchor + # or action graph. + from pyegeria.view.output_formatter import _format_mermaid_value + assert _format_mermaid_value(RECORDED["mermaidGraph"]) in content + for other in ("anchorMermaidGraph", "actionMermaidGraph"): + assert _format_mermaid_value(RECORDED[other]) not in content + + +@pytest.mark.parametrize("fmt", ["ALL", "MD", "FORM", "LIST"]) +def test_a_format_the_spec_does_not_declare_is_an_error_with_words(offline_asset_catalog, fmt): + with pytest.raises(ValueError) as exc: + _run(fmt) + words = str(exc.value) + assert f"does not support requested output_format '{fmt}'" in words + assert "Available formats: DICT, HTML, JSON, MERMAID, REPORT, TABLE." in words + assert not offline_asset_catalog # refused before any request + + +@pytest.mark.parametrize("fmt", DECLARED) +def test_no_declared_format_returns_none_or_empty(offline_asset_catalog, fmt): + result = _run(fmt) + assert result is not None and result.get("kind") in {"json", "text"} + assert result.get("data") is not None or result.get("content") From fe390e64c428b76761d777e0929aec83771837db Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 11:16:10 +0000 Subject: [PATCH 06/14] fix: report specs filter as named; hard-coded filters no longer collide Dr.Egeria find_constraints (edited via the Spec Editor API, then refresh_specs --merge-reports; generated outputs as written): - 6 external-reference Create commands: metadata_element_types: ["X"] -> metadata_element_type: "X" (the validator's preferred form; Dr.Egeria processing reads it the same way). Their report specs now return only their own type: Cited-Document 87 -> 2 rows, Related-Media 87 -> 4, External-Data-Source/-Model-Source/-Source-Code/-Standard 87 -> 0 (quickstart). - Create Question: classification: "Question" (read by nothing) -> include_only_classified_elements: ["Question"]. Question-DrE-* now returns the 152 Question terms instead of failing. 58 call sites passed a filter such as metadata_element_type explicitly beside **kwargs, so a caller or spec passing that filter raised TypeError ("multiple values") -- why Question-DrE-* failed. The built-in value is now a default in the splat that the caller's keyword overrides; a micro-test keeps it that way. KNOWN_BAD_SPEC_PARAMS is gone: every built-in spec's spec_params must name a filter or parameter of the method it calls. Release note states the row-count changes, including classification_names now filtering on a find (Data-Sharing-Agreement 1000+ -> 598; Digital-Product-Catalog 1000+ -> 0 because DigitalProductCatalog is a type, not a classification -- its spec needs metadata_element_type). The two template diffs are pre-existing drift rewritten by refresh_specs. Signed-off-by: Dan Wolfson --- docs/release-notes/6.2.28.md | 47 ++++++++++++---- .../commands_external_references_compact.json | 12 ++-- .../commands_glossary_compact.json | 2 +- md_processing/data/generated_format_sets.json | 56 ++++++------------- pyegeria/omvs/actor_manager.py | 3 +- pyegeria/omvs/asset_maker.py | 20 +++---- pyegeria/omvs/automated_curation.py | 19 +++---- pyegeria/omvs/classification_explorer.py | 24 +++----- pyegeria/omvs/collection_manager.py | 4 +- pyegeria/omvs/community_matters_omvs.py | 3 +- pyegeria/omvs/connection_maker.py | 18 ++---- pyegeria/omvs/data_designer.py | 10 ++-- pyegeria/omvs/data_discovery.py | 6 +- pyegeria/omvs/external_links.py | 4 +- pyegeria/omvs/glossary_manager.py | 9 +-- pyegeria/omvs/metadata_expert.py | 24 +++----- pyegeria/omvs/product_catalog.py | 4 +- pyegeria/omvs/product_manager.py | 10 ++-- pyegeria/omvs/project_manager.py | 7 +-- pyegeria/omvs/runtime_manager.py | 11 ++-- pyegeria/omvs/schema_maker.py | 4 +- pyegeria/omvs/security_officer.py | 3 +- pyegeria/omvs/solution_architect.py | 23 +++----- pyegeria/view/base_report_formats.py | 28 +++++----- .../Create_Display_Data_Container.md | 2 + .../Views & Reports/Create_Dashboard.md | 2 + .../Create_Display_Data_Container.md | 2 + .../basic/Views & Reports/Create_Dashboard.md | 2 + .../test_search_get_filter_kwargs.py | 40 +++++++++---- 29 files changed, 191 insertions(+), 208 deletions(-) diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index b50703c3..a965ca94 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -31,18 +31,43 @@ - **Docs:** [Search and get filters](../search-and-get-filters.md) — the full tables, which Egeria request body each maps to, and examples. -### Behaviour changes to check +### Behaviour changes: some reports now return fewer rows + +These reports used to ignore part of their filter and list everything; they now return only +what they are named for. Row counts are from the quickstart demo (live reads, 2026-11-09): + +| Report spec (Basic and Advanced) | Before | Now | +|---|---|---| +| `Cited-Document-DrE-*` | 87 (every external reference) | 2 | +| `Related-Media-DrE-*` | 87 | 4 | +| `External-Data-Source-DrE-*`, `External-Model-Source-DrE-*`, `External-Source-Code-DrE-*`, `External-Standard-DrE-*` | 87 each | 0 | +| `Question-DrE-*` | failed with `TypeError` (and would have listed 1000+ glossary terms) | 152 | +| `Data-Sharing-Agreement-DrE-*` (`find_collections`) | 1000+ (every collection) | 598 (Agreements classified DataSharingAgreement) | +| `Digital-Product-Catalog-DrE-*` (`find_collections`) | 1000+ (every collection) | 0 — see below | + +- **`classification_names` on a find now filters.** It is sent as + `includeOnlyClassifiedElements` (it already meant that on a by-name get). Before, a find + dropped it silently. So the two Dr.Egeria specs that pass `classification_names` to + `find_collections` return fewer rows than before. `Data-Sharing-Agreement-DrE-*` now lists + only Agreements classified DataSharingAgreement. `Digital-Product-Catalog-DrE-*` now lists + nothing: `DigitalProductCatalog` is a type, not a classification, so its spec has always been + wrong (it listed every collection); the fix is `metadata_element_type: DigitalProductCatalog` + in its Dr.Egeria `find_constraints` (3 catalogs on the quickstart). The project-family specs + (Campaign etc.) already used `include_only_classified_elements` and are unchanged. +- **The external-reference and Question specs now return only their own type.** Their + Dr.Egeria `find_constraints` named filters the method did not have + (`metadata_element_types`, `classification`); they now use `metadata_element_type` and + `include_only_classified_elements: ["Question"]`, and the report specs were regenerated. + Dr.Egeria command processing is unchanged (it reads the singular type key the same way). +- **A hard-coded filter no longer collides with yours.** 58 call sites passed a filter such as + `metadata_element_type` explicitly beside `**kwargs`, so passing that filter raised + `TypeError: got multiple values` (this is why `Question-DrE-*` failed). The built-in value is + now a default that a caller's keyword overrides. + +### Other changes to check -- A filter keyword that was silently dropped before now reaches Egeria. In particular - `classification_names` on a find is now sent as `includeOnlyClassifiedElements` (it already - meant that on a by-name get), so the Dr.Egeria `*-DrE-*` report specs that pass - `classification_names` (e.g. Campaign → `find_projects`) now return only elements carrying - that classification instead of all of them. - A filter given as `None` never overrides a method's own default. - `MetadataExpert.find_metadata_elements` builds its default body from any `FindRequestBody` field given as a keyword (before: a fixed subset). -- Two built-in report-spec families pass a filter their method does not have, and now warn - when run: `metadata_element_types` → `ExternalReferences.find_external_references` - (12 `Cited-Document-*`, `External-Data-Source-*`... specs) and `classification` → - `GlossaryManager.find_glossary_terms` (`Question-DrE-*`). Those filters were always - ignored; the fix belongs in the Dr.Egeria compact specs. +- Every built-in report spec's `spec_params` is now checked by a micro-test against the method + it calls. diff --git a/md_processing/data/compact_commands/commands_external_references_compact.json b/md_processing/data/compact_commands/commands_external_references_compact.json index 855a4802..974a8231 100644 --- a/md_processing/data/compact_commands/commands_external_references_compact.json +++ b/md_processing/data/compact_commands/commands_external_references_compact.json @@ -3033,7 +3033,7 @@ "attach": false, "level": "Basic", "find_method": "ExternalReferences.find_external_references", - "find_constraints": "{\"metadata_element_types\": [\"ExternalDataSource\"]}", + "find_constraints": "{\"metadata_element_type\": \"ExternalDataSource\"}", "extra_find": "", "extra_constraints": "", "OM_TYPE": "ExternalDataSource", @@ -3052,7 +3052,7 @@ "attach": false, "level": "Basic", "find_method": "ExternalReferences.find_external_references", - "find_constraints": "{\"metadata_element_types\": [\"ExternalModelSource\"]}", + "find_constraints": "{\"metadata_element_type\": \"ExternalModelSource\"}", "extra_find": "", "extra_constraints": "", "OM_TYPE": "ExternalModelSource", @@ -3071,7 +3071,7 @@ "attach": false, "level": "Basic", "find_method": "ExternalReferences.find_external_references", - "find_constraints": "{\"metadata_element_types\": [\"ExternalSourceCode\"]}", + "find_constraints": "{\"metadata_element_type\": \"ExternalSourceCode\"}", "extra_find": "", "extra_constraints": "", "OM_TYPE": "ExternalSourceCode", @@ -3092,7 +3092,7 @@ "attach": false, "level": "Basic", "find_method": "ExternalReferences.find_external_references", - "find_constraints": "{\"metadata_element_types\": [\"RelatedMedia\"]}", + "find_constraints": "{\"metadata_element_type\": \"RelatedMedia\"}", "extra_find": "", "extra_constraints": "", "OM_TYPE": "RelatedMedia", @@ -3111,7 +3111,7 @@ "attach": false, "level": "Basic", "find_method": "ExternalReferences.find_external_references", - "find_constraints": "{\"metadata_element_types\": [\"CitedDocument\"]}", + "find_constraints": "{\"metadata_element_type\": \"CitedDocument\"}", "extra_find": "", "extra_constraints": "", "OM_TYPE": "CitedDocument", @@ -3198,7 +3198,7 @@ "attach": false, "level": "Basic", "find_method": "ExternalReferences.find_external_references", - "find_constraints": "{\"metadata_element_types\": [\"ExternalStandard\"]}", + "find_constraints": "{\"metadata_element_type\": \"ExternalStandard\"}", "extra_find": "", "extra_constraints": "", "OM_TYPE": "ExternalStandard", diff --git a/md_processing/data/compact_commands/commands_glossary_compact.json b/md_processing/data/compact_commands/commands_glossary_compact.json index 19c5b395..10a745be 100644 --- a/md_processing/data/compact_commands/commands_glossary_compact.json +++ b/md_processing/data/compact_commands/commands_glossary_compact.json @@ -2992,7 +2992,7 @@ "attach": false, "level": "Basic", "find_method": "GlossaryManager.find_glossary_terms", - "find_constraints": "{\"metadata_element_type\": \"GlossaryTerm\", \"classification\": \"Question\"}", + "find_constraints": "{\"metadata_element_type\": \"GlossaryTerm\", \"include_only_classified_elements\": [\"Question\"]}", "extra_find": "", "extra_constraints": "", "OM_TYPE": "GlossaryTerm", diff --git a/md_processing/data/generated_format_sets.json b/md_processing/data/generated_format_sets.json index 12d3e1bb..de1cf660 100644 --- a/md_processing/data/generated_format_sets.json +++ b/md_processing/data/generated_format_sets.json @@ -108106,9 +108106,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "ExternalDataSource" - ] + "metadata_element_type": "ExternalDataSource" }, "analytic_function": null, "analytic_spec_params": {} @@ -109545,9 +109543,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "ExternalDataSource" - ] + "metadata_element_type": "ExternalDataSource" }, "analytic_function": null, "analytic_spec_params": {} @@ -110164,9 +110160,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "ExternalModelSource" - ] + "metadata_element_type": "ExternalModelSource" }, "analytic_function": null, "analytic_spec_params": {} @@ -111603,9 +111597,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "ExternalModelSource" - ] + "metadata_element_type": "ExternalModelSource" }, "analytic_function": null, "analytic_spec_params": {} @@ -112222,9 +112214,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "ExternalSourceCode" - ] + "metadata_element_type": "ExternalSourceCode" }, "analytic_function": null, "analytic_spec_params": {} @@ -113661,9 +113651,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "ExternalSourceCode" - ] + "metadata_element_type": "ExternalSourceCode" }, "analytic_function": null, "analytic_spec_params": {} @@ -114456,9 +114444,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "RelatedMedia" - ] + "metadata_element_type": "RelatedMedia" }, "analytic_function": null, "analytic_spec_params": {} @@ -116071,9 +116057,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "RelatedMedia" - ] + "metadata_element_type": "RelatedMedia" }, "analytic_function": null, "analytic_spec_params": {} @@ -117042,9 +117026,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "CitedDocument" - ] + "metadata_element_type": "CitedDocument" }, "analytic_function": null, "analytic_spec_params": {} @@ -118833,9 +118815,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "CitedDocument" - ] + "metadata_element_type": "CitedDocument" }, "analytic_function": null, "analytic_spec_params": {} @@ -119452,9 +119432,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "ExternalStandard" - ] + "metadata_element_type": "ExternalStandard" }, "analytic_function": null, "analytic_spec_params": {} @@ -120891,9 +120869,7 @@ "metadata_element_type" ], "spec_params": { - "metadata_element_types": [ - "ExternalStandard" - ] + "metadata_element_type": "ExternalStandard" }, "analytic_function": null, "analytic_spec_params": {} @@ -133285,7 +133261,9 @@ ], "spec_params": { "metadata_element_type": "GlossaryTerm", - "classification": "Question" + "include_only_classified_elements": [ + "Question" + ] }, "analytic_function": null, "analytic_spec_params": {} @@ -135007,7 +134985,9 @@ ], "spec_params": { "metadata_element_type": "GlossaryTerm", - "classification": "Question" + "include_only_classified_elements": [ + "Question" + ] }, "analytic_function": null, "analytic_spec_params": {} diff --git a/pyegeria/omvs/actor_manager.py b/pyegeria/omvs/actor_manager.py index ffb95fab..31b6cd50 100644 --- a/pyegeria/omvs/actor_manager.py +++ b/pyegeria/omvs/actor_manager.py @@ -5231,12 +5231,11 @@ async def _async_find_all_contribution_records( list | str """ return await self._async_find_contribution_records( - search_string="*", start_from=start_from, page_size=page_size, output_format=output_format, report_spec=report_spec, - **kwargs, + **{"search_string": "*", **kwargs}, ) @dynamic_catch diff --git a/pyegeria/omvs/asset_maker.py b/pyegeria/omvs/asset_maker.py index ce7e39d0..a72528cc 100644 --- a/pyegeria/omvs/asset_maker.py +++ b/pyegeria/omvs/asset_maker.py @@ -692,13 +692,12 @@ async def _async_get_assets_by_name( filter_string=filter_string, metadata_element_type_name=metadata_element_type_name, metadata_element_subtypes=metadata_element_subtypes, - classification_names=include_only_classified_elements, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, graph_query_depth=graph_query_depth, start_from=start_from, page_size=page_size, output_format=output_format, - report_spec=report_spec, body=body, **kwargs) + report_spec=report_spec, body=body, **{"classification_names": include_only_classified_elements, **kwargs}) @dynamic_catch def get_assets_by_name( @@ -2306,7 +2305,6 @@ async def _async_get_data_assets_by_category( url, _type="DataAsset", _gen_output=self._generate_referenceable_output, - filter_string=category, content_status_list=content_status_list, graph_query_depth=graph_query_depth, start_from=start_from, @@ -2314,7 +2312,7 @@ async def _async_get_data_assets_by_category( output_format=output_format, report_spec=report_spec, body=body, - **kwargs + **{"filter_string": category, **kwargs} ) @dynamic_catch @@ -2736,7 +2734,7 @@ async def _async_get_placement_reports( in ``pyegeria.core.request_filters``). """ element = await self._async_get_asset_by_guid(dashboard_guid, - include_only_relationships=["DataSetContent"], **kwargs) + **{"include_only_relationships": ["DataSetContent"], **kwargs}) if not isinstance(element, dict): raise ValueError(f"Dashboard {dashboard_guid} could not be retrieved: {element}") return resolve_placement_reports(element, placement_qualified_names) @@ -3574,7 +3572,6 @@ async def _async_get_infrastructure_by_category( url, _type="Infrastructure", _gen_output=self._generate_referenceable_output, - filter_string=category, deployment_status_list=deployment_status_list, graph_query_depth=graph_query_depth, start_from=start_from, @@ -3582,7 +3579,7 @@ async def _async_get_infrastructure_by_category( output_format=output_format, report_spec=report_spec, body=body, - **kwargs + **{"filter_string": category, **kwargs} ) @dynamic_catch @@ -4246,7 +4243,6 @@ async def _async_get_processes_by_category( url, _type="Process", _gen_output=self._generate_referenceable_output, - filter_string=category, activity_status_list=activity_status_list, graph_query_depth=graph_query_depth, start_from=start_from, @@ -4254,7 +4250,7 @@ async def _async_get_processes_by_category( output_format=output_format, report_spec=report_spec, body=body, - **kwargs + **{"filter_string": category, **kwargs} ) @dynamic_catch @@ -6215,7 +6211,6 @@ async def _async_get_software_capabilities_by_name( url, _type="SoftwareCapability", _gen_output=self._generate_referenceable_output, - filter_string=name, metadata_element_type_name=metadata_element_type_name, graph_query_depth=graph_query_depth, start_from=start_from, @@ -6223,7 +6218,7 @@ async def _async_get_software_capabilities_by_name( output_format=output_format, report_spec=report_spec, body=body, - **kwargs + **{"filter_string": name, **kwargs} ) @dynamic_catch @@ -6339,7 +6334,6 @@ async def _async_get_software_capabilities_by_deployed_implementation_type( url, _type="SoftwareCapability", _gen_output=self._generate_referenceable_output, - filter_string=deployed_implementation_type, metadata_element_type_name=metadata_element_type_name, graph_query_depth=graph_query_depth, start_from=start_from, @@ -6347,7 +6341,7 @@ async def _async_get_software_capabilities_by_deployed_implementation_type( output_format=output_format, report_spec=report_spec, body=body, - **kwargs + **{"filter_string": deployed_implementation_type, **kwargs} ) @dynamic_catch diff --git a/pyegeria/omvs/automated_curation.py b/pyegeria/omvs/automated_curation.py index 29b2175c..0fd76348 100644 --- a/pyegeria/omvs/automated_curation.py +++ b/pyegeria/omvs/automated_curation.py @@ -3979,8 +3979,8 @@ async def _async_get_catalog_targets( response = await self._async_get_name_request(url, _type=self.CATALOG_TARGET_LABEL, _gen_output=self._generate_catalog_target_output, - filter_string=None, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body, **kwargs) + start_from=start_from, page_size=page_size, + output_format=output_format, report_spec=report_spec, body=body, **{"filter_string": None, **kwargs}) return response @@ -4501,9 +4501,9 @@ async def _async_get_tech_types_for_open_metadata_type( url = f"{self.ref_curation_command_base}/open-metadata-types/{type_name}/technology-types" response = await self._async_get_name_request(url, _type=self.TECH_TYPE_ENTITY_LABEL, _gen_output=self._generate_tech_type_output, - filter_string=tech_name, start_from=start_from, + start_from=start_from, page_size=page_size, output_format=output_format, - report_spec=report_spec, body=body, **kwargs) + report_spec=report_spec, body=body, **{"filter_string": tech_name, **kwargs}) return response @@ -5060,7 +5060,6 @@ async def _async_find_technology_types_body( ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, - metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, @@ -5079,7 +5078,7 @@ async def _async_find_technology_types_body( page_size=page_size, property_names=property_names, body=body, - **kwargs + **{"metadata_element_type": metadata_element_type, **kwargs} ) @@ -5246,9 +5245,9 @@ async def _async_get_all_technology_types( list | str List of all technology types. """ - return await self._async_find_technology_types(search_string="*", start_from=start_from, + return await self._async_find_technology_types(start_from=start_from, page_size=page_size, output_format=output_format, - report_spec=report_spec, **kwargs) + report_spec=report_spec, **{"search_string": "*", **kwargs}) def get_all_technology_types( self, @@ -5281,8 +5280,8 @@ def get_all_technology_types( list | str List of all technology types. """ - return self.find_technology_types(search_string="*", start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, **kwargs) + return self.find_technology_types(start_from=start_from, page_size=page_size, + output_format=output_format, report_spec=report_spec, **{"search_string": "*", **kwargs}) def print_engine_action_summary(self, governance_action: dict): """Print a summary of a governance engine action. diff --git a/pyegeria/omvs/classification_explorer.py b/pyegeria/omvs/classification_explorer.py index 1bd08468..78cb32b6 100644 --- a/pyegeria/omvs/classification_explorer.py +++ b/pyegeria/omvs/classification_explorer.py @@ -438,11 +438,10 @@ async def _async_get_owners_elements( url=url, _type="Referenceable", _gen_output=self._generate_referenceable_output, - filter_string=owner_name, output_format=output_format, report_spec=report_spec, body=body, - **kwargs + **{"filter_string": owner_name, **kwargs} ) return response @@ -565,11 +564,10 @@ async def _async_get_root_elements_by_category( url=url, _type="Referenceable", _gen_output=self._generate_referenceable_output, - filter_string=category, output_format=output_format, report_spec=report_spec, body=body, - **kwargs + **{"filter_string": category, **kwargs} ) return response @@ -693,11 +691,10 @@ async def _async_get_subject_area_members( url=url, _type="Referenceable", _gen_output=self._generate_referenceable_output, - filter_string=subject_area, output_format=output_format, report_spec=report_spec, body=body, - **kwargs + **{"filter_string": subject_area, **kwargs} ) return response @@ -2766,7 +2763,7 @@ async def _async_get_elements_by_property_value( return await self._async_find_request(url, "Referenceable", self._generate_referenceable_output, property_value, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - anchor_domain=anchor_domain, metadata_element_type=metadata_element_name, + anchor_domain=anchor_domain, anchor_scope_guid=anchor_scope_guid, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, @@ -2781,7 +2778,7 @@ async def _async_get_elements_by_property_value( sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - property_names=property_names, body=body, **kwargs) + property_names=property_names, body=body, **{"metadata_element_type": metadata_element_name, **kwargs}) def get_elements_by_property_value( self, @@ -3831,7 +3828,6 @@ async def _async_get_elements_by_classification_with_property_value( return await self._async_find_request(url, "Referenceable", self._generate_referenceable_output, property_value, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, - metadata_element_type=metadata_element_type_name, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, @@ -3845,7 +3841,7 @@ async def _async_get_elements_by_classification_with_property_value( sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - property_names=property_names, body=body, **kwargs) + property_names=property_names, body=body, **{"metadata_element_type": metadata_element_type_name, **kwargs}) def get_elements_by_classification_with_property_value( self, @@ -4488,7 +4484,6 @@ async def _async_get_related_elements_with_property_value( return await self._async_find_request(url, "Referenceable", self._generate_referenceable_output, property_value, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, - metadata_element_type=metadata_element_type_name, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, @@ -4502,7 +4497,7 @@ async def _async_get_related_elements_with_property_value( sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - property_names=property_names, body=body, **kwargs) + property_names=property_names, body=body, **{"metadata_element_type": metadata_element_type_name, **kwargs}) def get_related_elements_with_property_value( self, @@ -5296,9 +5291,8 @@ async def _async_find_relationships_with_property_value( return await self._async_find_request(url, _type=relationship_type or "Relationship", _gen_output=self._generate_referenceable_output, - search_string=property_value, starts_with=starts_with, + starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, - metadata_element_type=None, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, @@ -5311,7 +5305,7 @@ async def _async_find_relationships_with_property_value( sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - property_names=property_names, body=body, **kwargs) + property_names=property_names, body=body, **{"search_string": property_value, "metadata_element_type": None, **kwargs}) def find_relationships_with_property_value( self, diff --git a/pyegeria/omvs/collection_manager.py b/pyegeria/omvs/collection_manager.py index 2c8c80fa..30311de8 100644 --- a/pyegeria/omvs/collection_manager.py +++ b/pyegeria/omvs/collection_manager.py @@ -1032,9 +1032,9 @@ async def _async_get_collections_by_category(self, category: str, classification url = str(HttpUrl(f"{self.collection_command_root}/by-collection-category")) response = await self._async_get_name_request(url, _type="Collection", _gen_output=self._generate_collection_output, - filter_string=category, classification_names=classification_names, + classification_names=classification_names, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body, **kwargs) + output_format=output_format, report_spec=report_spec, body=body, **{"filter_string": category, **kwargs}) return response diff --git a/pyegeria/omvs/community_matters_omvs.py b/pyegeria/omvs/community_matters_omvs.py index d536f969..a210397f 100644 --- a/pyegeria/omvs/community_matters_omvs.py +++ b/pyegeria/omvs/community_matters_omvs.py @@ -301,7 +301,6 @@ async def _async_find_communities( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type=metadata_element_type_name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -314,7 +313,7 @@ async def _async_find_communities( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"metadata_element_type": metadata_element_type_name, **kwargs}, ) return response diff --git a/pyegeria/omvs/connection_maker.py b/pyegeria/omvs/connection_maker.py index 9dfe81e3..8c0ceb1e 100644 --- a/pyegeria/omvs/connection_maker.py +++ b/pyegeria/omvs/connection_maker.py @@ -138,7 +138,6 @@ async def _async_get_connections_by_name( url, "Connection", self._generate_referenceable_output, - filter_string=name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -148,7 +147,7 @@ async def _async_get_connections_by_name( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"filter_string": name, **kwargs}, ) def get_connections_by_name( @@ -369,7 +368,6 @@ async def _async_get_connector_types_by_name( url, "ConnectorType", self._generate_referenceable_output, - filter_string=name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -379,7 +377,7 @@ async def _async_get_connector_types_by_name( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"filter_string": name, **kwargs}, ) def get_connector_types_by_name( @@ -431,7 +429,6 @@ async def _async_get_connector_types_by_connector_provider_class_name( url, "ConnectorType", self._generate_referenceable_output, - filter_string=connector_provider_class_name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -441,7 +438,7 @@ async def _async_get_connector_types_by_connector_provider_class_name( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"filter_string": connector_provider_class_name, **kwargs}, ) def get_connector_types_by_connector_provider_class_name( @@ -662,7 +659,6 @@ async def _async_get_endpoints_by_name( url, "Endpoint", self._generate_referenceable_output, - filter_string=name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -672,7 +668,7 @@ async def _async_get_endpoints_by_name( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"filter_string": name, **kwargs}, ) def get_endpoints_by_name( @@ -724,7 +720,6 @@ async def _async_get_endpoints_by_network_address( url, "Endpoint", self._generate_referenceable_output, - filter_string=network_address, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -734,7 +729,7 @@ async def _async_get_endpoints_by_network_address( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"filter_string": network_address, **kwargs}, ) def get_endpoints_by_network_address( @@ -877,7 +872,6 @@ async def _async_get_endpoints_for_asset( url, "Endpoint", self._generate_referenceable_output, - filter_string=name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -887,7 +881,7 @@ async def _async_get_endpoints_for_asset( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"filter_string": name, **kwargs}, ) def get_endpoints_for_asset( diff --git a/pyegeria/omvs/data_designer.py b/pyegeria/omvs/data_designer.py index 7ab441af..dfc51229 100644 --- a/pyegeria/omvs/data_designer.py +++ b/pyegeria/omvs/data_designer.py @@ -943,10 +943,9 @@ async def _async_find_all_data_structures(self, graph_query_depth: int = 3, outp """ - return await self._async_find_data_structures(search_string="*", - metadata_element_type="DataStructure", + return await self._async_find_data_structures( output_format=output_format, - report_spec=report_spec, **kwargs) + report_spec=report_spec, **{"search_string": "*", "metadata_element_type": "DataStructure", **kwargs}) @dynamic_catch def find_all_data_structures(self, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, **kwargs: Unpack[SearchFilters]) -> list | str: @@ -2683,10 +2682,9 @@ async def _async_find_all_data_fields(self, graph_query_depth: int = 3, output_f """ - return await self._async_find_data_fields(search_string="*", - metadata_element_type="DataField", + return await self._async_find_data_fields( output_format=output_format, - report_spec=report_spec, body=body, **kwargs) + report_spec=report_spec, body=body, **{"search_string": "*", "metadata_element_type": "DataField", **kwargs}) @dynamic_catch def find_all_data_fields(self, graph_query_depth: int = 3, output_format: str = 'JSON', report_spec: str | dict = None, diff --git a/pyegeria/omvs/data_discovery.py b/pyegeria/omvs/data_discovery.py index 1c66eb85..bcaec7de 100644 --- a/pyegeria/omvs/data_discovery.py +++ b/pyegeria/omvs/data_discovery.py @@ -1042,13 +1042,12 @@ async def _async_get_annotations_by_analysis_step( url, _type="Annotation", _gen_output=self._generate_annotation_output, - filter_string=analysis_step, start_from=start_from, page_size=page_size, output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"filter_string": analysis_step, **kwargs}, ) def get_annotations_by_analysis_step( @@ -1105,13 +1104,12 @@ async def _async_get_annotations_by_annotation_type( url, _type="Annotation", _gen_output=self._generate_annotation_output, - filter_string=annotation_type, start_from=start_from, page_size=page_size, output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"filter_string": annotation_type, **kwargs}, ) def get_annotations_by_annotation_type( diff --git a/pyegeria/omvs/external_links.py b/pyegeria/omvs/external_links.py index aa0e0647..f6958517 100644 --- a/pyegeria/omvs/external_links.py +++ b/pyegeria/omvs/external_links.py @@ -2155,8 +2155,8 @@ async def _async_get_external_identifiers_by_name(self, name: str = "*", url = f"{self.command_root}/external-identifiers/by-name" return await self._async_get_name_request(url, "ExternalId", self._generate_external_identifier_output, - filter_string=name, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body, **kwargs) + start_from=start_from, page_size=page_size, + output_format=output_format, report_spec=report_spec, body=body, **{"filter_string": name, **kwargs}) @dynamic_catch def get_external_identifiers_by_name(self, name: str = "*", diff --git a/pyegeria/omvs/glossary_manager.py b/pyegeria/omvs/glossary_manager.py index 6384e726..55b237c3 100644 --- a/pyegeria/omvs/glossary_manager.py +++ b/pyegeria/omvs/glossary_manager.py @@ -3483,7 +3483,6 @@ async def _async_find_glossaries( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type=metadata_element_type_name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -3496,7 +3495,7 @@ async def _async_find_glossaries( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"metadata_element_type": metadata_element_type_name, **kwargs}, ) return response @@ -3572,7 +3571,6 @@ async def _async_get_glossaries_by_name( _type="Glossary", _gen_output=self._generate_glossary_output, filter_string=filter_string, - metadata_element_type_name="Glossary", metadata_element_subtypes=metadata_element_subtypes, classification_names=classification_names, include_only_relationships=include_only_relationships, @@ -3583,7 +3581,7 @@ async def _async_get_glossaries_by_name( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"metadata_element_type_name": "Glossary", **kwargs}, ) return response @@ -3878,7 +3876,6 @@ async def _async_find_glossary_terms( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type=metadata_element_type_name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -3891,7 +3888,7 @@ async def _async_find_glossary_terms( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"metadata_element_type": metadata_element_type_name, **kwargs}, ) return response diff --git a/pyegeria/omvs/metadata_expert.py b/pyegeria/omvs/metadata_expert.py index 5b139be7..9e5a07f4 100644 --- a/pyegeria/omvs/metadata_expert.py +++ b/pyegeria/omvs/metadata_expert.py @@ -2272,20 +2272,18 @@ async def _async_find_metadata_elements_with_string(self, search_string: str = " ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, metadata_element_type=metadata_element_type, - metadata_element_subtypes=metadata_element_sub_type, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, skip_classified_elements=skip_classified_elements, include_only_classified_elements=include_only_classified_elements, graph_query_depth=graph_query_depth, - governance_zone_filter=zone_filter, as_of_time=as_of_time, - effective_time=effective_time, + as_of_time=as_of_time, relationship_page_size=relationship_page_size, limit_results_by_status=limit_results_by_status, sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - body=body, **kwargs) + body=body, **{"metadata_element_subtypes": metadata_element_sub_type, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) return response @dynamic_catch @@ -2462,20 +2460,18 @@ async def _async_find_elements_for_anchor(self, guid: Optional[str] = None, sear _gen_output=self._generate_referenceable_output, search_string=search_string, anchor_domain=anchor_domain, metadata_element_type=metadata_element_type, - metadata_element_subtypes=metadata_element_sub_type, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, skip_classified_elements=skip_classified_elements, include_only_classified_elements=include_only_classified_elements, graph_query_depth=graph_query_depth, - governance_zone_filter=zone_filter, as_of_time=as_of_time, - effective_time=effective_time, + as_of_time=as_of_time, relationship_page_size=relationship_page_size, limit_results_by_status=limit_results_by_status, sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - body=body, **kwargs) + body=body, **{"metadata_element_subtypes": metadata_element_sub_type, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) return response @dynamic_catch @@ -2650,20 +2646,18 @@ async def _async_find_elements_in_anchor_domain(self, search_string: str = "*", ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, metadata_element_type=metadata_element_type, - metadata_element_subtypes=metadata_element_sub_type, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, skip_classified_elements=skip_classified_elements, include_only_classified_elements=include_only_classified_elements, graph_query_depth=graph_query_depth, - governance_zone_filter=zone_filter, as_of_time=as_of_time, - effective_time=effective_time, + as_of_time=as_of_time, relationship_page_size=relationship_page_size, limit_results_by_status=limit_results_by_status, sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - body=body, **kwargs) + body=body, **{"metadata_element_subtypes": metadata_element_sub_type, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) return response @dynamic_catch @@ -2841,20 +2835,18 @@ async def _async_find_elements_in_anchor_scope(self, guid: Optional[str] = None, ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, metadata_element_type=metadata_element_type, - metadata_element_subtypes=metadata_element_sub_type, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, skip_classified_elements=skip_classified_elements, include_only_classified_elements=include_only_classified_elements, graph_query_depth=graph_query_depth, - governance_zone_filter=zone_filter, as_of_time=as_of_time, - effective_time=effective_time, + as_of_time=as_of_time, relationship_page_size=relationship_page_size, limit_results_by_status=limit_results_by_status, sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - body=body, **kwargs) + body=body, **{"metadata_element_subtypes": metadata_element_sub_type, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) return response @dynamic_catch diff --git a/pyegeria/omvs/product_catalog.py b/pyegeria/omvs/product_catalog.py index 6b3b7151..269f7a9e 100644 --- a/pyegeria/omvs/product_catalog.py +++ b/pyegeria/omvs/product_catalog.py @@ -91,8 +91,8 @@ async def _async_find_digital_product_catalogs( return await self._async_find_request( url, _type=metadata_element_type_name, _gen_output=self._generate_collection_output, search_string=search_string, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type=metadata_element_type_name, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body, **kwargs) + start_from=start_from, page_size=page_size, + output_format=output_format, report_spec=report_spec, body=body, **{"metadata_element_type": metadata_element_type_name, **kwargs}) @dynamic_catch def find_digital_product_catalogs( diff --git a/pyegeria/omvs/product_manager.py b/pyegeria/omvs/product_manager.py index aa701fa4..c2d7e347 100644 --- a/pyegeria/omvs/product_manager.py +++ b/pyegeria/omvs/product_manager.py @@ -528,11 +528,10 @@ async def _async_get_digital_products_by_name( url = f"{self.product_manager_command_root}/collections/by-name" response = await self._async_get_name_request(url, _type="DigitalProduct", _gen_output=self._generate_collection_output, - filter_string=name, classification_names=classification_names, start_from=start_from, page_size=page_size, graph_query_depth=graph_query_depth, output_format=output_format, - report_spec=report_spec, body=body, **kwargs) + report_spec=report_spec, body=body, **{"filter_string": name, **kwargs}) return response def get_digital_products_by_name( @@ -1538,11 +1537,10 @@ async def _async_get_digital_product_catalogs_by_name( name = kwargs.pop("filter_string") url = f"{self.product_manager_command_root}/collections/by-name" response = await self._async_get_name_request(url, _type="DigitalProductCatalog", _gen_output=None, - filter_string=name, classification_names=classification_names, start_from=start_from, page_size=page_size, graph_query_depth=graph_query_depth, output_format=output_format, - report_spec=report_spec, body=body, **kwargs) + report_spec=report_spec, body=body, **{"filter_string": name, **kwargs}) return response def get_digital_product_catalogs_by_name( @@ -2129,8 +2127,8 @@ async def _async_get_governance_action_processes_by_name( f"product-catalog/governance-definitions/by-name") return await self._async_get_name_request( url, _type="GovernanceActionProcess", _gen_output=self._generate_referenceable_output, - filter_string=name, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body, **kwargs) + start_from=start_from, page_size=page_size, + output_format=output_format, report_spec=report_spec, body=body, **{"filter_string": name, **kwargs}) @dynamic_catch def get_governance_action_processes_by_name( diff --git a/pyegeria/omvs/project_manager.py b/pyegeria/omvs/project_manager.py index 592ecded..3c02dd58 100644 --- a/pyegeria/omvs/project_manager.py +++ b/pyegeria/omvs/project_manager.py @@ -265,9 +265,9 @@ async def _async_get_classified_projects( f"projects/by-classifications" ) response = await self._async_get_name_request(url, "Project", self._extract_project_properties, - filter_string=project_classification, start_from=start_from, + start_from=start_from, page_size=page_size, output_format=output_format, - report_spec=report_spec, body=body, **kwargs) + report_spec=report_spec, body=body, **{"filter_string": project_classification, **kwargs}) return response @dynamic_catch @@ -929,7 +929,6 @@ async def _async_find_projects( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type=metadata_element_type_name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -942,7 +941,7 @@ async def _async_find_projects( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"metadata_element_type": metadata_element_type_name, **kwargs}, ) return response diff --git a/pyegeria/omvs/runtime_manager.py b/pyegeria/omvs/runtime_manager.py index 0578069d..88586c06 100644 --- a/pyegeria/omvs/runtime_manager.py +++ b/pyegeria/omvs/runtime_manager.py @@ -2299,9 +2299,9 @@ async def _async_get_platform_templates_by_type( return await self._async_get_name_request(url, _type="Platforms", _gen_output=self._generate_platform_output, - filter_string=filter_string, classification_names=["Template"], + filter_string=filter_string, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body, **kwargs) + output_format=output_format, report_spec=report_spec, body=body, **{"classification_names": ["Template"], **kwargs}) def get_platform_templates_by_type( self, @@ -2918,9 +2918,9 @@ async def _async_get_server_templates_by_dep_impl_type( return await self._async_get_name_request(url, _type="OMAGServers", _gen_output=self._generate_omag_server_output, - filter_string=filter_string, classification_names=["Template"], + filter_string=filter_string, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body, **kwargs) + output_format=output_format, report_spec=report_spec, body=body, **{"classification_names": ["Template"], **kwargs}) def get_server_templates_by_dep_impl_type( @@ -3976,7 +3976,6 @@ async def _async_get_elements_by_category( url, _type="Referenceable", _gen_output=self._generate_referenceable_output, - filter_string=category, start_from=start_from, page_size=page_size, skip_relationships=skip_relationships, @@ -3984,7 +3983,7 @@ async def _async_get_elements_by_category( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"filter_string": category, **kwargs}, ) @dynamic_catch diff --git a/pyegeria/omvs/schema_maker.py b/pyegeria/omvs/schema_maker.py index 39dec74f..8484db4e 100644 --- a/pyegeria/omvs/schema_maker.py +++ b/pyegeria/omvs/schema_maker.py @@ -513,7 +513,7 @@ async def _async_get_schema_types_by_name(self, name: str | None = None, start_f in ``pyegeria.core.request_filters``). """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/schema-maker/schema-types/by-name" - return await self._async_get_name_request(url, _type="SchemaType", _gen_output=self._generate_schema_output, filter_string=name, start_from=start_from, page_size=page_size, **kwargs) + return await self._async_get_name_request(url, _type="SchemaType", _gen_output=self._generate_schema_output, start_from=start_from, page_size=page_size, **{"filter_string": name, **kwargs}) def get_schema_types_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs: Unpack[ListFilters]) -> list | str: """Get schema types by name. @@ -531,7 +531,7 @@ async def _async_get_schema_attributes_by_name(self, name: str | None = None, st in ``pyegeria.core.request_filters``). """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/schema-maker/schema-attributes/by-name" - return await self._async_get_name_request(url, _type="SchemaAttribute", _gen_output=self._generate_schema_output, filter_string=name, start_from=start_from, page_size=page_size, **kwargs) + return await self._async_get_name_request(url, _type="SchemaAttribute", _gen_output=self._generate_schema_output, start_from=start_from, page_size=page_size, **{"filter_string": name, **kwargs}) def get_schema_attributes_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs: Unpack[ListFilters]) -> list | str: """Get schema attributes by name. diff --git a/pyegeria/omvs/security_officer.py b/pyegeria/omvs/security_officer.py index 381b75f7..f26fbe5d 100644 --- a/pyegeria/omvs/security_officer.py +++ b/pyegeria/omvs/security_officer.py @@ -992,7 +992,6 @@ async def _async_find_statements_of_applicability( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type=metadata_element_type_name, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -1005,7 +1004,7 @@ async def _async_find_statements_of_applicability( output_format=output_format, report_spec=report_spec, body=body, - **kwargs, + **{"metadata_element_type": metadata_element_type_name, **kwargs}, ) @dynamic_catch diff --git a/pyegeria/omvs/solution_architect.py b/pyegeria/omvs/solution_architect.py index a0fa9e7d..b892f9c1 100644 --- a/pyegeria/omvs/solution_architect.py +++ b/pyegeria/omvs/solution_architect.py @@ -1680,7 +1680,6 @@ def find_all_information_supply_chains(self, add_implementation: bool = True, # all-positional call here silently mismatched almost every argument (and, once this # method also grew a `body` parameter, overflowed to a TypeError on every call). return self.find_information_supply_chains( - search_string="*", add_implementation=add_implementation, body=body, starts_with=starts_with, @@ -1706,7 +1705,7 @@ def find_all_information_supply_chains(self, add_implementation: bool = True, start_from=start_from, page_size=page_size, property_names=property_names, - **kwargs + **{"search_string": "*", **kwargs} ) async def _async_find_information_supply_chains( @@ -3281,7 +3280,6 @@ def find_all_solution_blueprints(self, classification_names: Optional[list[str]] # call here silently mismatched every argument after search_string and, once this # method also grew a `body` parameter, overflowed to a TypeError on every call. return self.find_solution_blueprints( - search_string="*", body=body, starts_with=starts_with, ends_with=ends_with, @@ -3292,8 +3290,7 @@ def find_all_solution_blueprints(self, classification_names: Optional[list[str]] output_format=output_format, report_spec=report_spec, metadata_element_subtypes=metadata_element_subtypes, - skip_classified_elements=classification_names, - **kwargs + **{"search_string": "*", "skip_classified_elements": classification_names, **kwargs} ) @@ -4877,7 +4874,6 @@ def find_all_solution_components(self, classification_names: Optional[list[str]] # for why an all-positional call here is unsafe (parameter orders don't match, and it # overflows to a TypeError on every call once `body` is included positionally). return self.find_solution_components( - search_string="*", body=body, starts_with=starts_with, ends_with=ends_with, @@ -4888,8 +4884,7 @@ def find_all_solution_components(self, classification_names: Optional[list[str]] output_format=output_format, report_spec=report_spec, metadata_element_subtypes=metadata_element_subtypes, - skip_classified_elements=classification_names, - **kwargs + **{"search_string": "*", "skip_classified_elements": classification_names, **kwargs} ) @@ -6341,7 +6336,6 @@ def find_all_solution_roles( in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. """ return self.find_solution_roles( - search_string="*", body=body, starts_with=starts_with, ends_with=ends_with, @@ -6351,9 +6345,8 @@ def find_all_solution_roles( graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, - skip_classified_elements=classification_names, metadata_element_subtypes=metadata_element_subtypes, - **kwargs + **{"search_string": "*", "skip_classified_elements": classification_names, **kwargs} ) @@ -6743,8 +6736,8 @@ async def _async_get_concept_model_elements_by_name(self, name: str | None = Non url = f"{self.solution_architect_command_root}/concept-model-elements/by-name" return await self._async_get_name_request( url, _type="ConceptModelElement", _gen_output=self._generate_concept_model_element_output, - filter_string=name, body=body, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, **kwargs) + body=body, start_from=start_from, page_size=page_size, + output_format=output_format, report_spec=report_spec, **{"filter_string": name, **kwargs}) @dynamic_catch def get_concept_model_elements_by_name(self, name: str | None = None, @@ -7051,10 +7044,10 @@ async def _async_get_solution_ports_by_name(self, name: str | None = None, url = f"{self.solution_architect_command_root}/solution-ports/by-name" return await self._async_get_name_request(url, _type="SolutionPort", _gen_output=self._generate_referenceable_output, - filter_string=name, graph_query_depth=graph_query_depth, + graph_query_depth=graph_query_depth, start_from=start_from, page_size=page_size, output_format=output_format, report_spec=report_spec, - body=body, **kwargs) + body=body, **{"filter_string": name, **kwargs}) @dynamic_catch def get_solution_ports_by_name(self, name: str | None = None, diff --git a/pyegeria/view/base_report_formats.py b/pyegeria/view/base_report_formats.py index 17fcf206..46e70856 100644 --- a/pyegeria/view/base_report_formats.py +++ b/pyegeria/view/base_report_formats.py @@ -114,8 +114,8 @@ 'Campaign-DrE-Basic': FormatSet(target_type='Campaign', heading='Campaign-DrE-Basic Attributes', description='Auto-generated format for Campaign (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': ['Campaign']})), 'Certification-Type-DrE-Advanced': FormatSet(target_type='Certification Type', heading='Certification-Type-DrE-Advanced Attributes', description='Auto-generated format for Certification Type (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='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions'), 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='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='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions')])], 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': 'CertificationType'})), 'Certification-Type-DrE-Basic': FormatSet(target_type='Certification Type', heading='Certification-Type-DrE-Basic Attributes', description='Auto-generated format for Certification Type (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='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions'), 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'), Column(name='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions')])], 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': 'CertificationType'})), - 'Cited-Document-DrE-Advanced': FormatSet(target_type='Cited Document', heading='Cited-Document-DrE-Advanced Attributes', description='Auto-generated format for Cited Document (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Edition', key='edition'), Column(name='First Publication Date', key='first_pub_date'), Column(name='Number of Pages', key='number_of_pages'), Column(name='Page Range', key='page_range'), Column(name='Publication City', key='pub_city'), Column(name='Publication Date', key='pub_date'), Column(name='Publication Numbers', key='pub_numbers'), Column(name='Publication Series', key='publication_series'), Column(name='Publication Series Volume', key='pub_series_volume'), Column(name='Publication Year', key='pub_year'), Column(name='Publisher', key='publisher'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Edition', key='edition'), Column(name='First Publication Date', key='first_pub_date'), Column(name='Number of Pages', key='number_of_pages'), Column(name='Page Range', key='page_range'), Column(name='Publication City', key='pub_city'), Column(name='Publication Date', key='pub_date'), Column(name='Publication Numbers', key='pub_numbers'), Column(name='Publication Series', key='publication_series'), Column(name='Publication Series Volume', key='pub_series_volume'), Column(name='Publication Year', key='pub_year'), Column(name='Publisher', key='publisher'), 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='ExternalReferences.find_external_references', 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_types': ['CitedDocument']})), - 'Cited-Document-DrE-Basic': FormatSet(target_type='Cited Document', heading='Cited-Document-DrE-Basic Attributes', description='Auto-generated format for Cited Document (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Edition', key='edition'), Column(name='First Publication Date', key='first_pub_date'), Column(name='Number of Pages', key='number_of_pages'), Column(name='Page Range', key='page_range'), Column(name='Publication City', key='pub_city'), Column(name='Publication Date', key='pub_date'), Column(name='Publication Numbers', key='pub_numbers'), Column(name='Publication Series', key='publication_series'), Column(name='Publication Series Volume', key='pub_series_volume'), Column(name='Publication Year', key='pub_year'), Column(name='Publisher', key='publisher'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Edition', key='edition'), Column(name='First Publication Date', key='first_pub_date'), Column(name='Number of Pages', key='number_of_pages'), Column(name='Page Range', key='page_range'), Column(name='Publication City', key='pub_city'), Column(name='Publication Date', key='pub_date'), Column(name='Publication Numbers', key='pub_numbers'), Column(name='Publication Series', key='publication_series'), Column(name='Publication Series Volume', key='pub_series_volume'), Column(name='Publication Year', key='pub_year'), Column(name='Publisher', key='publisher')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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_types': ['CitedDocument']})), + 'Cited-Document-DrE-Advanced': FormatSet(target_type='Cited Document', heading='Cited-Document-DrE-Advanced Attributes', description='Auto-generated format for Cited Document (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Edition', key='edition'), Column(name='First Publication Date', key='first_pub_date'), Column(name='Number of Pages', key='number_of_pages'), Column(name='Page Range', key='page_range'), Column(name='Publication City', key='pub_city'), Column(name='Publication Date', key='pub_date'), Column(name='Publication Numbers', key='pub_numbers'), Column(name='Publication Series', key='publication_series'), Column(name='Publication Series Volume', key='pub_series_volume'), Column(name='Publication Year', key='pub_year'), Column(name='Publisher', key='publisher'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Edition', key='edition'), Column(name='First Publication Date', key='first_pub_date'), Column(name='Number of Pages', key='number_of_pages'), Column(name='Page Range', key='page_range'), Column(name='Publication City', key='pub_city'), Column(name='Publication Date', key='pub_date'), Column(name='Publication Numbers', key='pub_numbers'), Column(name='Publication Series', key='publication_series'), Column(name='Publication Series Volume', key='pub_series_volume'), Column(name='Publication Year', key='pub_year'), Column(name='Publisher', key='publisher'), 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='ExternalReferences.find_external_references', 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': 'CitedDocument'})), + 'Cited-Document-DrE-Basic': FormatSet(target_type='Cited Document', heading='Cited-Document-DrE-Basic Attributes', description='Auto-generated format for Cited Document (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Edition', key='edition'), Column(name='First Publication Date', key='first_pub_date'), Column(name='Number of Pages', key='number_of_pages'), Column(name='Page Range', key='page_range'), Column(name='Publication City', key='pub_city'), Column(name='Publication Date', key='pub_date'), Column(name='Publication Numbers', key='pub_numbers'), Column(name='Publication Series', key='publication_series'), Column(name='Publication Series Volume', key='pub_series_volume'), Column(name='Publication Year', key='pub_year'), Column(name='Publisher', key='publisher'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Edition', key='edition'), Column(name='First Publication Date', key='first_pub_date'), Column(name='Number of Pages', key='number_of_pages'), Column(name='Page Range', key='page_range'), Column(name='Publication City', key='pub_city'), Column(name='Publication Date', key='pub_date'), Column(name='Publication Numbers', key='pub_numbers'), Column(name='Publication Series', key='publication_series'), Column(name='Publication Series Volume', key='pub_series_volume'), Column(name='Publication Year', key='pub_year'), Column(name='Publisher', key='publisher')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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': 'CitedDocument'})), 'Collection-DrE-Advanced': FormatSet(target_type='Collection', heading='Collection-DrE-Advanced Attributes', description='Auto-generated format for Collection (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'])), 'Collection-DrE-Basic': FormatSet(target_type='Collection', heading='Collection-DrE-Basic Attributes', description='Auto-generated format for Collection (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='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'])), 'Collection-Folder-DrE-Advanced': FormatSet(target_type='Collection Folder', heading='Collection-Folder-DrE-Advanced Attributes', description='Auto-generated format for Collection Folder (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': 'CollectionFolder'})), @@ -184,16 +184,16 @@ 'Event-Set-DrE-Basic': FormatSet(target_type='Event Set', heading='Event-Set-DrE-Basic Attributes', description='Auto-generated format for Event Set (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='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': 'EventSet'})), 'Experiment-DrE-Advanced': FormatSet(target_type='Experiment', heading='Experiment-DrE-Advanced Attributes', description='Auto-generated format for Experiment (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': ['Experiment']})), 'Experiment-DrE-Basic': FormatSet(target_type='Experiment', heading='Experiment-DrE-Basic Attributes', description='Auto-generated format for Experiment (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': ['Experiment']})), - 'External-Data-Source-DrE-Advanced': FormatSet(target_type='External Data Source', heading='External-Data-Source-DrE-Advanced Attributes', description='Auto-generated format for External Data Source (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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_types': ['ExternalDataSource']})), - 'External-Data-Source-DrE-Basic': FormatSet(target_type='External Data Source', heading='External-Data-Source-DrE-Basic Attributes', description='Auto-generated format for External Data Source (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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_types': ['ExternalDataSource']})), - 'External-Model-Source-DrE-Advanced': FormatSet(target_type='External Model Source', heading='External-Model-Source-DrE-Advanced Attributes', description='Auto-generated format for External Model Source (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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_types': ['ExternalModelSource']})), - 'External-Model-Source-DrE-Basic': FormatSet(target_type='External Model Source', heading='External-Model-Source-DrE-Basic Attributes', description='Auto-generated format for External Model Source (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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_types': ['ExternalModelSource']})), + 'External-Data-Source-DrE-Advanced': FormatSet(target_type='External Data Source', heading='External-Data-Source-DrE-Advanced Attributes', description='Auto-generated format for External Data Source (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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': 'ExternalDataSource'})), + 'External-Data-Source-DrE-Basic': FormatSet(target_type='External Data Source', heading='External-Data-Source-DrE-Basic Attributes', description='Auto-generated format for External Data Source (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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': 'ExternalDataSource'})), + 'External-Model-Source-DrE-Advanced': FormatSet(target_type='External Model Source', heading='External-Model-Source-DrE-Advanced Attributes', description='Auto-generated format for External Model Source (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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': 'ExternalModelSource'})), + 'External-Model-Source-DrE-Basic': FormatSet(target_type='External Model Source', heading='External-Model-Source-DrE-Basic Attributes', description='Auto-generated format for External Model Source (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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': 'ExternalModelSource'})), 'External-Reference-DrE-Advanced': FormatSet(target_type='External Reference', heading='External-Reference-DrE-Advanced Attributes', description='Auto-generated format for External Reference (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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'])), 'External-Reference-DrE-Basic': FormatSet(target_type='External Reference', heading='External-Reference-DrE-Basic Attributes', description='Auto-generated format for External Reference (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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'])), - 'External-Source-Code-DrE-Advanced': FormatSet(target_type='External Source Code', heading='External-Source-Code-DrE-Advanced Attributes', description='Auto-generated format for External Source Code (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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_types': ['ExternalSourceCode']})), - 'External-Source-Code-DrE-Basic': FormatSet(target_type='External Source Code', heading='External-Source-Code-DrE-Basic Attributes', description='Auto-generated format for External Source Code (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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_types': ['ExternalSourceCode']})), - 'External-Standard-DrE-Advanced': FormatSet(target_type='External Standard', heading='External-Standard-DrE-Advanced Attributes', description='Auto-generated format for External Standard (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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_types': ['ExternalStandard']})), - 'External-Standard-DrE-Basic': FormatSet(target_type='External Standard', heading='External-Standard-DrE-Basic Attributes', description='Auto-generated format for External Standard (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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_types': ['ExternalStandard']})), + 'External-Source-Code-DrE-Advanced': FormatSet(target_type='External Source Code', heading='External-Source-Code-DrE-Advanced Attributes', description='Auto-generated format for External Source Code (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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': 'ExternalSourceCode'})), + 'External-Source-Code-DrE-Basic': FormatSet(target_type='External Source Code', heading='External-Source-Code-DrE-Basic Attributes', description='Auto-generated format for External Source Code (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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': 'ExternalSourceCode'})), + 'External-Standard-DrE-Advanced': FormatSet(target_type='External Standard', heading='External-Standard-DrE-Advanced Attributes', description='Auto-generated format for External Standard (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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': 'ExternalStandard'})), + 'External-Standard-DrE-Basic': FormatSet(target_type='External Standard', heading='External-Standard-DrE-Basic Attributes', description='Auto-generated format for External Standard (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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': 'ExternalStandard'})), 'Folder-Element-DrE-Advanced': FormatSet(target_type='Folder Element', heading='Folder-Element-DrE-Advanced Attributes', description='Auto-generated format for Folder Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), 'Folder-Element-DrE-Basic': FormatSet(target_type='Folder Element', heading='Folder-Element-DrE-Basic Attributes', description='Auto-generated format for Folder Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), 'Folio-DrE-Advanced': FormatSet(target_type='Folio', heading='Folio-DrE-Advanced Attributes', description='Auto-generated format for Folio (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': 'Folio'})), @@ -292,8 +292,8 @@ 'Postgres-Server-Element-DrE-Basic': FormatSet(target_type='Postgres Server Element', heading='Postgres-Server-Element-DrE-Basic Attributes', description='Auto-generated format for Postgres Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), 'Project-DrE-Advanced': FormatSet(target_type='Project', heading='Project-DrE-Advanced Attributes', description='Auto-generated format for 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'])), 'Project-DrE-Basic': FormatSet(target_type='Project', heading='Project-DrE-Basic Attributes', description='Auto-generated format for 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'])), - 'Question-DrE-Advanced': FormatSet(target_type='Question', heading='Question-DrE-Advanced Attributes', description='Auto-generated format for Question (Create, Advanced).', family='Glossary', 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Class Word Classification', key='class_word_classification'), Column(name='Context Scope', key='scope'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Is Abstract Concept', key='is_abstract_concept'), Column(name='Is Activity Description', key='is_activity_description'), Column(name='Is Context', key='is_data_value'), Column(name='Modifier Classification', key='modifier_classification'), Column(name='Prime Word Classification', key='prime_word_classification'), Column(name='Summary', key='summary'), Column(name='Term Activity Type', key='term_activity_type', valid_values=['OPERATION', 'ACTION', 'TASK', 'PROCESS', 'PROJECT', 'OTHER']), 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Class Word Classification', key='class_word_classification'), Column(name='Context Scope', key='scope'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Is Abstract Concept', key='is_abstract_concept'), Column(name='Is Activity Description', key='is_activity_description'), Column(name='Is Context', key='is_data_value'), Column(name='Modifier Classification', key='modifier_classification'), Column(name='Prime Word Classification', key='prime_word_classification'), Column(name='Summary', key='summary'), Column(name='Term Activity Type', key='term_activity_type', valid_values=['OPERATION', 'ACTION', 'TASK', 'PROCESS', 'PROJECT', 'OTHER']), 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='GlossaryManager.find_glossary_terms', 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={'classification': 'Question', 'metadata_element_type': 'GlossaryTerm'})), - 'Question-DrE-Basic': FormatSet(target_type='Question', heading='Question-DrE-Basic Attributes', description='Auto-generated format for Question (Create, Basic).', family='Glossary', 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Summary', key='summary'), Column(name='Usage', key='usage')])], action=ActionParameter(function='GlossaryManager.find_glossary_terms', 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={'classification': 'Question', 'metadata_element_type': 'GlossaryTerm'})), + 'Question-DrE-Advanced': FormatSet(target_type='Question', heading='Question-DrE-Advanced Attributes', description='Auto-generated format for Question (Create, Advanced).', family='Glossary', 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Class Word Classification', key='class_word_classification'), Column(name='Context Scope', key='scope'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Is Abstract Concept', key='is_abstract_concept'), Column(name='Is Activity Description', key='is_activity_description'), Column(name='Is Context', key='is_data_value'), Column(name='Modifier Classification', key='modifier_classification'), Column(name='Prime Word Classification', key='prime_word_classification'), Column(name='Summary', key='summary'), Column(name='Term Activity Type', key='term_activity_type', valid_values=['OPERATION', 'ACTION', 'TASK', 'PROCESS', 'PROJECT', 'OTHER']), 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Class Word Classification', key='class_word_classification'), Column(name='Context Scope', key='scope'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Is Abstract Concept', key='is_abstract_concept'), Column(name='Is Activity Description', key='is_activity_description'), Column(name='Is Context', key='is_data_value'), Column(name='Modifier Classification', key='modifier_classification'), Column(name='Prime Word Classification', key='prime_word_classification'), Column(name='Summary', key='summary'), Column(name='Term Activity Type', key='term_activity_type', valid_values=['OPERATION', 'ACTION', 'TASK', 'PROCESS', 'PROJECT', 'OTHER']), 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='GlossaryManager.find_glossary_terms', 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': ['Question'], 'metadata_element_type': 'GlossaryTerm'})), + 'Question-DrE-Basic': FormatSet(target_type='Question', heading='Question-DrE-Basic Attributes', description='Auto-generated format for Question (Create, Basic).', family='Glossary', 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Summary', key='summary'), Column(name='Usage', key='usage')])], action=ActionParameter(function='GlossaryManager.find_glossary_terms', 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': ['Question'], 'metadata_element_type': 'GlossaryTerm'})), 'Question-Spec-DrE-Advanced': FormatSet(target_type='Question Spec', heading='Question-Spec-DrE-Advanced Attributes', description='Auto-generated format for Question Spec (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': 'CollectionFolder', 'search_string': 'QuestionSpec', 'starts_with': True})), 'Question-Spec-DrE-Basic': FormatSet(target_type='Question Spec', heading='Question-Spec-DrE-Basic Attributes', description='Auto-generated format for Question Spec (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='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': 'CollectionFolder', 'search_string': 'QuestionSpec', 'starts_with': True})), 'Rating-DrE-Advanced': FormatSet(target_type='Rating', heading='Rating-DrE-Advanced Attributes', description='Auto-generated format for Rating (Create, Advanced).', family='Feedback', formats=[Format(types=['LIST'], attributes=[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='Stars', key='stars', valid_values=['NO_RECOMMENDATION', 'ONE_STAR', 'TWO_STARS', 'THREE_STARS', 'FOUR_STARS', 'FIVE_STARS']), Column(name='Review', key='review'), Column(name='Version Identifier', key='current_version'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Parent Relationship Type Name', key='parent_rel_type_name'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Parent at End1', key='parent_end1'), Column(name='Additional Properties', key='additional_properties'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Status', key='element_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='Stars', key='stars', valid_values=['NO_RECOMMENDATION', 'ONE_STAR', 'TWO_STARS', 'THREE_STARS', 'FOUR_STARS', 'FIVE_STARS']), Column(name='Review', key='review'), Column(name='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category'), Column(name='Version Identifier', key='current_version'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Parent Relationship Type Name', key='parent_rel_type_name'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Parent at End1', key='parent_end1'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Additional Properties', key='additional_properties'), Column(name='URL', key='url'), Column(name='Supplementary Properties', key='supplementary_properties')])]), @@ -310,8 +310,8 @@ 'Regulation-Article-DrE-Basic': FormatSet(target_type='Regulation Article', heading='Regulation-Article-DrE-Basic Attributes', description='Auto-generated format for Regulation Article (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': 'RegulationArticle'})), 'Regulation-DrE-Advanced': FormatSet(target_type='Regulation', heading='Regulation-DrE-Advanced Attributes', description='Auto-generated format for Regulation (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='Regulation Source', key='regulation_source'), Column(name='Regulators', key='regulators'), 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='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='Regulation Source', key='regulation_source'), Column(name='Regulators', key='regulators')])], 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': 'Regulation'})), 'Regulation-DrE-Basic': FormatSet(target_type='Regulation', heading='Regulation-DrE-Basic Attributes', description='Auto-generated format for Regulation (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='Regulation Source', key='regulation_source'), Column(name='Regulators', key='regulators'), 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'), Column(name='Regulation Source', key='regulation_source'), Column(name='Regulators', key='regulators')])], 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': 'Regulation'})), - 'Related-Media-DrE-Advanced': FormatSet(target_type='Related Media', heading='Related-Media-DrE-Advanced Attributes', description='Auto-generated format for Related Media (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id'), 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='ExternalReferences.find_external_references', 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_types': ['RelatedMedia']})), - 'Related-Media-DrE-Basic': FormatSet(target_type='Related Media', heading='Related-Media-DrE-Basic Attributes', description='Auto-generated format for Related Media (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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_types': ['RelatedMedia']})), + 'Related-Media-DrE-Advanced': FormatSet(target_type='Related Media', heading='Related-Media-DrE-Advanced Attributes', description='Auto-generated format for Related Media (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id'), 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='ExternalReferences.find_external_references', 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': 'RelatedMedia'})), + 'Related-Media-DrE-Basic': FormatSet(target_type='Related Media', heading='Related-Media-DrE-Basic Attributes', description='Auto-generated format for Related Media (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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': 'RelatedMedia'})), 'Report-DrE-Advanced': FormatSet(target_type='Report', heading='Report-DrE-Advanced Attributes', description='Auto-generated format for Report (Create, Advanced).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='AsOfTime', key='as_of_time'), Column(name='Ends With', key='ends_with'), Column(name='Governance Zone Filter', key='governance_zone_filter'), Column(name='Graph Query Depth', key='graph_query_depth'), Column(name='Ignore Case', key='ignore_case'), Column(name='Include Only Classified Elements', key='include_only_classified_elements'), Column(name='Include Only Relationships', key='include_only_relationships'), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Order Property Name', key='order_property_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Output Sort Order', key='sort_order', valid_values=['ANY', 'CREATION_DATE_RECENT', 'CREATION_DATA_OLDEST', 'LAST_UPDATE_RECENT', 'LAST_UPDATE_OLDEST', 'PROPERTY_ASCENDING', 'PROPERTY_DESCENDING']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Skip Classified Elements', key='skip_classified_elements'), Column(name='Skip Relationships', key='skip_relationships'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with'), 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='Limit Result by Status', key='limit_result_by_status', valid_values=['UNKNOWN', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'APPROVED_CONCEPT', 'UNDER_DEVELOPMENT', 'DEVELOPMENT_COMPLETE', 'APPROVED_FOR_DEPLOYMENT', 'STANDBY', 'ACTIVE', 'FAILED', 'DISABLED', 'COMPLETE', 'DEPRECATED', 'OTHER', 'DELETED']), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='AsOfTime', key='as_of_time'), Column(name='Ends With', key='ends_with'), Column(name='Governance Zone Filter', key='governance_zone_filter'), Column(name='Graph Query Depth', key='graph_query_depth'), Column(name='Ignore Case', key='ignore_case'), Column(name='Include Only Classified Elements', key='include_only_classified_elements'), Column(name='Include Only Relationships', key='include_only_relationships'), Column(name='Limit Result by Status', key='limit_result_by_status', valid_values=['UNKNOWN', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'APPROVED_CONCEPT', 'UNDER_DEVELOPMENT', 'DEVELOPMENT_COMPLETE', 'APPROVED_FOR_DEPLOYMENT', 'STANDBY', 'ACTIVE', 'FAILED', 'DISABLED', 'COMPLETE', 'DEPRECATED', 'OTHER', 'DELETED']), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Order Property Name', key='order_property_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Output Sort Order', key='sort_order', valid_values=['ANY', 'CREATION_DATE_RECENT', 'CREATION_DATA_OLDEST', 'LAST_UPDATE_RECENT', 'LAST_UPDATE_OLDEST', 'PROPERTY_ASCENDING', 'PROPERTY_DESCENDING']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Skip Classified Elements', key='skip_classified_elements'), Column(name='Skip Relationships', key='skip_relationships'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with'), 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='MetadataExpert.find_metadata_elements_with_string', 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'])), 'Report-DrE-Basic': FormatSet(target_type='Report', heading='Report-DrE-Basic Attributes', description='Auto-generated format for Report (Create, Basic).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='Ends With', key='ends_with'), Column(name='Ignore Case', key='ignore_case'), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with'), Column(name='Version Identifier', key='version_identifier'), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='Ends With', key='ends_with'), Column(name='Ignore Case', key='ignore_case'), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), 'Report-Spec-DrE-Advanced': FormatSet(target_type='Report Spec', heading='Report-Spec-DrE-Advanced Attributes', description='Auto-generated format for Report Spec (Create, Advanced).', family='Views & Reports', 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='Microflow', key='microflow'), Column(name='Target Type Name', key='target_type_name'), Column(name='Aliases', key='aliases'), Column(name='Output Types', key='output_types'), Column(name='Include Preamble', key='include_preamble'), 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='Microflow', key='microflow'), Column(name='Target Type Name', key='target_type_name'), Column(name='Aliases', key='aliases'), Column(name='Output Types', key='output_types'), Column(name='Include Preamble', key='include_preamble'), 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': 'ReportSpec'})), diff --git a/sample-data/templates/advanced/Schema Maker/Create_Display_Data_Container.md b/sample-data/templates/advanced/Schema Maker/Create_Display_Data_Container.md index 9848ebaa..8f733739 100644 --- a/sample-data/templates/advanced/Schema Maker/Create_Display_Data_Container.md +++ b/sample-data/templates/advanced/Schema Maker/Create_Display_Data_Container.md @@ -170,6 +170,8 @@ ___ > **Description**: The type of renderer used to display this container. Validated against Egeria's valid metadata values for renderer. +> **Valid Values**: FORM; REPORT; MERMAID; BAR; REPORT-GRAPH; HTML; PIE; SERIES; JSON; LIST; MD; DICT; KPI; TABLE; GRAPH + ### Placement Kind > **Input Required**: False diff --git a/sample-data/templates/advanced/Views & Reports/Create_Dashboard.md b/sample-data/templates/advanced/Views & Reports/Create_Dashboard.md index df6411cb..6a62c585 100644 --- a/sample-data/templates/advanced/Views & Reports/Create_Dashboard.md +++ b/sample-data/templates/advanced/Views & Reports/Create_Dashboard.md @@ -144,6 +144,8 @@ ___ > **Description**: The style of layout used to arrange the reports in a dashboard. Validated against Egeria's valid metadata values for layoutStyle. +> **Valid Values**: tabs; single-column; grid + ### Effective From > **Input Required**: False diff --git a/sample-data/templates/basic/Schema Maker/Create_Display_Data_Container.md b/sample-data/templates/basic/Schema Maker/Create_Display_Data_Container.md index af403fb5..f4bde024 100644 --- a/sample-data/templates/basic/Schema Maker/Create_Display_Data_Container.md +++ b/sample-data/templates/basic/Schema Maker/Create_Display_Data_Container.md @@ -170,6 +170,8 @@ ___ > **Description**: The type of renderer used to display this container. Validated against Egeria's valid metadata values for renderer. +> **Valid Values**: FORM; REPORT; MERMAID; BAR; REPORT-GRAPH; HTML; PIE; SERIES; JSON; LIST; MD; DICT; KPI; TABLE; GRAPH + ### Placement Kind > **Input Required**: False diff --git a/sample-data/templates/basic/Views & Reports/Create_Dashboard.md b/sample-data/templates/basic/Views & Reports/Create_Dashboard.md index b58c8fd8..a96f49f8 100644 --- a/sample-data/templates/basic/Views & Reports/Create_Dashboard.md +++ b/sample-data/templates/basic/Views & Reports/Create_Dashboard.md @@ -144,5 +144,7 @@ ___ > **Description**: The style of layout used to arrange the reports in a dashboard. Validated against Egeria's valid metadata values for layoutStyle. +> **Valid Values**: tabs; single-column; grid + ___ diff --git a/tests/micro-tests/test_search_get_filter_kwargs.py b/tests/micro-tests/test_search_get_filter_kwargs.py index f3e269cc..6dbc0541 100644 --- a/tests/micro-tests/test_search_get_filter_kwargs.py +++ b/tests/micro-tests/test_search_get_filter_kwargs.py @@ -250,15 +250,10 @@ def test_report_param_aliases_do_not_warn(): assert body["sequencingOrder"] == "ANY" and body["anchorScopeGUID"] == "s1" -# Built-in report specs whose spec_params name a filter the target method does not have. -# These were always silently dropped; 6.2.28 warns about them. Fix at the source (the -# Dr.Egeria compact specs / gen_report_specs) and remove them from this list. -KNOWN_BAD_SPEC_PARAMS = { - ("metadata_element_types", "ExternalReferences.find_external_references"), - ("classification", "GlossaryManager.find_glossary_terms"), -} - - +# Every built-in report spec's spec_params must be a filter (or explicit parameter) of the +# method it calls. Before 6.2.28 a misspelt one was silently dropped and the report ran +# unfiltered (e.g. Cited-Document listed every external reference); fix any failure at the +# source -- the Dr.Egeria compact specs' find_constraints -- then run refresh_specs. def test_builtin_report_spec_params_are_valid_filters(methods): from pyegeria.view.base_report_formats import get_report_registry @@ -278,5 +273,28 @@ def test_builtin_report_spec_params_are_valid_filters(methods): for key in (getattr(action, "spec_params", None) or {}): if key not in wire and key not in rf.RENDER_OPTIONS and key not in m.explicit_params: found.add((key, func)) - assert found <= KNOWN_BAD_SPEC_PARAMS, f"new invalid spec_params: {sorted(found - KNOWN_BAD_SPEC_PARAMS)}" - assert found == KNOWN_BAD_SPEC_PARAMS, f"fixed -- remove from KNOWN_BAD_SPEC_PARAMS: {sorted(KNOWN_BAD_SPEC_PARAMS - found)}" + assert not found, f"spec_params that are not filters of the called method: {sorted(found)}" + + +def test_no_call_hard_codes_a_filter_beside_forwarded_kwargs(methods): + """f(..., metadata_element_type="X", **kwargs) raises TypeError ("multiple values") as soon as a + caller -- or a report spec's spec_params -- passes that filter. Put the default in the splat + instead (f(..., **{"metadata_element_type": "X", **kwargs})) so the caller's value wins.""" + import ast + + kind = {"SearchFilters": "search", "ListFilters": "name", "GetFilters": "get", "FindFilters": "find"} + bad = [] + for m in methods: + if not m.kwargs_name: + continue + valid = rf.valid_filter_names(kind[m.filters]) | set(rf.LEGACY_ALIASES) + for call in ast.walk(m.node): + if not isinstance(call, ast.Call): + continue + if not any(k.arg is None and isinstance(k.value, ast.Name) and k.value.id == m.kwargs_name + for k in call.keywords): + continue + clash = [k.arg for k in call.keywords if k.arg in valid and k.arg not in m.explicit_params] + if clash: + bad.append(f"{m.qualname}: {clash}") + assert not bad, "\n".join(bad) From 90b168c10981a10f7f2884f16cf440bd06cbdd79 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 11:21:31 +0000 Subject: [PATCH 07/14] fix: Digital-Product-Catalog report spec filters by type Create Digital Product Catalog's find_constraints said classification_names: ["DigitalProductCatalog"], but DigitalProductCatalog is a type, not a classification. Now metadata_element_type: "DigitalProductCatalog" (edited via the Spec Editor API, then refresh_specs --merge-reports; generated output as written). Digital-Product-Catalog-DrE-* returns the 3 catalogs on the quickstart, where it used to list every collection (and, with classification_names now filtering, would have listed none). Release note updated. Signed-off-by: Dan Wolfson --- docs/release-notes/6.2.28.md | 10 +++++----- .../commands_digital_products_compact.json | 2 +- md_processing/data/generated_format_sets.json | 8 ++------ pyegeria/view/base_report_formats.py | 4 ++-- 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index a965ca94..50c2de6c 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -43,16 +43,16 @@ what they are named for. Row counts are from the quickstart demo (live reads, 20 | `External-Data-Source-DrE-*`, `External-Model-Source-DrE-*`, `External-Source-Code-DrE-*`, `External-Standard-DrE-*` | 87 each | 0 | | `Question-DrE-*` | failed with `TypeError` (and would have listed 1000+ glossary terms) | 152 | | `Data-Sharing-Agreement-DrE-*` (`find_collections`) | 1000+ (every collection) | 598 (Agreements classified DataSharingAgreement) | -| `Digital-Product-Catalog-DrE-*` (`find_collections`) | 1000+ (every collection) | 0 — see below | +| `Digital-Product-Catalog-DrE-*` (`find_collections`) | 1000+ (every collection) | 3 | - **`classification_names` on a find now filters.** It is sent as `includeOnlyClassifiedElements` (it already meant that on a by-name get). Before, a find dropped it silently. So the two Dr.Egeria specs that pass `classification_names` to `find_collections` return fewer rows than before. `Data-Sharing-Agreement-DrE-*` now lists - only Agreements classified DataSharingAgreement. `Digital-Product-Catalog-DrE-*` now lists - nothing: `DigitalProductCatalog` is a type, not a classification, so its spec has always been - wrong (it listed every collection); the fix is `metadata_element_type: DigitalProductCatalog` - in its Dr.Egeria `find_constraints` (3 catalogs on the quickstart). The project-family specs + only Agreements classified DataSharingAgreement. `Digital-Product-Catalog-DrE-*` passed + `classification_names: ["DigitalProductCatalog"]`, but `DigitalProductCatalog` is a type, not a + classification; its Dr.Egeria `find_constraints` now uses `metadata_element_type`, so it lists + the 3 catalogs instead of every collection. The project-family specs (Campaign etc.) already used `include_only_classified_elements` and are unchanged. - **The external-reference and Question specs now return only their own type.** Their Dr.Egeria `find_constraints` named filters the method did not have diff --git a/md_processing/data/compact_commands/commands_digital_products_compact.json b/md_processing/data/compact_commands/commands_digital_products_compact.json index bdc3e1f7..a049e4c2 100644 --- a/md_processing/data/compact_commands/commands_digital_products_compact.json +++ b/md_processing/data/compact_commands/commands_digital_products_compact.json @@ -3024,7 +3024,7 @@ "attach": false, "level": "Basic", "find_method": "CollectionManager.find_collections", - "find_constraints": "{\"classification_names\": [\"DigitalProductCatalog\"]}", + "find_constraints": "{\"metadata_element_type\": \"DigitalProductCatalog\"}", "extra_find": "", "extra_constraints": "", "OM_TYPE": "DigitalProductCatalog", diff --git a/md_processing/data/generated_format_sets.json b/md_processing/data/generated_format_sets.json index de1cf660..cab75afe 100644 --- a/md_processing/data/generated_format_sets.json +++ b/md_processing/data/generated_format_sets.json @@ -96484,9 +96484,7 @@ "metadata_element_type" ], "spec_params": { - "classification_names": [ - "DigitalProductCatalog" - ] + "metadata_element_type": "DigitalProductCatalog" }, "analytic_function": null, "analytic_spec_params": {} @@ -97731,9 +97729,7 @@ "metadata_element_type" ], "spec_params": { - "classification_names": [ - "DigitalProductCatalog" - ] + "metadata_element_type": "DigitalProductCatalog" }, "analytic_function": null, "analytic_spec_params": {} diff --git a/pyegeria/view/base_report_formats.py b/pyegeria/view/base_report_formats.py index 46e70856..a83be875 100644 --- a/pyegeria/view/base_report_formats.py +++ b/pyegeria/view/base_report_formats.py @@ -166,8 +166,8 @@ 'Data-Value-Specification-DrE-Basic': FormatSet(target_type='Data Value Specification', heading='Data-Value-Specification-DrE-Basic Attributes', description='Auto-generated format for Data Value Specification (Create, Basic).', family='Data Designer', 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='Absolute Uncertainty', key='absolute_uncertainty'), Column(name='Data Type', key='data_type', valid_values=['string', 'int', 'long', 'date', 'boolean', 'char', 'byte', 'float', 'double', 'biginteger', 'bigdecimal', 'array', 'array', 'map', 'map', 'map', 'map', 'map', 'map', 'map', 'short', 'map>', 'other']), Column(name='In Data Value Specification', key='in_data_value_specification'), Column(name='Match Property Names', key='match_property_names'), Column(name='Match Threshold', key='match_threshold'), Column(name='Name Patterns', key='name_patterns'), Column(name='Namespace Path', key='namespace_path'), Column(name='Relative Uncertainty', key='relative_uncertainty'), Column(name='Specializes Data Value Specification', key='specializes_data_value_specification'), Column(name='Specification', key='specification'), Column(name='Specification Details', key='specification_details'), Column(name='Units', key='units'), 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='Absolute Uncertainty', key='absolute_uncertainty'), Column(name='Data Type', key='data_type', valid_values=['string', 'int', 'long', 'date', 'boolean', 'char', 'byte', 'float', 'double', 'biginteger', 'bigdecimal', 'array', 'array', 'map', 'map', 'map', 'map', 'map', 'map', 'map', 'short', 'map>', 'other']), Column(name='In Data Value Specification', key='in_data_value_specification'), Column(name='Match Property Names', key='match_property_names'), Column(name='Match Threshold', key='match_threshold'), Column(name='Name Patterns', key='name_patterns'), Column(name='Namespace Path', key='namespace_path'), Column(name='Relative Uncertainty', key='relative_uncertainty'), Column(name='Specializes Data Value Specification', key='specializes_data_value_specification'), Column(name='Specification', key='specification'), Column(name='Specification Details', key='specification_details'), Column(name='Units', key='units')])], action=ActionParameter(function='DataDesigner.find_data_value_specifications', 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': 'DataValueSpecification'})), 'Design-Pattern-DrE-Advanced': FormatSet(target_type='Design Pattern', heading='Design-Pattern-DrE-Advanced Attributes', description='Auto-generated format for Design Pattern (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='Benefits', key='benefits'), Column(name='Context', key='context'), Column(name='Forces', key='forces'), Column(name='Liabilities', key='liabilities'), Column(name='Problem Example', key='problem_example'), Column(name='Problem Statement', key='problem_statement'), Column(name='Solution Description', key='solution_description'), Column(name='Solution Example', key='solution_example'), 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='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='Benefits', key='benefits'), Column(name='Context', key='context'), Column(name='Forces', key='forces'), Column(name='Liabilities', key='liabilities'), Column(name='Problem Example', key='problem_example'), Column(name='Problem Statement', key='problem_statement'), Column(name='Solution Description', key='solution_description'), Column(name='Solution Example', key='solution_example'), 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='SolutionArchitect.find_design_patterns', 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'])), 'Design-Pattern-DrE-Basic': FormatSet(target_type='Design Pattern', heading='Design-Pattern-DrE-Basic Attributes', description='Auto-generated format for Design Pattern (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='Benefits', key='benefits'), Column(name='Context', key='context'), Column(name='Forces', key='forces'), Column(name='Liabilities', key='liabilities'), Column(name='Problem Example', key='problem_example'), Column(name='Problem Statement', key='problem_statement'), Column(name='Solution Description', key='solution_description'), Column(name='Solution Example', key='solution_example'), Column(name='Usage', key='usage'), Column(name='Version Identifier', key='version_identifier'), 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='Benefits', key='benefits'), Column(name='Context', key='context'), Column(name='Forces', key='forces'), Column(name='Liabilities', key='liabilities'), Column(name='Problem Example', key='problem_example'), Column(name='Problem Statement', key='problem_statement'), Column(name='Solution Description', key='solution_description'), Column(name='Solution Example', key='solution_example'), Column(name='Usage', key='usage')])], action=ActionParameter(function='SolutionArchitect.find_design_patterns', 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'])), - 'Digital-Product-Catalog-DrE-Advanced': FormatSet(target_type='Digital Product Catalog', heading='Digital-Product-Catalog-DrE-Advanced Attributes', description='Auto-generated format for Digital Product Catalog (Create, Advanced).', 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='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={'classification_names': ['DigitalProductCatalog']})), - 'Digital-Product-Catalog-DrE-Basic': FormatSet(target_type='Digital Product Catalog', heading='Digital-Product-Catalog-DrE-Basic Attributes', description='Auto-generated format for Digital Product Catalog (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={'classification_names': ['DigitalProductCatalog']})), + 'Digital-Product-Catalog-DrE-Advanced': FormatSet(target_type='Digital Product Catalog', heading='Digital-Product-Catalog-DrE-Advanced Attributes', description='Auto-generated format for Digital Product Catalog (Create, Advanced).', 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='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': 'DigitalProductCatalog'})), + 'Digital-Product-Catalog-DrE-Basic': FormatSet(target_type='Digital Product Catalog', heading='Digital-Product-Catalog-DrE-Basic Attributes', description='Auto-generated format for Digital Product Catalog (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': 'DigitalProductCatalog'})), 'Digital-Product-DrE-Advanced': FormatSet(target_type='Digital Product', heading='Digital-Product-DrE-Advanced Attributes', description='Auto-generated format for Digital Product (Create, Advanced).', 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='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='Current Version', key='current_version'), Column(name='Introduction Date', key='introduction_date'), Column(name='Maturity', key='maturity'), Column(name='Next Version Date', key='next_version_date'), Column(name='Product Name', key='product_name'), Column(name='Service Life', key='service_life'), Column(name='Withdrawal Date', key='withdrawal_date'), 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='Current Version', key='current_version'), Column(name='Introduction Date', key='introduction_date'), Column(name='Maturity', key='maturity'), Column(name='Next Version Date', key='next_version_date'), Column(name='Product Name', key='product_name'), Column(name='Service Life', key='service_life'), Column(name='Withdrawal Date', key='withdrawal_date'), 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': 'DigitalProduct'})), 'Digital-Product-DrE-Basic': FormatSet(target_type='Digital Product', heading='Digital-Product-DrE-Basic Attributes', description='Auto-generated format for Digital Product (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='Current Version', key='current_version'), Column(name='Introduction Date', key='introduction_date'), Column(name='Maturity', key='maturity'), Column(name='Next Version Date', key='next_version_date'), Column(name='Product Name', key='product_name'), Column(name='Service Life', key='service_life'), Column(name='Withdrawal Date', key='withdrawal_date'), 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='Current Version', key='current_version'), Column(name='Introduction Date', key='introduction_date'), Column(name='Maturity', key='maturity'), Column(name='Next Version Date', key='next_version_date'), Column(name='Product Name', key='product_name'), Column(name='Service Life', key='service_life'), Column(name='Withdrawal Date', key='withdrawal_date')])], 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': 'DigitalProduct'})), 'Digital-Subscription-DrE-Advanced': FormatSet(target_type='Digital Subscription', heading='Digital-Subscription-DrE-Advanced Attributes', description='Auto-generated format for Digital Subscription (Create, Advanced).', 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='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='Support Level', key='support_level'), Column(name='Service Levels', key='service_levels'), 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='Support Level', key='support_level'), Column(name='Service Levels', key='service_levels'), 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': 'DigitalSubscription'})), From 5fbc3c440a06831436324700dc9a6c8f1c25a972 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 11:33:08 +0000 Subject: [PATCH 08/14] feat(view): Asset-Graph is an edge table, with a shape per output format The owner asked what it means for a table to return a graph: after 883d33e4, TABLE/DICT returned one row holding ~740 characters of mermaid text. The owner's direction: "A table of edges and a different shape for other OutputTYpes". New pyegeria/view/asset_graph.py (pure functions) gives each declared format a shape: - DICT and TABLE: one row per edge, with From Display Name / From Type / From GUID / Relationship / To Display Name / To Type / To GUID. - The asset's own relationships (top-level lists such as governedBy and requestedActions) are included. - Direction comes from relatedElementAtEnd1 and startingElementGUID. - Each relationship is listed once, by relationship GUID. - Rows are sorted, so the order never depends on Egeria's. Paging stays Egeria's, on the graph request. - LIST: the nodes (the asset, its anchored elements, the related elements), with their role. - REPORT and MD: the asset summary, its graph(s) as mermaid, then the edge table. HTML renders that document. - MERMAID: the graph. - JSON: the full graph response. - FORM and ALL are not declared, so asking for them is an error that names the declared formats. Supporting changes: - AssetCatalog._generate_asset_graph_output applies these shapes for get_asset_graph_by_guid. MERMAID and other formats take the generic asset path. - The Architect's P3: a by-GUID REPORT no longer says "found from the search string". - markdown_to_html now enables GFM tables. The CommonMark preset had them off, so markdown tables came out as plain text in HTML, although the page CSS styles tables. Tests and checks: - The tests use a complete recorded response, rewritten to cover each format, the hand-read expected edges (5, one reported twice), deterministic order under a shuffled response, the no-edge case, and the P3 wording. - Live READ: edge rows equal the distinct relationship GUIDs on three asset types (5, 6 and 3), node counts are right, and REPORT never says "search string". - The spec docs (output-formats-and-report-specs.md) and the 6.2.28 note record the shape per format. Signed-off-by: Dan Wolfson --- docs/output-formats-and-report-specs.md | 13 + docs/release-notes/6.2.28.md | 20 +- pyegeria/omvs/asset_catalog.py | 20 +- pyegeria/view/asset_graph.py | 218 +++++ pyegeria/view/base_report_formats.py | 42 +- pyegeria/view/output_formatter.py | 5 +- .../data/asset_graph_by_guid_response.json | 795 +++++++++++++++++- tests/micro-tests/test_asset_graph_spec.py | 119 ++- 8 files changed, 1164 insertions(+), 68 deletions(-) create mode 100644 pyegeria/view/asset_graph.py diff --git a/docs/output-formats-and-report-specs.md b/docs/output-formats-and-report-specs.md index 2e0b536f..ead72470 100644 --- a/docs/output-formats-and-report-specs.md +++ b/docs/output-formats-and-report-specs.md @@ -1258,6 +1258,19 @@ Read it left to right: *the check* (1, names), *the thing named* (`ServerClient. 6.2.28 fixed both, as the words pointed: `Asset-Graph` now calls `AssetCatalog.get_asset_graph_by_guid` (parameter `guid`), and `Data-Classes` calls `DataDesigner.find_data_value_specifications` with `metadata_element_subtypes=["DataClass"]` (a DataClass is a DataValueSpecification subtype and shares its search). +**A graph has a shape per output format (`Asset-Graph`, 6.2.28).** A graph is not a list of elements, so `Asset-Graph` does not render one row per element, and never one row holding mermaid text. Each format it declares gets the shape that fits it (`pyegeria/view/asset_graph.py`): + +| Output format | Shape | +|---|---| +| `DICT`, `TABLE` | One row per edge: `From Display Name`, `From Type`, `From GUID`, `Relationship`, `To Display Name`, `To Type`, `To GUID`. The asset's own relationships are included, each relationship is listed once (by relationship GUID), and rows are sorted, so their order does not depend on Egeria's. Paging (`start_from`, `page_size`) is Egeria's, on the graph request. | +| `LIST` | The nodes, as a markdown table: `Display Name`, `Type`, `GUID`, `Role` (`asset`, `anchored`, `related`). | +| `REPORT`, `MD` | The asset summary, its graph (plus the anchor and action graphs when Egeria returns them) as mermaid, and the edge table. | +| `HTML` | The `REPORT` document rendered to HTML. | +| `MERMAID` | The graph. | +| `JSON` | The full graph response. | + +`FORM` (a Dr.Egeria update form) and `ALL` are not declared; asking for them is an error that names the declared formats. + > **Planned, not shipped.** Report specs held in Egeria itself (synced, cached and addressed as `egeria:...`) are being built in a first stage; see `portal-docs/Internals/report-spec-pipeline-model.md` (v5.5) in egeria-workspaces. This section describes only specs loaded from files, entry points and the runtime registry. diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index 242b40c6..6dc32f44 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -10,14 +10,16 @@ `DataDesigner.find_data_value_specifications` restricted to the `DataClass` subtype (`metadata_element_subtypes=["DataClass"]`). The load-time census is now 437 specs: 376 runnable, 61 format-only, none unrunnable (6.2.27: 374 runnable, 2 unrunnable). -- **`Asset-Graph` renders the graph in every format it declares.** It declares DICT, TABLE and - JSON (the asset's own fields plus its graphs as text), REPORT and HTML (the asset's fields with - the asset, anchor and action graphs rendered as mermaid), and MERMAID (the asset graph). Each - returns one row or one document for the asset itself. The anchor graph's column key was - misspelt (`anchorMermaidGRaph`), so the anchor graph was always empty; it is now - `anchorMermaidGraph`, and an Action Graph column (`actionMermaidGraph`) is added. ALL, MD, FORM - and LIST are no longer declared: MD and FORM are Dr.Egeria update forms, LIST is a markdown - table that cannot show a graph, and ALL rendered only the asset's name. Asking for one of them - is an error that names the formats the spec does declare. +- **`Asset-Graph` gives each output format a shape that fits a graph.** DICT and TABLE are an + edge table: one row per edge, with the from element (display name, type, GUID), the relationship + type, and the to element. It includes the asset's own relationships, lists each relationship + once, and is sorted, so the order is deterministic. LIST is the nodes. REPORT and MD are the + asset summary, its graph(s) as mermaid and the edge table; HTML renders that. MERMAID is the + graph. JSON is the full graph response. No format returns one row of mermaid text. A by-GUID + REPORT no longer says "found from the search string". FORM and ALL are not declared; asking + for them is an error that names the declared formats. The anchor graph's misspelt column key + (`anchorMermaidGRaph`) is corrected. +- **HTML output renders markdown tables.** The HTML renderer had GFM tables switched off, so a + markdown table in a REPORT came out as text; it is now a table. - **`exec_report_spec` no longer returns `None` when a find method raises `ValueError`.** It logs the error and raises it, so the caller sees the words. diff --git a/pyegeria/omvs/asset_catalog.py b/pyegeria/omvs/asset_catalog.py index e5f155c1..53b6681a 100644 --- a/pyegeria/omvs/asset_catalog.py +++ b/pyegeria/omvs/asset_catalog.py @@ -174,6 +174,24 @@ def _generate_asset_output(self, elements: dict | list[dict], filter_string: Opt **kwargs ) + def _generate_asset_graph_output(self, elements: dict | list[dict], filter_string: Optional[str] = None, + element_type_name: Optional[str] = None, output_format: str = "DICT", + report_spec: dict | str | None = None, **kwargs) -> str | list[dict]: + """Shape an asset graph for `output_format` (pyegeria/view/asset_graph.py): DICT/TABLE one row + per edge, LIST the nodes, REPORT/MD/HTML the asset summary with its graph and edge table. + MERMAID (the graph) and any other format take the generic asset path.""" + from pyegeria.view import asset_graph + + shaped = asset_graph.render(elements, output_format) + if shaped is None: + return self._generate_asset_output(elements, filter_string, element_type_name, output_format, + report_spec, **kwargs) + if isinstance(report_spec, str) and isinstance(shaped, str): + # Provenance footer for an Egeria-held spec on REPORT/MD/HTML (RS-EGERIA-TIER §7a). + from pyegeria.view.base_report_formats import add_spec_footer + shaped = add_spec_footer(shaped, report_spec, output_format) + return shaped + @dynamic_catch async def _async_find_in_asset_domain( self, @@ -408,7 +426,7 @@ async def _async_get_asset_graph_by_guid( response = await self._async_get_results_body_request( url=url, _type="Asset", - _gen_output=self._generate_asset_output, + _gen_output=self._generate_asset_graph_output, start_from=start_from, page_size=page_size, output_format=output_format, diff --git a/pyegeria/view/asset_graph.py b/pyegeria/view/asset_graph.py new file mode 100644 index 00000000..38eac6d7 --- /dev/null +++ b/pyegeria/view/asset_graph.py @@ -0,0 +1,218 @@ +""" +SPDX-License-Identifier: Apache-2.0 +Copyright Contributors to the ODPi Egeria project. + +Shapes for an Egeria asset graph (AssetCatalog.get_asset_graph_by_guid, the `Asset-Graph` report +spec), one per output format (pyegeria 6.2.28): + +- DICT / TABLE: one row per edge: the from element (display name, type, GUID), the relationship + type, and the to element (display name, type, GUID). Includes the asset's own relationships. +- LIST: the nodes, as a markdown table: the asset, the elements anchored to it, and every element + an edge reaches. +- REPORT / MD: the asset summary, its graph (mermaid) and the edge table, as markdown. HTML is the + same document rendered to HTML. +- MERMAID: the graph (handled by the generic mermaid path; see AssetCatalog). +- JSON: the full graph response, unchanged. + +A graph is never one row of mermaid text. + +How the response holds edges: `relationships` lists the edges among the asset and its anchored +elements, each with `startingElementGUID` (one end), `relatedElement` (the other end) and +`relatedElementAtEnd1` (which end that is). The asset's own relationships are keyed lists at the +top level (for example `governedBy`, `requestedActions`), each item a `relatedElement` with +`relatedElementAtEnd1`, the asset being the other end. An edge reported twice (the same +relationship GUID) is listed once. Rows are sorted, so the order never depends on the order Egeria +returned them in. Paging (`start_from`, `page_size`) is Egeria's, on the graph request. + +Pure functions: no I/O, no client. +""" +from __future__ import annotations + +from typing import Any, Dict, List, Optional, Tuple + +#: DICT/TABLE row keys, in column order: the edge table. +EDGE_COLUMNS: List[Tuple[str, str]] = [ + ("From Display Name", "from_display_name"), + ("From Type", "from_type"), + ("From GUID", "from_guid"), + ("Relationship", "relationship_type"), + ("To Display Name", "to_display_name"), + ("To Type", "to_type"), + ("To GUID", "to_guid"), +] + +#: LIST columns: the node table. +NODE_COLUMNS: List[Tuple[str, str]] = [ + ("Display Name", "display_name"), + ("Type", "type_name"), + ("GUID", "guid"), + ("Role", "role"), +] + +#: The REPORT/MD asset summary: (label, how to read it from the asset element). +_SUMMARY_FIELDS = [ + ("Display Name", ("properties", "displayName")), + ("Qualified Name", ("properties", "qualifiedName")), + ("Description", ("properties", "description")), + ("Type", ("elementHeader", "type", "typeName")), + ("GUID", ("elementHeader", "guid")), + ("Created By", ("elementHeader", "versions", "createdBy")), + ("Create Time", ("elementHeader", "versions", "createTime")), + ("Updated By", ("elementHeader", "versions", "updatedBy")), + ("Update Time", ("elementHeader", "versions", "updateTime")), + ("Version", ("elementHeader", "versions", "version")), +] + +#: The graphs the REPORT shows, in order, when the response carries them. +_REPORT_GRAPHS = [("Graph", "mermaidGraph"), ("Anchor Graph", "anchorMermaidGraph"), + ("Action Graph", "actionMermaidGraph"), ("Field Level Lineage Graph", "fieldLevelLineageGraph")] + + +def _dig(obj: Any, path) -> Any: + for key in path: + if not isinstance(obj, dict): + return None + obj = obj.get(key) + return obj + + +def _node(element: Dict[str, Any]) -> Dict[str, str]: + header = element.get("elementHeader") or {} + props = element.get("properties") or {} + return {"guid": header.get("guid") or "", + "type_name": _dig(header, ("type", "typeName")) or "", + "display_name": (props.get("displayName") or props.get("name") or props.get("qualifiedName") + or element.get("uniqueName") or "")} + + +def _is_edge(item: Any) -> bool: + return isinstance(item, dict) and "relationshipHeader" in item and isinstance(item.get("relatedElement"), dict) + + +def _asset_edge_lists(graph: Dict[str, Any]) -> List[List[Dict[str, Any]]]: + """The asset's own relationships: every top-level list (other than `relationships`) of edges.""" + return [v for k, v in graph.items() + if k != "relationships" and isinstance(v, list) and v and all(_is_edge(i) for i in v)] + + +def graph_nodes(graph: Dict[str, Any]) -> List[Dict[str, str]]: + """Every node: the asset first, then anchored elements, then other related elements, by name.""" + asset = _node(graph) + asset["role"] = "asset" + seen = {asset["guid"]: asset} + anchored, related = [], [] + for el in graph.get("anchoredElements") or []: + n = _node(el) + if n["guid"] and n["guid"] not in seen: + n["role"] = "anchored" + seen[n["guid"]] = n + anchored.append(n) + for edges in [graph.get("relationships") or []] + _asset_edge_lists(graph): + for item in edges: + if not _is_edge(item): + continue + n = _node(item["relatedElement"]) + if n["guid"] and n["guid"] not in seen: + n["role"] = "related" + seen[n["guid"]] = n + related.append(n) + order = lambda n: (n["display_name"].lower(), n["type_name"], n["guid"]) # noqa: E731 + return [asset] + sorted(anchored, key=order) + sorted(related, key=order) + + +def graph_edges(graph: Dict[str, Any]) -> List[Dict[str, str]]: + """One row per edge (keys: the labels of EDGE_COLUMNS), sorted, each relationship once.""" + nodes = {n["guid"]: n for n in graph_nodes(graph)} + asset_guid = _node(graph)["guid"] + rows: Dict[str, Dict[str, str]] = {} + + def add(item: Dict[str, Any], starting_guid: Optional[str]) -> None: + header = item["relationshipHeader"] + rel_guid = header.get("guid") or "" + related = _node(item["relatedElement"]) + start = nodes.get(starting_guid or "") or {"guid": starting_guid or "", "type_name": "", "display_name": ""} + if item.get("relatedElementAtEnd1"): + end1, end2 = related, start + else: + end1, end2 = start, related + key = rel_guid or f"{end1['guid']}|{_dig(header, ('type', 'typeName'))}|{end2['guid']}" + if key in rows: + return + values = {"from_display_name": end1["display_name"], "from_type": end1["type_name"], + "from_guid": end1["guid"], "relationship_type": _dig(header, ("type", "typeName")) or "", + "to_display_name": end2["display_name"], "to_type": end2["type_name"], "to_guid": end2["guid"]} + rows[key] = {label: values[k] for label, k in EDGE_COLUMNS} | {"_relationship_guid": rel_guid} + + for item in graph.get("relationships") or []: + if _is_edge(item): + add(item, item.get("startingElementGUID") or asset_guid) + for edges in _asset_edge_lists(graph): + for item in edges: + add(item, asset_guid) + + def order(r): + return (r["From Display Name"].lower(), r["Relationship"], r["To Display Name"].lower(), + r["From GUID"], r["To GUID"], r["_relationship_guid"]) + + out = sorted(rows.values(), key=order) + for r in out: + r.pop("_relationship_guid") + return out + + +def _md_cell(value: Any) -> str: + return str(value if value is not None else "").replace("|", "\\|").replace("\n", " ") + + +def _md_table(columns: List[str], rows: List[Dict[str, Any]]) -> str: + lines = ["| " + " | ".join(columns) + " |", "|" + "---|" * len(columns)] + lines += ["| " + " | ".join(_md_cell(r.get(c)) for c in columns) + " |" for r in rows] + return "\n".join(lines) + + +def render_nodes_list(graph: Dict[str, Any]) -> str: + """LIST: the nodes as a markdown table.""" + nodes = graph_nodes(graph) + rows = [{label: n[key] for label, key in NODE_COLUMNS} for n in nodes] + name = nodes[0]["display_name"] or nodes[0]["guid"] + return f"### Asset Graph nodes: {name} ({len(nodes)})\n\n" + _md_table([c for c, _ in NODE_COLUMNS], rows) + "\n" + + +def render_report(graph: Dict[str, Any]) -> str: + """REPORT/MD: the asset summary, its graph(s) and the edge table, as markdown.""" + from pyegeria.view.output_formatter import _format_mermaid_value + + asset = _node(graph) + name = asset["display_name"] or asset["guid"] + parts = [f"# Asset Graph: {name}", "", "## Asset", ""] + summary = [(label, _dig(graph, path)) for label, path in _SUMMARY_FIELDS] + parts.append(_md_table(["Property", "Value"], + [{"Property": label, "Value": value} for label, value in summary + if value not in (None, "")])) + for title, key in _REPORT_GRAPHS: + if graph.get(key): + parts += ["", f"## {title}", "", _format_mermaid_value(graph[key])] + edges = graph_edges(graph) + parts += ["", f"## Relationships ({len(edges)})", ""] + parts.append(_md_table([c for c, _ in EDGE_COLUMNS], edges) if edges else "No relationships.") + return "\n".join(parts) + "\n" + + +def render(graph: Any, output_format: str) -> Any: + """The shape for `output_format` (DICT, TABLE, LIST, REPORT, MD, HTML), or None when this module + has no shape for it (the caller uses its generic path). A list of graphs is shaped one by one: + rows concatenated, documents joined.""" + fmt = (output_format or "").upper() + if fmt not in {"DICT", "TABLE", "LIST", "REPORT", "MD", "HTML"}: + return None + graphs = graph if isinstance(graph, list) else [graph] + graphs = [g for g in graphs if isinstance(g, dict)] + if fmt in {"DICT", "TABLE"}: + return [row for g in graphs for row in graph_edges(g)] + if fmt == "LIST": + return "\n".join(render_nodes_list(g) for g in graphs) + report = "\n".join(render_report(g) for g in graphs) + if fmt == "HTML": + from pyegeria.view.output_formatter import markdown_to_html + return markdown_to_html(report) + return report diff --git a/pyegeria/view/base_report_formats.py b/pyegeria/view/base_report_formats.py index ea9d368b..5ab2c006 100644 --- a/pyegeria/view/base_report_formats.py +++ b/pyegeria/view/base_report_formats.py @@ -628,8 +628,11 @@ def _user_report_specs_dir() -> str: TIME_PARAMETERS = ["as_of_time", "effective_time"] -#: The Asset-Graph spec's columns: the asset's own fields, then the graphs get_asset_graph_by_guid -#: returns at the top level of its response (keys as Egeria writes them). +from pyegeria.view.asset_graph import EDGE_COLUMNS as ASSET_GRAPH_EDGE_COLUMNS # noqa: E402 +from pyegeria.view.asset_graph import NODE_COLUMNS as ASSET_GRAPH_NODE_COLUMNS # noqa: E402 + +#: The Asset-Graph spec's REPORT/MD/HTML/JSON columns: the asset's own fields, then the graphs +#: get_asset_graph_by_guid returns at the top level of its response (keys as Egeria writes them). ASSET_GRAPH_COLUMNS = COMMON_COLUMNS + COMMON_METADATA_COLUMNS + [ Column(name="Classifications", key='classifications'), Column(name="Created By", key='created_by'), @@ -1419,27 +1422,26 @@ def _user_report_specs_dir() -> str: target_type="Asset", heading="Asset Graph", description=("An asset, the elements anchored to it and their relationships, as Egeria's asset graph " - "(AssetCatalog.get_asset_graph_by_guid): the asset's own fields and its mermaid graphs."), + "(AssetCatalog.get_asset_graph_by_guid)."), annotations={}, # No specific annotations family="AssetCatalog", - # One element (the asset) with its graphs. Declared formats only (6.2.28): ALL, MD, FORM and LIST - # are left out on purpose. MD and FORM are Dr.Egeria update forms ("Update Asset"), which do not - # fit a read-only graph view; LIST is a markdown table, where a mermaid graph cannot render; and - # ALL, requested as an output format, rendered only the asset's name. Asking for one of them is - # an error with words (the executor lists the formats this spec declares), never a silent None. + # A graph has a shape per output format (6.2.28; pyegeria/view/asset_graph.py): + # - DICT/TABLE: one row per edge (from element, relationship type, to element), the asset's own + # relationships included, sorted, each relationship once; + # - LIST: the nodes (the asset, its anchored elements, every element an edge reaches); + # - REPORT/MD/HTML: the asset summary, its graph(s) and the edge table; + # - MERMAID: the graph; + # - JSON: the full graph response. + # FORM is not declared: it is a Dr.Egeria update form, which a read-only graph does not fit. ALL is + # not declared either, so a format not listed here is an error with words (the executor names the + # declared formats), never a silent None and never one row of mermaid text. formats=[ - Format( - types=["DICT", "TABLE", "JSON"], - attributes=ASSET_GRAPH_COLUMNS, - ), - Format( - types=["REPORT", "HTML"], - attributes=ASSET_GRAPH_COLUMNS, - ), - Format( - types=["MERMAID"], - attributes=[Column(name="Mermaid Graph", key='mermaidGraph')], - ), + Format(types=["DICT", "TABLE"], + attributes=[Column(name=label, key=key) for label, key in ASSET_GRAPH_EDGE_COLUMNS]), + Format(types=["LIST"], + attributes=[Column(name=label, key=key) for label, key in ASSET_GRAPH_NODE_COLUMNS]), + Format(types=["REPORT", "MD", "HTML", "JSON"], attributes=ASSET_GRAPH_COLUMNS), + Format(types=["MERMAID"], attributes=[Column(name="Mermaid Graph", key='mermaidGraph')]), ], action=ActionParameter( # ServerClient.get_asset_graph no longer exists; the asset graph is AssetCatalog's diff --git a/pyegeria/view/output_formatter.py b/pyegeria/view/output_formatter.py index fcca361e..d78d2337 100644 --- a/pyegeria/view/output_formatter.py +++ b/pyegeria/view/output_formatter.py @@ -382,8 +382,9 @@ def markdown_to_html(markdown_text: str) -> str: Returns: HTML string """ - # Initialize markdown-it - md = MarkdownIt() + # Initialize markdown-it. The CommonMark preset leaves GFM tables off, so markdown tables (the + # Asset-Graph edge table, LIST tables) came out as text; the page's CSS already styles tables. + md = MarkdownIt().enable("table") # Find all mermaid code blocks mermaid_blocks = re.findall(r'```mermaid\n(.*?)\n```', markdown_text, re.DOTALL) diff --git a/tests/micro-tests/data/asset_graph_by_guid_response.json b/tests/micro-tests/data/asset_graph_by_guid_response.json index e5a867ef..7599460d 100644 --- a/tests/micro-tests/data/asset_graph_by_guid_response.json +++ b/tests/micro-tests/data/asset_graph_by_guid_response.json @@ -1,5 +1,5 @@ { - "_recorded": "AssetCatalog.get_asset_graph_by_guid(output_format='JSON') against qs-view-server, 2026-11-09, read only; relationships trimmed to the first of 4", + "_recorded": "AssetCatalog.get_asset_graph_by_guid(output_format='JSON') against qs-view-server, 2026-11-09, read only, complete (4 relationships, the asset's own governedBy and requestedActions, 1 anchored element)", "response": { "class": "AssetGraph", "elementHeader": { @@ -90,6 +90,146 @@ "startTime": "2026-11-09T11:05:17.104+00:00", "activityStatus": "IN_PROGRESS" }, + "requestedActions": [ + { + "class": "RelatedMetadataElementSummary", + "relationshipHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "a0b7ba50-4c97-4b76-9a7d-c6a00e1be646", + "typeName": "ActionRequester", + "superTypeNames": [ + "LineageRelationship", + "LabeledRelationship" + ], + "typeVersion": 2, + "typeDescription": "The source of the action, such as a person, meeting or a governance action.", + "typeCategory": "RELATIONSHIP_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:15.883+00:00", + "updateTime": "2026-11-09T11:05:15.883+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "guid": "5342dbf4-07db-4e63-95a2-9ed274c8e72f" + }, + "relatedElement": { + "elementHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "c976d88a-2b11-4b40-b972-c38d41bfc6be", + "typeName": "EngineAction", + "superTypeNames": [ + "Action", + "Process", + "Asset", + "Referenceable", + "OpenMetadataRoot" + ], + "typeVersion": 2, + "typeDescription": "An engine action that has been created to support the active governance of the open metadata ecosystem and/or digital landscape.", + "typeCategory": "ENTITY_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "egeriagovernanceengine", + "maintainedBy": [ + "baudotnpa", + "egeriagovernanceengine" + ], + "createTime": "2026-11-09T11:05:13.379+00:00", + "updateTime": "2026-11-09T11:05:17.141+00:00", + "version": 4, + "lastRequestId": "7807c843-3774-40b4-bd2c-31460308ebb9" + }, + "guid": "1de658d3-6af5-4c32-b915-5fb6bd5bb524", + "anchor": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "aa44f302-2e43-4669-a1e7-edaae414fc6e", + "typeName": "Anchors", + "typeVersion": 1, + "typeDescription": "Identifies the anchor entity for an element that is part of a large composite object such as an asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:13.365+00:00", + "updateTime": "2026-11-09T11:05:13.365+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "Anchors", + "classificationProperties": { + "class": "AnchorsProperties", + "typeName": "Anchors", + "anchorGUID": "bf1d5f61-9d79-41bc-a89a-d863222585ff", + "anchorTypeName": "GovernanceActionProcessInstance", + "anchorDomainName": "Asset" + } + } + }, + "properties": { + "class": "EngineActionProperties", + "typeName": "EngineAction", + "qualifiedName": "ProvisioningActionProcess::provisioningGovernanceActionType::95ff50a4-13fe-4479-90f2-22d4c9c48ad9:processStep1::16383ead-5a2b-480b-a1fe-cfb1b9e422bf", + "displayName": "provision-subscription (EgeriaGovernance)", + "description": "Governance Action Service that provisions the data identified in a digital subscription to the requested destination.", + "requestedStartTime": "2026-11-09T11:05:13.136+00:00", + "startTime": "2026-11-09T11:05:17.104+00:00", + "activityStatus": "IN_PROGRESS", + "domainIdentifier": 8, + "executorEngineGUID": "81d0292d-f074-41e3-93ec-dbecc45cc0c1", + "executorEngineName": "EgeriaGovernance", + "processName": "ProvisioningActionProcess::provisioningGovernanceActionType::95ff50a4-13fe-4479-90f2-22d4c9c48ad9@1794222312842::77bd32e3-074f-4405-98c0-8df53021a9df", + "processStepGUID": "83306c9d-d122-48bb-8861-519cf03ddc2b", + "processStepName": "ProvisioningActionProcess::provisioningGovernanceActionType::95ff50a4-13fe-4479-90f2-22d4c9c48ad9:processStep1", + "requesterUserId": "baudotnpa", + "requestType": "provision-subscription", + "requestParameters": { + "topLevelProcessLineageOnly": "true" + }, + "processingEngineUserId": "egeriagovernanceengine" + } + }, + "relatedElementAtEnd1": false + } + ], "governedBy": [ { "class": "RelatedMetadataElementSummary", @@ -215,6 +355,108 @@ "relatedElementAtEnd1": false } ], + "anchoredElements": [ + { + "elementHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "c976d88a-2b11-4b40-b972-c38d41bfc6be", + "typeName": "EngineAction", + "superTypeNames": [ + "Action", + "Process", + "Asset", + "Referenceable", + "OpenMetadataRoot" + ], + "typeVersion": 2, + "typeDescription": "An engine action that has been created to support the active governance of the open metadata ecosystem and/or digital landscape.", + "typeCategory": "ENTITY_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "egeriagovernanceengine", + "maintainedBy": [ + "baudotnpa", + "egeriagovernanceengine" + ], + "createTime": "2026-11-09T11:05:13.379+00:00", + "updateTime": "2026-11-09T11:05:17.141+00:00", + "version": 4, + "lastRequestId": "7807c843-3774-40b4-bd2c-31460308ebb9" + }, + "guid": "1de658d3-6af5-4c32-b915-5fb6bd5bb524", + "anchor": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "aa44f302-2e43-4669-a1e7-edaae414fc6e", + "typeName": "Anchors", + "typeVersion": 1, + "typeDescription": "Identifies the anchor entity for an element that is part of a large composite object such as an asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:13.365+00:00", + "updateTime": "2026-11-09T11:05:13.365+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "Anchors", + "classificationProperties": { + "class": "AnchorsProperties", + "typeName": "Anchors", + "anchorGUID": "bf1d5f61-9d79-41bc-a89a-d863222585ff", + "anchorTypeName": "GovernanceActionProcessInstance", + "anchorDomainName": "Asset" + } + } + }, + "properties": { + "class": "EngineActionProperties", + "typeName": "EngineAction", + "qualifiedName": "ProvisioningActionProcess::provisioningGovernanceActionType::95ff50a4-13fe-4479-90f2-22d4c9c48ad9:processStep1::16383ead-5a2b-480b-a1fe-cfb1b9e422bf", + "displayName": "provision-subscription (EgeriaGovernance)", + "description": "Governance Action Service that provisions the data identified in a digital subscription to the requested destination.", + "requestedStartTime": "2026-11-09T11:05:13.136+00:00", + "startTime": "2026-11-09T11:05:17.104+00:00", + "activityStatus": "IN_PROGRESS", + "domainIdentifier": 8, + "executorEngineGUID": "81d0292d-f074-41e3-93ec-dbecc45cc0c1", + "executorEngineName": "EgeriaGovernance", + "processName": "ProvisioningActionProcess::provisioningGovernanceActionType::95ff50a4-13fe-4479-90f2-22d4c9c48ad9@1794222312842::77bd32e3-074f-4405-98c0-8df53021a9df", + "processStepGUID": "83306c9d-d122-48bb-8861-519cf03ddc2b", + "processStepName": "ProvisioningActionProcess::provisioningGovernanceActionType::95ff50a4-13fe-4479-90f2-22d4c9c48ad9:processStep1", + "requesterUserId": "baudotnpa", + "requestType": "provision-subscription", + "requestParameters": { + "topLevelProcessLineageOnly": "true" + }, + "processingEngineUserId": "egeriagovernanceengine" + } + } + ], "relationships": [ { "class": "RelatedMetadataNodeSummary", @@ -476,6 +718,557 @@ }, "relatedElementAtEnd1": false, "startingElementGUID": "1de658d3-6af5-4c32-b915-5fb6bd5bb524" + }, + { + "class": "RelatedMetadataNodeSummary", + "relationshipHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "a0b7ba50-4c97-4b76-9a7d-c6a00e1be646", + "typeName": "ActionRequester", + "superTypeNames": [ + "LineageRelationship", + "LabeledRelationship" + ], + "typeVersion": 2, + "typeDescription": "The source of the action, such as a person, meeting or a governance action.", + "typeCategory": "RELATIONSHIP_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:14.327+00:00", + "updateTime": "2026-11-09T11:05:14.327+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "guid": "070c3f4b-3899-41ab-95b3-02d93ac26a02" + }, + "relatedElement": { + "elementHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "759da11b-ebb6-4382-bdc9-72adc7c922db", + "typeName": "IntegrationConnector", + "superTypeNames": [ + "DeployedConnector", + "DeployedSoftwareComponent", + "Process", + "Asset", + "Referenceable", + "OpenMetadataRoot" + ], + "typeVersion": 1, + "typeDescription": "A definition to control the execution of an integration connector.", + "typeCategory": "ENTITY_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "CONTENT_PACK", + "homeMetadataCollectionId": "e8e06304-2eb9-4ebe-bb8c-1ae44635244b", + "homeMetadataCollectionName": "OpenMetadataDigitalProductsContentPack", + "license": "Apache 2.0" + }, + "versions": { + "createdBy": "Egeria Project", + "updatedBy": "Egeria Project", + "maintainedBy": [ + "Egeria Project" + ], + "createTime": "2026-04-01T06:45:49.989+00:00", + "updateTime": "2026-04-01T06:45:49.989+00:00", + "version": 1790859400371 + }, + "guid": "fed3e17d-6aa0-4959-8af4-a2cbfde1717b", + "anchor": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "aa44f302-2e43-4669-a1e7-edaae414fc6e", + "typeName": "Anchors", + "typeVersion": 1, + "typeDescription": "Identifies the anchor entity for an element that is part of a large composite object such as an asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "CONTENT_PACK", + "homeMetadataCollectionId": "e8e06304-2eb9-4ebe-bb8c-1ae44635244b", + "homeMetadataCollectionName": "OpenMetadataDigitalProductsContentPack" + }, + "versions": { + "createdBy": "Egeria Project", + "updatedBy": "Egeria Project", + "maintainedBy": [ + "Egeria Project" + ], + "createTime": "2026-04-01T06:45:49.989+00:00", + "updateTime": "2026-04-01T06:45:49.989+00:00", + "version": 1790859400371 + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "Anchors", + "classificationProperties": { + "class": "AnchorsProperties", + "typeName": "Anchors", + "anchorTypeName": "IntegrationConnector", + "anchorDomainName": "Asset" + } + }, + "usageActivity": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "cfae23a1-8020-431f-a603-1f1bb0e01cb3", + "typeName": "UsageActivity", + "typeVersion": 1, + "typeDescription": "Describes the usage activity around an anchor element and its anchored elements: how often it is explicitly retrieved, found through searches, has its properties updated, and has its attachments and feedback updated or deleted.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "pepysnpa", + "updatedBy": "pepysnpa", + "maintainedBy": [ + "pepysnpa" + ], + "createTime": "2026-11-07T16:19:11.579+00:00", + "updateTime": "2026-11-09T00:18:04.593+00:00", + "version": 13, + "lastRequestId": "5736f99b-3be0-4707-bd0f-d18943a85043" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "UsageActivity", + "classificationProperties": { + "class": "UsageActivityProperties", + "typeName": "UsageActivity", + "explicitGetCount": 68, + "findCount": 516, + "updatePropertyCount": 0, + "updateAttachmentCount": 67, + "updateFeedbackCount": 0, + "deleteAttachmentCount": 0, + "deleteFeedbackCount": 0 + } + } + }, + "properties": { + "class": "IntegrationConnectorProperties", + "typeName": "IntegrationConnector", + "qualifiedName": "Egeria:IntegrationGroup:Jacquard::BaudotDigitalProductSubscriptionManagerIntegrationConnector", + "displayName": "BaudotDigitalProductSubscriptionManagerIntegrationConnector", + "description": "Notifies the subscribers of the digital products' notification types, on its refresh cycle and as their monitored resources change.", + "versionIdentifier": "6.3-SNAPSHOT", + "category": "Egeria-Supplied Connectors", + "resourceName": "org.odpi.openmetadata.adapters.connectors.baudot.BaudotSubscriptionManagementProvider", + "deployedImplementationType": "Integration Connector", + "activityStatus": "IN_PROGRESS" + } + }, + "relatedElementAtEnd1": true, + "startingElementGUID": "1de658d3-6af5-4c32-b915-5fb6bd5bb524" + }, + { + "class": "RelatedMetadataNodeSummary", + "relationshipHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "a0b7ba50-4c97-4b76-9a7d-c6a00e1be646", + "typeName": "ActionRequester", + "superTypeNames": [ + "LineageRelationship", + "LabeledRelationship" + ], + "typeVersion": 2, + "typeDescription": "The source of the action, such as a person, meeting or a governance action.", + "typeCategory": "RELATIONSHIP_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:15.883+00:00", + "updateTime": "2026-11-09T11:05:15.883+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "guid": "5342dbf4-07db-4e63-95a2-9ed274c8e72f" + }, + "relatedElement": { + "elementHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "206a6e44-ffe7-408b-8e59-79842d362776", + "typeName": "GovernanceActionProcessInstance", + "superTypeNames": [ + "TransientEmbeddedProcess", + "EmbeddedProcess", + "Action", + "Process", + "Asset", + "Referenceable", + "OpenMetadataRoot" + ], + "typeVersion": 1, + "typeDescription": "Represents a single run of a governance action process. It is linked to the parent governance action process using the GovernedBy relationship.", + "typeCategory": "ENTITY_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "egeriagovernanceengine", + "maintainedBy": [ + "baudotnpa", + "egeriagovernanceengine" + ], + "createTime": "2026-11-09T11:05:12.882+00:00", + "updateTime": "2026-11-09T11:05:17.237+00:00", + "version": 4, + "lastRequestId": "7807c843-3774-40b4-bd2c-31460308ebb9" + }, + "guid": "bf1d5f61-9d79-41bc-a89a-d863222585ff", + "anchor": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "aa44f302-2e43-4669-a1e7-edaae414fc6e", + "typeName": "Anchors", + "typeVersion": 1, + "typeDescription": "Identifies the anchor entity for an element that is part of a large composite object such as an asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:12.871+00:00", + "updateTime": "2026-11-09T11:05:12.871+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "Anchors", + "classificationProperties": { + "class": "AnchorsProperties", + "typeName": "Anchors", + "anchorGUID": "33884dcc-c0b8-455e-8991-52c704a84d46", + "anchorTypeName": "ProvisioningActionProcess", + "anchorDomainName": "AuthoredReferenceable" + } + } + }, + "properties": { + "class": "GovernanceActionProcessInstanceProperties", + "typeName": "GovernanceActionProcessInstance", + "qualifiedName": "ProvisioningActionProcess::provisioningGovernanceActionType::95ff50a4-13fe-4479-90f2-22d4c9c48ad9@1794222312842::77bd32e3-074f-4405-98c0-8df53021a9df", + "displayName": "provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026", + "requestedTime": "2026-11-09T11:05:12.842+00:00", + "requestedStartTime": "2026-11-09T11:05:13.136+00:00", + "startTime": "2026-11-09T11:05:17.104+00:00", + "activityStatus": "IN_PROGRESS" + } + }, + "relatedElementAtEnd1": true, + "startingElementGUID": "1de658d3-6af5-4c32-b915-5fb6bd5bb524" + }, + { + "class": "RelatedMetadataNodeSummary", + "relationshipHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "207e2594-e3e4-4be8-a12c-4c401656e241", + "typeName": "ActionTarget", + "typeVersion": 1, + "typeDescription": "Associates an action with one or more elements to work on.", + "typeCategory": "RELATIONSHIP_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "baudotnpa", + "updatedBy": "baudotnpa", + "maintainedBy": [ + "baudotnpa" + ], + "createTime": "2026-11-09T11:05:15.260+00:00", + "updateTime": "2026-11-09T11:05:15.260+00:00", + "version": 1, + "lastRequestId": "669900de-7c7d-4916-8290-815f1547fd78" + }, + "guid": "52d9d7d6-9416-4a03-96f4-2a4bdb1e2d31" + }, + "relationshipProperties": { + "class": "ActionTargetProperties", + "typeName": "ActionTarget", + "actionTargetName": "sourceDataSet" + }, + "relatedElement": { + "elementHeader": { + "class": "ElementHeader", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "8f5614c5-1777-4760-a500-07e60ba29746", + "typeName": "TabularDataSetCollection", + "superTypeNames": [ + "DataSet", + "DataAsset", + "Asset", + "Referenceable", + "OpenMetadataRoot" + ], + "typeVersion": 1, + "typeDescription": "Collection of related tabular data sets, not necessarily stored together.", + "typeCategory": "ENTITY_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "erinoverview", + "updatedBy": "erinoverview", + "maintainedBy": [ + "erinoverview" + ], + "createTime": "2026-11-07T15:31:54.666+00:00", + "updateTime": "2026-11-07T15:31:54.666+00:00", + "version": 1, + "lastRequestId": "73251768-0a0d-4e83-90ae-74e63799ec6d", + "lastOperationId": "3d835fcb-4a32-4e87-8c0c-85479ca7300c" + }, + "guid": "1c365ba1-9f05-4e4c-accc-98fe576ad098", + "anchor": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "aa44f302-2e43-4669-a1e7-edaae414fc6e", + "typeName": "Anchors", + "typeVersion": 1, + "typeDescription": "Identifies the anchor entity for an element that is part of a large composite object such as an asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "erinoverview", + "updatedBy": "erinoverview", + "maintainedBy": [ + "erinoverview" + ], + "createTime": "2026-11-07T15:31:54.658+00:00", + "updateTime": "2026-11-07T15:31:54.658+00:00", + "version": 1, + "lastRequestId": "73251768-0a0d-4e83-90ae-74e63799ec6d" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "Anchors", + "classificationProperties": { + "class": "AnchorsProperties", + "typeName": "Anchors", + "anchorGUID": "73568c6c-284d-4ed8-ae85-67b58d5be49c", + "anchorTypeName": "DigitalProduct", + "anchorDomainName": "AuthoredReferenceable" + } + }, + "dataScope": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "22f996d0-c4b7-433a-af0b-6a3e9478e488", + "typeName": "DataScope", + "typeVersion": 2, + "typeDescription": "Identifies the scope of the data stored in the digital resource(s).", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "egeriagovernanceengine", + "updatedBy": "egeriagovernanceengine", + "maintainedBy": [ + "egeriagovernanceengine" + ], + "createTime": "2026-11-07T15:54:52.953+00:00", + "updateTime": "2026-11-07T16:29:10.552+00:00", + "version": 2, + "lastRequestId": "04d483a5-ddbc-42c1-8875-0abb1fd8afcf" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "DataScope", + "classificationProperties": { + "class": "DataScopeProperties", + "typeName": "DataScope", + "additionalProperties": { + "analysisTime": "2026-11-07T16:16:45Z", + "lastReadInWindow": "2026-11-07T08:19:38Z", + "readersInWindow": "2", + "readsPerDay": "0.54", + "analysisWindowEnd": "2026-11-07T16:16:45Z", + "readsInWindow": "16", + "analysisService": "open-lineage-data-scope-governance-service", + "analysisWindowStart": "2026-10-08T16:16:45Z" + } + } + }, + "usageActivity": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "cfae23a1-8020-431f-a603-1f1bb0e01cb3", + "typeName": "UsageActivity", + "typeVersion": 1, + "typeDescription": "Describes the usage activity around an anchor element and its anchored elements: how often it is explicitly retrieved, found through searches, has its properties updated, and has its attachments and feedback updated or deleted.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "pepysnpa", + "updatedBy": "pepysnpa", + "maintainedBy": [ + "pepysnpa" + ], + "createTime": "2026-11-07T15:43:30.365+00:00", + "updateTime": "2026-11-09T00:31:03.962+00:00", + "version": 9, + "lastRequestId": "5736f99b-3be0-4707-bd0f-d18943a85043" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "UsageActivity", + "classificationProperties": { + "class": "UsageActivityProperties", + "typeName": "UsageActivity", + "explicitGetCount": 1, + "findCount": 30, + "updatePropertyCount": 0, + "updateAttachmentCount": 0, + "updateFeedbackCount": 0, + "deleteAttachmentCount": 0, + "deleteFeedbackCount": 0 + } + }, + "dataAssetEncoding": { + "class": "ElementClassification", + "headerVersion": 0, + "status": "ACTIVE", + "type": { + "typeId": "3f6a1513-d3ea-4666-b5fd-c76477b0245e", + "typeName": "DataAssetEncoding", + "typeVersion": 1, + "typeDescription": "Description for how data is organized and represented in a data asset.", + "typeCategory": "CLASSIFICATION_DEF" + }, + "origin": { + "sourceServer": "qs-metadata-store", + "originCategory": "LOCAL_COHORT", + "homeMetadataCollectionId": "9905c3cb-94c5-4494-9229-0d6f69c0b842", + "homeMetadataCollectionName": "qs-metadata-store" + }, + "versions": { + "createdBy": "erinoverview", + "updatedBy": "erinoverview", + "maintainedBy": [ + "erinoverview" + ], + "createTime": "2026-11-07T15:31:54.662+00:00", + "updateTime": "2026-11-07T15:31:54.662+00:00", + "version": 1, + "lastRequestId": "73251768-0a0d-4e83-90ae-74e63799ec6d", + "lastOperationId": "3d835fcb-4a32-4e87-8c0c-85479ca7300c" + }, + "classificationOrigin": "ASSIGNED", + "classificationName": "DataAssetEncoding", + "classificationProperties": { + "class": "DataAssetEncodingProperties", + "typeName": "DataAssetEncoding", + "encodingType": "relational", + "encodingLanguage": "SQL" + } + } + }, + "properties": { + "class": "TabularDataSetCollectionProperties", + "typeName": "TabularDataSetCollection", + "qualifiedName": "PostgreSQL Tabular Data Set Collection::Coco PostgreSQL Server 1::coco_data_hub.goods_inventory_stock", + "displayName": "coco_data_hub.goods_inventory_stock", + "description": "The stock of materials and finished goods at every location: the current position, the movements that produced it, and the issues of material to manufacturing with their quarantine status. It also carries serialised finished goods once they are commissioned.", + "versionIdentifier": "V1.0", + "deployedImplementationType": "PostgreSQL Tabular Data Set Collection", + "contentStatus": "ACTIVE" + } + }, + "relatedElementAtEnd1": false, + "startingElementGUID": "1de658d3-6af5-4c32-b915-5fb6bd5bb524" } ], "mermaidGraph": "---\ntitle: GovernanceActionProcessInstance - provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026 [bf1d5f61-9d79-41bc-a89a-d863222585ff]\n---\nflowchart TD\n%%{init: {\"flowchart\": {\"htmlLabels\": false}} }%%\n\n1@{ shape: rounded, label: \"*Governance Action Process Instance*\n**provisioningGovernanceActionType@Mon Nov 09 11:05:12 GMT 2026**\"}\n2@{ shape: trap-t, label: \"*Engine Action*\n**provision-subscription (EgeriaGovernance)**\"}\n1==>|\"Action Requester\"|2\n3@{ shape: processes, label: \"*Provisioning Action Process*\n**provisioningGovernanceActionType**\"}\n1==>|\"Governed By\"|3\nstyle 1 color:#000000, fill:#e0ab18, stroke:#004563\nstyle 2 color:#000000, fill:#7fffd4, stroke:#000000\nstyle 3 color:#000000, fill:#40E0D0, stroke:#000000\n", diff --git a/tests/micro-tests/test_asset_graph_spec.py b/tests/micro-tests/test_asset_graph_spec.py index 5a4f38a1..b3c14aa5 100644 --- a/tests/micro-tests/test_asset_graph_spec.py +++ b/tests/micro-tests/test_asset_graph_spec.py @@ -1,4 +1,6 @@ -"""The Asset-Graph report spec renders Egeria's asset graph in every format it declares (6.2.28). +"""The Asset-Graph report spec gives each output format a shape that fits a graph (6.2.28): +DICT/TABLE an edge table, LIST the nodes, REPORT/MD/HTML the asset summary with its graph and +edge table, MERMAID the graph, JSON the full response. Recorded input: `data/asset_graph_by_guid_response.json`, one AssetCatalog.get_asset_graph_by_guid response from qs-view-server (read only). The executor tests run the real path, @@ -22,9 +24,23 @@ RECORDED = json.loads((Path(__file__).parent / "data" / "asset_graph_by_guid_response.json").read_text())["response"] GUID = RECORDED["elementHeader"]["guid"] NAME = RECORDED["properties"]["displayName"] -DECLARED = ["DICT", "TABLE", "JSON", "REPORT", "HTML", "MERMAID"] -GRAPH_COLUMNS = {"Mermaid Graph": "mermaidGraph", "Anchor Graph": "anchorMermaidGraph", - "Action Graph": "actionMermaidGraph"} +DECLARED = ["DICT", "TABLE", "LIST", "REPORT", "MD", "HTML", "JSON", "MERMAID"] +EDGE_KEYS = ["From Display Name", "From Type", "From GUID", "Relationship", "To Display Name", "To Type", + "To GUID"] + +# The recorded graph's edges, read off the response by hand (end1 -> end2). The asset's own +# ActionRequester appears both in `relationships` and in `requestedActions`: one edge. +GAPI, ENGINE, CONNECTOR = "bf1d5f61-9d79-41bc-a89a-d863222585ff", "1de658d3-6af5-4c32-b915-5fb6bd5bb524", \ + "fed3e17d-6aa0-4959-8af4-a2cbfde1717b" +PROCESS, STOCK, STAGING = "33884dcc-c0b8-455e-8991-52c704a84d46", "1c365ba1-9f05-4e4c-accc-98fe576ad098", \ + "408e542a-272d-4773-ba9b-4cea3d539f01" +EXPECTED_EDGES = { + (GAPI, "GovernedBy", PROCESS), # the asset's own relationship (governedBy) + (GAPI, "ActionRequester", ENGINE), # in requestedActions and in relationships + (CONNECTOR, "ActionRequester", ENGINE), + (ENGINE, "ActionTarget", STOCK), + (ENGINE, "ActionTarget", STAGING), +} class _Response: @@ -77,76 +93,109 @@ def _run(fmt): user="tester", user_pass="unused") -def test_the_spec_declares_exactly_the_graph_formats_and_the_corrected_key(): +def test_the_spec_declares_a_shape_per_format_and_no_form_or_all(): spec = brf.base_report_specs["Asset-Graph"] - types = sorted(t for f in spec.formats for t in f.types) - assert types == sorted(DECLARED) + assert sorted(t for f in spec.formats for t in f.types) == sorted(DECLARED) + by_type = {t: f for f in spec.formats for t in f.types} + assert [c.name for c in by_type["DICT"].attributes] == EDGE_KEYS + assert [c.name for c in by_type["LIST"].attributes] == ["Display Name", "Type", "GUID", "Role"] keys = {c.key for f in spec.formats for c in f.attributes} - assert "anchorMermaidGRaph" not in keys - assert {"mermaidGraph", "anchorMermaidGraph", "actionMermaidGraph"} <= keys + assert "anchorMermaidGRaph" not in keys and "anchorMermaidGraph" in keys assert spec.action.function == "AssetCatalog.get_asset_graph_by_guid" assert spec.action.required_params == ["guid"] @pytest.mark.parametrize("fmt", ["DICT", "TABLE"]) -def test_dict_and_table_are_one_row_the_asset_itself_with_its_graphs(offline_asset_catalog, fmt): +def test_dict_and_table_are_one_row_per_edge(offline_asset_catalog, fmt): result = _run(fmt) assert result["kind"] == "json" rows = result["data"] - assert isinstance(rows, list) and len(rows) == 1 # the asset, not its related elements - row = rows[0] - assert row["GUID"] == GUID and row["Display Name"] == NAME - for column, key in GRAPH_COLUMNS.items(): - assert row[column] == RECORDED[key], column + assert all(list(r.keys()) == EDGE_KEYS for r in rows) + assert {(r["From GUID"], r["Relationship"], r["To GUID"]) for r in rows} == EXPECTED_EDGES + assert len(rows) == len(EXPECTED_EDGES) # each relationship once + names = {r["From GUID"]: (r["From Display Name"], r["From Type"]) for r in rows} + assert names[GAPI] == (NAME, "GovernanceActionProcessInstance") + assert not any("mermaid" in str(v) or "flowchart" in str(v) for r in rows for v in r.values()) assert offline_asset_catalog and offline_asset_catalog[0][1].endswith(f"/assets/{GUID}/as-graph") -def test_json_is_the_raw_graph(offline_asset_catalog): - result = _run("JSON") - assert result["kind"] == "json" and result["data"]["mermaidGraph"] == RECORDED["mermaidGraph"] +def test_edge_order_is_deterministic_whatever_order_egeria_returns(): + from pyegeria.view import asset_graph + shuffled = copy.deepcopy(RECORDED) + shuffled["relationships"].reverse() + shuffled = dict(reversed(list(shuffled.items()))) + assert asset_graph.graph_edges(shuffled) == asset_graph.graph_edges(RECORDED) + +def test_list_is_the_nodes(offline_asset_catalog): + result = _run("LIST") + assert result["kind"] == "text" + content = result["content"] + assert "| Display Name | Type | GUID | Role |" in content + for guid in (GAPI, ENGINE, CONNECTOR, PROCESS, STOCK, STAGING): + assert content.count(guid) == 1, guid + assert f"| {NAME} | GovernanceActionProcessInstance | {GAPI} | asset |" in content + assert "| anchored |" in content and "```mermaid" not in content -def test_report_carries_the_asset_fields_and_every_graph(offline_asset_catalog): - result = _run("REPORT") - assert result["kind"] == "text" and result["content"] + +@pytest.mark.parametrize("fmt", ["REPORT", "MD"]) +def test_report_and_md_are_the_summary_the_graph_and_the_edge_table(offline_asset_catalog, fmt): + result = _run(fmt) + assert result["kind"] == "text" content = result["content"] - assert NAME in content and GUID in content - assert content.count("```mermaid") == len(GRAPH_COLUMNS) - for column in GRAPH_COLUMNS: - assert f"### {column}" in content, column + assert content.startswith(f"# Asset Graph: {NAME}") + assert "## Asset" in content and f"| GUID | {GUID} |" in content + assert "## Graph" in content and content.count("```mermaid") == 3 # graph, anchor graph, action graph + assert f"## Relationships ({len(EXPECTED_EDGES)})" in content + assert "| " + " | ".join(EDGE_KEYS) + " |" in content + # Architect P3: a by-GUID fetch is not a search. + assert "search string" not in content and "Members" not in content -def test_html_carries_the_graphs(offline_asset_catalog): +def test_html_is_the_report_rendered(offline_asset_catalog): result = _run("HTML") assert result["kind"] == "text" and result["mime"] == "text/html" - assert "mermaid" in result["content"] and NAME in result["content"] + content = result["content"] + assert " 1 or not any("```mermaid" in str(v) for v in result["data"][0].values()) + + +def test_a_graph_with_no_edges_has_an_empty_edge_table_and_says_so(): + from pyegeria.view import asset_graph + lone = {k: v for k, v in RECORDED.items() if k not in ("relationships", "governedBy", "requestedActions")} + assert asset_graph.graph_edges(lone) == [] + assert "## Relationships (0)" in asset_graph.render(lone, "REPORT") + assert "No relationships." in asset_graph.render(lone, "REPORT") From 8988fd9a431b00cfda801204eb788dd284210eb8 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 11:35:08 +0000 Subject: [PATCH 09/14] feat: one name for the type filters (metadata_element_type / _subtypes) Owner: "Make it consistent with either metadata_element_type_name or metadata_element_type everywhere". metadata_element_type matches the SearchFilters/GetFilters TypedDicts and the search helper, so: - 135 signatures renamed (124 metadata_element_type_name, 8 metadata_element_sub_type, 2 metadata_element_subtype, 1 metadata_element_name), with their body uses, docstrings and every in-repo call site (keywords, **params dicts, spec cache). - request_filters.DEPRECATED_NAMES + @deprecated_names: the old spelling still works with one DeprecationWarning naming the new one; a lone string for the subtype list becomes a list; old and new with different values raise TypeError. filter_body_kwargs applies the same to **kwargs. - The report executor renames old spellings quietly (spec vocabulary is not the caller's code). - 10 methods whose renamed parameter now repeats a TypedDict key drop the Unpack annotation (PEP 692). - Tests: no signature uses a deprecated name; alias warns/maps/refuses; by-name wrappers take both spellings; test fakes follow the new name. - Docs page section + generated "Deprecated spellings" table; 6.2.28 note. Signed-off-by: Dan Wolfson --- .../list_related_elements_with_prop_value.py | 2 +- docs/release-notes/6.2.28.md | 7 + docs/search-and-get-filters.md | 31 ++- pyegeria/core/_server_client.py | 133 +++++++----- pyegeria/core/request_filters.py | 107 +++++++++- pyegeria/omvs/actor_manager.py | 197 ++++++++++-------- pyegeria/omvs/asset_catalog.py | 29 +-- pyegeria/omvs/asset_maker.py | 69 +++--- pyegeria/omvs/automated_curation.py | 57 ++--- pyegeria/omvs/classification_explorer.py | 102 +++++---- pyegeria/omvs/collection_manager.py | 37 ++-- pyegeria/omvs/community_matters_omvs.py | 15 +- pyegeria/omvs/data_discovery.py | 8 +- pyegeria/omvs/digital_business.py | 29 +-- pyegeria/omvs/glossary_manager.py | 29 +-- pyegeria/omvs/location_arena.py | 29 +-- pyegeria/omvs/metadata_expert.py | 59 +++--- pyegeria/omvs/product_catalog.py | 19 +- pyegeria/omvs/product_manager.py | 27 +-- pyegeria/omvs/project_manager.py | 13 +- pyegeria/omvs/runtime_manager.py | 25 ++- pyegeria/omvs/security_officer.py | 31 +-- pyegeria/omvs/subject_area.py | 29 +-- pyegeria/omvs/time_keeper.py | 29 +-- pyegeria/view/egeria_spec_cache.py | 6 +- pyegeria/view/format_set_executor.py | 19 +- tests/micro-tests/test_issue_131_133.py | 23 +- tests/micro-tests/test_rs_egeria_tier.py | 8 +- .../test_search_get_filter_kwargs.py | 80 +++++++ 29 files changed, 822 insertions(+), 427 deletions(-) diff --git a/commands/tech/list_related_elements_with_prop_value.py b/commands/tech/list_related_elements_with_prop_value.py index 776c3e9f..9fb11ddb 100644 --- a/commands/tech/list_related_elements_with_prop_value.py +++ b/commands/tech/list_related_elements_with_prop_value.py @@ -88,7 +88,7 @@ def generate_table() -> Table: relationship_type, property_value, property_names, - metadata_element_type_name=om_type, + metadata_element_type=om_type, ) if type(elements) is list: diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index 50c2de6c..953541bd 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -31,6 +31,13 @@ - **Docs:** [Search and get filters](../search-and-get-filters.md) — the full tables, which Egeria request body each maps to, and examples. +- **One name for the type filters.** Every method now spells them `metadata_element_type` + and `metadata_element_subtypes` (135 signatures renamed, mostly from + `metadata_element_type_name`; also `metadata_element_sub_type`, `metadata_element_subtype`, + `metadata_element_subtype_names`, `metadata_element_name`). The old spellings still work, with + a `DeprecationWarning` naming the new one; giving old and new with different values raises + `TypeError`. Report specs using the old names keep working without warnings. + ### Behaviour changes: some reports now return fewer rows These reports used to ignore part of their filter and list everything; they now return only diff --git a/docs/search-and-get-filters.md b/docs/search-and-get-filters.md index 577bc45a..76921e60 100644 --- a/docs/search-and-get-filters.md +++ b/docs/search-and-get-filters.md @@ -54,6 +54,24 @@ shows each one's description. The activity-, content- and deployment-status finds (for example `find_digital_products`) accept the same filters plus their own explicit status-list parameter. +### One name for the type filters + +Since 6.2.28 every method spells the element-type filters the same way: +`metadata_element_type` (one type name) and `metadata_element_subtypes` (a list). The older +spellings (`metadata_element_type_name`, `metadata_element_subtype_names`, +`metadata_element_sub_type`, `metadata_element_subtype`, `metadata_element_name`) still work, +with a `DeprecationWarning` naming the new one. A lone string given for a subtype list becomes +a one-item list. Giving the old and the new name with different values raises `TypeError`, +because pyegeria cannot tell which you meant. + +```python +explorer.find_elements_by_property_value("pump", ["displayName"], + metadata_element_type="EmbeddedProcess") +``` + +Report specs and Dr.Egeria parameter lists may still use the old spellings; the report +executor renames them quietly. + ### Filters are checked The names you pass are checked against the fields of the request body that call sends — the @@ -191,12 +209,23 @@ Used by the complex-query finds (find_metadata_elements, find_root_elements). Ma | `anchor_domain` | `anchor_domain_name` | | `relationship_page_size` | `relationships_page_size` | | `classification_names` | `include_only_classified_elements` | -| `metadata_element_name` | `metadata_element_type_name` | | `limit_result_by_status` | `limit_results_by_status` | | `sort_order` | `sequencing_order` | | `output_sort_order` | `sequencing_order` | | `order_property_name` | `sequencing_property` | | `anchor_scope_id` | `anchor_scope_guid` | +### Deprecated spellings + +These still work, with a `DeprecationWarning` naming the new name. Giving both the old and the new name with different values raises `TypeError`. + +| Deprecated | Use | +|---|---| +| `metadata_element_type_name` | `metadata_element_type` | +| `metadata_element_name` | `metadata_element_type` | +| `metadata_element_subtype_names` | `metadata_element_subtypes` | +| `metadata_element_sub_type` | `metadata_element_subtypes` | +| `metadata_element_subtype` | `metadata_element_subtypes` | + Each model field's camelCase wire name (e.g. `metadataElementSubtypeNames`) is accepted as well. These rendering options are passed through to output formatting and are not warned about: `filter_string`, `include_children`, `include_peers`, `include_preamble`, `max_depth`, `refresh_spec`, `report_format`, `search_string`. diff --git a/pyegeria/core/_server_client.py b/pyegeria/core/_server_client.py index b77561ee..681f1b75 100644 --- a/pyegeria/core/_server_client.py +++ b/pyegeria/core/_server_client.py @@ -19,6 +19,7 @@ from loguru import logger from pydantic import TypeAdapter, ValidationError +from pyegeria.core.request_filters import deprecated_names from pyegeria.core._base_server_client import BaseServerClient from pyegeria.core._exceptions import ( PyegeriaConnectionException, PyegeriaInvalidParameterException, PyegeriaException, PyegeriaErrorCode @@ -876,13 +877,14 @@ def _get_element_by_guid_(self, element_guid: str) -> dict | str: return result + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_get_related_elements_with_property_value( self, element_guid: str, relationship_type: str, property_value: str, property_names: list[str], - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, start_at_end: int = 1, effective_time: Optional[str] = None, for_lineage: Optional[bool] = None, @@ -908,7 +910,7 @@ async def _async_get_related_elements_with_property_value( - property value to be searched. property_names: [str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - restrict search to elements of this open metadata type start_at_end: int, default = 1 - The end of the relationship to start from - typically End1 @@ -940,7 +942,7 @@ async def _async_get_related_elements_with_property_value( body = { "class": "FindPropertyNamesProperties", - "metadataElementTypeName": metadata_element_type_name, + "metadataElementTypeName": metadata_element_type, "propertyValue": property_value, "propertyNames": property_names, "effectiveTime": effective_time, @@ -1580,11 +1582,12 @@ def get_comment_by_guid( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_attached_comments( self, element_guid: str, - metadata_element_type_name: str | None = "Comment", + metadata_element_type: str | None = "Comment", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -1618,7 +1621,7 @@ async def _async_get_attached_comments( """ url = f"{self.command_root}feedback-manager/elements/{element_guid}/comments/retrieve" - return await self._async_get_results_body_request(url, _type=metadata_element_type_name, + return await self._async_get_results_body_request(url, _type=metadata_element_type, _gen_output=self._generate_comment_output, graph_query_depth=graph_query_depth, start_from=start_from, @@ -1626,10 +1629,11 @@ async def _async_get_attached_comments( report_spec=report_spec, body=body, **kwargs) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_attached_comments( self, element_guid: str, - metadata_element_type_name: str | None = "Comment", + metadata_element_type: str | None = "Comment", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -1661,7 +1665,7 @@ def get_attached_comments( PyegeriaException """ response = run_sync( - self._async_get_attached_comments(element_guid, metadata_element_type_name, graph_query_depth, + self._async_get_attached_comments(element_guid, metadata_element_type, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs) ) return response @@ -2586,10 +2590,11 @@ def find_note_logs( return resp + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_note_logs_by_name( self, name: str = "*", - metadata_element_type_name: str | None = "NoteLog", + metadata_element_type: str | None = "NoteLog", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -2605,7 +2610,7 @@ async def _async_get_note_logs_by_name( ---------- name : str - the name to filter on. - metadata_element_type_name: str + metadata_element_type: str - NoteLog element type. body: dict | FilterRequestBody - optional effective time. If present, values supercede other parameters. @@ -2624,7 +2629,7 @@ async def _async_get_note_logs_by_name( response = await self._async_get_name_request(url, _type="NoteLog", _gen_output=self._generate_feedback_output, filter_string=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, graph_query_depth=graph_query_depth, start_from=start_from, @@ -2634,10 +2639,11 @@ async def _async_get_note_logs_by_name( return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_note_logs_by_name( self, name: str = "*", - metadata_element_type_name: str | None = "NoteLog", + metadata_element_type: str | None = "NoteLog", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -2653,7 +2659,7 @@ def get_note_logs_by_name( ---------- name : str - the name to filter on. - metadata_element_type_name: str + metadata_element_type: str - NoteLog element type. body: dict | FilterRequestBody - optional effective time. If present, values supercede other parameters. @@ -2668,7 +2674,7 @@ def get_note_logs_by_name( """ response = run_sync( - self._async_get_note_logs_by_name(name, metadata_element_type_name, metadata_element_subtypes, + self._async_get_note_logs_by_name(name, metadata_element_type, metadata_element_subtypes, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs) ) @@ -2746,11 +2752,12 @@ def get_note_log_by_guid( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_attached_note_logs( self, element_guid: str, - metadata_element_type_name: str | None = "NoteLog", + metadata_element_type: str | None = "NoteLog", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -2784,7 +2791,7 @@ async def _async_get_attached_note_logs( """ url = f"{self.command_root}feedback-manager/elements/{element_guid}/note-logs/retrieve" - return await self._async_get_results_body_request(url, _type=metadata_element_type_name, + return await self._async_get_results_body_request(url, _type=metadata_element_type, _gen_output=self._generate_feedback_output, graph_query_depth=graph_query_depth, start_from=start_from, @@ -2792,10 +2799,11 @@ async def _async_get_attached_note_logs( report_spec=report_spec, body=body, **kwargs) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_attached_note_logs( self, element_guid: str, - metadata_element_type_name: str | None = "NoteLog", + metadata_element_type: str | None = "NoteLog", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -2827,7 +2835,7 @@ def get_attached_note_logs( PyegeriaException """ response = run_sync( - self._async_get_attached_note_logs(element_guid, metadata_element_type_name, graph_query_depth, + self._async_get_attached_note_logs(element_guid, metadata_element_type, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs) ) return response @@ -3627,11 +3635,12 @@ def find_notes( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_note_by_guid( self, guid: str, - metadata_element_type_name: str | None = "Note", + metadata_element_type: str | None = "Note", graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, @@ -3645,7 +3654,7 @@ async def _async_get_note_by_guid( ---------- guid: str - unique identifier for the note object. - metadata_element_type_name : str, optional + metadata_element_type : str, optional - type name for the note object (default is "Note"). body - optional effective time @@ -3661,7 +3670,7 @@ async def _async_get_note_by_guid( """ url = f"{self.command_root}feedback-manager/assets/{guid}/retrieve" - response = await self._async_get_guid_request(url, _type=metadata_element_type_name, + response = await self._async_get_guid_request(url, _type=metadata_element_type, _gen_output=self._generate_feedback_output, graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, @@ -3669,11 +3678,12 @@ async def _async_get_note_by_guid( return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_note_by_guid( self, guid: str, - metadata_element_type_name: str | None = "Note", + metadata_element_type: str | None = "Note", graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, @@ -3687,7 +3697,7 @@ def get_note_by_guid( ---------- guid: str - unique identifier of the requested metadata element - metadata_element_type_name : str, optional + metadata_element_type : str, optional - type name for the note object (default is "Note"). body: dict | GetRequestBody - optional details of the request. @@ -3704,15 +3714,16 @@ def get_note_by_guid( PyegeriaException """ response = run_sync( - self._async_get_note_by_guid(guid, metadata_element_type_name, graph_query_depth, output_format, report_spec, body, **kwargs) + self._async_get_note_by_guid(guid, metadata_element_type, graph_query_depth, output_format, report_spec, body, **kwargs) ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_notes_for_note_log( self, note_log_guid: str, - metadata_element_type_name: str | None = "Note", + metadata_element_type: str | None = "Note", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", @@ -3727,7 +3738,7 @@ async def _async_get_notes_for_note_log( ---------- note_log_guid: str - id of the note log to retrieve notes for. - metadata_element_type_name : str, optional + metadata_element_type : str, optional - type of log entry to return (default is "Note"). A note log can also hold other Notification entries; pass "Notification" to get every entry. body: dict | ResultsRequestBody @@ -3748,7 +3759,7 @@ async def _async_get_notes_for_note_log( """ url = f"{self.command_root}feedback-manager/note-logs/{note_log_guid}/notes/retrieve" - response = await self._async_get_results_body_request(url, _type=metadata_element_type_name, + response = await self._async_get_results_body_request(url, _type=metadata_element_type, _gen_output=self._generate_feedback_output, graph_query_depth=graph_query_depth, start_from=start_from, @@ -3757,11 +3768,12 @@ async def _async_get_notes_for_note_log( body=body, **kwargs) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_notes_for_note_log( self, note_log_guid: str, - metadata_element_type_name: str | None = "Note", + metadata_element_type: str | None = "Note", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", @@ -3776,7 +3788,7 @@ def get_notes_for_note_log( ---------- note_log_guid: str - note_log id to find notes for. - metadata_element_type_name : str, optional + metadata_element_type : str, optional - type of log entry to return (default is "Note"). A note log can also hold other Notification entries; pass "Notification" to get every entry. body: dict | ResultsRequestBody @@ -3796,7 +3808,7 @@ def get_notes_for_note_log( """ response = run_sync( - self._async_get_notes_for_note_log(note_log_guid, metadata_element_type_name, graph_query_depth, + self._async_get_notes_for_note_log(note_log_guid, metadata_element_type, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs) ) return response @@ -4142,11 +4154,12 @@ def get_tag_by_guid( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_tags_by_name( self, name: str = "*", - metadata_element_type_name: str | None = "InformalTag", + metadata_element_type: str | None = "InformalTag", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, @@ -4184,7 +4197,7 @@ async def _async_get_tags_by_name( response = await self._async_get_name_request(url, _type="InformalTag", _gen_output=self._generate_feedback_output, filter_string=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, graph_query_depth=graph_query_depth, start_from=start_from, @@ -4193,11 +4206,12 @@ async def _async_get_tags_by_name( body=body, **kwargs) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_tags_by_name( self, name: str = "*", - metadata_element_type_name: str | None = "InformalTag", + metadata_element_type: str | None = "InformalTag", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, @@ -4230,7 +4244,7 @@ def get_tags_by_name( PyegeriaException """ response = run_sync( - self._async_get_tags_by_name(name, metadata_element_type_name, metadata_element_subtypes, + self._async_get_tags_by_name(name, metadata_element_type, metadata_element_subtypes, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs) ) @@ -4687,11 +4701,12 @@ def get_elements_by_tag( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_attached_tags( self, element_guid: str, - metadata_element_type_name: str | None = "InformalTag", + metadata_element_type: str | None = "InformalTag", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -4724,7 +4739,7 @@ async def _async_get_attached_tags( PyegeriaException """ url = f"{self.command_root}feedback-manager/elements/{element_guid}/tags/retrieve" - return await self._async_get_results_body_request(url, _type=metadata_element_type_name, + return await self._async_get_results_body_request(url, _type=metadata_element_type, _gen_output=self._generate_feedback_output, graph_query_depth=graph_query_depth, start_from=start_from, @@ -4732,11 +4747,12 @@ async def _async_get_attached_tags( report_spec=report_spec, body=body, **kwargs) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_attached_tags( self, element_guid: str, - metadata_element_type_name: str | None = "InformalTag", + metadata_element_type: str | None = "InformalTag", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -4769,7 +4785,7 @@ def get_attached_tags( PyegeriaException """ response = run_sync( - self._async_get_attached_tags(element_guid, metadata_element_type_name, graph_query_depth, + self._async_get_attached_tags(element_guid, metadata_element_type, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs) ) return response @@ -4981,11 +4997,12 @@ def add_like_to_element( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_attached_likes( self, element_guid: str, - metadata_element_type_name: str | None = "Like", + metadata_element_type: str | None = "Like", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -5022,7 +5039,7 @@ async def _async_get_attached_likes( PyegeriaException """ url = f"{self.command_root}feedback-manager/elements/{element_guid}/likes/retrieve" - return await self._async_get_results_body_request(url, _type=metadata_element_type_name, + return await self._async_get_results_body_request(url, _type=metadata_element_type, _gen_output=self._generate_feedback_output, graph_query_depth=graph_query_depth, start_from=start_from, @@ -5030,11 +5047,12 @@ async def _async_get_attached_likes( report_spec=report_spec, body=body, **kwargs) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_attached_likes( self, element_guid: str, - metadata_element_type_name: str | None = "Like", + metadata_element_type: str | None = "Like", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -5071,7 +5089,7 @@ def get_attached_likes( PyegeriaException """ response = run_sync( - self._async_get_attached_likes(element_guid, metadata_element_type_name, graph_query_depth, + self._async_get_attached_likes(element_guid, metadata_element_type, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs) ) return response @@ -5249,11 +5267,12 @@ def add_rating_to_element( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_attached_ratings( self, element_guid: str, - metadata_element_type_name: str | None = "Rating", + metadata_element_type: str | None = "Rating", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -5290,7 +5309,7 @@ async def _async_get_attached_ratings( PyegeriaException """ url = f"{self.command_root}feedback-manager/elements/{element_guid}/ratings/retrieve" - return await self._async_get_results_body_request(url, _type=metadata_element_type_name, + return await self._async_get_results_body_request(url, _type=metadata_element_type, _gen_output=self._generate_feedback_output, graph_query_depth=graph_query_depth, start_from=start_from, @@ -5298,11 +5317,12 @@ async def _async_get_attached_ratings( report_spec=report_spec, body=body, **kwargs) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_attached_ratings( self, element_guid: str, - metadata_element_type_name: str | None = "Rating", + metadata_element_type: str | None = "Rating", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, @@ -5339,7 +5359,7 @@ def get_attached_ratings( PyegeriaException """ response = run_sync( - self._async_get_attached_ratings(element_guid, metadata_element_type_name, graph_query_depth, + self._async_get_attached_ratings(element_guid, metadata_element_type, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs) ) return response @@ -5735,11 +5755,12 @@ def get_search_keyword_by_guid( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_search_keyword_by_keyword( self, name: str, - metadata_element_type_name: str | None = "SearchKeyword", + metadata_element_type: str | None = "SearchKeyword", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, @@ -5780,7 +5801,7 @@ async def _async_get_search_keyword_by_keyword( response = await self._async_get_name_request(url, _type="SearchKeyword", _gen_output=self._generate_feedback_output, filter_string=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, graph_query_depth=graph_query_depth, start_from=start_from, @@ -5789,11 +5810,12 @@ async def _async_get_search_keyword_by_keyword( body=body, **kwargs) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_search_keyword_by_keyword( self, name: str = "*", - metadata_element_type_name: str | None = "SearchKeyword", + metadata_element_type: str | None = "SearchKeyword", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, @@ -5829,7 +5851,7 @@ def get_search_keyword_by_keyword( """ response = run_sync( - self._async_get_search_keyword_by_keyword(name, metadata_element_type_name, metadata_element_subtypes, + self._async_get_search_keyword_by_keyword(name, metadata_element_type, metadata_element_subtypes, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs) ) @@ -6575,10 +6597,11 @@ async def _async_find_request(self, url: str, _type: str, _gen_output: Callable[ output_format=output_format, report_spec=report_spec, **kwargs) return elements + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_name_request(self, url: str, _type: str, _gen_output: Callable[..., Any], filter_string: str = "*", - metadata_element_type_name: str | None = None, + metadata_element_type: str | None = None, metadata_element_subtypes: list[str] | None = None, classification_names: list[str] | None = None, include_only_relationships: list[str] | None = None, @@ -6590,12 +6613,8 @@ async def _async_get_name_request(self, url: str, _type: str, _gen_output: Calla max_mermaid_node_count=10, **kwargs) -> Any: report_spec = await self._async_refresh_report_spec(report_spec, kwargs) # refresh_spec=True (RS-EGERIA-TIER) - # _async_find_request spells this argument `metadata_element_type`; a wrapper copied from a find_* - # sibling passed that spelling here, where it fell into **kwargs and FilterRequestBody silently - # dropped it, so the by-name search ran unfiltered by type (ISSUE-131). Accept both. - legacy_type_name = kwargs.pop("metadata_element_type", None) - if metadata_element_type_name is None: - metadata_element_type_name = legacy_type_name + # ISSUE-131: this argument is spelt `metadata_element_type`, as in _async_find_request (6.2.28: + # one name everywhere). The old `metadata_element_type_name` still works via @deprecated_names. _filters = filter_body_kwargs("name", kwargs) # check names; map to wire names if isinstance(body, FilterRequestBody): @@ -6608,7 +6627,7 @@ async def _async_get_name_request(self, url: str, _type: str, _gen_output: Calla body = { "class": "FilterRequestBody", "filter": filter_string, - "metadataElementTypeName": metadata_element_type_name, + "metadataElementTypeName": metadata_element_type, "metadataElementSubtypeNames": metadata_element_subtypes, "includeOnlyRelationships": include_only_relationships, "skipRelationships": skip_relationships, diff --git a/pyegeria/core/request_filters.py b/pyegeria/core/request_filters.py index a387ed10..45f566d2 100644 --- a/pyegeria/core/request_filters.py +++ b/pyegeria/core/request_filters.py @@ -68,6 +68,9 @@ "PUBLIC_ALIASES", "CALL_PARAMETERS", "RENDER_OPTIONS", + "DEPRECATED_NAMES", + "deprecated_names", + "canonicalize_names", ] @@ -204,7 +207,6 @@ class FindFilters(ListFilters, total=False): "classification_names": "include_only_classified_elements", # Dr.Egeria / report-param spellings (format_set_executor._normalize_report_params maps # them to the canonical name but leaves the original key in the params it forwards) - "metadata_element_name": "metadata_element_type_name", "limit_result_by_status": "limit_results_by_status", "sort_order": "sequencing_order", "output_sort_order": "sequencing_order", @@ -212,6 +214,97 @@ class FindFilters(ListFilters, total=False): "anchor_scope_id": "anchor_scope_guid", } +# One name everywhere (6.2.28): the element-type and subtype filters are spelt +# metadata_element_type / metadata_element_subtypes in every signature and in **kwargs. +# These older spellings still work, with a DeprecationWarning naming the new one. +DEPRECATED_NAMES: dict[str, str] = { + "metadata_element_type_name": "metadata_element_type", + "metadata_element_name": "metadata_element_type", + "metadata_element_subtype_names": "metadata_element_subtypes", + "metadata_element_sub_type": "metadata_element_subtypes", + "metadata_element_subtype": "metadata_element_subtypes", +} +_LIST_VALUED = frozenset({"metadata_element_subtypes"}) +_MISSING = object() + + +def _canonical_value(new: str, value: Any) -> Any: + """A lone string given for a list-valued filter (e.g. the old metadata_element_sub_type) becomes a list.""" + return [value] if new in _LIST_VALUED and isinstance(value, str) else value + + +def _deprecation(owner: str, old: str, new: str) -> None: + warnings.warn(f"{owner}: '{old}' is deprecated; use '{new}'.", DeprecationWarning, + skip_file_prefixes=_SKIP_PREFIXES) + + +def canonicalize_names(kwargs: dict[str, Any], *, owner: str, bound: dict[str, Any] | None = None, + warn: bool = True) -> dict[str, Any]: + """Map deprecated spellings in ``kwargs`` onto the canonical names, in place, and return it. + + Each deprecated name used raises one DeprecationWarning (unless ``warn`` is false). If the + canonical name is also given (in ``kwargs`` or, via ``bound``, positionally) with a different + value, raises ``TypeError`` -- the call is ambiguous. + """ + for old in [k for k in kwargs if k in DEPRECATED_NAMES]: + new = DEPRECATED_NAMES[old] + value = _canonical_value(new, kwargs.pop(old)) + if warn: + _deprecation(owner, old, new) + given = kwargs.get(new, _MISSING) + positional = False + if given is _MISSING and bound is not None and new in bound: + given, positional = bound[new], True + if given is not _MISSING and given is not None and value is not None \ + and _canonical_value(new, given) != value: + raise TypeError(f"{owner}: '{old}' (deprecated) is {value!r} but '{new}' is {given!r}; " + f"pass only '{new}'.") + if (given is _MISSING or given is None) and not positional: + kwargs[new] = value + return kwargs + + +def deprecated_names(**renames: str): + """Decorator: accept the deprecated spelling(s) of a renamed parameter. + + ``@deprecated_names(metadata_element_type_name="metadata_element_type")`` on a method whose + parameter is now ``metadata_element_type`` keeps old callers working, with a + DeprecationWarning, and refuses a call that gives both names with different values. + """ + import functools + + unknown = {o: n for o, n in renames.items() if DEPRECATED_NAMES.get(o) != n} + if unknown: + raise ValueError(f"not in DEPRECATED_NAMES: {unknown}") + + def decorate(func): + sig = inspect.signature(func) + owner = func.__qualname__.replace("._async_", ".") + + def fix(args, kwargs): + if not any(o in kwargs for o in renames): + return kwargs + rest = {k: v for k, v in kwargs.items() if k not in renames} + try: + bound = sig.bind_partial(*args, **rest).arguments + except TypeError: + bound = {} + positional = {k: v for k, v in bound.items() if k not in rest} + return canonicalize_names(dict(kwargs), owner=owner, bound=positional) + + if inspect.iscoroutinefunction(func): + @functools.wraps(func) + async def wrapper(*args, **kwargs): + return await func(*args, **fix(args, kwargs)) + else: + @functools.wraps(func) + def wrapper(*args, **kwargs): + return func(*args, **fix(args, kwargs)) + wrapper.__deprecated_names__ = dict(renames) + return wrapper + + return decorate + # Body fields every method declares as an explicit parameter (or that the helper # fills itself). They are valid filter names but are not repeated in the TypedDicts, # because PEP 692 forbids a TypedDict key that duplicates a named parameter. @@ -305,6 +398,8 @@ def filter_body_kwargs(kind: str, kwargs: dict[str, Any], *, ignore: frozenset[s ``UnknownFilterWarning`` that names the bad key(s) and lists the valid ones; it is left out of the body (Pydantic would have dropped it silently anyway). """ + if any(k in DEPRECATED_NAMES for k in kwargs): + kwargs = canonicalize_names(dict(kwargs), owner=_calling_method()) wire = _wire_map(kind) body: dict[str, Any] = {} unknown: list[str] = [] @@ -408,6 +503,16 @@ def filter_reference_markdown() -> str: for alias, field_name in {**PUBLIC_ALIASES, **LEGACY_ALIASES}.items(): lines.append(f"| `{alias}` | `{field_name}` |") lines.append("") + lines.append("### Deprecated spellings") + lines.append("") + lines.append("These still work, with a `DeprecationWarning` naming the new name. Giving both the old and the " + "new name with different values raises `TypeError`.") + lines.append("") + lines.append("| Deprecated | Use |") + lines.append("|---|---|") + for old, new in DEPRECATED_NAMES.items(): + lines.append(f"| `{old}` | `{new}` |") + lines.append("") lines.append("Each model field's camelCase wire name (e.g. `metadataElementSubtypeNames`) is accepted as well. " "These rendering options are passed through to output formatting and are not warned about: " + ", ".join(f"`{o}`" for o in sorted(RENDER_OPTIONS)) + ".") diff --git a/pyegeria/omvs/actor_manager.py b/pyegeria/omvs/actor_manager.py index 31b6cd50..ec13efef 100644 --- a/pyegeria/omvs/actor_manager.py +++ b/pyegeria/omvs/actor_manager.py @@ -13,6 +13,7 @@ from pydantic import HttpUrl from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import SearchFilters from pyegeria.view.base_report_formats import select_report_spec, get_report_spec_match from pyegeria.models import (SearchStringRequestBody, FilterRequestBody, GetRequestBody, NewElementRequestBody, @@ -718,6 +719,7 @@ def delete_actor_profile(self, actor_profile_guid: str, body: Optional[dict | De """ run_sync(self._async_delete_actor_profile(actor_profile_guid, body, cascade)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_actor_profiles( self, @@ -725,7 +727,7 @@ async def _async_find_actor_profiles( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ActorProfile", + metadata_element_type: str | None = "ActorProfile", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -752,7 +754,7 @@ async def _async_find_actor_profiles( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -793,7 +795,7 @@ async def _async_find_actor_profiles( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -818,13 +820,14 @@ async def _async_find_actor_profiles( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_actor_profiles( self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ActorProfile", + metadata_element_type: str | None = "ActorProfile", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -851,7 +854,7 @@ def find_actor_profiles( Ends with the supplied string. ignore_case : bool, default True Ignore case when searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The subtypes to filter by. @@ -891,7 +894,7 @@ def find_actor_profiles( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -908,11 +911,12 @@ def find_actor_profiles( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_actor_profiles_by_name( self, name: str | None = None, - metadata_element_type_name: str | None = "ActorProfile", + metadata_element_type: str | None = "ActorProfile", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -930,7 +934,7 @@ async def _async_get_actor_profiles_by_name( ---------- name: str name to use to find matching profiles. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -961,7 +965,7 @@ async def _async_get_actor_profiles_by_name( url = str(HttpUrl(f"{self.command_root}/actor-profiles/by-name")) params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -982,10 +986,11 @@ async def _async_get_actor_profiles_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_actor_profiles_by_name( self, name: str | None = None, - metadata_element_type_name: str | None = "ActorProfile", + metadata_element_type: str | None = "ActorProfile", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1003,7 +1008,7 @@ def get_actor_profiles_by_name( ---------- name: str name to use to find matching profiles. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -1034,7 +1039,7 @@ def get_actor_profiles_by_name( return run_sync( self._async_get_actor_profiles_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -2289,6 +2294,7 @@ def delete_actor_role(self, actor_role_guid: str, body: Optional[dict | DeleteEl """ run_sync(self._async_delete_actor_role(actor_role_guid, body, cascade)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_actor_roles( self, @@ -2296,7 +2302,7 @@ async def _async_find_actor_roles( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ActorRole", + metadata_element_type: str | None = "ActorRole", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -2323,7 +2329,7 @@ async def _async_find_actor_roles( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -2364,7 +2370,7 @@ async def _async_find_actor_roles( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -2389,13 +2395,14 @@ async def _async_find_actor_roles( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_actor_roles( self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ActorRole", + metadata_element_type: str | None = "ActorRole", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -2422,7 +2429,7 @@ def find_actor_roles( Ends with the supplied string. ignore_case : bool, default True Ignore case when searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The subtypes to filter by. @@ -2462,7 +2469,7 @@ def find_actor_roles( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -2479,11 +2486,12 @@ def find_actor_roles( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_actor_roles_by_name( self, name: str | None = None, - metadata_element_type_name: str | None = "ActorRole", + metadata_element_type: str | None = "ActorRole", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -2501,7 +2509,7 @@ async def _async_get_actor_roles_by_name( ---------- name: str name to use to find matching roles. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -2532,7 +2540,7 @@ async def _async_get_actor_roles_by_name( url = str(HttpUrl(f"{self.command_root}/actor-roles/by-name")) params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -2553,10 +2561,11 @@ async def _async_get_actor_roles_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_actor_roles_by_name( self, name: str | None = None, - metadata_element_type_name: str | None = "ActorRole", + metadata_element_type: str | None = "ActorRole", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -2574,7 +2583,7 @@ def get_actor_roles_by_name( ---------- name: str name to use to find matching roles. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -2605,7 +2614,7 @@ def get_actor_roles_by_name( return run_sync( self._async_get_actor_roles_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -3968,6 +3977,7 @@ def delete_user_identity(self, user_identity_guid: str, body: Optional[dict | De """ run_sync(self._async_delete_user_identity(user_identity_guid, body, cascade)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_user_identities( self, @@ -3975,7 +3985,7 @@ async def _async_find_user_identities( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "UserIdentity", + metadata_element_type: str | None = "UserIdentity", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -4002,7 +4012,7 @@ async def _async_find_user_identities( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -4042,7 +4052,7 @@ async def _async_find_user_identities( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -4067,6 +4077,7 @@ async def _async_find_user_identities( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_user_identities( self, @@ -4074,7 +4085,7 @@ def find_user_identities( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "UserIdentity", + metadata_element_type: str | None = "UserIdentity", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -4101,7 +4112,7 @@ def find_user_identities( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -4141,7 +4152,7 @@ def find_user_identities( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -4158,11 +4169,12 @@ def find_user_identities( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_user_identities_by_name( self, name: str = None, - metadata_element_type_name: str | None = "UserIdentity", + metadata_element_type: str | None = "UserIdentity", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -4180,7 +4192,7 @@ async def _async_get_user_identities_by_name( ---------- name: str, optional name to use to find matching user identities. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -4222,7 +4234,7 @@ async def _async_get_user_identities_by_name( url = str(HttpUrl(f"{self.command_root}/user-identities/by-name")) params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -4243,11 +4255,12 @@ async def _async_get_user_identities_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_user_identities_by_name( self, name: str = None, - metadata_element_type_name: str | None = "UserIdentity", + metadata_element_type: str | None = "UserIdentity", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -4265,7 +4278,7 @@ def get_user_identities_by_name( ---------- name: str, optional name to use to find matching user identities. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -4296,7 +4309,7 @@ def get_user_identities_by_name( return run_sync( self._async_get_user_identities_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -4860,11 +4873,12 @@ def delete_contribution_record(self, contribution_record_guid: str, body: Option """ return run_sync(self._async_delete_contribution_record(contribution_record_guid, body)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_contribution_records_by_name( self, name: str = None, - metadata_element_type_name: str | None = "ContributionRecord", + metadata_element_type: str | None = "ContributionRecord", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -4882,7 +4896,7 @@ async def _async_get_contribution_records_by_name( ---------- name: str, optional name to use to find matching contribution records. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -4924,7 +4938,7 @@ async def _async_get_contribution_records_by_name( url = f"{self.command_root}/contribution-records/by-name" params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -4945,11 +4959,12 @@ async def _async_get_contribution_records_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_contribution_records_by_name( self, name: str = None, - metadata_element_type_name: str | None = "ContributionRecord", + metadata_element_type: str | None = "ContributionRecord", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -4967,7 +4982,7 @@ def get_contribution_records_by_name( ---------- name: str, optional name to use to find matching contribution records. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -4998,7 +5013,7 @@ def get_contribution_records_by_name( return run_sync( self._async_get_contribution_records_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -5012,6 +5027,7 @@ def get_contribution_records_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_contribution_records( self, @@ -5019,7 +5035,7 @@ async def _async_find_contribution_records( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ContributionRecord", + metadata_element_type: str | None = "ContributionRecord", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -5046,7 +5062,7 @@ async def _async_find_contribution_records( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -5086,7 +5102,7 @@ async def _async_find_contribution_records( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -5110,6 +5126,7 @@ async def _async_find_contribution_records( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_contribution_records( self, @@ -5117,7 +5134,7 @@ def find_contribution_records( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ContributionRecord", + metadata_element_type: str | None = "ContributionRecord", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -5144,7 +5161,7 @@ def find_contribution_records( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -5184,7 +5201,7 @@ def find_contribution_records( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -6062,11 +6079,12 @@ def detach_contact_details(self, element_guid: str, contact_details_guid: str, """ run_sync(self._async_detach_contact_details(element_guid, contact_details_guid, body)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_contact_details_by_name( self, name: str = None, - metadata_element_type_name: str | None = "ContactDetails", + metadata_element_type: str | None = "ContactDetails", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -6084,7 +6102,7 @@ async def _async_get_contact_details_by_name( ---------- name: str, optional name to use to find matching contact details. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -6126,7 +6144,7 @@ async def _async_get_contact_details_by_name( url = f"{self.command_root}/contact-details/by-name" params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -6147,11 +6165,12 @@ async def _async_get_contact_details_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_contact_details_by_name( self, name: str = None, - metadata_element_type_name: str | None = "ContactDetails", + metadata_element_type: str | None = "ContactDetails", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -6169,7 +6188,7 @@ def get_contact_details_by_name( ---------- name: str, optional name to use to find matching contact details. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -6200,7 +6219,7 @@ def get_contact_details_by_name( return run_sync( self._async_get_contact_details_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -6214,6 +6233,7 @@ def get_contact_details_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_contact_details( self, @@ -6221,7 +6241,7 @@ async def _async_find_contact_details( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ContactDetails", + metadata_element_type: str | None = "ContactDetails", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -6248,7 +6268,7 @@ async def _async_find_contact_details( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -6288,7 +6308,7 @@ async def _async_find_contact_details( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -6312,6 +6332,7 @@ async def _async_find_contact_details( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_contact_details( self, @@ -6319,7 +6340,7 @@ def find_contact_details( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ContactDetails", + metadata_element_type: str | None = "ContactDetails", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -6346,7 +6367,7 @@ def find_contact_details( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -6386,7 +6407,7 @@ def find_contact_details( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -6883,11 +6904,12 @@ def delete_perspective(self, perspective_guid: str, body: Optional[dict | Delete """ return run_sync(self._async_delete_perspective(perspective_guid, body)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_perspectives_by_name( self, name: str = None, - metadata_element_type_name: str | None = "Perspective", + metadata_element_type: str | None = "Perspective", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -6905,7 +6927,7 @@ async def _async_get_perspectives_by_name( ---------- name: str, optional name to use to find matching perspectives. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -6947,7 +6969,7 @@ async def _async_get_perspectives_by_name( url = str(HttpUrl(f"{self.command_root}/perspectives/by-name")) params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -6968,11 +6990,12 @@ async def _async_get_perspectives_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_perspectives_by_name( self, name: str = None, - metadata_element_type_name: str | None = "Perspective", + metadata_element_type: str | None = "Perspective", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -6990,7 +7013,7 @@ def get_perspectives_by_name( ---------- name: str, optional name to use to find matching perspectives. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -7021,7 +7044,7 @@ def get_perspectives_by_name( return run_sync( self._async_get_perspectives_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -7035,6 +7058,7 @@ def get_perspectives_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_perspectives( self, @@ -7042,7 +7066,7 @@ async def _async_find_perspectives( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "Perspective", + metadata_element_type: str | None = "Perspective", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -7069,7 +7093,7 @@ async def _async_find_perspectives( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -7109,7 +7133,7 @@ async def _async_find_perspectives( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -7133,6 +7157,7 @@ async def _async_find_perspectives( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_perspectives( self, @@ -7140,7 +7165,7 @@ def find_perspectives( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "Perspective", + metadata_element_type: str | None = "Perspective", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -7167,7 +7192,7 @@ def find_perspectives( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -7207,7 +7232,7 @@ def find_perspectives( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -7704,11 +7729,12 @@ def delete_skill(self, skill_guid: str, body: Optional[dict | DeleteElementReque """ return run_sync(self._async_delete_skill(skill_guid, body)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_skills_by_name( self, name: str = None, - metadata_element_type_name: str | None = "Skill", + metadata_element_type: str | None = "Skill", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -7726,7 +7752,7 @@ async def _async_get_skills_by_name( ---------- name: str, optional name to use to find matching skills. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -7768,7 +7794,7 @@ async def _async_get_skills_by_name( url = str(HttpUrl(f"{self.command_root}/skills/by-name")) params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -7789,11 +7815,12 @@ async def _async_get_skills_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_skills_by_name( self, name: str = None, - metadata_element_type_name: str | None = "Skill", + metadata_element_type: str | None = "Skill", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -7811,7 +7838,7 @@ def get_skills_by_name( ---------- name: str, optional name to use to find matching skills. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -7842,7 +7869,7 @@ def get_skills_by_name( return run_sync( self._async_get_skills_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -7856,6 +7883,7 @@ def get_skills_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_skills( self, @@ -7863,7 +7891,7 @@ async def _async_find_skills( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "Skill", + metadata_element_type: str | None = "Skill", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -7890,7 +7918,7 @@ async def _async_find_skills( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -7930,7 +7958,7 @@ async def _async_find_skills( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -7954,6 +7982,7 @@ async def _async_find_skills( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_skills( self, @@ -7961,7 +7990,7 @@ def find_skills( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "Skill", + metadata_element_type: str | None = "Skill", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -7988,7 +8017,7 @@ def find_skills( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -8028,7 +8057,7 @@ def find_skills( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/omvs/asset_catalog.py b/pyegeria/omvs/asset_catalog.py index ba57bcd0..8b84ec1b 100644 --- a/pyegeria/omvs/asset_catalog.py +++ b/pyegeria/omvs/asset_catalog.py @@ -14,6 +14,7 @@ from loguru import logger from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import ListFilters from pyegeria.core._server_client import ServerClient from pyegeria.view.base_report_formats import select_report_format, get_report_spec_match @@ -176,6 +177,7 @@ def _generate_asset_output(self, elements: dict | list[dict], filter_string: Opt **kwargs ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_in_asset_domain( self, @@ -183,7 +185,7 @@ async def _async_find_in_asset_domain( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -207,7 +209,7 @@ async def _async_find_in_asset_domain( Ends with the supplied string. ignore_case : bool, default True Ignore case when searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional Specific metadata element type to filter on. metadata_element_subtypes : list[str], optional List of metadata element subtypes to filter on. @@ -249,7 +251,7 @@ async def _async_find_in_asset_domain( """ url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/asset-catalog/assets/in-domain/by-search-string" - metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type_name) + metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type) # Merge explicit parameters with kwargs params = { @@ -276,6 +278,7 @@ async def _async_find_in_asset_domain( response = await self._async_find_request(url, _type="Asset", _gen_output=self._generate_asset_output, **params) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_in_asset_domain( self, @@ -283,7 +286,7 @@ def find_in_asset_domain( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -307,7 +310,7 @@ def find_in_asset_domain( Ends with the supplied string. ignore_case : bool, default True Ignore case when searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional Specific metadata element type to filter on. metadata_element_subtypes : list[str], optional List of metadata element subtypes to filter on. @@ -353,7 +356,7 @@ def find_in_asset_domain( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -899,10 +902,11 @@ def get_asset_lineage_mermaid_graph( return asset_graph.get("mermaidGraph") + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_get_assets_by_metadata_collection_id( self, metadata_collection_id: str, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, graph_query_depth: int = 3, @@ -919,7 +923,7 @@ async def _async_get_assets_by_metadata_collection_id( ---------- metadata_collection_id : str The unique identity of the metadata collection to return assets from. - metadata_element_type_name : str, optional + metadata_element_type : str, optional An asset type to filter on. If not specified, all assets in the collection are returned. include_only_relationships : list[str], optional Only include these relationship types. @@ -950,7 +954,7 @@ async def _async_get_assets_by_metadata_collection_id( PyegeriaException If there are issues in communications, message format, or Egeria errors. """ - type_name = kwargs.pop("type_name", metadata_element_type_name) + type_name = kwargs.pop("type_name", metadata_element_type) kwargs.pop("effective_time", None) url = ( @@ -981,10 +985,11 @@ async def _async_get_assets_by_metadata_collection_id( output_format, report_spec) return elements + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_assets_by_metadata_collection_id( self, metadata_collection_id: str, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, graph_query_depth: int = 3, @@ -1001,7 +1006,7 @@ def get_assets_by_metadata_collection_id( ---------- metadata_collection_id : str The unique identity of the metadata collection to return assets from. - metadata_element_type_name : str, optional + metadata_element_type : str, optional An asset type to filter on. If not specified, all assets in the collection are returned. include_only_relationships : list[str], optional Only include these relationship types. @@ -1035,7 +1040,7 @@ def get_assets_by_metadata_collection_id( response = run_sync( self._async_get_assets_by_metadata_collection_id( metadata_collection_id=metadata_collection_id, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, graph_query_depth=graph_query_depth, diff --git a/pyegeria/omvs/asset_maker.py b/pyegeria/omvs/asset_maker.py index a72528cc..f7f733fe 100644 --- a/pyegeria/omvs/asset_maker.py +++ b/pyegeria/omvs/asset_maker.py @@ -10,6 +10,7 @@ import asyncio from typing import Any, Optional from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import GetFilters, ListFilters from pyegeria.core._server_client import ServerClient from pyegeria.core._globals import max_paging_size, NO_ELEMENTS_FOUND, NO_GUID_RETURNED @@ -602,11 +603,12 @@ def delete_asset( """ super().delete_asset(asset_guid, body) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_assets_by_name( self, filter_string: str | None = None, - metadata_element_type_name: str | None = "Asset", + metadata_element_type: str | None = "Asset", metadata_element_subtypes: list[str] | None = None, include_only_classified_elements: list[str] | None = None, include_only_relationships: list[str] | None = None, @@ -625,7 +627,7 @@ async def _async_get_assets_by_name( ---------- filter_string: str String to find in the asset properties. - metadata_element_type_name: str, default "Asset" + metadata_element_type: str, default "Asset" The type of asset to filter by. metadata_element_subtypes: list[str], optional The subtypes of asset to filter by. @@ -690,7 +692,7 @@ async def _async_get_assets_by_name( url = f"{self.asset_command_root}/assets/by-name" return await self._async_get_name_request(url, _type="Asset", _gen_output=self._generate_referenceable_output, filter_string=filter_string, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -699,11 +701,12 @@ async def _async_get_assets_by_name( page_size=page_size, output_format=output_format, report_spec=report_spec, body=body, **{"classification_names": include_only_classified_elements, **kwargs}) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_assets_by_name( self, filter_string: str | None = None, - metadata_element_type_name: str | None = "Asset", + metadata_element_type: str | None = "Asset", metadata_element_subtypes: list[str] | None = None, include_only_classified_elements: list[str] | None = None, include_only_relationships: list[str] | None = None, @@ -722,7 +725,7 @@ def get_assets_by_name( ---------- filter_string: str String to find in the asset properties. - metadata_element_type_name: str, default "Asset" + metadata_element_type: str, default "Asset" The type of asset to filter by. metadata_element_subtypes: list[str], optional The subtypes of asset to filter by. @@ -786,7 +789,7 @@ def get_assets_by_name( """ return run_sync( self._async_get_assets_by_name(filter_string=filter_string, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_classified_elements=include_only_classified_elements, include_only_relationships=include_only_relationships, @@ -5753,16 +5756,17 @@ def update_software_capability( self._async_update_software_capability(software_capability_guid, body) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_software_capability_by_guid( self, guid: str, - metadata_element_type_name: str | None = "SoftwareCapability", + metadata_element_type: str | None = "SoftwareCapability", graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | GetRequestBody | None = None, - **kwargs: Unpack[GetFilters] + **kwargs ) -> dict | str: """Retrieve a specific software capability. Async version. @@ -5770,7 +5774,7 @@ async def _async_get_software_capability_by_guid( ---------- guid: str Unique identifier of the software capability. - metadata_element_type_name: str, default "SoftwareCapability" + metadata_element_type: str, default "SoftwareCapability" Metadata element type name to include in the request body. graph_query_depth: int, default 3 The depth of the graph query. @@ -5802,7 +5806,7 @@ async def _async_get_software_capability_by_guid( url = f"{self.asset_command_root}/software-capabilities/{guid}" return await self._async_get_guid_request( url, - _type=metadata_element_type_name, + _type=metadata_element_type, _gen_output=self._generate_referenceable_output, graph_query_depth=graph_query_depth, output_format=output_format, @@ -5811,16 +5815,17 @@ async def _async_get_software_capability_by_guid( **kwargs ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_software_capability_by_guid( self, guid: str, - metadata_element_type_name: str | None = "SoftwareCapability", + metadata_element_type: str | None = "SoftwareCapability", graph_query_depth: int = 3, output_format: str = "JSON", report_spec: dict | str | None = None, body: dict | GetRequestBody | None = None, - **kwargs: Unpack[GetFilters] + **kwargs ) -> dict | str: """Retrieve a specific software capability. @@ -5828,7 +5833,7 @@ def get_software_capability_by_guid( ---------- guid: str Unique identifier of the software capability. - metadata_element_type_name: str, default "SoftwareCapability" + metadata_element_type: str, default "SoftwareCapability" Metadata element type name to include in the request body. graph_query_depth: int, default 3 The depth of the graph query. @@ -5860,7 +5865,7 @@ def get_software_capability_by_guid( return run_sync( self._async_get_software_capability_by_guid( guid=guid, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, @@ -6159,18 +6164,19 @@ def find_software_capabilities( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_software_capabilities_by_name( self, name: str | None = None, - metadata_element_type_name: str | None = "SoftwareCapability", + metadata_element_type: str | None = "SoftwareCapability", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | FilterRequestBody] = None, - **kwargs: Unpack[ListFilters] + **kwargs ) -> list | str: """Retrieve the list of software capabilities with a particular name. Async version. @@ -6178,7 +6184,7 @@ async def _async_get_software_capabilities_by_name( ---------- name: str Name to filter software capabilities by. - metadata_element_type_name: str, default "SoftwareCapability" + metadata_element_type: str, default "SoftwareCapability" Metadata element type name to include in the request body. graph_query_depth: int, default 3 The depth of the graph query. @@ -6211,7 +6217,7 @@ async def _async_get_software_capabilities_by_name( url, _type="SoftwareCapability", _gen_output=self._generate_referenceable_output, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, graph_query_depth=graph_query_depth, start_from=start_from, page_size=page_size, @@ -6221,18 +6227,19 @@ async def _async_get_software_capabilities_by_name( **{"filter_string": name, **kwargs} ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_software_capabilities_by_name( self, name: str | None = None, - metadata_element_type_name: str | None = "SoftwareCapability", + metadata_element_type: str | None = "SoftwareCapability", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | FilterRequestBody] = None, - **kwargs: Unpack[ListFilters] + **kwargs ) -> list | str: """Retrieve the list of software capabilities with a particular name. @@ -6240,7 +6247,7 @@ def get_software_capabilities_by_name( ---------- name: str Name to filter software capabilities by. - metadata_element_type_name: str, default "SoftwareCapability" + metadata_element_type: str, default "SoftwareCapability" Metadata element type name to include in the request body. graph_query_depth: int, default 3 The depth of the graph query. @@ -6271,7 +6278,7 @@ def get_software_capabilities_by_name( return run_sync( self._async_get_software_capabilities_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, graph_query_depth=graph_query_depth, start_from=start_from, page_size=page_size, @@ -6282,18 +6289,19 @@ def get_software_capabilities_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_software_capabilities_by_deployed_implementation_type( self, deployed_implementation_type: str, - metadata_element_type_name: str | None = "SoftwareCapability", + metadata_element_type: str | None = "SoftwareCapability", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | FilterRequestBody] = None, - **kwargs: Unpack[ListFilters] + **kwargs ) -> list | str: """Retrieve the list of software capabilities with a particular deployed implementation type. Async version. @@ -6301,7 +6309,7 @@ async def _async_get_software_capabilities_by_deployed_implementation_type( ---------- deployed_implementation_type: str Deployed implementation type to filter by (e.g., "Software Server"). - metadata_element_type_name: str, default "SoftwareCapability" + metadata_element_type: str, default "SoftwareCapability" Metadata element type name to include in the request body. graph_query_depth: int, default 3 The depth of the graph query. @@ -6334,7 +6342,7 @@ async def _async_get_software_capabilities_by_deployed_implementation_type( url, _type="SoftwareCapability", _gen_output=self._generate_referenceable_output, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, graph_query_depth=graph_query_depth, start_from=start_from, page_size=page_size, @@ -6344,18 +6352,19 @@ async def _async_get_software_capabilities_by_deployed_implementation_type( **{"filter_string": deployed_implementation_type, **kwargs} ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_software_capabilities_by_deployed_implementation_type( self, deployed_implementation_type: str, - metadata_element_type_name: str | None = "SoftwareCapability", + metadata_element_type: str | None = "SoftwareCapability", graph_query_depth: int = 3, start_from: int = 0, page_size: int = 0, output_format: str = "JSON", report_spec: str | dict = None, body: Optional[dict | FilterRequestBody] = None, - **kwargs: Unpack[ListFilters] + **kwargs ) -> list | str: """Retrieve the list of software capabilities with a particular deployed implementation type. @@ -6363,7 +6372,7 @@ def get_software_capabilities_by_deployed_implementation_type( ---------- deployed_implementation_type: str Deployed implementation type to filter by (e.g., "Software Server"). - metadata_element_type_name: str, default "SoftwareCapability" + metadata_element_type: str, default "SoftwareCapability" Metadata element type name to include in the request body. graph_query_depth: int, default 3 The depth of the graph query. @@ -6394,7 +6403,7 @@ def get_software_capabilities_by_deployed_implementation_type( return run_sync( self._async_get_software_capabilities_by_deployed_implementation_type( deployed_implementation_type=deployed_implementation_type, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, graph_query_depth=graph_query_depth, start_from=start_from, page_size=page_size, diff --git a/pyegeria/omvs/automated_curation.py b/pyegeria/omvs/automated_curation.py index 0fd76348..bfe00098 100644 --- a/pyegeria/omvs/automated_curation.py +++ b/pyegeria/omvs/automated_curation.py @@ -14,6 +14,7 @@ from loguru import logger from pydantic import HttpUrl from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core._globals import NO_ELEMENTS_FOUND from pyegeria.core._server_client import ServerClient @@ -2744,10 +2745,11 @@ def get_active_engine_actions( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_get_engine_actions_by_name( self, name: str = None, - metadata_element_type_name: str | None = "EngineAction", + metadata_element_type: str | None = "EngineAction", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -2767,7 +2769,7 @@ async def _async_get_engine_actions_by_name( ---------- name : str, optional The name of the engine action to retrieve. - metadata_element_type_name : str, default "EngineAction" + metadata_element_type : str, default "EngineAction" The metadata element type to filter on. metadata_element_subtypes : list[str], optional Subtypes to filter on. @@ -2817,11 +2819,11 @@ async def _async_get_engine_actions_by_name( url = f"{self.ref_curation_command_base}/assets/by-name" - metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type_name) + metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type) params = { 'filter_string': name, - 'metadata_element_type_name': metadata_element_type, + 'metadata_element_type': metadata_element_type, 'metadata_element_subtypes': metadata_element_subtypes, 'include_only_relationships': include_only_relationships, 'skip_relationships': skip_relationships, @@ -2840,10 +2842,11 @@ async def _async_get_engine_actions_by_name( **params) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_engine_actions_by_name( self, name: str = None, - metadata_element_type_name: str | None = "EngineAction", + metadata_element_type: str | None = "EngineAction", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -2862,7 +2865,7 @@ def get_engine_actions_by_name( ---------- name : str The name of the engine action to retrieve. - metadata_element_type_name : str, default "EngineAction" + metadata_element_type : str, default "EngineAction" The metadata element type to filter on. metadata_element_subtypes : list[str], optional Subtypes to filter on. @@ -2904,7 +2907,7 @@ def get_engine_actions_by_name( return run_sync( self._async_get_engine_actions_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -2918,13 +2921,14 @@ def get_engine_actions_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_find_engine_actions( self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = "EngineAction", + metadata_element_type: Optional[str] = "EngineAction", metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -2950,7 +2954,7 @@ async def _async_find_engine_actions( Ends with the supplied string. ignore_case : bool, default True Ignore case when searching. - metadata_element_type_name : str, default "EngineAction" + metadata_element_type : str, default "EngineAction" The metadata element type to filter on. metadata_element_subtypes : list[str], optional List of metadata element subtypes. @@ -2992,7 +2996,7 @@ async def _async_find_engine_actions( """ url = f"{self.ref_curation_command_base}/assets/by-search-string" - metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type_name) + metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type) # Merge explicit parameters with kwargs params = { @@ -3020,6 +3024,7 @@ async def _async_find_engine_actions( _gen_output=self._generate_engine_action_output, **params) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_engine_actions( self, @@ -3027,7 +3032,7 @@ def find_engine_actions( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = "EngineAction", + metadata_element_type: Optional[str] = "EngineAction", metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -3051,7 +3056,7 @@ def find_engine_actions( Ends with the supplied string. ignore_case : bool, default True Ignore case when searching. - metadata_element_type_name : str, default "EngineAction" + metadata_element_type : str, default "EngineAction" The metadata element type to filter on. metadata_element_subtypes : list[str], optional List of metadata element subtypes. @@ -3097,7 +3102,7 @@ def find_engine_actions( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -4826,13 +4831,14 @@ def get_template_guid_for_technology_type(self, type_name: str, **kwargs) -> str ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_find_technology_types( self, search_string: str = "*", starts_with: bool = False, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -4858,7 +4864,7 @@ async def _async_find_technology_types( Whether to search technology types that end with the given search string. ignore_case : bool, default True Whether to ignore case while searching technology types. - metadata_element_type_name : str, optional + metadata_element_type : str, optional Metadata element type to search for. metadata_element_subtypes : list[str], optional Subtypes to filter. @@ -4908,7 +4914,7 @@ async def _async_find_technology_types( if 'sequencing_property' not in kwargs: kwargs['sequencing_property'] = "qualifiedName" - metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type_name) + metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type) # Merge explicit parameters with kwargs params = { @@ -4936,13 +4942,14 @@ async def _async_find_technology_types( **params) + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_technology_types( self, search_string: str = "*", starts_with: bool = False, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -4966,7 +4973,7 @@ def find_technology_types( Whether to search technology types that end with the given search string. ignore_case : bool, default True Whether to ignore case while searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional Metadata element type to search for. metadata_element_subtypes : list[str], optional List of metadata element subtypes. @@ -5003,7 +5010,7 @@ def find_technology_types( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -5017,6 +5024,7 @@ def find_technology_types( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_technology_types_body( self, @@ -5025,7 +5033,7 @@ async def _async_find_technology_types_body( ends_with: bool = False, ignore_case: bool = True, anchor_domain: Optional[str] = None, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, @@ -5051,7 +5059,7 @@ async def _async_find_technology_types_body( Accepts the standard search filters as keyword arguments (see ``SearchFilters`` in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. """ - metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type_name) + metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type) kwargs.pop("effective_time", None) return await self._async_find_technology_types( @@ -5082,6 +5090,7 @@ async def _async_find_technology_types_body( ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_technology_types_body( self, search_string: str = "*", @@ -5089,7 +5098,7 @@ def find_technology_types_body( ends_with: bool = False, ignore_case: bool = True, anchor_domain: Optional[str] = None, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, @@ -5124,7 +5133,7 @@ def find_technology_types_body( Whether to ignore case while searching. anchor_domain : str, optional Anchor domain to filter. - metadata_element_type_name : str, optional + metadata_element_type : str, optional Metadata element type to search for. metadata_element_subtypes : list[str], optional Subtypes to filter. @@ -5189,7 +5198,7 @@ def find_technology_types_body( ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, diff --git a/pyegeria/omvs/classification_explorer.py b/pyegeria/omvs/classification_explorer.py index 78cb32b6..bbc448c5 100644 --- a/pyegeria/omvs/classification_explorer.py +++ b/pyegeria/omvs/classification_explorer.py @@ -14,6 +14,7 @@ from loguru import logger from typing import Any, Optional from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.core.request_filters import filter_body_kwargs from pyegeria.core._exceptions import PyegeriaException, PyegeriaInvalidParameterException @@ -2648,11 +2649,12 @@ def get_elements( return response + @deprecated_names(metadata_element_name="metadata_element_type") async def _async_get_elements_by_property_value( self, property_value: str = None, property_names: Optional[list[str]] = None, - metadata_element_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, @@ -2690,7 +2692,7 @@ async def _async_get_elements_by_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_name : str, default = None + metadata_element_type : str, default = None - open metadata type to be used to restrict the search starts_with : bool, default = True - Whether to match only at the start. @@ -2778,7 +2780,7 @@ async def _async_get_elements_by_property_value( sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - property_names=property_names, body=body, **{"metadata_element_type": metadata_element_name, **kwargs}) + property_names=property_names, body=body, **{"metadata_element_type": metadata_element_type, **kwargs}) def get_elements_by_property_value( self, @@ -2915,11 +2917,12 @@ def get_elements_by_property_value( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_find_elements_by_property_value( self, property_value: str, property_names: list[str], - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, @@ -2957,7 +2960,7 @@ async def _async_find_elements_by_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - open metadata type to be used to restrict the search starts_with : bool, default = True - Whether to match only at the start. @@ -3054,7 +3057,7 @@ async def _async_find_elements_by_property_value( 'ends_with': ends_with, 'ignore_case': ignore_case, 'anchor_domain': anchor_domain, - 'metadata_element_type': metadata_element_type_name, + 'metadata_element_type': metadata_element_type, 'metadata_element_subtypes': metadata_element_subtypes, 'skip_relationships': skip_relationships, 'include_only_relationships': include_only_relationships, @@ -3076,15 +3079,16 @@ async def _async_find_elements_by_property_value( } params.update(kwargs) params = {k: v for k, v in params.items() if v is not None} - return await self._async_find_request(url, _type=metadata_element_type_name, + return await self._async_find_request(url, _type=metadata_element_type, _gen_output=self._generate_referenceable_output, search_string=property_value, **params) + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_elements_by_property_value( self, property_value: str, property_names: list[str], - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, @@ -3122,7 +3126,7 @@ def find_elements_by_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - open metadata type to be used to restrict the search start_from: int, default = 0 - index of the list to start from (0 for start). @@ -3170,7 +3174,7 @@ def find_elements_by_property_value( self._async_find_elements_by_property_value( property_value, property_names, - metadata_element_type_name, + metadata_element_type, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, @@ -3707,12 +3711,13 @@ def get_elements_by_classification( return response + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_get_elements_by_classification_with_property_value( self, classification_name: str, property_value: str, property_names: Optional[list[str]] = None, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, @@ -3752,7 +3757,7 @@ async def _async_get_elements_by_classification_with_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - open metadata type to be used to restrict the search starts_with : bool, default = True - Whether to match only at the start. @@ -3841,14 +3846,15 @@ async def _async_get_elements_by_classification_with_property_value( sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - property_names=property_names, body=body, **{"metadata_element_type": metadata_element_type_name, **kwargs}) + property_names=property_names, body=body, **{"metadata_element_type": metadata_element_type, **kwargs}) + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_elements_by_classification_with_property_value( self, classification_name: str, property_value: str, property_names: Optional[list[str]] = None, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, @@ -3887,7 +3893,7 @@ def get_elements_by_classification_with_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - open metadata type to be used to restrict the search starts_with : bool, default = True - Whether to match only at the start. @@ -3952,7 +3958,7 @@ def get_elements_by_classification_with_property_value( classification_name, property_value, property_names, - metadata_element_type_name, + metadata_element_type, starts_with, ends_with, ignore_case, @@ -3980,12 +3986,13 @@ def get_elements_by_classification_with_property_value( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_find_elements_by_classification_with_property_value( self, classification_name: str, property_value: str, property_names: list[str], - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, @@ -4027,7 +4034,7 @@ async def _async_find_elements_by_classification_with_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - open metadata type to be used to restrict the search effective_time: str, default = None - Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601) @@ -4082,7 +4089,7 @@ async def _async_find_elements_by_classification_with_property_value( 'ends_with': ends_with, 'ignore_case': ignore_case, 'anchor_domain': anchor_domain, - 'metadata_element_type': metadata_element_type_name, + 'metadata_element_type': metadata_element_type, 'metadata_element_subtypes': metadata_element_subtypes, 'skip_relationships': skip_relationships, 'include_only_relationships': include_only_relationships, @@ -4104,16 +4111,17 @@ async def _async_find_elements_by_classification_with_property_value( } params.update(kwargs) params = {k: v for k, v in params.items() if v is not None} - return await self._async_find_request(url, _type=metadata_element_type_name, + return await self._async_find_request(url, _type=metadata_element_type, _gen_output=self._generate_referenceable_output, search_string=property_value, **params) + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_elements_by_classification_with_property_value( self, classification_name: str, property_value: str, property_names: list[str], - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, @@ -4154,7 +4162,7 @@ def find_elements_by_classification_with_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - open metadata type to be used to restrict the search effective_time: str, default = None - Time format is "YYYY-MM-DDTHH:MM:SS" (ISO 8601) @@ -4189,7 +4197,7 @@ def find_elements_by_classification_with_property_value( classification_name, property_value, property_names, - metadata_element_type_name, + metadata_element_type, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, @@ -4361,13 +4369,14 @@ def get_related_elements( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_get_related_elements_with_property_value( self, element_guid: str, relationship_type: str, property_value: str, property_names: Optional[list[str]] = None, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, start_at_end: int = 1, starts_with: bool = True, ends_with: bool = False, @@ -4410,7 +4419,7 @@ async def _async_get_related_elements_with_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - restrict search to elements of this open metadata type start_at_end: int, default = 1 - The end of the relationship to start from - typically End1 @@ -4497,15 +4506,16 @@ async def _async_get_related_elements_with_property_value( sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - property_names=property_names, body=body, **{"metadata_element_type": metadata_element_type_name, **kwargs}) + property_names=property_names, body=body, **{"metadata_element_type": metadata_element_type, **kwargs}) + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_related_elements_with_property_value( self, element_guid: str, relationship_type: str, property_value: str, property_names: Optional[list[str]] = None, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, start_at_end: int = 1, starts_with: bool = True, ends_with: bool = False, @@ -4548,7 +4558,7 @@ def get_related_elements_with_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - open metadata type to be used to restrict the search start_at_end: int, default = 1 - The end of the relationship to start from - typically End1 @@ -4588,7 +4598,7 @@ def get_related_elements_with_property_value( relationship_type, property_value, property_names, - metadata_element_type_name, + metadata_element_type, start_at_end, starts_with, ends_with, @@ -4618,13 +4628,14 @@ def get_related_elements_with_property_value( return response + @deprecated_names(metadata_element_type_name="metadata_element_type") async def _async_find_related_elements_with_property_value( self, element_guid: str, relationship_type: str, property_value: str, property_names: list[str], - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, start_at_end: int = 1, starts_with: bool = True, ends_with: bool = False, @@ -4668,7 +4679,7 @@ async def _async_find_related_elements_with_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - restrict search to elements of this open metadata type start_at_end: int, default = 1 - The end of the relationship to start from - typically End1 @@ -4709,7 +4720,7 @@ async def _async_find_related_elements_with_property_value( if body is None: body = { "class": "FindPropertyNamesProperties", - "metadataElementTypeName": metadata_element_type_name, + "metadataElementTypeName": metadata_element_type, "propertyValue": property_value, "propertyNames": property_names, "forLineage": None, @@ -4728,7 +4739,7 @@ async def _async_find_related_elements_with_property_value( 'ends_with': ends_with, 'ignore_case': ignore_case, 'anchor_domain': anchor_domain, - 'metadata_element_type': metadata_element_type_name, + 'metadata_element_type': metadata_element_type, 'metadata_element_subtypes': metadata_element_subtypes, 'skip_relationships': skip_relationships, 'include_only_relationships': include_only_relationships, @@ -4750,17 +4761,18 @@ async def _async_find_related_elements_with_property_value( } params.update(kwargs) params = {k: v for k, v in params.items() if v is not None} - return await self._async_find_request(url, _type=metadata_element_type_name, + return await self._async_find_request(url, _type=metadata_element_type, _gen_output=self._generate_referenceable_output, search_string=property_value, **params) + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_related_elements_with_property_value( self, element_guid: str, relationship_type: str, property_value: str, property_names: list[str], - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, start_at_end: int = 1, starts_with: bool = True, ends_with: bool = False, @@ -4804,7 +4816,7 @@ def find_related_elements_with_property_value( - property value to be searched. property_names: list[str] - property names to search in. - metadata_element_type_name : str, default = None + metadata_element_type : str, default = None - restrict search to elements of this open metadata type start_at_end: int, default = 1 - The end of the relationship to start from - typically End1 @@ -4842,7 +4854,7 @@ def find_related_elements_with_property_value( relationship_type, property_value, property_names, - metadata_element_type_name, + metadata_element_type, start_at_end, starts_with=starts_with, ends_with=ends_with, @@ -12614,10 +12626,11 @@ def remove_element_from_subject_area( ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_root_elements( self, - metadata_element_type_name: str = None, + metadata_element_type: str = None, search_properties: dict = None, match_classifications: dict = None, start_from: int = 0, @@ -12633,7 +12646,7 @@ async def _async_find_root_elements( Parameters ---------- - metadata_element_type_name: str, optional + metadata_element_type: str, optional - name of the type of element to return. search_properties: dict, optional - structure containing the search criteria for the properties. @@ -12695,7 +12708,7 @@ async def _async_find_root_elements( body_dict = { 'graphQueryDepth': graph_query_depth, "class": "FindRequestBody", - "metadataElementTypeName": metadata_element_type_name, + "metadataElementTypeName": metadata_element_type, "searchProperties": search_properties, "matchClassifications": match_classifications, "startFrom": start_from, @@ -12715,14 +12728,15 @@ async def _async_find_root_elements( if output_format.upper() != "JSON": return self._generate_referenceable_output( - elements, None, metadata_element_type_name, output_format, report_spec + elements, None, metadata_element_type, output_format, report_spec ) return elements + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_root_elements( self, - metadata_element_type_name: str = None, + metadata_element_type: str = None, search_properties: dict = None, match_classifications: dict = None, start_from: int = 0, @@ -12738,7 +12752,7 @@ def find_root_elements( Parameters ---------- - metadata_element_type_name: str, optional + metadata_element_type: str, optional - name of the type of element to return. search_properties: dict, optional - structure containing the search criteria for the properties. @@ -12773,7 +12787,7 @@ def find_root_elements( # (get_scoped_elements/get_scopes). return run_sync( self._async_find_root_elements( - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, search_properties=search_properties, match_classifications=match_classifications, start_from=start_from, diff --git a/pyegeria/omvs/collection_manager.py b/pyegeria/omvs/collection_manager.py index 30311de8..1d3e2c23 100644 --- a/pyegeria/omvs/collection_manager.py +++ b/pyegeria/omvs/collection_manager.py @@ -14,6 +14,7 @@ from pydantic import Field, HttpUrl from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import ListFilters from pyegeria.core.request_filters import filter_body_kwargs from pyegeria.core._exceptions import PyegeriaInvalidParameterException @@ -383,6 +384,7 @@ def get_attached_collections(self, parent_guid: str, start_from: int = 0, page_s body, output_format, report_spec)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_collections( self, @@ -390,7 +392,7 @@ async def _async_find_collections( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -415,7 +417,7 @@ async def _async_find_collections( Ends with the supplied string. ignore_case : bool, default True Ignore case when searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional Specific metadata element type to filter on. metadata_element_subtypes : list[str], optional List of metadata element subtypes. @@ -459,7 +461,7 @@ async def _async_find_collections( """ url = str(HttpUrl(f"{self.collection_command_root}/by-search-string")) - metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type_name) + metadata_element_type = kwargs.pop("metadata_element_type", metadata_element_type) # Merge explicit parameters with kwargs params = { @@ -487,13 +489,14 @@ async def _async_find_collections( **params) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_collections( self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -518,7 +521,7 @@ def find_collections( Ends with the supplied string. ignore_case : bool, default True Ignore case when searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional Specific metadata element type to filter on. metadata_element_subtypes : list[str], optional List of metadata element subtypes. @@ -566,7 +569,7 @@ def find_collections( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -582,6 +585,7 @@ def find_collections( ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_digital_products( self, @@ -589,7 +593,7 @@ async def _async_find_digital_products( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -615,7 +619,7 @@ async def _async_find_digital_products( - if True, the search string must match the end of the property value ignore_case: bool, default = True - if True, the search is case-insensitive - metadata_element_type_name : str, optional + metadata_element_type : str, optional - Specific metadata element type to filter on metadata_element_subtypes : list[str], optional - List of metadata element subtypes @@ -669,7 +673,7 @@ async def _async_find_digital_products( "ignoreCase": ignore_case, "startFrom": start_from, "pageSize": page_size, - "metadataElementTypeName": metadata_element_type_name, + "metadataElementTypeName": metadata_element_type, "metadataElementSubtypeNames": metadata_element_subtypes, "includeOnlyRelationships": include_only_relationships, "skipRelationships": skip_relationships, @@ -692,13 +696,14 @@ async def _async_find_digital_products( ) return elements + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_digital_products( self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: Optional[str] = None, + metadata_element_type: Optional[str] = None, metadata_element_subtypes: Optional[list[str]] = None, include_only_relationships: Optional[list[str]] = None, skip_relationships: Optional[list[str]] = None, @@ -723,7 +728,7 @@ def find_digital_products( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -845,12 +850,13 @@ def get_digital_products_by_category( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch @dynamic_catch async def _async_get_collections_by_name( self, name: str = None, - metadata_element_type_name: str | None = "Collection", + metadata_element_type: str | None = "Collection", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -877,7 +883,7 @@ async def _async_get_collections_by_name( url = str(HttpUrl(f"{self.collection_command_root}/by-name")) params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -898,10 +904,11 @@ async def _async_get_collections_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_collections_by_name( self, name: str = None, - metadata_element_type_name: str | None = "Collection", + metadata_element_type: str | None = "Collection", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -921,7 +928,7 @@ def get_collections_by_name( return run_sync( self._async_get_collections_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/omvs/community_matters_omvs.py b/pyegeria/omvs/community_matters_omvs.py index a210397f..e9c63696 100644 --- a/pyegeria/omvs/community_matters_omvs.py +++ b/pyegeria/omvs/community_matters_omvs.py @@ -14,6 +14,7 @@ import asyncio from typing import Any, Optional +from pyegeria.core.request_filters import deprecated_names from pyegeria.core._server_client import ServerClient from pyegeria.models import ( NewElementRequestBody, @@ -219,6 +220,7 @@ def get_communities_by_name( # ----------------------------- # Find by search string # ----------------------------- + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_communities( self, @@ -226,7 +228,7 @@ async def _async_find_communities( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = None, + metadata_element_type: str | None = None, metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -253,7 +255,7 @@ async def _async_find_communities( Whether to match communities ending with the search string. ignore_case : bool, default=True Whether to ignore case when searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The metadata element type to search for. metadata_element_subtypes : list[str], optional The subtypes of metadata element to search for. @@ -313,11 +315,12 @@ async def _async_find_communities( output_format=output_format, report_spec=report_spec, body=body, - **{"metadata_element_type": metadata_element_type_name, **kwargs}, + **{"metadata_element_type": metadata_element_type, **kwargs}, ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_communities( self, @@ -325,7 +328,7 @@ def find_communities( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = None, + metadata_element_type: str | None = None, metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -352,7 +355,7 @@ def find_communities( Whether to match communities ending with the search string. ignore_case : bool, default=True Whether to ignore case when searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The metadata element type to search for. metadata_element_subtypes : list[str], optional The subtypes of metadata element to search for. @@ -396,7 +399,7 @@ def find_communities( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/omvs/data_discovery.py b/pyegeria/omvs/data_discovery.py index bcaec7de..66b76b00 100644 --- a/pyegeria/omvs/data_discovery.py +++ b/pyegeria/omvs/data_discovery.py @@ -2027,15 +2027,15 @@ def delete_analysis_report(self, report_guid: str, body: Optional[dict | DeleteE @dynamic_catch async def _async_get_analysis_reports_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs) -> list | str: - """Deprecated - use AssetMaker.get_assets_by_name(name, metadata_element_type_name="SurveyReport"). Async version.""" + """Deprecated - use AssetMaker.get_assets_by_name(name, metadata_element_type="SurveyReport"). Async version.""" self._warn_analysis_report("get_analysis_reports_by_name", - 'AssetMaker.get_assets_by_name(name, metadata_element_type_name="SurveyReport")') + 'AssetMaker.get_assets_by_name(name, metadata_element_type="SurveyReport")') return await self._asset_maker_client()._async_get_assets_by_name( - filter_string=name, metadata_element_type_name="SurveyReport", start_from=start_from, + filter_string=name, metadata_element_type="SurveyReport", start_from=start_from, page_size=page_size, **kwargs) def get_analysis_reports_by_name(self, name: str | None = None, start_from: int = 0, page_size: int = 100, **kwargs) -> list | str: - """Deprecated - use AssetMaker.get_assets_by_name(name, metadata_element_type_name="SurveyReport").""" + """Deprecated - use AssetMaker.get_assets_by_name(name, metadata_element_type="SurveyReport").""" return run_sync(self._async_get_analysis_reports_by_name(name, start_from, page_size, **kwargs)) @dynamic_catch diff --git a/pyegeria/omvs/digital_business.py b/pyegeria/omvs/digital_business.py index 6a618366..09d6417d 100644 --- a/pyegeria/omvs/digital_business.py +++ b/pyegeria/omvs/digital_business.py @@ -12,6 +12,7 @@ from typing import Optional from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import GetFilters from pyegeria.omvs.collection_manager import CollectionManager from pyegeria.core._server_client import ServerClient @@ -417,11 +418,12 @@ def get_business_capability_by_guid( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_business_capabilities_by_name( self, name: str = None, - metadata_element_type_name: str | None = "BusinessCapability", + metadata_element_type: str | None = "BusinessCapability", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -439,7 +441,7 @@ async def _async_get_business_capabilities_by_name( ---------- name: str, optional name to use to find matching business capabilities. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -481,7 +483,7 @@ async def _async_get_business_capabilities_by_name( url = f"{self.digital_business_command_root}/collections/by-name" params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -502,10 +504,11 @@ async def _async_get_business_capabilities_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_business_capabilities_by_name( self, name: str = None, - metadata_element_type_name: str | None = "BusinessCapability", + metadata_element_type: str | None = "BusinessCapability", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -523,7 +526,7 @@ def get_business_capabilities_by_name( ---------- name: str, optional name to use to find matching business capabilities. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -565,7 +568,7 @@ def get_business_capabilities_by_name( return run_sync( self._async_get_business_capabilities_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -579,6 +582,7 @@ def get_business_capabilities_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_business_capabilities( self, @@ -586,7 +590,7 @@ async def _async_find_business_capabilities( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "BusinessCapability", + metadata_element_type: str | None = "BusinessCapability", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -613,7 +617,7 @@ async def _async_find_business_capabilities( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -654,7 +658,7 @@ async def _async_find_business_capabilities( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -679,13 +683,14 @@ async def _async_find_business_capabilities( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_business_capabilities( self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "BusinessCapability", + metadata_element_type: str | None = "BusinessCapability", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -712,7 +717,7 @@ def find_business_capabilities( Whether to match at the end. Defaults to False. ignore_case : bool, optional Whether to ignore case. Defaults to True. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The subtypes to filter by. @@ -752,7 +757,7 @@ def find_business_capabilities( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/omvs/glossary_manager.py b/pyegeria/omvs/glossary_manager.py index 55b237c3..a890dd82 100644 --- a/pyegeria/omvs/glossary_manager.py +++ b/pyegeria/omvs/glossary_manager.py @@ -16,6 +16,7 @@ from pydantic import Field from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import GetFilters from pyegeria.core._exceptions import PyegeriaInvalidParameterException, PyegeriaException from pyegeria.core._globals import NO_GUID_RETURNED @@ -3402,6 +3403,7 @@ def get_term_relationship_types(self) -> [str]: response = run_sync(self._async_get_term_relationship_types()) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_glossaries( self, @@ -3409,7 +3411,7 @@ async def _async_find_glossaries( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "Glossary", + metadata_element_type: str | None = "Glossary", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -3436,7 +3438,7 @@ async def _async_find_glossaries( Whether to match glossaries ending with the search string. ignore_case : bool, default=True Whether to ignore case when searching. - metadata_element_type_name : str, default="Glossary" + metadata_element_type : str, default="Glossary" The metadata element type to search for. metadata_element_subtypes : list[str], optional The subtypes of metadata element to search for. @@ -3495,10 +3497,11 @@ async def _async_find_glossaries( output_format=output_format, report_spec=report_spec, body=body, - **{"metadata_element_type": metadata_element_type_name, **kwargs}, + **{"metadata_element_type": metadata_element_type, **kwargs}, ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_glossaries( self, @@ -3506,7 +3509,7 @@ def find_glossaries( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "Glossary", + metadata_element_type: str | None = "Glossary", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -3532,7 +3535,7 @@ def find_glossaries( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -3581,7 +3584,7 @@ async def _async_get_glossaries_by_name( output_format=output_format, report_spec=report_spec, body=body, - **{"metadata_element_type_name": "Glossary", **kwargs}, + **{"metadata_element_type": "Glossary", **kwargs}, ) return response @@ -3795,6 +3798,7 @@ def get_term_by_guid( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_glossary_terms( self, @@ -3802,7 +3806,7 @@ async def _async_find_glossary_terms( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "GlossaryTerm", + metadata_element_type: str | None = "GlossaryTerm", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -3829,7 +3833,7 @@ async def _async_find_glossary_terms( Whether to match terms ending with the search string. ignore_case : bool, default=True Whether to ignore case when searching. - metadata_element_type_name : str, default="GlossaryTerm" + metadata_element_type : str, default="GlossaryTerm" The metadata element type to search for. metadata_element_subtypes : list[str], optional The subtypes of metadata element to search for. @@ -3870,7 +3874,7 @@ async def _async_find_glossary_terms( response = await self._async_find_request( url, - _type=metadata_element_type_name, + _type=metadata_element_type, _gen_output=self._generate_term_output, search_string=search_string, starts_with=starts_with, @@ -3888,11 +3892,12 @@ async def _async_find_glossary_terms( output_format=output_format, report_spec=report_spec, body=body, - **{"metadata_element_type": metadata_element_type_name, **kwargs}, + **{"metadata_element_type": metadata_element_type, **kwargs}, ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_glossary_terms( self, @@ -3900,7 +3905,7 @@ def find_glossary_terms( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "GlossaryTerm", + metadata_element_type: str | None = "GlossaryTerm", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -3926,7 +3931,7 @@ def find_glossary_terms( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/omvs/location_arena.py b/pyegeria/omvs/location_arena.py index d770b942..ab4843e8 100644 --- a/pyegeria/omvs/location_arena.py +++ b/pyegeria/omvs/location_arena.py @@ -9,6 +9,7 @@ import asyncio from typing import Optional +from pyegeria.core.request_filters import deprecated_names from pyegeria.core._server_client import ServerClient from pyegeria.view.base_report_formats import get_report_spec_match from pyegeria.view.base_report_formats import select_report_spec @@ -957,6 +958,7 @@ def delete_location(self, location_guid: str, body: Optional[dict | DeleteElemen """ run_sync(self._async_delete_location(location_guid, body, cascade)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_locations( self, @@ -964,7 +966,7 @@ async def _async_find_locations( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "Location", + metadata_element_type: str | None = "Location", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -991,7 +993,7 @@ async def _async_find_locations( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -1032,7 +1034,7 @@ async def _async_find_locations( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -1056,6 +1058,7 @@ async def _async_find_locations( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_locations( self, @@ -1063,7 +1066,7 @@ def find_locations( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "Location", + metadata_element_type: str | None = "Location", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1090,7 +1093,7 @@ def find_locations( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -1130,7 +1133,7 @@ def find_locations( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -1147,11 +1150,12 @@ def find_locations( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_locations_by_name( self, name: str = None, - metadata_element_type_name: str | None = "Location", + metadata_element_type: str | None = "Location", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1169,7 +1173,7 @@ async def _async_get_locations_by_name( ---------- name: str, optional name to use to find matching locations. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -1210,7 +1214,7 @@ async def _async_get_locations_by_name( url = f"{self.ref_location_command_base}/locations/by-name" params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -1231,10 +1235,11 @@ async def _async_get_locations_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_locations_by_name( self, name: str = None, - metadata_element_type_name: str | None = "Location", + metadata_element_type: str | None = "Location", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1252,7 +1257,7 @@ def get_locations_by_name( ---------- name: str, optional name to use to find matching locations. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -1294,7 +1299,7 @@ def get_locations_by_name( return run_sync( self._async_get_locations_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/omvs/metadata_expert.py b/pyegeria/omvs/metadata_expert.py index 9e5a07f4..8ff664d1 100644 --- a/pyegeria/omvs/metadata_expert.py +++ b/pyegeria/omvs/metadata_expert.py @@ -10,6 +10,7 @@ from typing import Any, Optional, Union, Dict, List from httpx import Response from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import FindFilters from pyegeria.core.request_filters import filter_body_kwargs from pyegeria.models import (NewOpenMetadataElementRequestBody, TemplateRequestBody, @@ -2187,12 +2188,13 @@ def get_classification_history( ) return response + @deprecated_names(metadata_element_sub_type="metadata_element_subtypes") @dynamic_catch async def _async_find_metadata_elements_with_string(self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, anchor_domain: Optional[str] = None, zone_filter=None, metadata_element_type: Optional[str] = None, - metadata_element_sub_type=None, skip_relationships=None, + metadata_element_subtypes=None, skip_relationships=None, include_only_relationships=None, relationship_page_size: int = 10, skip_classified_elements=None, @@ -2226,7 +2228,7 @@ async def _async_find_metadata_elements_with_string(self, search_string: str = " those associated with the given zones. Defaults to None. metadata_element_type (str | None): Filters the search to elements of a specific metadata type. Defaults to None. - metadata_element_sub_type (str | None): Filters the search to elements of a specific subtype. + metadata_element_subtypes (str | None): Filters the search to elements of a specific subtype. Defaults to None. skip_relationships (bool | None): If set to True, relationships associated with metadata elements are excluded from the search result. Defaults to None. @@ -2283,15 +2285,16 @@ async def _async_find_metadata_elements_with_string(self, search_string: str = " sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - body=body, **{"metadata_element_subtypes": metadata_element_sub_type, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) + body=body, **{"metadata_element_subtypes": metadata_element_subtypes, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) return response + @deprecated_names(metadata_element_sub_type="metadata_element_subtypes") @dynamic_catch def find_metadata_elements_with_string(self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, anchor_domain: Optional[str] = None, zone_filter=None, metadata_element_type: Optional[str] = None, - metadata_element_sub_type=None, skip_relationships=None, + metadata_element_subtypes=None, skip_relationships=None, include_only_relationships=None, relationship_page_size: int = 10, skip_classified_elements=None, include_only_classified_elements: Optional[list[str]] = None, @@ -2323,7 +2326,7 @@ def find_metadata_elements_with_string(self, search_string: str = "*", starts_wi those associated with the given zones. Defaults to None. metadata_element_type (str | None): Filters the search to elements of a specific metadata type. Defaults to None. - metadata_element_sub_type (str | None): Filters the search to elements of a specific subtype. + metadata_element_subtypes (str | None): Filters the search to elements of a specific subtype. Defaults to None. skip_relationships (bool | None): If set to True, relationships associated with metadata elements are excluded from the search result. Defaults to None. @@ -2361,7 +2364,7 @@ def find_metadata_elements_with_string(self, search_string: str = "*", starts_wi self._async_find_metadata_elements_with_string( search_string=search_string, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, zone_filter=zone_filter, - metadata_element_type=metadata_element_type, metadata_element_sub_type=metadata_element_sub_type, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, relationship_page_size=relationship_page_size, skip_classified_elements=skip_classified_elements, include_only_classified_elements=include_only_classified_elements, @@ -2374,13 +2377,14 @@ def find_metadata_elements_with_string(self, search_string: str = "*", starts_wi ) return response + @deprecated_names(metadata_element_sub_type="metadata_element_subtypes") @dynamic_catch async def _async_find_elements_for_anchor(self, guid: Optional[str] = None, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, anchor_domain: Optional[str] = None, zone_filter=None, metadata_element_type: Optional[str] = None, - metadata_element_sub_type=None, skip_relationships=None, + metadata_element_subtypes=None, skip_relationships=None, include_only_relationships=None, relationship_page_size: int = 10, skip_classified_elements=None, include_only_classified_elements: Optional[list[str]] = None, @@ -2413,7 +2417,7 @@ async def _async_find_elements_for_anchor(self, guid: Optional[str] = None, sear those associated with the given zones. Defaults to None. metadata_element_type (str | None): Filters the search to elements of a specific metadata type. Defaults to None. - metadata_element_sub_type (str | None): Filters the search to elements of a specific subtype. + metadata_element_subtypes (str | None): Filters the search to elements of a specific subtype. Defaults to None. skip_relationships (bool | None): If set to True, relationships associated with metadata elements are excluded from the search result. Defaults to None. @@ -2471,14 +2475,15 @@ async def _async_find_elements_for_anchor(self, guid: Optional[str] = None, sear sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - body=body, **{"metadata_element_subtypes": metadata_element_sub_type, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) + body=body, **{"metadata_element_subtypes": metadata_element_subtypes, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) return response + @deprecated_names(metadata_element_sub_type="metadata_element_subtypes") @dynamic_catch def find_elements_for_anchor(self, guid: Optional[str] = None, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, anchor_domain: Optional[str] = None, zone_filter=None, metadata_element_type: Optional[str] = None, - metadata_element_sub_type=None, skip_relationships=None, + metadata_element_subtypes=None, skip_relationships=None, include_only_relationships=None, relationship_page_size: int = 10, skip_classified_elements=None, include_only_classified_elements: Optional[list[str]] = None, graph_query_depth: int = 5, @@ -2509,7 +2514,7 @@ def find_elements_for_anchor(self, guid: Optional[str] = None, search_string: st those associated with the given zones. Defaults to None. metadata_element_type (str | None): Filters the search to elements of a specific metadata type. Defaults to None. - metadata_element_sub_type (str | None): Filters the search to elements of a specific subtype. + metadata_element_subtypes (str | None): Filters the search to elements of a specific subtype. Defaults to None. skip_relationships (bool | None): If set to True, relationships associated with metadata elements are excluded from the search result. Defaults to None. @@ -2547,7 +2552,7 @@ def find_elements_for_anchor(self, guid: Optional[str] = None, search_string: st self._async_find_elements_for_anchor( guid=guid, search_string=search_string, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, zone_filter=zone_filter, - metadata_element_type=metadata_element_type, metadata_element_sub_type=metadata_element_sub_type, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, relationship_page_size=relationship_page_size, skip_classified_elements=skip_classified_elements, include_only_classified_elements=include_only_classified_elements, @@ -2560,13 +2565,14 @@ def find_elements_for_anchor(self, guid: Optional[str] = None, search_string: st ) return response + @deprecated_names(metadata_element_sub_type="metadata_element_subtypes") @dynamic_catch async def _async_find_elements_in_anchor_domain(self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, anchor_domain: Optional[str] = None, zone_filter=None, metadata_element_type: Optional[str] = None, - metadata_element_sub_type=None, skip_relationships=None, + metadata_element_subtypes=None, skip_relationships=None, include_only_relationships=None, relationship_page_size: int = 10, skip_classified_elements=None, include_only_classified_elements: Optional[list[str]] = None, @@ -2598,7 +2604,7 @@ async def _async_find_elements_in_anchor_domain(self, search_string: str = "*", those associated with the given zones. Defaults to None. metadata_element_type (str | None): Filters the search to elements of a specific metadata type. Defaults to None. - metadata_element_sub_type (str | None): Filters the search to elements of a specific subtype. + metadata_element_subtypes (str | None): Filters the search to elements of a specific subtype. Defaults to None. skip_relationships (bool | None): If set to True, relationships associated with metadata elements are excluded from the search result. Defaults to None. @@ -2657,14 +2663,15 @@ async def _async_find_elements_in_anchor_domain(self, search_string: str = "*", sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - body=body, **{"metadata_element_subtypes": metadata_element_sub_type, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) + body=body, **{"metadata_element_subtypes": metadata_element_subtypes, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) return response + @deprecated_names(metadata_element_sub_type="metadata_element_subtypes") @dynamic_catch def find_elements_in_anchor_domain(self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, anchor_domain: Optional[str] = None, zone_filter=None, metadata_element_type: Optional[str] = None, - metadata_element_sub_type=None, skip_relationships=None, + metadata_element_subtypes=None, skip_relationships=None, include_only_relationships=None, relationship_page_size: int = 10, skip_classified_elements=None, include_only_classified_elements: Optional[list[str]] = None, graph_query_depth: int = 5, @@ -2694,7 +2701,7 @@ def find_elements_in_anchor_domain(self, search_string: str = "*", starts_with: those associated with the given zones. Defaults to None. metadata_element_type (str | None): Filters the search to elements of a specific metadata type. Defaults to None. - metadata_element_sub_type (str | None): Filters the search to elements of a specific subtype. + metadata_element_subtypes (str | None): Filters the search to elements of a specific subtype. Defaults to None. skip_relationships (bool | None): If set to True, relationships associated with metadata elements are excluded from the search result. Defaults to None. @@ -2732,7 +2739,7 @@ def find_elements_in_anchor_domain(self, search_string: str = "*", starts_with: self._async_find_elements_in_anchor_domain( search_string=search_string, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, zone_filter=zone_filter, - metadata_element_type=metadata_element_type, metadata_element_sub_type=metadata_element_sub_type, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, relationship_page_size=relationship_page_size, skip_classified_elements=skip_classified_elements, include_only_classified_elements=include_only_classified_elements, @@ -2745,13 +2752,14 @@ def find_elements_in_anchor_domain(self, search_string: str = "*", starts_with: ) return response + @deprecated_names(metadata_element_sub_type="metadata_element_subtypes") @dynamic_catch async def _async_find_elements_in_anchor_scope(self, guid: Optional[str] = None, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, anchor_domain: Optional[str] = None, zone_filter=None, metadata_element_type: Optional[str] = None, - metadata_element_sub_type=None, skip_relationships=None, + metadata_element_subtypes=None, skip_relationships=None, include_only_relationships=None, relationship_page_size: int = 10, skip_classified_elements=None, include_only_classified_elements: Optional[list[str]] = None, @@ -2785,7 +2793,7 @@ async def _async_find_elements_in_anchor_scope(self, guid: Optional[str] = None, those associated with the given zones. Defaults to None. metadata_element_type (str | None): Filters the search to elements of a specific metadata type. Defaults to None. - metadata_element_sub_type (str | None): Filters the search to elements of a specific subtype. + metadata_element_subtypes (str | None): Filters the search to elements of a specific subtype. Defaults to None. skip_relationships (bool | None): If set to True, relationships associated with metadata elements are excluded from the search result. Defaults to None. @@ -2846,14 +2854,15 @@ async def _async_find_elements_in_anchor_scope(self, guid: Optional[str] = None, sequencing_order=sequencing_order, sequencing_property=sequencing_property, output_format=output_format, report_spec=report_spec, start_from=start_from, page_size=page_size, - body=body, **{"metadata_element_subtypes": metadata_element_sub_type, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) + body=body, **{"metadata_element_subtypes": metadata_element_subtypes, "governance_zone_filter": zone_filter, "effective_time": effective_time, **kwargs}) return response + @deprecated_names(metadata_element_sub_type="metadata_element_subtypes") @dynamic_catch def find_elements_in_anchor_scope(self, guid: Optional[str] = None, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = False, anchor_domain: Optional[str] = None, zone_filter=None, metadata_element_type: Optional[str] = None, - metadata_element_sub_type=None, skip_relationships=None, + metadata_element_subtypes=None, skip_relationships=None, include_only_relationships=None, relationship_page_size: int = 10, skip_classified_elements=None, include_only_classified_elements: Optional[list[str]] = None, graph_query_depth: int = 5, @@ -2884,7 +2893,7 @@ def find_elements_in_anchor_scope(self, guid: Optional[str] = None, search_strin those associated with the given zones. Defaults to None. metadata_element_type (str | None): Filters the search to elements of a specific metadata type. Defaults to None. - metadata_element_sub_type (str | None): Filters the search to elements of a specific subtype. + metadata_element_subtypes (str | None): Filters the search to elements of a specific subtype. Defaults to None. skip_relationships (bool | None): If set to True, relationships associated with metadata elements are excluded from the search result. Defaults to None. @@ -2922,7 +2931,7 @@ def find_elements_in_anchor_scope(self, guid: Optional[str] = None, search_strin self._async_find_elements_in_anchor_scope( guid=guid, search_string=search_string, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, anchor_domain=anchor_domain, zone_filter=zone_filter, - metadata_element_type=metadata_element_type, metadata_element_sub_type=metadata_element_sub_type, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, skip_relationships=skip_relationships, include_only_relationships=include_only_relationships, relationship_page_size=relationship_page_size, skip_classified_elements=skip_classified_elements, include_only_classified_elements=include_only_classified_elements, @@ -3645,7 +3654,7 @@ async def _async_find_metadata_elements( - http request timeout for this request **kwargs: - Backward compatibility parameters for individual criteria if `body` is not provided. - Supported: `metadata_element_type_name`, `metadata_element_subtype_names`, `skip_subtypes`, + Supported: `metadata_element_type`, `metadata_element_subtypes`, `skip_subtypes`, `search_properties`, `match_classifications`, `effective_time`, `limit_results_by_status`, `as_of_time`, `sequencing_order`, `sequencing_property`, `start_from`, `page_size`. diff --git a/pyegeria/omvs/product_catalog.py b/pyegeria/omvs/product_catalog.py index 269f7a9e..ed7bc8d2 100644 --- a/pyegeria/omvs/product_catalog.py +++ b/pyegeria/omvs/product_catalog.py @@ -12,6 +12,7 @@ from typing import Optional from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import SearchFilters from pyegeria.core.utils import dynamic_catch from pyegeria.models import SearchStringRequestBody @@ -35,11 +36,12 @@ def __init__( f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/product-catalog" ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_digital_product_catalogs( self, search_string: str = "*", - metadata_element_type_name: str = "DigitalProductCatalog", + metadata_element_type: str = "DigitalProductCatalog", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, @@ -48,7 +50,7 @@ async def _async_find_digital_product_catalogs( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | SearchStringRequestBody] = None, - **kwargs: Unpack[SearchFilters], + **kwargs, ) -> list | str: """Find digital product catalogs, or the products in them, through the product-catalog view service. Async version. @@ -57,7 +59,7 @@ async def _async_find_digital_product_catalogs( ---------- search_string : str, default "*" String to match; "*" matches every element of the requested type. - metadata_element_type_name : str, default "DigitalProductCatalog" + metadata_element_type : str, default "DigitalProductCatalog" Type to search for; use "DigitalProduct" to find products. starts_with, ends_with, ignore_case : bool How the search string is matched. @@ -89,16 +91,17 @@ async def _async_find_digital_product_catalogs( """ url = f"{self.product_catalog_command_root}/collections/by-search-string" return await self._async_find_request( - url, _type=metadata_element_type_name, _gen_output=self._generate_collection_output, + url, _type=metadata_element_type, _gen_output=self._generate_collection_output, search_string=search_string, starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, start_from=start_from, page_size=page_size, - output_format=output_format, report_spec=report_spec, body=body, **{"metadata_element_type": metadata_element_type_name, **kwargs}) + output_format=output_format, report_spec=report_spec, body=body, **{"metadata_element_type": metadata_element_type, **kwargs}) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_digital_product_catalogs( self, search_string: str = "*", - metadata_element_type_name: str = "DigitalProductCatalog", + metadata_element_type: str = "DigitalProductCatalog", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, @@ -107,7 +110,7 @@ def find_digital_product_catalogs( output_format: str = "JSON", report_spec: Optional[str | dict] = None, body: Optional[dict | SearchStringRequestBody] = None, - **kwargs: Unpack[SearchFilters], + **kwargs, ) -> list | str: """Find digital product catalogs, or the products in them ("DigitalProduct"), through the product-catalog view service. See _async_find_digital_product_catalogs for the parameters. @@ -116,5 +119,5 @@ def find_digital_product_catalogs( in ``pyegeria.core.request_filters``), e.g. ``metadata_element_subtypes=[...]``. """ return run_sync(self._async_find_digital_product_catalogs( - search_string, metadata_element_type_name, starts_with, ends_with, ignore_case, + search_string, metadata_element_type, starts_with, ends_with, ignore_case, start_from, page_size, output_format, report_spec, body, **kwargs)) diff --git a/pyegeria/omvs/product_manager.py b/pyegeria/omvs/product_manager.py index c2d7e347..7b073428 100644 --- a/pyegeria/omvs/product_manager.py +++ b/pyegeria/omvs/product_manager.py @@ -12,6 +12,7 @@ from typing import Optional from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import GetFilters, ListFilters, SearchFilters from pyegeria.omvs.collection_manager import CollectionManager from pyegeria.core._server_client import ServerClient @@ -584,6 +585,7 @@ def get_digital_products_by_name( ) ) + @deprecated_names(metadata_element_subtype="metadata_element_subtypes") @dynamic_catch async def _async_find_digital_products( self, @@ -596,8 +598,8 @@ async def _async_find_digital_products( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - metadata_element_subtype: Optional[list[str]] = None, - **kwargs: Unpack[SearchFilters] + metadata_element_subtypes: Optional[list[str]] = None, + **kwargs ) -> list | str: """Returns the list of digital products matching the search string. Async version. @@ -615,7 +617,7 @@ async def _async_find_digital_products( Anchor domain to filter on. metadata_element_type : str, optional Metadata element type name to filter on. - metadata_element_subtype : list[str], optional + metadata_element_subtypes : list[str], optional List of metadata element subtypes to filter on. skip_relationships : list[str], optional List of relationship types to skip. @@ -667,8 +669,8 @@ async def _async_find_digital_products( PyegeriaException If there are issues in communications, message format, or Egeria errors. """ - if metadata_element_subtype is None: - metadata_element_subtype = ["DigitalProduct"] + if metadata_element_subtypes is None: + metadata_element_subtypes = ["DigitalProduct"] url = f"{self.product_manager_command_root}/collections/by-search-string" @@ -684,7 +686,7 @@ async def _async_find_digital_products( 'page_size': page_size, 'output_format': output_format, 'report_spec': report_spec, - 'metadata_element_subtypes': metadata_element_subtype + 'metadata_element_subtypes': metadata_element_subtypes } params.update(kwargs) @@ -695,6 +697,7 @@ async def _async_find_digital_products( _gen_output=self._generate_collection_output, **params) return response + @deprecated_names(metadata_element_subtype="metadata_element_subtypes") def find_digital_products( self, search_string: str = "*", @@ -706,8 +709,8 @@ def find_digital_products( page_size: int = 100, graph_query_depth: int = 3, output_format: str = "JSON", report_spec: Optional[str | dict] = None, - metadata_element_subtype: Optional[list[str]] = None, - **kwargs: Unpack[SearchFilters] + metadata_element_subtypes: Optional[list[str]] = None, + **kwargs ) -> list | str: """Returns the list of digital products matching the search string. Sync version. @@ -725,7 +728,7 @@ def find_digital_products( Anchor domain to filter on. metadata_element_type : str, optional Metadata element type name to filter on. - metadata_element_subtype : list[str], optional + metadata_element_subtypes : list[str], optional List of metadata element subtypes to filter on. skip_relationships : list[str], optional List of relationship types to skip. @@ -789,7 +792,7 @@ def find_digital_products( page_size=page_size, output_format=output_format, report_spec=report_spec, - metadata_element_subtype=metadata_element_subtype, + metadata_element_subtypes=metadata_element_subtypes, **kwargs ) ) @@ -1623,7 +1626,7 @@ async def _async_find_digital_product_catalogs( Domain to anchor the search. metadata_element_type : str, optional Type of metadata element to search for. - metadata_element_subtype : str, optional + metadata_element_subtypes : list[str], optional Subtype of metadata element. skip_relationships : list[str], optional Relationships to skip in the graph. @@ -1727,7 +1730,7 @@ def find_digital_product_catalogs( Domain to anchor the search. metadata_element_type : str, optional Type of metadata element to search for. - metadata_element_subtype : str, optional + metadata_element_subtypes : list[str], optional Subtype of metadata element. skip_relationships : list[str], optional Relationships to skip in the graph. diff --git a/pyegeria/omvs/project_manager.py b/pyegeria/omvs/project_manager.py index 3c02dd58..63c79779 100644 --- a/pyegeria/omvs/project_manager.py +++ b/pyegeria/omvs/project_manager.py @@ -11,6 +11,7 @@ from typing import Any, Optional from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import GetFilters, ListFilters from pyegeria.core._globals import NO_ELEMENTS_FOUND from pyegeria.core._server_client import ServerClient @@ -848,6 +849,7 @@ def get_project_hierarchy( ) return resp + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_projects( self, @@ -855,7 +857,7 @@ async def _async_find_projects( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = None, + metadata_element_type: str | None = None, metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -882,7 +884,7 @@ async def _async_find_projects( Whether to match projects ending with the search string. ignore_case : bool, default=True Whether to ignore case when searching. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The metadata element type to search for. metadata_element_subtypes : list[str], optional The subtypes of metadata element to search for. @@ -941,11 +943,12 @@ async def _async_find_projects( output_format=output_format, report_spec=report_spec, body=body, - **{"metadata_element_type": metadata_element_type_name, **kwargs}, + **{"metadata_element_type": metadata_element_type, **kwargs}, ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_projects( self, @@ -953,7 +956,7 @@ def find_projects( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = None, + metadata_element_type: str | None = None, metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -979,7 +982,7 @@ def find_projects( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/omvs/runtime_manager.py b/pyegeria/omvs/runtime_manager.py index 88586c06..7941a727 100644 --- a/pyegeria/omvs/runtime_manager.py +++ b/pyegeria/omvs/runtime_manager.py @@ -11,6 +11,7 @@ from loguru import logger from requests import Response from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import GetFilters, ListFilters from pyegeria.core.utils import body_slimmer, dynamic_catch from pyegeria.core._server_client import ServerClient @@ -3441,11 +3442,12 @@ def delete_metadata_repository_cohort(self, cohort_guid: str, """ run_sync(self._async_delete_metadata_repository_cohort(cohort_guid, body, cascade)) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_metadata_repository_cohorts_by_name( self, name: str = "*", - metadata_element_type_name: str | None = "MetadataRepositoryCohort", + metadata_element_type: str | None = "MetadataRepositoryCohort", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, @@ -3461,7 +3463,7 @@ async def _async_get_metadata_repository_cohorts_by_name( ---------- name: str, optional name to use to find matching cohorts. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -3490,7 +3492,7 @@ async def _async_get_metadata_repository_cohorts_by_name( url = f"{self.runtime_command_root}/metadata-repository-cohorts/by-name" params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "graph_query_depth": graph_query_depth, "start_from": start_from, @@ -3509,11 +3511,12 @@ async def _async_get_metadata_repository_cohorts_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def get_metadata_repository_cohorts_by_name( self, name: str = "*", - metadata_element_type_name: str | None = "MetadataRepositoryCohort", + metadata_element_type: str | None = "MetadataRepositoryCohort", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, @@ -3530,11 +3533,12 @@ def get_metadata_repository_cohorts_by_name( """ return run_sync( self._async_get_metadata_repository_cohorts_by_name( - name, metadata_element_type_name, metadata_element_subtypes, graph_query_depth, + name, metadata_element_type, metadata_element_subtypes, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_metadata_repository_cohorts( self, @@ -3542,7 +3546,7 @@ async def _async_find_metadata_repository_cohorts( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "MetadataRepositoryCohort", + metadata_element_type: str | None = "MetadataRepositoryCohort", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, @@ -3564,7 +3568,7 @@ async def _async_find_metadata_repository_cohorts( Ends with the supplied string. ignore_case : bool, [default=True], optional Ignore case when searching. - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -3594,7 +3598,7 @@ async def _async_find_metadata_repository_cohorts( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "graph_query_depth": graph_query_depth, "start_from": start_from, @@ -3613,6 +3617,7 @@ async def _async_find_metadata_repository_cohorts( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_metadata_repository_cohorts( self, @@ -3620,7 +3625,7 @@ def find_metadata_repository_cohorts( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "MetadataRepositoryCohort", + metadata_element_type: str | None = "MetadataRepositoryCohort", metadata_element_subtypes: list[str] | None = None, graph_query_depth: int = 3, start_from: int = 0, @@ -3637,7 +3642,7 @@ def find_metadata_repository_cohorts( """ return run_sync( self._async_find_metadata_repository_cohorts( - search_string, starts_with, ends_with, ignore_case, metadata_element_type_name, + search_string, starts_with, ends_with, ignore_case, metadata_element_type, metadata_element_subtypes, graph_query_depth, start_from, page_size, output_format, report_spec, body, **kwargs ) diff --git a/pyegeria/omvs/security_officer.py b/pyegeria/omvs/security_officer.py index f26fbe5d..3a2efe80 100644 --- a/pyegeria/omvs/security_officer.py +++ b/pyegeria/omvs/security_officer.py @@ -12,6 +12,7 @@ from typing import Optional, Union, Any from typing import Unpack +from pyegeria.core.request_filters import deprecated_names from pyegeria.core.request_filters import ListFilters from pyegeria.core._server_client import ServerClient from pyegeria.core._globals import NO_ELEMENTS_FOUND @@ -435,6 +436,7 @@ def delete_security_access_control( # Security Roles and Groups # ===================================================================== + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_security_roles( self, @@ -442,7 +444,7 @@ async def _async_find_security_roles( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "SecurityRole", + metadata_element_type: str | None = "SecurityRole", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -468,7 +470,7 @@ async def _async_find_security_roles( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -492,13 +494,14 @@ async def _async_find_security_roles( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_security_roles( self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "SecurityRole", + metadata_element_type: str | None = "SecurityRole", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -524,7 +527,7 @@ def find_security_roles( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -541,6 +544,7 @@ def find_security_roles( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_security_groups( self, @@ -548,7 +552,7 @@ async def _async_find_security_groups( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "SecurityGroup", + metadata_element_type: str | None = "SecurityGroup", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -574,7 +578,7 @@ async def _async_find_security_groups( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -598,13 +602,14 @@ async def _async_find_security_groups( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_security_groups( self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "SecurityGroup", + metadata_element_type: str | None = "SecurityGroup", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -630,7 +635,7 @@ def find_security_groups( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -956,6 +961,7 @@ def get_statements_of_applicability_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_statements_of_applicability( self, @@ -963,7 +969,7 @@ async def _async_find_statements_of_applicability( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = None, + metadata_element_type: str | None = None, metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1004,9 +1010,10 @@ async def _async_find_statements_of_applicability( output_format=output_format, report_spec=report_spec, body=body, - **{"metadata_element_type": metadata_element_type_name, **kwargs}, + **{"metadata_element_type": metadata_element_type, **kwargs}, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_statements_of_applicability( self, @@ -1014,7 +1021,7 @@ def find_statements_of_applicability( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = None, + metadata_element_type: str | None = None, metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1040,7 +1047,7 @@ def find_statements_of_applicability( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/omvs/subject_area.py b/pyegeria/omvs/subject_area.py index 569e6fcb..5db4e804 100644 --- a/pyegeria/omvs/subject_area.py +++ b/pyegeria/omvs/subject_area.py @@ -10,6 +10,7 @@ from pydantic import Field +from pyegeria.core.request_filters import deprecated_names from pyegeria.core._server_client import ServerClient from pyegeria.models import ( NewElementRequestBody, @@ -569,11 +570,12 @@ def detach_subject_area_hierarchy( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_subject_areas_by_name( self, name: str = None, - metadata_element_type_name: str | None = "SubjectArea", + metadata_element_type: str | None = "SubjectArea", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -591,7 +593,7 @@ async def _async_get_subject_areas_by_name( ---------- name : str, optional The string to find in the properties. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -638,7 +640,7 @@ async def _async_get_subject_areas_by_name( url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/subject-area/collections/by-name" params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -659,10 +661,11 @@ async def _async_get_subject_areas_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_subject_areas_by_name( self, name: str = None, - metadata_element_type_name: str | None = "SubjectArea", + metadata_element_type: str | None = "SubjectArea", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -680,7 +683,7 @@ def get_subject_areas_by_name( ---------- name : str, optional The string to find in the properties. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -728,7 +731,7 @@ def get_subject_areas_by_name( return run_sync( self._async_get_subject_areas_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -742,6 +745,7 @@ def get_subject_areas_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_subject_areas( self, @@ -749,7 +753,7 @@ async def _async_find_subject_areas( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "SubjectArea", + metadata_element_type: str | None = "SubjectArea", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -776,7 +780,7 @@ async def _async_find_subject_areas( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -817,7 +821,7 @@ async def _async_find_subject_areas( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -842,13 +846,14 @@ async def _async_find_subject_areas( ) return response + @deprecated_names(metadata_element_type_name="metadata_element_type") def find_subject_areas( self, search_string: str = "*", starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "SubjectArea", + metadata_element_type: str | None = "SubjectArea", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -875,7 +880,7 @@ def find_subject_areas( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The subtypes to filter by. @@ -915,7 +920,7 @@ def find_subject_areas( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/omvs/time_keeper.py b/pyegeria/omvs/time_keeper.py index afd7c116..cdd41303 100644 --- a/pyegeria/omvs/time_keeper.py +++ b/pyegeria/omvs/time_keeper.py @@ -10,6 +10,7 @@ from pydantic import Field +from pyegeria.core.request_filters import deprecated_names from pyegeria.core._server_client import ServerClient from pyegeria.models import ( NewElementRequestBody, @@ -1287,11 +1288,12 @@ def detach_context_event_timeline_effect( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_get_context_events_by_name( self, name: str = None, - metadata_element_type_name: str | None = "ContextEvent", + metadata_element_type: str | None = "ContextEvent", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1309,7 +1311,7 @@ async def _async_get_context_events_by_name( ---------- name : str, optional The name to find in the properties. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -1356,7 +1358,7 @@ async def _async_get_context_events_by_name( url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/time-keeper/context-events/by-name" params = { "filter_string": name, - "metadata_element_type_name": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -1377,10 +1379,11 @@ async def _async_get_context_events_by_name( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") def get_context_events_by_name( self, name: str = None, - metadata_element_type_name: str | None = "ContextEvent", + metadata_element_type: str | None = "ContextEvent", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1398,7 +1401,7 @@ def get_context_events_by_name( ---------- name : str, optional The name to find in the properties. - metadata_element_type_name : str, optional + metadata_element_type : str, optional The type of metadata element. metadata_element_subtypes : list[str], optional The list of subtypes to filter by. @@ -1446,7 +1449,7 @@ def get_context_events_by_name( return run_sync( self._async_get_context_events_by_name( name=name, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, @@ -1460,6 +1463,7 @@ def get_context_events_by_name( ) ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch async def _async_find_context_events( self, @@ -1467,7 +1471,7 @@ async def _async_find_context_events( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ContextEvent", + metadata_element_type: str | None = "ContextEvent", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1494,7 +1498,7 @@ async def _async_find_context_events( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -1535,7 +1539,7 @@ async def _async_find_context_events( "starts_with": starts_with, "ends_with": ends_with, "ignore_case": ignore_case, - "metadata_element_type": metadata_element_type_name, + "metadata_element_type": metadata_element_type, "metadata_element_subtypes": metadata_element_subtypes, "include_only_relationships": include_only_relationships, "skip_relationships": skip_relationships, @@ -1559,6 +1563,7 @@ async def _async_find_context_events( **params, ) + @deprecated_names(metadata_element_type_name="metadata_element_type") @dynamic_catch def find_context_events( self, @@ -1566,7 +1571,7 @@ def find_context_events( starts_with: bool = True, ends_with: bool = False, ignore_case: bool = True, - metadata_element_type_name: str | None = "ContextEvent", + metadata_element_type: str | None = "ContextEvent", metadata_element_subtypes: list[str] | None = None, include_only_relationships: list[str] | None = None, skip_relationships: list[str] | None = None, @@ -1593,7 +1598,7 @@ def find_context_events( Ends with the supplied string ignore_case : bool, [default=True], optional Ignore case when searching - metadata_element_type_name: str, optional + metadata_element_type: str, optional The type of metadata element to search for. metadata_element_subtypes: list[str], optional The subtypes of metadata element to search for. @@ -1633,7 +1638,7 @@ def find_context_events( starts_with=starts_with, ends_with=ends_with, ignore_case=ignore_case, - metadata_element_type_name=metadata_element_type_name, + metadata_element_type=metadata_element_type, metadata_element_subtypes=metadata_element_subtypes, include_only_relationships=include_only_relationships, skip_relationships=skip_relationships, diff --git a/pyegeria/view/egeria_spec_cache.py b/pyegeria/view/egeria_spec_cache.py index b6a4b972..735ac659 100644 --- a/pyegeria/view/egeria_spec_cache.py +++ b/pyegeria/view/egeria_spec_cache.py @@ -499,7 +499,7 @@ def _call(fn, *args, **kwargs): def _find_folder(client, qn: str) -> Optional[Dict[str, Any]]: - found = _call(client.get_collections_by_name, qn, metadata_element_type_name="CollectionFolder", + found = _call(client.get_collections_by_name, qn, metadata_element_type="CollectionFolder", output_format="JSON") exact = [e for e in found if _props(e).get("qualifiedName") == qn] return exact[0] if exact else None @@ -510,7 +510,7 @@ def _find_specs_by_label(client, label: str) -> List[Dict[str, Any]]: seen: Dict[str, Dict[str, Any]] = {} for name in (label, f"ReportSpec::{label}", f"ReportType::{label}"): try: - found = _call(client.get_collections_by_name, name, metadata_element_type_name="ReportSpec", + found = _call(client.get_collections_by_name, name, metadata_element_type="ReportSpec", output_format="JSON") except Exception as exc: # noqa: BLE001 -- one failing lookup must not hide the others logger.debug(f"report spec lookup by name {name!r} failed: {exc}") @@ -974,7 +974,7 @@ async def async_fetch_spec_for_call(client, name: str) -> str: seen: Dict[str, Dict[str, Any]] = {} for nm in (label, f"ReportSpec::{label}", f"ReportType::{label}"): res = _elements(await getter._async_get_collections_by_name( - nm, metadata_element_type_name="ReportSpec", output_format="JSON")) + nm, metadata_element_type="ReportSpec", output_format="JSON")) for e in res: if label_from_qualified_name(_props(e).get("qualifiedName") or "") == label and _guid(e): seen[_guid(e)] = e diff --git a/pyegeria/view/format_set_executor.py b/pyegeria/view/format_set_executor.py index 4d40438e..549673fc 100644 --- a/pyegeria/view/format_set_executor.py +++ b/pyegeria/view/format_set_executor.py @@ -547,7 +547,22 @@ def _to_string_list(raw_value: Any) -> Any: continue cleaned[key] = value - return cleaned + return _canonical_param_names(cleaned) + + +def _canonical_param_names(params: Dict[str, Any]) -> Dict[str, Any]: + """Rename deprecated filter spellings (metadata_element_type_name, ...) to the canonical + names, quietly: a report spec or Dr.Egeria parameter list is not the caller's code, so it + should not trip the methods' DeprecationWarning. A canonical value already present wins.""" + from pyegeria.core.request_filters import DEPRECATED_NAMES, _canonical_value + + out = dict(params) + for old, new in DEPRECATED_NAMES.items(): + if old in out: + value = out.pop(old) + if out.get(new) in (None, "", []): + out[new] = _canonical_value(new, value) + return out def _extract_param_value(params: Dict[str, Any], param_name: str, action_mode: str = "generic") -> Any: @@ -806,6 +821,7 @@ async def _async_run_report_impl( # Include fixed specifics call_params.update(spec_params) + call_params = _canonical_param_names(call_params) # Always include output_format and report_spec for downstream rendering call_params["output_format"] = output_format @@ -1244,6 +1260,7 @@ def _exec_report_spec_impl( # Include fixed specifics call_params.update(spec_params) + call_params = _canonical_param_names(call_params) # Always include output_format and report_spec for downstream rendering call_params["output_format"] = output_format diff --git a/tests/micro-tests/test_issue_131_133.py b/tests/micro-tests/test_issue_131_133.py index 3c057644..4a82d8e1 100644 --- a/tests/micro-tests/test_issue_131_133.py +++ b/tests/micro-tests/test_issue_131_133.py @@ -59,10 +59,15 @@ async def fake_make_request(method, url, payload=None, *args, **kwargs): @pytest.mark.asyncio @pytest.mark.parametrize("cls, method", BY_NAME_WRAPPERS) -async def test_by_name_wrappers_send_the_type_filter(cls, method, monkeypatch): +@pytest.mark.parametrize("spelling", ["metadata_element_type", "metadata_element_type_name"]) +async def test_by_name_wrappers_send_the_type_filter(cls, method, spelling, monkeypatch): client, calls = _capture(cls, monkeypatch) - await getattr(client, method)("x", metadata_element_type_name="ProbeType") + if spelling == "metadata_element_type": + await getattr(client, method)("x", metadata_element_type="ProbeType") + else: # deprecated in 6.2.28, still works + with pytest.warns(DeprecationWarning, match="use 'metadata_element_type'"): + await getattr(client, method)("x", metadata_element_type_name="ProbeType") assert calls[0]["body"]["metadataElementTypeName"] == "ProbeType" @@ -78,14 +83,16 @@ async def test_name_request_accepts_the_find_request_spelling(monkeypatch): @pytest.mark.asyncio -async def test_name_request_prefers_the_canonical_spelling(monkeypatch): +async def test_name_request_refuses_two_different_type_names(monkeypatch): + # 6.2.28: metadata_element_type is the one name; metadata_element_type_name is a deprecated + # alias, and giving both with different values is refused rather than silently picking one. client, calls = _capture(CollectionManager, monkeypatch) - await client._async_get_name_request("https://localhost:1/x/by-name", _type="T", _gen_output=None, - filter_string="x", metadata_element_type_name="Canonical", - metadata_element_type="Legacy") - - assert calls[0]["body"]["metadataElementTypeName"] == "Canonical" + with pytest.warns(DeprecationWarning), pytest.raises(TypeError, match="pass only 'metadata_element_type'"): + await client._async_get_name_request("https://localhost:1/x/by-name", _type="T", _gen_output=None, + filter_string="x", metadata_element_type_name="Old", + metadata_element_type="New") + assert not calls # --- ISSUE-133 ------------------------------------------------------------------------------ diff --git a/tests/micro-tests/test_rs_egeria_tier.py b/tests/micro-tests/test_rs_egeria_tier.py index 381d3abb..5833bd17 100644 --- a/tests/micro-tests/test_rs_egeria_tier.py +++ b/tests/micro-tests/test_rs_egeria_tier.py @@ -84,8 +84,8 @@ def put(self, el, *, folder=FOLDER_GUID): def remove_member(self, guid, folder=FOLDER_GUID): self.members[folder] = [m for m in self.members[folder] if m["elementHeader"]["guid"] != guid] - def get_collections_by_name(self, name, metadata_element_type_name=None, output_format="JSON", **_): - if metadata_element_type_name == "CollectionFolder": + def get_collections_by_name(self, name, metadata_element_type=None, output_format="JSON", **_): + if metadata_element_type == "CollectionFolder": f = self.folders.get(name) return [f] if f else "No elements found" hits = [e for e in self.elements.values() @@ -743,9 +743,9 @@ class AsyncFake(FakeEgeria): async def _async_get_collection_by_guid(self, guid, output_format="JSON", **k): return self.get_collection_by_guid(guid) - async def _async_get_collections_by_name(self, name, metadata_element_type_name=None, output_format="JSON", + async def _async_get_collections_by_name(self, name, metadata_element_type=None, output_format="JSON", **k): - return self.get_collections_by_name(name, metadata_element_type_name) + return self.get_collections_by_name(name, metadata_element_type) eg = AsyncFake() eg.put(spec_element()) diff --git a/tests/micro-tests/test_search_get_filter_kwargs.py b/tests/micro-tests/test_search_get_filter_kwargs.py index 6dbc0541..7301c390 100644 --- a/tests/micro-tests/test_search_get_filter_kwargs.py +++ b/tests/micro-tests/test_search_get_filter_kwargs.py @@ -298,3 +298,83 @@ def test_no_call_hard_codes_a_filter_beside_forwarded_kwargs(methods): if clash: bad.append(f"{m.qualname}: {clash}") assert not bad, "\n".join(bad) + + +# ---------------------------------------------------------------------------- one name everywhere + +def test_no_signature_uses_a_deprecated_type_name(): + """6.2.28: the element-type filters are spelt metadata_element_type / metadata_element_subtypes + in every method signature; the old spellings live only in DEPRECATED_NAMES.""" + import ast + + bad = [] + for path in sorted((REPO / "pyegeria").rglob("*.py")): + if path.name == "request_filters.py" or "models" in path.parts: + continue + for node in ast.walk(ast.parse(path.read_text(encoding="utf-8"))): + if isinstance(node, (ast.FunctionDef, ast.AsyncFunctionDef)): + a = node.args + for arg in a.posonlyargs + a.args + a.kwonlyargs: + if arg.arg in rf.DEPRECATED_NAMES: + bad.append(f"{path.relative_to(REPO)}:{node.lineno} {node.name}({arg.arg})") + assert not bad, "rename to the canonical name:\n" + "\n".join(bad) + + +@pytest.fixture +def explorer(monkeypatch): + from pyegeria.omvs.classification_explorer import ClassificationExplorer + + monkeypatch.setattr(ClassificationExplorer, "check_connection", lambda self: "test") + client = ClassificationExplorer("view-server", "https://egeria.example:9443", "user", "pwd") + sent: list[dict] = [] + + async def fake_request(method, url, payload=None, *args, **kwargs): + sent.append(json.loads(payload) if isinstance(payload, str) else (payload or {})) + return _Response({"elements": [{"elementHeader": {"guid": "g1"}}]}) + + monkeypatch.setattr(client, "_async_make_request", fake_request) + client.sent = sent + return client + + +def test_deprecated_type_name_still_works_with_a_warning(explorer): + with pytest.warns(DeprecationWarning, match="'metadata_element_type_name' is deprecated; use 'metadata_element_type'"): + explorer.find_elements_by_property_value("x", ["displayName"], metadata_element_type_name="EmbeddedProcess") + assert explorer.sent[-1]["metadataElementTypeName"] == "EmbeddedProcess" + + +def test_canonical_type_name_does_not_warn(explorer): + with warnings.catch_warnings(): + warnings.simplefilter("error", DeprecationWarning) + explorer.find_elements_by_property_value("x", ["displayName"], metadata_element_type="EmbeddedProcess") + assert explorer.sent[-1]["metadataElementTypeName"] == "EmbeddedProcess" + + +def test_both_type_names_with_different_values_are_refused(explorer): + with pytest.warns(DeprecationWarning), pytest.raises(TypeError, match="pass only 'metadata_element_type'"): + explorer.find_elements_by_property_value("x", ["displayName"], metadata_element_type="A", + metadata_element_type_name="B") + assert not explorer.sent + + +def test_deprecated_names_in_kwargs_warn_too(designer): + with pytest.warns(DeprecationWarning, match="'metadata_element_subtype_names' is deprecated"): + designer.find_data_value_specifications("*", metadata_element_subtype_names=["DataClass"]) + assert designer.sent[-1]["metadataElementSubtypeNames"] == ["DataClass"] + + +def test_lone_string_for_subtypes_becomes_a_list(): + with pytest.warns(DeprecationWarning): + out = rf.canonicalize_names({"metadata_element_sub_type": "DataClass"}, owner="t") + assert out == {"metadata_element_subtypes": ["DataClass"]} + + +def test_report_executor_canonicalizes_quietly(): + import pyegeria.view.format_set_executor as fse + + with warnings.catch_warnings(): + warnings.simplefilter("error", DeprecationWarning) + out = fse._normalize_report_params({"metadata_element_type_name": "X", + "metadata_element_subtype_names": "A,B"}, action_mode="find") + assert out["metadata_element_type"] == "X" and out["metadata_element_subtypes"] == ["A", "B"] + assert "metadata_element_type_name" not in out and "metadata_element_subtype_names" not in out From 9b0fffef10e1ed9d38e1bcf1cbe3a69983dbcbd4 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 12:59:53 +0000 Subject: [PATCH 10/14] feat(view): Asset-Graph declares DICT/JSON for code, REPORT/HTML/MERMAID for people The Architect's choice, accepted by the owner. Supersedes the edge table of 5fbc3c44. - Asset-Graph no longer declares TABLE. A TABLE (or LIST, MD, FORM, ALL) request is refused with words naming the declared formats; a named NO_TABLE_FALLBACK set stops the generic TABLE->DICT fallback for this spec only. - DICT is the asset itself with its graph fields; JSON is the full graph response; REPORT and HTML render the asset's fields and graphs; MERMAID is the graph. - pyegeria/view/asset_graph.py is trimmed to the edge/node helpers kept for the Wave 3 edge-table spec; no spec uses them yet (tested directly). - Keeps the P3 fix: a fetch by GUID no longer says "search string"; a search REPORT still names its search string. - Tests, docs and the 6.2.28 note updated; the note says the edge table is planned as its own spec in Wave 3. Signed-off-by: Dan Wolfson --- docs/output-formats-and-report-specs.md | 12 +- docs/release-notes/6.2.28.md | 22 ++-- pyegeria/omvs/asset_catalog.py | 18 +-- pyegeria/view/asset_graph.py | 100 ++------------- pyegeria/view/base_report_formats.py | 41 +++--- pyegeria/view/output_formatter.py | 16 ++- tests/micro-tests/test_asset_graph_spec.py | 139 +++++++++++---------- 7 files changed, 135 insertions(+), 213 deletions(-) diff --git a/docs/output-formats-and-report-specs.md b/docs/output-formats-and-report-specs.md index ead72470..ec5a454e 100644 --- a/docs/output-formats-and-report-specs.md +++ b/docs/output-formats-and-report-specs.md @@ -1258,18 +1258,16 @@ Read it left to right: *the check* (1, names), *the thing named* (`ServerClient. 6.2.28 fixed both, as the words pointed: `Asset-Graph` now calls `AssetCatalog.get_asset_graph_by_guid` (parameter `guid`), and `Data-Classes` calls `DataDesigner.find_data_value_specifications` with `metadata_element_subtypes=["DataClass"]` (a DataClass is a DataValueSpecification subtype and shares its search). -**A graph has a shape per output format (`Asset-Graph`, 6.2.28).** A graph is not a list of elements, so `Asset-Graph` does not render one row per element, and never one row holding mermaid text. Each format it declares gets the shape that fits it (`pyegeria/view/asset_graph.py`): +**What `Asset-Graph` returns (6.2.28).** It declares DICT and JSON for code, and REPORT, HTML and MERMAID for people: | Output format | Shape | |---|---| -| `DICT`, `TABLE` | One row per edge: `From Display Name`, `From Type`, `From GUID`, `Relationship`, `To Display Name`, `To Type`, `To GUID`. The asset's own relationships are included, each relationship is listed once (by relationship GUID), and rows are sorted, so their order does not depend on Egeria's. Paging (`start_from`, `page_size`) is Egeria's, on the graph request. | -| `LIST` | The nodes, as a markdown table: `Display Name`, `Type`, `GUID`, `Role` (`asset`, `anchored`, `related`). | -| `REPORT`, `MD` | The asset summary, its graph (plus the anchor and action graphs when Egeria returns them) as mermaid, and the edge table. | -| `HTML` | The `REPORT` document rendered to HTML. | -| `MERMAID` | The graph. | +| `DICT` | One row: the asset itself, with its own fields and its graph fields (`Mermaid Graph`, `Anchor Graph`, `Action Graph`, `Field Level Lineage Graph`) as text. | | `JSON` | The full graph response. | +| `REPORT`, `HTML` | The asset's fields, with the asset, anchor and action graphs rendered as mermaid. A fetch by GUID is not a search, so the report does not say "found from the search string". | +| `MERMAID` | The asset graph. | -`FORM` (a Dr.Egeria update form) and `ALL` are not declared; asking for them is an error that names the declared formats. +`TABLE`, `LIST`, `MD`, `FORM` and `ALL` are not declared, and asking for them is an error that names the declared formats. `Asset-Graph` is in `NO_TABLE_FALLBACK`, so `TABLE` does not fall back to the DICT row: a table of a graph is its edges, and that edge table is planned as its own spec in Wave 3, built by a processor stage (`pyegeria/view/asset_graph.py` holds the edge helper it will use). > **Planned, not shipped.** Report specs held in Egeria itself (synced, cached and addressed as `egeria:...`) are being built in a first stage; see `portal-docs/Internals/report-spec-pipeline-model.md` (v5.5) in egeria-workspaces. This section describes only specs loaded from files, entry points and the runtime registry. diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index 6dc32f44..fc0233fc 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -10,16 +10,18 @@ `DataDesigner.find_data_value_specifications` restricted to the `DataClass` subtype (`metadata_element_subtypes=["DataClass"]`). The load-time census is now 437 specs: 376 runnable, 61 format-only, none unrunnable (6.2.27: 374 runnable, 2 unrunnable). -- **`Asset-Graph` gives each output format a shape that fits a graph.** DICT and TABLE are an - edge table: one row per edge, with the from element (display name, type, GUID), the relationship - type, and the to element. It includes the asset's own relationships, lists each relationship - once, and is sorted, so the order is deterministic. LIST is the nodes. REPORT and MD are the - asset summary, its graph(s) as mermaid and the edge table; HTML renders that. MERMAID is the - graph. JSON is the full graph response. No format returns one row of mermaid text. A by-GUID - REPORT no longer says "found from the search string". FORM and ALL are not declared; asking - for them is an error that names the declared formats. The anchor graph's misspelt column key - (`anchorMermaidGRaph`) is corrected. +- **`Asset-Graph` renders the asset graph.** It declares DICT and JSON for code, and REPORT, + HTML and MERMAID for people. DICT is one row, the asset itself with its own fields and its graph + fields. JSON is the full graph response. REPORT and HTML show the asset's fields with its + asset, anchor and action graphs rendered as mermaid. MERMAID is the asset graph. The anchor + graph's misspelt column key (`anchorMermaidGRaph`) is corrected, and an Action Graph column is + added. TABLE, LIST, MD, FORM and ALL are not declared; asking for them is an error that names + the declared formats, and TABLE does not fall back to the DICT row (`NO_TABLE_FALLBACK`). A table + of a graph is its edges; that edge table is planned as its own spec in Wave 3. +- **A REPORT names a search string only when there was one.** A fetch by GUID, or a find with no + search string, no longer says "found from the search string: `All`" (or `Members`). - **HTML output renders markdown tables.** The HTML renderer had GFM tables switched off, so a - markdown table in a REPORT came out as text; it is now a table. + markdown table in a REPORT came out as text, although the page's CSS styles tables; it is now + a table. - **`exec_report_spec` no longer returns `None` when a find method raises `ValueError`.** It logs the error and raises it, so the caller sees the words. diff --git a/pyegeria/omvs/asset_catalog.py b/pyegeria/omvs/asset_catalog.py index 53b6681a..d359a379 100644 --- a/pyegeria/omvs/asset_catalog.py +++ b/pyegeria/omvs/asset_catalog.py @@ -177,20 +177,10 @@ def _generate_asset_output(self, elements: dict | list[dict], filter_string: Opt def _generate_asset_graph_output(self, elements: dict | list[dict], filter_string: Optional[str] = None, element_type_name: Optional[str] = None, output_format: str = "DICT", report_spec: dict | str | None = None, **kwargs) -> str | list[dict]: - """Shape an asset graph for `output_format` (pyegeria/view/asset_graph.py): DICT/TABLE one row - per edge, LIST the nodes, REPORT/MD/HTML the asset summary with its graph and edge table. - MERMAID (the graph) and any other format take the generic asset path.""" - from pyegeria.view import asset_graph - - shaped = asset_graph.render(elements, output_format) - if shaped is None: - return self._generate_asset_output(elements, filter_string, element_type_name, output_format, - report_spec, **kwargs) - if isinstance(report_spec, str) and isinstance(shaped, str): - # Provenance footer for an Egeria-held spec on REPORT/MD/HTML (RS-EGERIA-TIER §7a). - from pyegeria.view.base_report_formats import add_spec_footer - shaped = add_spec_footer(shaped, report_spec, output_format) - return shaped + """Output for get_asset_graph_by_guid: the generic asset output, without a search string. A fetch + by GUID is not a search, so its REPORT does not say "found from the search string" (6.2.28).""" + return self._generate_asset_output(elements, None, element_type_name, output_format, report_spec, + **kwargs) @dynamic_catch async def _async_find_in_asset_domain( diff --git a/pyegeria/view/asset_graph.py b/pyegeria/view/asset_graph.py index 38eac6d7..c063a438 100644 --- a/pyegeria/view/asset_graph.py +++ b/pyegeria/view/asset_graph.py @@ -2,27 +2,18 @@ SPDX-License-Identifier: Apache-2.0 Copyright Contributors to the ODPi Egeria project. -Shapes for an Egeria asset graph (AssetCatalog.get_asset_graph_by_guid, the `Asset-Graph` report -spec), one per output format (pyegeria 6.2.28): +Edges and nodes of an Egeria asset graph (the response of AssetCatalog.get_asset_graph_by_guid). -- DICT / TABLE: one row per edge: the from element (display name, type, GUID), the relationship - type, and the to element (display name, type, GUID). Includes the asset's own relationships. -- LIST: the nodes, as a markdown table: the asset, the elements anchored to it, and every element - an edge reaches. -- REPORT / MD: the asset summary, its graph (mermaid) and the edge table, as markdown. HTML is the - same document rendered to HTML. -- MERMAID: the graph (handled by the generic mermaid path; see AssetCatalog). -- JSON: the full graph response, unchanged. - -A graph is never one row of mermaid text. +A helper kept for the planned Wave 3 edge-table spec (a processor stage that turns a graph into one +row per edge). No report spec uses it yet: `Asset-Graph` declares DICT and JSON for code and REPORT, +HTML and MERMAID for people (6.2.28). How the response holds edges: `relationships` lists the edges among the asset and its anchored elements, each with `startingElementGUID` (one end), `relatedElement` (the other end) and `relatedElementAtEnd1` (which end that is). The asset's own relationships are keyed lists at the top level (for example `governedBy`, `requestedActions`), each item a `relatedElement` with `relatedElementAtEnd1`, the asset being the other end. An edge reported twice (the same -relationship GUID) is listed once. Rows are sorted, so the order never depends on the order Egeria -returned them in. Paging (`start_from`, `page_size`) is Egeria's, on the graph request. +relationship GUID) is listed once, and rows are sorted, so the order never depends on Egeria's. Pure functions: no I/O, no client. """ @@ -30,7 +21,7 @@ from typing import Any, Dict, List, Optional, Tuple -#: DICT/TABLE row keys, in column order: the edge table. +#: Edge row keys, in column order. EDGE_COLUMNS: List[Tuple[str, str]] = [ ("From Display Name", "from_display_name"), ("From Type", "from_type"), @@ -41,7 +32,7 @@ ("To GUID", "to_guid"), ] -#: LIST columns: the node table. +#: Node keys, in column order. NODE_COLUMNS: List[Tuple[str, str]] = [ ("Display Name", "display_name"), ("Type", "type_name"), @@ -49,25 +40,6 @@ ("Role", "role"), ] -#: The REPORT/MD asset summary: (label, how to read it from the asset element). -_SUMMARY_FIELDS = [ - ("Display Name", ("properties", "displayName")), - ("Qualified Name", ("properties", "qualifiedName")), - ("Description", ("properties", "description")), - ("Type", ("elementHeader", "type", "typeName")), - ("GUID", ("elementHeader", "guid")), - ("Created By", ("elementHeader", "versions", "createdBy")), - ("Create Time", ("elementHeader", "versions", "createTime")), - ("Updated By", ("elementHeader", "versions", "updatedBy")), - ("Update Time", ("elementHeader", "versions", "updateTime")), - ("Version", ("elementHeader", "versions", "version")), -] - -#: The graphs the REPORT shows, in order, when the response carries them. -_REPORT_GRAPHS = [("Graph", "mermaidGraph"), ("Anchor Graph", "anchorMermaidGraph"), - ("Action Graph", "actionMermaidGraph"), ("Field Level Lineage Graph", "fieldLevelLineageGraph")] - - def _dig(obj: Any, path) -> Any: for key in path: if not isinstance(obj, dict): @@ -158,61 +130,3 @@ def order(r): for r in out: r.pop("_relationship_guid") return out - - -def _md_cell(value: Any) -> str: - return str(value if value is not None else "").replace("|", "\\|").replace("\n", " ") - - -def _md_table(columns: List[str], rows: List[Dict[str, Any]]) -> str: - lines = ["| " + " | ".join(columns) + " |", "|" + "---|" * len(columns)] - lines += ["| " + " | ".join(_md_cell(r.get(c)) for c in columns) + " |" for r in rows] - return "\n".join(lines) - - -def render_nodes_list(graph: Dict[str, Any]) -> str: - """LIST: the nodes as a markdown table.""" - nodes = graph_nodes(graph) - rows = [{label: n[key] for label, key in NODE_COLUMNS} for n in nodes] - name = nodes[0]["display_name"] or nodes[0]["guid"] - return f"### Asset Graph nodes: {name} ({len(nodes)})\n\n" + _md_table([c for c, _ in NODE_COLUMNS], rows) + "\n" - - -def render_report(graph: Dict[str, Any]) -> str: - """REPORT/MD: the asset summary, its graph(s) and the edge table, as markdown.""" - from pyegeria.view.output_formatter import _format_mermaid_value - - asset = _node(graph) - name = asset["display_name"] or asset["guid"] - parts = [f"# Asset Graph: {name}", "", "## Asset", ""] - summary = [(label, _dig(graph, path)) for label, path in _SUMMARY_FIELDS] - parts.append(_md_table(["Property", "Value"], - [{"Property": label, "Value": value} for label, value in summary - if value not in (None, "")])) - for title, key in _REPORT_GRAPHS: - if graph.get(key): - parts += ["", f"## {title}", "", _format_mermaid_value(graph[key])] - edges = graph_edges(graph) - parts += ["", f"## Relationships ({len(edges)})", ""] - parts.append(_md_table([c for c, _ in EDGE_COLUMNS], edges) if edges else "No relationships.") - return "\n".join(parts) + "\n" - - -def render(graph: Any, output_format: str) -> Any: - """The shape for `output_format` (DICT, TABLE, LIST, REPORT, MD, HTML), or None when this module - has no shape for it (the caller uses its generic path). A list of graphs is shaped one by one: - rows concatenated, documents joined.""" - fmt = (output_format or "").upper() - if fmt not in {"DICT", "TABLE", "LIST", "REPORT", "MD", "HTML"}: - return None - graphs = graph if isinstance(graph, list) else [graph] - graphs = [g for g in graphs if isinstance(g, dict)] - if fmt in {"DICT", "TABLE"}: - return [row for g in graphs for row in graph_edges(g)] - if fmt == "LIST": - return "\n".join(render_nodes_list(g) for g in graphs) - report = "\n".join(render_report(g) for g in graphs) - if fmt == "HTML": - from pyegeria.view.output_formatter import markdown_to_html - return markdown_to_html(report) - return report diff --git a/pyegeria/view/base_report_formats.py b/pyegeria/view/base_report_formats.py index 5ab2c006..73f17f92 100644 --- a/pyegeria/view/base_report_formats.py +++ b/pyegeria/view/base_report_formats.py @@ -628,10 +628,7 @@ def _user_report_specs_dir() -> str: TIME_PARAMETERS = ["as_of_time", "effective_time"] -from pyegeria.view.asset_graph import EDGE_COLUMNS as ASSET_GRAPH_EDGE_COLUMNS # noqa: E402 -from pyegeria.view.asset_graph import NODE_COLUMNS as ASSET_GRAPH_NODE_COLUMNS # noqa: E402 - -#: The Asset-Graph spec's REPORT/MD/HTML/JSON columns: the asset's own fields, then the graphs +#: The Asset-Graph spec's columns: the asset's own fields, then the graphs #: get_asset_graph_by_guid returns at the top level of its response (keys as Egeria writes them). ASSET_GRAPH_COLUMNS = COMMON_COLUMNS + COMMON_METADATA_COLUMNS + [ Column(name="Classifications", key='classifications'), @@ -1425,22 +1422,18 @@ def _user_report_specs_dir() -> str: "(AssetCatalog.get_asset_graph_by_guid)."), annotations={}, # No specific annotations family="AssetCatalog", - # A graph has a shape per output format (6.2.28; pyegeria/view/asset_graph.py): - # - DICT/TABLE: one row per edge (from element, relationship type, to element), the asset's own - # relationships included, sorted, each relationship once; - # - LIST: the nodes (the asset, its anchored elements, every element an edge reaches); - # - REPORT/MD/HTML: the asset summary, its graph(s) and the edge table; - # - MERMAID: the graph; - # - JSON: the full graph response. - # FORM is not declared: it is a Dr.Egeria update form, which a read-only graph does not fit. ALL is - # not declared either, so a format not listed here is an error with words (the executor names the - # declared formats), never a silent None and never one row of mermaid text. + # Declared formats (6.2.28): DICT and JSON for code, REPORT, HTML and MERMAID for people. + # - DICT: the asset itself, one row, with its own fields and its graph fields (as text); + # - JSON: the full graph response; + # - REPORT/HTML: the asset's fields with the asset, anchor and action graphs rendered as mermaid; + # - MERMAID: the asset graph. + # TABLE, LIST, MD, FORM and ALL are not declared: a table of a graph is its edges, which is planned + # as its own spec in Wave 3 (built by a processor stage; pyegeria/view/asset_graph.py holds the + # edge helper); MD and FORM are Dr.Egeria update forms; ALL rendered only the asset's name. A + # format not listed here is an error with words (the executor names the declared formats). formats=[ - Format(types=["DICT", "TABLE"], - attributes=[Column(name=label, key=key) for label, key in ASSET_GRAPH_EDGE_COLUMNS]), - Format(types=["LIST"], - attributes=[Column(name=label, key=key) for label, key in ASSET_GRAPH_NODE_COLUMNS]), - Format(types=["REPORT", "MD", "HTML", "JSON"], attributes=ASSET_GRAPH_COLUMNS), + Format(types=["DICT", "JSON"], attributes=ASSET_GRAPH_COLUMNS), + Format(types=["REPORT", "HTML"], attributes=ASSET_GRAPH_COLUMNS), Format(types=["MERMAID"], attributes=[Column(name="Mermaid Graph", key='mermaidGraph')]), ], action=ActionParameter( @@ -4878,6 +4871,12 @@ def load_egeria_report_specs( return True +#: Specs whose TABLE requests are refused instead of falling back to their DICT format. A table of +#: an asset graph is its edges, not the asset's one DICT row; that edge table is planned as its own +#: spec in Wave 3 (6.2.28). The label is matched with any tier prefix (egeria:/builtin:) removed. +NO_TABLE_FALLBACK = frozenset({"Asset-Graph"}) + + def _select_from_registry(registry: FormatSetDict, kind: str, output_type: str) -> dict | None: # Normalize if output_type is None: @@ -4933,8 +4932,8 @@ def _select_from_registry(registry: FormatSetDict, kind: str, output_type: str) output_struct["formats"] = fmt.dict() return output_struct - # Fallback for TABLE -> DICT - if output_type == "TABLE": + # Fallback for TABLE -> DICT, except for the specs in NO_TABLE_FALLBACK, which refuse TABLE. + if output_type == "TABLE" and split_tier_prefix(resolved_key or kind)[1] not in NO_TABLE_FALLBACK: for fmt in element.formats: if "DICT" in fmt.types: output_struct["formats"] = fmt.dict() diff --git a/pyegeria/view/output_formatter.py b/pyegeria/view/output_formatter.py index d78d2337..5025971b 100644 --- a/pyegeria/view/output_formatter.py +++ b/pyegeria/view/output_formatter.py @@ -480,8 +480,12 @@ def make_preamble(obj_type: str, search_string: str, output_format: str = 'MD') preamble += f"\t {obj_type} found from the search string: `{search_string}`\n\n" return preamble, elements_action elif output_format == "REPORT": - elements_md += (f"# {obj_type} Report - created at {datetime.now().strftime('%Y-%m-%d %H:%M')}\n" - f"\t{obj_type} found from the search string: `{search_string}`\n\n") + elements_md += f"# {obj_type} Report - created at {datetime.now().strftime('%Y-%m-%d %H:%M')}\n" + # A fetch by GUID is not a search: name a search string only when there is one (6.2.28). + if search_string: + elements_md += f"\t{obj_type} found from the search string: `{search_string}`\n\n" + else: + elements_md += "\n" elements_action = None return elements_md, elements_action else: @@ -2275,7 +2279,9 @@ def generate_output(elements: Union[Dict, List[Dict]], if isinstance(elements, dict): elements = [elements] - # Handle empty search string + # Handle empty search string. The REPORT preamble names a search string only when the caller + # searched (a fetch by GUID is not a search; 6.2.28), so remember whether one was given. + searched_for = search_string or None if search_string is None or search_string == '': search_string = "All" @@ -2293,7 +2299,7 @@ def generate_output(elements: Union[Dict, List[Dict]], elif output_format in ('HTML', 'GRAPH'): report_output = generate_output( elements=elements, - search_string=search_string, + search_string=searched_for, entity_type=entity_type, output_format="REPORT", extract_properties_func=extract_properties_func, @@ -2322,7 +2328,7 @@ def generate_output(elements: Union[Dict, List[Dict]], if include_preamble: elements_md, elements_action = make_preamble( obj_type=target_type, - search_string=search_string, + search_string=searched_for if output_format == "REPORT" else search_string, output_format=output_format ) diff --git a/tests/micro-tests/test_asset_graph_spec.py b/tests/micro-tests/test_asset_graph_spec.py index b3c14aa5..b0b7086c 100644 --- a/tests/micro-tests/test_asset_graph_spec.py +++ b/tests/micro-tests/test_asset_graph_spec.py @@ -1,6 +1,8 @@ -"""The Asset-Graph report spec gives each output format a shape that fits a graph (6.2.28): -DICT/TABLE an edge table, LIST the nodes, REPORT/MD/HTML the asset summary with its graph and -edge table, MERMAID the graph, JSON the full response. +"""The Asset-Graph report spec (6.2.28): DICT and JSON for code, REPORT, HTML and MERMAID for people. +DICT is the asset itself with its graph fields, JSON the full graph response, REPORT/HTML the +asset's fields with its graphs rendered, MERMAID the graph. Any other format is refused with words. +The edge helper (pyegeria/view/asset_graph.py), kept for the Wave 3 edge-table spec, is tested +directly at the end, not through the spec. Recorded input: `data/asset_graph_by_guid_response.json`, one AssetCatalog.get_asset_graph_by_guid response from qs-view-server (read only). The executor tests run the real path, @@ -24,7 +26,9 @@ RECORDED = json.loads((Path(__file__).parent / "data" / "asset_graph_by_guid_response.json").read_text())["response"] GUID = RECORDED["elementHeader"]["guid"] NAME = RECORDED["properties"]["displayName"] -DECLARED = ["DICT", "TABLE", "LIST", "REPORT", "MD", "HTML", "JSON", "MERMAID"] +DECLARED = ["DICT", "JSON", "REPORT", "HTML", "MERMAID"] +GRAPH_COLUMNS = {"Mermaid Graph": "mermaidGraph", "Anchor Graph": "anchorMermaidGraph", + "Action Graph": "actionMermaidGraph"} EDGE_KEYS = ["From Display Name", "From Type", "From GUID", "Relationship", "To Display Name", "To Type", "To GUID"] @@ -93,109 +97,118 @@ def _run(fmt): user="tester", user_pass="unused") -def test_the_spec_declares_a_shape_per_format_and_no_form_or_all(): +def test_the_spec_declares_dict_json_report_html_mermaid_and_the_corrected_key(): spec = brf.base_report_specs["Asset-Graph"] assert sorted(t for f in spec.formats for t in f.types) == sorted(DECLARED) - by_type = {t: f for f in spec.formats for t in f.types} - assert [c.name for c in by_type["DICT"].attributes] == EDGE_KEYS - assert [c.name for c in by_type["LIST"].attributes] == ["Display Name", "Type", "GUID", "Role"] keys = {c.key for f in spec.formats for c in f.attributes} - assert "anchorMermaidGRaph" not in keys and "anchorMermaidGraph" in keys + assert "anchorMermaidGRaph" not in keys + assert {"mermaidGraph", "anchorMermaidGraph", "actionMermaidGraph"} <= keys assert spec.action.function == "AssetCatalog.get_asset_graph_by_guid" assert spec.action.required_params == ["guid"] -@pytest.mark.parametrize("fmt", ["DICT", "TABLE"]) -def test_dict_and_table_are_one_row_per_edge(offline_asset_catalog, fmt): - result = _run(fmt) +def test_dict_is_one_row_the_asset_itself_with_its_graph_fields(offline_asset_catalog): + result = _run("DICT") assert result["kind"] == "json" rows = result["data"] - assert all(list(r.keys()) == EDGE_KEYS for r in rows) - assert {(r["From GUID"], r["Relationship"], r["To GUID"]) for r in rows} == EXPECTED_EDGES - assert len(rows) == len(EXPECTED_EDGES) # each relationship once - names = {r["From GUID"]: (r["From Display Name"], r["From Type"]) for r in rows} - assert names[GAPI] == (NAME, "GovernanceActionProcessInstance") - assert not any("mermaid" in str(v) or "flowchart" in str(v) for r in rows for v in r.values()) + assert isinstance(rows, list) and len(rows) == 1 # the asset, not its related elements + row = rows[0] + assert row["GUID"] == GUID and row["Display Name"] == NAME + for column, key in GRAPH_COLUMNS.items(): + assert row[column] == RECORDED[key], column assert offline_asset_catalog and offline_asset_catalog[0][1].endswith(f"/assets/{GUID}/as-graph") -def test_edge_order_is_deterministic_whatever_order_egeria_returns(): - from pyegeria.view import asset_graph - shuffled = copy.deepcopy(RECORDED) - shuffled["relationships"].reverse() - shuffled = dict(reversed(list(shuffled.items()))) - assert asset_graph.graph_edges(shuffled) == asset_graph.graph_edges(RECORDED) - - -def test_list_is_the_nodes(offline_asset_catalog): - result = _run("LIST") - assert result["kind"] == "text" - content = result["content"] - assert "| Display Name | Type | GUID | Role |" in content - for guid in (GAPI, ENGINE, CONNECTOR, PROCESS, STOCK, STAGING): - assert content.count(guid) == 1, guid - assert f"| {NAME} | GovernanceActionProcessInstance | {GAPI} | asset |" in content - assert "| anchored |" in content and "```mermaid" not in content +def test_json_is_the_full_graph(offline_asset_catalog): + result = _run("JSON") + assert result["kind"] == "json" and result["data"] == RECORDED -@pytest.mark.parametrize("fmt", ["REPORT", "MD"]) -def test_report_and_md_are_the_summary_the_graph_and_the_edge_table(offline_asset_catalog, fmt): - result = _run(fmt) - assert result["kind"] == "text" +def test_report_carries_the_asset_fields_and_every_graph(offline_asset_catalog): + result = _run("REPORT") + assert result["kind"] == "text" and result["content"] content = result["content"] - assert content.startswith(f"# Asset Graph: {NAME}") - assert "## Asset" in content and f"| GUID | {GUID} |" in content - assert "## Graph" in content and content.count("```mermaid") == 3 # graph, anchor graph, action graph - assert f"## Relationships ({len(EXPECTED_EDGES)})" in content - assert "| " + " | ".join(EDGE_KEYS) + " |" in content - # Architect P3: a by-GUID fetch is not a search. + assert NAME in content and GUID in content + assert content.count("```mermaid") == len(GRAPH_COLUMNS) + for column in GRAPH_COLUMNS: + assert f"### {column}" in content, column + # Architect P3: a fetch by GUID is not a search. assert "search string" not in content and "Members" not in content -def test_html_is_the_report_rendered(offline_asset_catalog): +def test_html_carries_the_graphs(offline_asset_catalog): result = _run("HTML") assert result["kind"] == "text" and result["mime"] == "text/html" content = result["content"] - assert " 1 or not any("```mermaid" in str(v) for v in result["data"][0].values()) -def test_a_graph_with_no_edges_has_an_empty_edge_table_and_says_so(): +def test_a_search_report_still_names_its_search_string(): + catalog = object.__new__(AssetCatalog) + out = catalog._generate_asset_output(elements=copy.deepcopy(RECORDED), filter_string="orders", + element_type_name="Asset", output_format="REPORT", + report_spec="Asset-Graph") + assert "found from the search string: `orders`" in out + + +def test_other_specs_keep_the_table_to_dict_fallback(): + # Data-Structures declares DICT and neither TABLE nor ALL: TABLE still gets its DICT format. + table = brf.select_report_spec("Data-Structures", "TABLE") + assert table is not None and "DICT" in table["formats"]["types"] + assert brf.select_report_spec("Asset-Graph", "TABLE") is None + assert brf.select_report_spec("builtin:Asset-Graph", "TABLE") is None + + +# ── The edge helper kept for the Wave 3 edge-table spec (not used by Asset-Graph) ── + +def test_edge_helper_lists_each_relationship_once_with_its_direction(): + from pyegeria.view import asset_graph + rows = asset_graph.graph_edges(RECORDED) + assert all(list(r.keys()) == EDGE_KEYS for r in rows) + assert {(r["From GUID"], r["Relationship"], r["To GUID"]) for r in rows} == EXPECTED_EDGES + assert len(rows) == len(EXPECTED_EDGES) + + +def test_edge_helper_order_is_deterministic_whatever_order_egeria_returns(): + from pyegeria.view import asset_graph + shuffled = copy.deepcopy(RECORDED) + shuffled["relationships"].reverse() + shuffled = dict(reversed(list(shuffled.items()))) + assert asset_graph.graph_edges(shuffled) == asset_graph.graph_edges(RECORDED) + + +def test_node_helper_lists_the_asset_first_then_anchored_then_related(): from pyegeria.view import asset_graph - lone = {k: v for k, v in RECORDED.items() if k not in ("relationships", "governedBy", "requestedActions")} - assert asset_graph.graph_edges(lone) == [] - assert "## Relationships (0)" in asset_graph.render(lone, "REPORT") - assert "No relationships." in asset_graph.render(lone, "REPORT") + nodes = asset_graph.graph_nodes(RECORDED) + assert nodes[0]["guid"] == GAPI and nodes[0]["role"] == "asset" + assert {n["guid"] for n in nodes} == {GAPI, ENGINE, CONNECTOR, PROCESS, STOCK, STAGING} + assert [n["role"] for n in nodes] == ["asset", "anchored"] + ["related"] * 4 From 88ab7775245d27876cc0f3e73aab14abff55e10a Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 12:11:37 +0000 Subject: [PATCH 11/14] feat: generic-search report specs use ClassificationExplorer with their own type The 40 Dr.Egeria *-DrE-* specs that called MetadataExpert.find_metadata_elements_with_string with no type now call ClassificationExplorer.find_elements_by_property_value (owner: it returns a more standard shape). Only find_method changed in the 20 compact commands (Spec Editor); gen_report_specs derives each spec's metadata_element_type from the command's OM_TYPE (OpenMetadataRoot when empty) and property_names displayName/qualifiedName. - The 9 technology commands (Kafka, Postgres server/database, Unity Catalog) also get deployed_implementation_type, from one table (automated_curation.ELEMENT_TEMPLATE_TECHNOLOGY) that their create-from-template calls now use too, plus a Deployed Implementation Type column. '*' lists exactly that technology (matched by Egeria, so paging holds); a search string matches names within the supertype. - find_elements_by_property_value: '*' with a type lists that type via get_elements, at most 100 per call (caller's page_size, default 100); '*' with no type or OpenMetadataRoot/Referenceable is refused: "give a search string or a narrower type" (a whole-repository listing helped run the quickstart platform out of heap on 2026-11-09). - find_metadata_elements_with_string refuses an untyped '*' in words instead of passing Egeria's "searchString is null" through. - Report executor: a run's search_string reaches a property_value method; a caller's parameter the report does not take warns (UnknownFilterWarning); spec_params still win on a collision (docs say so); the sync exec_report_spec re-raises ValueError instead of printing it and returning None. - Tests: census (every generic-search spec names a type), generator derivation, technology column, '*' paths and caps, refusals, both type spellings through ClassificationExplorer, executor warnings. Signed-off-by: Dan Wolfson --- commands/tech/gen_report_specs.py | 45 +- docs/release-notes/6.2.28.md | 21 + docs/search-and-get-filters.md | 29 + .../commands_action_author.json | 2 +- .../commands_asset_maker_compact.json | 24 +- .../commands_automation_compact.json | 2 +- .../commands_report_compact.json | 4 +- .../commands_schema_maker_compact.json | 8 +- md_processing/data/generated_format_sets.json | 1328 ++++++++++++++--- pyegeria/omvs/automated_curation.py | 35 +- pyegeria/omvs/classification_explorer.py | 54 +- pyegeria/omvs/metadata_expert.py | 6 + pyegeria/view/base_report_formats.py | 80 +- pyegeria/view/format_set_executor.py | 63 +- .../test_metadata_expert_report_spec_kwarg.py | 9 +- .../test_search_get_filter_kwargs.py | 164 ++ 16 files changed, 1548 insertions(+), 326 deletions(-) diff --git a/commands/tech/gen_report_specs.py b/commands/tech/gen_report_specs.py index 938ffa0e..aa8ae615 100644 --- a/commands/tech/gen_report_specs.py +++ b/commands/tech/gen_report_specs.py @@ -296,6 +296,45 @@ def _build_generated_formats(columns: List[Column], default_types: Optional[List return formats +# Report specs whose find method is a generic, all-types search. Each gets its command's own +# type from OM_TYPE (OpenMetadataRoot when the command has none), so the spec cannot list every +# element of the repository -- and with '*' Egeria refuses an untyped search outright. +GENERIC_SEARCH_METHODS = { + "ClassificationExplorer.find_elements_by_property_value", + "MetadataExpert.find_metadata_elements_with_string", +} +_TYPE_FILTER_KEYS = {"metadata_element_type", "metadata_element_subtypes", "include_only_classified_elements", + "classification_names"} +GENERIC_PROPERTY_NAMES = ["displayName", "qualifiedName"] +TECHNOLOGY_COLUMN = Column(name="Deployed Implementation Type", key="deployed_implementation_type") + + +def _technology_for_command(cmd_key: str) -> Optional[str]: + """The deployed implementation type a Create command's element is made with, from the same + table Dr.Egeria's create-from-template calls use ("Create UC Table Element" -> "uc_table").""" + from pyegeria.omvs.automated_curation import ELEMENT_TEMPLATE_TECHNOLOGY + + m = re.fullmatch(r"Create (.+) Element", cmd_key.strip()) + if not m: + return None + return ELEMENT_TEMPLATE_TECHNOLOGY.get(re.sub(r"\s+", "_", m.group(1).strip().lower())) + + +def _generic_search_constraints(cmd_key: str, cmd_obj: dict, find_method: str, constraints: dict) -> dict: + """spec_params for a generic-search spec: the command's type (and technology), derived here.""" + if find_method not in GENERIC_SEARCH_METHODS: + return constraints + out = dict(constraints or {}) + if not _TYPE_FILTER_KEYS & set(out): + out["metadata_element_type"] = (cmd_obj.get("OM_TYPE") or "").strip() or "OpenMetadataRoot" + if find_method.startswith("ClassificationExplorer."): + out.setdefault("property_names", list(GENERIC_PROPERTY_NAMES)) + technology = _technology_for_command(cmd_key) + if technology: + out.setdefault("deployed_implementation_type", technology) + return out + + def _derive_target_type(cmd_key: str, cmd_obj: dict) -> str: display_name = str(cmd_obj.get("display_name", "")).strip() if isinstance(cmd_key, str): @@ -395,7 +434,11 @@ def build_format_sets_from_commands( continue find_method = cmd_obj.get("find_method") or "" - constraints = _safe_parse_constraints(cmd_obj.get("find_constraints")) + constraints = _generic_search_constraints( + cmd_key, cmd_obj, find_method, _safe_parse_constraints(cmd_obj.get("find_constraints"))) + if "deployed_implementation_type" in constraints and \ + all(c.key != TECHNOLOGY_COLUMN.key for c in columns): + columns = [*columns, Column(**TECHNOLOGY_COLUMN.model_dump())] extra_find = cmd_obj.get("extra_find") or "" extra_constraints = _safe_parse_constraints(cmd_obj.get("extra_constraints")) action = None diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index 953541bd..47113f5d 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -38,6 +38,27 @@ a `DeprecationWarning` naming the new one; giving old and new with different values raises `TypeError`. Report specs using the old names keep working without warnings. +- **Generic-search report specs name their type.** The 40 Dr.Egeria `*-DrE-*` specs that + called `MetadataExpert.find_metadata_elements_with_string` with no type (Embedded-Process, + Report, Schema-Type, the Asset Maker `*-Element-DrE-*` specs, ...) now call + `ClassificationExplorer.find_elements_by_property_value` with their command's own type, which + the generator takes from the command's `OM_TYPE` (`OpenMetadataRoot` for the generic Element + command). `'*'` used to fail ("searchString is null"); it now lists the elements of that type. + A search string used to match every type; it now matches only that type. + - The 9 technology commands (Kafka, Postgres server/database, the Unity Catalog elements) also + pass their `deployedImplementationType` (from the same table Dr.Egeria's create-from-template + calls use), so `'*'` lists exactly that technology. **Limit:** a search string matches + `displayName`/`qualifiedName` within the supertype and may include other technologies; those + specs show a *Deployed Implementation Type* column. + - `'*'` with no type or a root type (`OpenMetadataRoot`, `Referenceable`) is refused: "give a + search string or a narrower type" (a whole-repository listing helped run the quickstart + platform out of heap on 2026-11-09). So `Element-DrE-*` works only with a search string. + - `'*'` lists a type at most 100 elements per call (the caller's `page_size`, default 100); + page on with `start_from`. +- **A misspelt report parameter warns.** `run_report` / `exec_report_spec` drop a caller's + parameter the report does not take; they now say so with `UnknownFilterWarning`. When a + caller's parameter collides with the spec's `spec_params`, the spec's value wins (unchanged). + ### Behaviour changes: some reports now return fewer rows These reports used to ignore part of their filter and list everything; they now return only diff --git a/docs/search-and-get-filters.md b/docs/search-and-get-filters.md index 76921e60..0106bee8 100644 --- a/docs/search-and-get-filters.md +++ b/docs/search-and-get-filters.md @@ -118,6 +118,35 @@ through the report executor, with the method's name in the message: ) ``` +### Which wins: a report spec's `spec_params` or the caller's parameters + +A report spec's `spec_params` are pinned: when a caller passes the same parameter to +`run_report` / `exec_report_spec`, **the spec's value wins** (the spec is what the report *is*; +see the design note §9.13). A caller's parameter that the report does not take at all is +dropped, and now says so with an `UnknownFilterWarning` naming it and listing what the report +does take. + +### Generic searches name a type + +`ClassificationExplorer.find_elements_by_property_value` searches `property_names` (for report +specs: `displayName` and `qualifiedName`) within `metadata_element_type`. + +- `'*'` with a type lists the elements of that type (it calls `get_elements`), one page at a + time: the caller's `page_size`, 100 when none is given, never more than 100 per call — page on + with `start_from`. `'*'` with no type, or with a root type (`OpenMetadataRoot`, + `Referenceable`), is refused: "give a search string or a narrower type". +- `deployed_implementation_type="PostgreSQL Server"` with `'*'` lists only that technology + within the type (Egeria matches `deployedImplementationType` containing the name; the + filtering is Egeria's, so paging stays correct). +- **Limit:** with any other search string the technology is not applied — Egeria cannot + combine the two in one query — so results may include other technologies of the same + supertype (e.g. a Kafka server whose name matches, in a Postgres-Server report). The + technology report specs show a *Deployed Implementation Type* column so each row's + technology is visible. + +`MetadataExpert.find_metadata_elements_with_string("*")` with no type is refused with +"give a search string or a type" instead of passing Egeria's "searchString is null" through. + ### Notes - `None` means "not set": a filter passed as `None` never overrides the method's own default. diff --git a/md_processing/data/compact_commands/commands_action_author.json b/md_processing/data/compact_commands/commands_action_author.json index 80bc4adb..c75259fb 100644 --- a/md_processing/data/compact_commands/commands_action_author.json +++ b/md_processing/data/compact_commands/commands_action_author.json @@ -3139,7 +3139,7 @@ "upsert": true, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", diff --git a/md_processing/data/compact_commands/commands_asset_maker_compact.json b/md_processing/data/compact_commands/commands_asset_maker_compact.json index 49506ccc..60b873e7 100644 --- a/md_processing/data/compact_commands/commands_asset_maker_compact.json +++ b/md_processing/data/compact_commands/commands_asset_maker_compact.json @@ -604,7 +604,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -632,7 +632,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -656,7 +656,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -684,7 +684,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -712,7 +712,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -740,7 +740,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -765,7 +765,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -790,7 +790,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -814,7 +814,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -839,7 +839,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -868,7 +868,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -894,7 +894,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", diff --git a/md_processing/data/compact_commands/commands_automation_compact.json b/md_processing/data/compact_commands/commands_automation_compact.json index 117facbd..c1d7f643 100644 --- a/md_processing/data/compact_commands/commands_automation_compact.json +++ b/md_processing/data/compact_commands/commands_automation_compact.json @@ -846,7 +846,7 @@ "upsert": false, "attach": false, "level": "Advanced", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", diff --git a/md_processing/data/compact_commands/commands_report_compact.json b/md_processing/data/compact_commands/commands_report_compact.json index b4d65d91..3ae0059c 100644 --- a/md_processing/data/compact_commands/commands_report_compact.json +++ b/md_processing/data/compact_commands/commands_report_compact.json @@ -1297,7 +1297,7 @@ "upsert": true, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -1375,7 +1375,7 @@ "upsert": true, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", diff --git a/md_processing/data/compact_commands/commands_schema_maker_compact.json b/md_processing/data/compact_commands/commands_schema_maker_compact.json index bf602328..8c2a92e1 100644 --- a/md_processing/data/compact_commands/commands_schema_maker_compact.json +++ b/md_processing/data/compact_commands/commands_schema_maker_compact.json @@ -1339,7 +1339,7 @@ "upsert": true, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -1358,7 +1358,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -1377,7 +1377,7 @@ "upsert": true, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", @@ -1396,7 +1396,7 @@ "upsert": false, "attach": false, "level": "Basic", - "find_method": "MetadataExpert.find_metadata_elements_with_string", + "find_method": "ClassificationExplorer.find_elements_by_property_value", "find_constraints": "", "extra_find": "", "extra_constraints": "", diff --git a/md_processing/data/generated_format_sets.json b/md_processing/data/generated_format_sets.json index cab75afe..d5511ffb 100644 --- a/md_processing/data/generated_format_sets.json +++ b/md_processing/data/generated_format_sets.json @@ -7501,7 +7501,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -7517,7 +7517,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "EmbeddedProcess", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -8836,7 +8842,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -8852,7 +8858,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "EmbeddedProcess", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -23739,7 +23751,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -23755,7 +23767,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SecretsCollection", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -24046,7 +24064,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -24062,7 +24080,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SecretsCollection", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -24113,6 +24137,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -24147,6 +24179,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] }, @@ -24186,6 +24226,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -24220,12 +24268,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -24241,7 +24297,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SoftwareServer", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Apache Kafka Server" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -24292,6 +24355,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -24326,6 +24397,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] }, @@ -24365,6 +24444,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -24399,12 +24486,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -24420,7 +24515,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SoftwareServer", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Apache Kafka Server" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -24711,7 +24813,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -24727,7 +24829,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "CSVFile", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -25018,7 +25126,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -25034,7 +25142,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "CSVFile", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -25110,6 +25224,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -25176,6 +25298,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -25254,6 +25384,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -25320,12 +25458,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -25341,7 +25487,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SoftwareServer", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "PostgreSQL Server" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -25417,6 +25570,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -25483,6 +25644,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -25561,6 +25730,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -25627,12 +25804,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -25648,7 +25833,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SoftwareServer", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "PostgreSQL Server" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -25724,6 +25916,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -25790,6 +25990,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -25868,6 +26076,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -25934,12 +26150,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -25955,7 +26179,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "RelationalDatabase", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "PostgreSQL Relational Database" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -26031,6 +26262,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -26097,6 +26336,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -26175,6 +26422,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -26241,12 +26496,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -26262,7 +26525,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "RelationalDatabase", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "PostgreSQL Relational Database" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -26457,7 +26727,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -26473,7 +26743,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "DataFolder", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -26668,7 +26944,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -26684,7 +26960,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "DataFolder", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -26736,6 +27018,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -26778,6 +27068,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -26832,6 +27130,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -26874,12 +27180,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -26895,7 +27209,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SoftwareServer", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Server" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -26947,6 +27268,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -26989,6 +27318,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -27043,6 +27380,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -27085,12 +27430,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -27106,7 +27459,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SoftwareServer", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Server" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -27150,6 +27510,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -27184,6 +27552,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -27230,6 +27606,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -27264,12 +27648,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -27285,7 +27677,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SoftwareCapability", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Catalog" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -27329,6 +27728,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -27363,6 +27770,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -27409,6 +27824,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -27443,12 +27866,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -27464,7 +27895,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SoftwareCapability", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Catalog" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -27516,6 +27954,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -27558,6 +28004,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -27612,6 +28066,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -27654,12 +28116,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -27675,7 +28145,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "DeployedDatabaseSchema", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Schema" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -27727,6 +28204,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -27769,6 +28254,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -27823,6 +28316,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -27865,12 +28366,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -27886,7 +28395,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "DeployedDatabaseSchema", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Schema" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -27981,6 +28497,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -28066,6 +28590,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -28163,6 +28695,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -28248,12 +28788,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -28269,7 +28817,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "RelationalTable", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Table" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -28364,6 +28919,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -28449,6 +29012,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -28546,6 +29117,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -28631,12 +29210,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -28652,7 +29239,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "RelationalTable", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Table" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -28712,6 +29306,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -28762,6 +29364,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -28824,6 +29434,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -28874,12 +29492,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -28895,7 +29521,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "DeployedAPI", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Function" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -28955,6 +29588,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -29005,6 +29646,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -29067,6 +29716,14 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ], "columns": [ @@ -29117,12 +29774,20 @@ "format": false, "detail_spec": null, "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -29138,7 +29803,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "DeployedAPI", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Function" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -29217,6 +29889,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -29286,6 +29966,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -29360,6 +30048,213 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Version Identifier", + "key": "version_identifier", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + } + ], + "columns": [ + { + "name": "UC Catalog Name", + "key": "uc_catalog", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "UC Schema Name", + "key": "uc_schema", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "UC Volume Name", + "key": "uc_volume", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "UC Volume Type", + "key": "uc_vol_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "Managed", + "External" + ] + }, + { + "name": "UC Storage Location", + "key": "uc_storage_loc", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Network Address", + "key": "network_address", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Description", + "key": "description", + "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": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + } + ] + } + ], + "action": { + "function": "ClassificationExplorer.find_elements_by_property_value", + "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": "StorageVolume", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Volume" + }, + "analytic_function": null, + "analytic_spec_params": {} + }, + "get_additional_props": null, + "question_spec": null + }, + "UC-Volume-Element-DrE-Advanced": { + "target_type": "UC Volume Element", + "heading": "UC-Volume-Element-DrE-Advanced Attributes", + "description": "Auto-generated format for UC Volume Element (Create, Advanced).", + "aliases": [], + "annotations": {}, + "family": "Asset Maker", + "formats": [ + { + "types": [ + "LIST" + ], + "attributes": [ + { + "name": "UC Catalog Name", + "key": "uc_catalog", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "UC Schema Name", + "key": "uc_schema", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "UC Volume Name", + "key": "uc_volume", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "UC Volume Type", + "key": "uc_vol_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [ + "Managed", + "External" + ] + }, + { + "name": "UC Storage Location", + "key": "uc_storage_loc", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Network Address", + "key": "network_address", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Description", + "key": "description", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": [] + }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -29429,6 +30324,14 @@ "detail_spec": null, "valid_values": [] }, + { + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", + "value": null, + "format": false, + "detail_spec": null, + "valid_values": null + }, { "name": "Version Identifier", "key": "version_identifier", @@ -29438,43 +30341,10 @@ "valid_values": [] } ] - } - ], - "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", - "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": {} - }, - "get_additional_props": null, - "question_spec": null - }, - "UC-Volume-Element-DrE-Advanced": { - "target_type": "UC Volume Element", - "heading": "UC-Volume-Element-DrE-Advanced Attributes", - "description": "Auto-generated format for UC Volume Element (Create, Advanced).", - "aliases": [], - "annotations": {}, - "family": "Asset Maker", - "formats": [ + }, { "types": [ - "LIST" + "ALL" ], "attributes": [ { @@ -29543,83 +30413,17 @@ "format": false, "detail_spec": null, "valid_values": [] - } - ], - "columns": [ - { - "name": "UC Catalog Name", - "key": "uc_catalog", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "UC Schema Name", - "key": "uc_schema", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] }, { - "name": "UC Volume Name", - "key": "uc_volume", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "UC Volume Type", - "key": "uc_vol_type", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [ - "Managed", - "External" - ] - }, - { - "name": "UC Storage Location", - "key": "uc_storage_loc", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "Network Address", - "key": "network_address", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "Description", - "key": "description", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "Version Identifier", - "key": "version_identifier", + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", "value": null, "format": false, "detail_spec": null, - "valid_values": [] + "valid_values": null } - ] - }, - { - "types": [ - "ALL" ], - "attributes": [ + "columns": [ { "name": "UC Catalog Name", "key": "uc_catalog", @@ -29686,81 +30490,20 @@ "format": false, "detail_spec": null, "valid_values": [] - } - ], - "columns": [ - { - "name": "UC Catalog Name", - "key": "uc_catalog", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "UC Schema Name", - "key": "uc_schema", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "UC Volume Name", - "key": "uc_volume", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "UC Volume Type", - "key": "uc_vol_type", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [ - "Managed", - "External" - ] - }, - { - "name": "UC Storage Location", - "key": "uc_storage_loc", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] }, { - "name": "Network Address", - "key": "network_address", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "Description", - "key": "description", - "value": null, - "format": false, - "detail_spec": null, - "valid_values": [] - }, - { - "name": "Version Identifier", - "key": "version_identifier", + "name": "Deployed Implementation Type", + "key": "deployed_implementation_type", "value": null, "format": false, "detail_spec": null, - "valid_values": [] + "valid_values": null } ] } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -29776,7 +30519,14 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "StorageVolume", + "property_names": [ + "displayName", + "qualifiedName" + ], + "deployed_implementation_type": "Unity Catalog Volume" + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -29907,7 +30657,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -29923,7 +30673,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "OpenMetadataRoot", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -30346,7 +31102,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -30362,7 +31118,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "OpenMetadataRoot", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -225157,7 +225919,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -225173,7 +225935,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "Report", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -227240,7 +228008,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -227256,7 +228024,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "Report", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -229445,7 +230219,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -229461,7 +230235,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SavedQuery", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -230716,7 +231496,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -230732,7 +231512,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SavedQuery", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -235047,7 +235833,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -235063,7 +235849,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SchemaType", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -235950,7 +236742,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -235966,7 +236758,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SchemaType", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -236097,7 +236895,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -236113,7 +236911,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SchemaType", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -236244,7 +237048,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -236260,7 +237064,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SchemaType", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -236891,7 +237701,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -236907,7 +237717,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SchemaAttribute", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -237858,7 +238674,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -237874,7 +238690,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SchemaAttribute", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -238005,7 +238827,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -238021,7 +238843,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SchemaAttribute", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, @@ -238152,7 +238980,7 @@ } ], "action": { - "function": "MetadataExpert.find_metadata_elements_with_string", + "function": "ClassificationExplorer.find_elements_by_property_value", "required_params": [ "search_string" ], @@ -238168,7 +238996,13 @@ "metadata_element_subtypes", "metadata_element_type" ], - "spec_params": {}, + "spec_params": { + "metadata_element_type": "SchemaAttribute", + "property_names": [ + "displayName", + "qualifiedName" + ] + }, "analytic_function": null, "analytic_spec_params": {} }, diff --git a/pyegeria/omvs/automated_curation.py b/pyegeria/omvs/automated_curation.py index bfe00098..a5cd9a34 100644 --- a/pyegeria/omvs/automated_curation.py +++ b/pyegeria/omvs/automated_curation.py @@ -39,6 +39,23 @@ settings.Logging.console_logging_level = "ERROR" + +# The deployed implementation type (Egeria technology type) of the catalog template each +# create__element_from_template method instantiates. One source: Dr.Egeria's Asset Maker +# commands create elements through these methods, and gen_report_specs reads this table so the +# matching report specs list exactly that technology ("Create UC Table Element" -> "uc_table"). +ELEMENT_TEMPLATE_TECHNOLOGY: dict[str, str] = { + "kafka_server": "Apache Kafka Server", + "postgres_server": "PostgreSQL Server", + "postgres_database": "PostgreSQL Relational Database", + "uc_server": "Unity Catalog Server", + "uc_catalog": "Unity Catalog Catalog", + "uc_schema": "Unity Catalog Schema", + "uc_table": "Unity Catalog Table", + "uc_function": "Unity Catalog Function", + "uc_volume": "Unity Catalog Volume", +} + class AutomatedCuration(ServerClient): """ Client for the Automated Curation View Service. @@ -893,7 +910,7 @@ async def _async_create_kafka_server_element_from_template( str The GUID of the Kafka server element. """ - template_guid = await self._async_get_template_guid_for_technology_type("Apache Kafka Server") + template_guid = await self._async_get_template_guid_for_technology_type(ELEMENT_TEMPLATE_TECHNOLOGY["kafka_server"]) body = { "class": "TemplateRequestBody", "templateGUID": template_guid, @@ -1242,7 +1259,7 @@ async def _async_create_postgres_server_element_from_template( # are no longer template placeholders, so these values are not sent. warnings.warn("db_user and db_pwd are deprecated and ignored; pass secrets_store_path_name " "and secrets_collection_name instead (ISSUE-160)", DeprecationWarning, stacklevel=2) - template_guid = await self._async_get_template_guid_for_technology_type("PostgreSQL Server") + template_guid = await self._async_get_template_guid_for_technology_type(ELEMENT_TEMPLATE_TECHNOLOGY["postgres_server"]) body = { "class": "TemplateRequestBody", @@ -1380,7 +1397,7 @@ async def _async_create_postgres_database_element_from_template( # are no longer template placeholders, so these values are not sent. warnings.warn("db_user and db_pwd are deprecated and ignored; pass secrets_store_path_name " "and secrets_collection_name instead (ISSUE-160)", DeprecationWarning, stacklevel=2) - template_guid = await self._async_get_template_guid_for_technology_type("PostgreSQL Relational Database") + template_guid = await self._async_get_template_guid_for_technology_type(ELEMENT_TEMPLATE_TECHNOLOGY["postgres_database"]) body = { "class": "TemplateRequestBody", @@ -1620,7 +1637,7 @@ async def _async_create_uc_server_element_from_template( str The GUID of the File Folder element. """ - template_guid = await self._async_get_template_guid_for_technology_type("Unity Catalog Server") + template_guid = await self._async_get_template_guid_for_technology_type(ELEMENT_TEMPLATE_TECHNOLOGY["uc_server"]) body = { "class": "TemplateRequestBody", @@ -1718,7 +1735,7 @@ async def _async_create_uc_catalog_element_from_template( str The GUID of the File Folder element. """ - template_guid = await self._async_get_template_guid_for_technology_type("Unity Catalog Catalog") + template_guid = await self._async_get_template_guid_for_technology_type(ELEMENT_TEMPLATE_TECHNOLOGY["uc_catalog"]) body = { "class": "TemplateRequestBody", @@ -1812,7 +1829,7 @@ async def _async_create_uc_schema_element_from_template( str The GUID of the File Folder element. """ - template_guid = await self._async_get_template_guid_for_technology_type("Unity Catalog Schema") + template_guid = await self._async_get_template_guid_for_technology_type(ELEMENT_TEMPLATE_TECHNOLOGY["uc_schema"]) body = { "class": "TemplateRequestBody", @@ -1921,7 +1938,7 @@ async def _async_create_uc_table_element_from_template( str The GUID of the File Folder element. """ - template_guid = await self._async_get_template_guid_for_technology_type("Unity Catalog Table") + template_guid = await self._async_get_template_guid_for_technology_type(ELEMENT_TEMPLATE_TECHNOLOGY["uc_table"]) body = { "class": "TemplateRequestBody", @@ -2052,7 +2069,7 @@ async def _async_create_uc_function_element_from_template( str The GUID of the File Folder element. """ - template_guid = await self._async_get_template_guid_for_technology_type("Unity Catalog Function") + template_guid = await self._async_get_template_guid_for_technology_type(ELEMENT_TEMPLATE_TECHNOLOGY["uc_function"]) body = { "class": "TemplateRequestBody", @@ -2178,7 +2195,7 @@ async def _async_create_uc_volume_element_from_template( str The GUID of the File Folder element. """ - template_guid = await self._async_get_template_guid_for_technology_type("Unity Catalog Volume") + template_guid = await self._async_get_template_guid_for_technology_type(ELEMENT_TEMPLATE_TECHNOLOGY["uc_volume"]) body = { "class": "TemplateRequestBody", diff --git a/pyegeria/omvs/classification_explorer.py b/pyegeria/omvs/classification_explorer.py index bbc448c5..22076fe6 100644 --- a/pyegeria/omvs/classification_explorer.py +++ b/pyegeria/omvs/classification_explorer.py @@ -37,6 +37,12 @@ + +# Types every element has: '*' with one of these lists the whole repository. +_ROOT_TYPES = frozenset({"OpenMetadataRoot", "Referenceable"}) +# '*' lists a type page by page: the caller's page_size, 100 when none is given, never more than 100. +STAR_PAGE_MAX = 100 + class ClassificationExplorer(ServerClient): """ Client for the Classification Explorer OMVS. @@ -2945,6 +2951,7 @@ async def _async_find_elements_by_property_value( page_size: int = 0, timeout: int = default_timeout, body: Optional[dict | FindPropertyNamesRequestBody] = None, + deployed_implementation_type: Optional[str] = None, **kwargs, ) -> list | str: """ @@ -2957,7 +2964,9 @@ async def _async_find_elements_by_property_value( Parameters ---------- property_value: str - - property value to be searched. + - property value to be searched. '*' (or empty) with a metadata_element_type returns every element of that type (via get_elements); '*' without a type is refused. + deployed_implementation_type: str, optional + - with '*', list only elements of this technology (Egeria matches deployedImplementationType containing it, case-insensitive) within metadata_element_type. Ignored for any other search string, which matches property_names within the whole type. property_names: list[str] - property names to search in. metadata_element_type : str, default = None @@ -3050,6 +3059,43 @@ async def _async_find_elements_by_property_value( # "effectiveTime": effective_time, # } + if property_value in (None, "", "*") and body is None: + # Egeria's property-value search refuses a null value (OPEN-METADATA-400-002), and pyegeria + # sends '*' as null. '*' with a type therefore means "every element of that type"; without + # a type there is nothing to ask for. + if not metadata_element_type or (metadata_element_type in _ROOT_TYPES and not deployed_implementation_type): + # A root type is no narrower than no type: listing every element of the repository + # ran the quickstart platform out of heap (2026-11-09), so it is refused like '*'. + raise ValueError("find_elements_by_property_value: give a search string or a narrower type " + "('*' with no metadata_element_type, or with " + f"{'/'.join(sorted(_ROOT_TYPES))}, would list every element)") + # Never fetch a whole type in one call: one page of at most STAR_PAGE_MAX, paged by start_from. + page_size = min(page_size or STAR_PAGE_MAX, STAR_PAGE_MAX) + list_filters = { + "anchor_domain": anchor_domain, "metadata_element_subtypes": metadata_element_subtypes, + "skip_relationships": skip_relationships, + "include_only_relationships": include_only_relationships, + "skip_classified_elements": skip_classified_elements, + "include_only_classified_elements": include_only_classified_elements, + "governance_zone_filter": governance_zone_filter, "as_of_time": as_of_time, + "limit_results_by_status": limit_results_by_status, "sequencing_order": sequencing_order, + "sequencing_property": sequencing_property, "graph_query_depth": graph_query_depth, + } + if deployed_implementation_type: + # One technology within a shared supertype (e.g. "PostgreSQL Server" among the + # SoftwareServers): Egeria matches deployedImplementationType containing this name + # (literal, case-insensitive -- checked live). Done by Egeria, so paging stays correct; + # a client-side filter would make a short page look like the last one. + return await self._async_find_elements_by_property_value( + deployed_implementation_type, ["deployedImplementationType"], metadata_element_type, + start_from=start_from, page_size=page_size, output_format=output_format, + report_spec=report_spec, timeout=timeout, + **{k: v for k, v in list_filters.items() if v is not None}, **kwargs) + return await self._async_get_elements( + metadata_element_type=metadata_element_type, start_from=start_from, page_size=page_size, + output_format=output_format, report_spec=report_spec, + **{k: v for k, v in list_filters.items() if v is not None}, **kwargs) + url = f"{self.classification_command_root}/elements/by-property-value-search" params = { @@ -3111,6 +3157,7 @@ def find_elements_by_property_value( page_size: int = 0, timeout: int = default_timeout, body: Optional[dict | FindPropertyNamesRequestBody] = None, + deployed_implementation_type: Optional[str] = None, **kwargs, ) -> list | str: """ @@ -3123,7 +3170,9 @@ def find_elements_by_property_value( Parameters ---------- property_value: str - - property value to be searched. + - property value to be searched. '*' (or empty) with a metadata_element_type returns every element of that type (via get_elements); '*' without a type is refused. + deployed_implementation_type: str, optional + - with '*', list only elements of this technology (Egeria matches deployedImplementationType containing it, case-insensitive) within metadata_element_type. Ignored for any other search string, which matches property_names within the whole type. property_names: list[str] - property names to search in. metadata_element_type : str, default = None @@ -3197,6 +3246,7 @@ def find_elements_by_property_value( page_size=page_size, timeout=timeout, body=body, + deployed_implementation_type=deployed_implementation_type, **kwargs ) ) diff --git a/pyegeria/omvs/metadata_expert.py b/pyegeria/omvs/metadata_expert.py index 8ff664d1..31f8f1ea 100644 --- a/pyegeria/omvs/metadata_expert.py +++ b/pyegeria/omvs/metadata_expert.py @@ -2263,6 +2263,12 @@ async def _async_find_metadata_elements_with_string(self, search_string: str = " where the output is serialized in text format. """ + if search_string in (None, "", "*") and body is None and not ( + metadata_element_type or metadata_element_subtypes or include_only_classified_elements): + # Egeria refuses this with "searchString is null" (OMAG-COMMON-400-022); say why in plain words. + raise ValueError("find_metadata_elements_with_string: give a search string or a type " + "(metadata_element_type, metadata_element_subtypes or " + "include_only_classified_elements); '*' alone is not a search") url = ( f"{base_path(self, self.view_server)}/metadata-elements/by-search-string" ) diff --git a/pyegeria/view/base_report_formats.py b/pyegeria/view/base_report_formats.py index a83be875..98f0a9ab 100644 --- a/pyegeria/view/base_report_formats.py +++ b/pyegeria/view/base_report_formats.py @@ -132,8 +132,8 @@ 'Concept-Model-DrE-Basic': FormatSet(target_type='Concept Model', heading='Concept-Model-DrE-Basic Attributes', description='Auto-generated format for Concept Model (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='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': 'ConceptModel'})), 'Context-Event-Collection-DrE-Advanced': FormatSet(target_type='Context Event Collection', heading='Context-Event-Collection-DrE-Advanced Attributes', description='Auto-generated format for Context Event Collection (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': 'ContextEventCollection'})), 'Context-Event-Collection-DrE-Basic': FormatSet(target_type='Context Event Collection', heading='Context-Event-Collection-DrE-Basic Attributes', description='Auto-generated format for Context Event Collection (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='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': 'ContextEventCollection'})), - 'CSV-Data-File-Element-DrE-Advanced': FormatSet(target_type='CSV Data File Element', heading='CSV-Data-File-Element-DrE-Advanced Attributes', description='Auto-generated format for CSV Data File Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='File Name', key='file_name'), Column(name='File Type', key='file_type'), Column(name='File Path Name', key='file_path_name'), Column(name='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='File Name', key='file_name'), Column(name='File Type', key='file_type'), Column(name='File Path Name', key='file_path_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'CSV-Data-File-Element-DrE-Basic': FormatSet(target_type='CSV Data File Element', heading='CSV-Data-File-Element-DrE-Basic Attributes', description='Auto-generated format for CSV Data File Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='File Name', key='file_name'), Column(name='File Type', key='file_type'), Column(name='File Path Name', key='file_path_name'), Column(name='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='File Name', key='file_name'), Column(name='File Type', key='file_type'), Column(name='File Path Name', key='file_path_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), + 'CSV-Data-File-Element-DrE-Advanced': FormatSet(target_type='CSV Data File Element', heading='CSV-Data-File-Element-DrE-Advanced Attributes', description='Auto-generated format for CSV Data File Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='File Name', key='file_name'), Column(name='File Type', key='file_type'), Column(name='File Path Name', key='file_path_name'), Column(name='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='File Name', key='file_name'), Column(name='File Type', key='file_type'), Column(name='File Path Name', key='file_path_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'CSVFile', 'property_names': ['displayName', 'qualifiedName']})), + 'CSV-Data-File-Element-DrE-Basic': FormatSet(target_type='CSV Data File Element', heading='CSV-Data-File-Element-DrE-Basic Attributes', description='Auto-generated format for CSV Data File Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='File Name', key='file_name'), Column(name='File Type', key='file_type'), Column(name='File Path Name', key='file_path_name'), Column(name='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='File Name', key='file_name'), Column(name='File Type', key='file_type'), Column(name='File Path Name', key='file_path_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'CSVFile', 'property_names': ['displayName', 'qualifiedName']})), 'CSV-File-DrE-Advanced': FormatSet(target_type='CSV File', heading='CSV-File-DrE-Advanced Attributes', description='Auto-generated format for CSV File (Create, Advanced).', 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='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='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File Path', key='file_path'), Column(name='File System Name', key='file_system_name'), 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='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File Path', key='file_path'), Column(name='File System Name', key='file_system_name'), 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='AssetMaker.find_assets', 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': 'CSVFile'})), 'CSV-File-DrE-Basic': FormatSet(target_type='CSV File', heading='CSV-File-DrE-Basic Attributes', description='Auto-generated format for CSV File (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='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File Path', key='file_path'), Column(name='File System Name', key='file_system_name'), 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='File Encoding', key='file_encoding'), Column(name='File Extension', key='file_extension'), Column(name='File Path', key='file_path'), Column(name='File System Name', key='file_system_name')])], action=ActionParameter(function='AssetMaker.find_assets', 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': 'CSVFile'})), 'Dashboard-DrE-Advanced': FormatSet(target_type='Dashboard', heading='Dashboard-DrE-Advanced Attributes', description='Auto-generated format for Dashboard (Create, Advanced).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Aliases', key='aliases'), Column(name='Refresh Time Interval', key='refresh_time_interval'), Column(name='Layout Style', key='layout_style'), 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='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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Aliases', key='aliases'), Column(name='Refresh Time Interval', key='refresh_time_interval'), Column(name='Layout Style', key='layout_style'), 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='MetadataExpert.find_metadata_elements_with_string', 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': 'Dashboard'})), @@ -176,10 +176,10 @@ 'Display-Data-Container-DrE-Basic': FormatSet(target_type='Display Data Container', heading='Display-Data-Container-DrE-Basic Attributes', description='Auto-generated format for Display Data Container (Create, Basic).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Renderer', key='renderer'), Column(name='Placement Kind', key='placement_kind'), Column(name='Span', key='span'), Column(name='Presentation Style', key='presentation_style'), Column(name='Markdown Content', key='markdown_content'), Column(name='Identifier', key='identifier'), 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='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Renderer', key='renderer'), Column(name='Placement Kind', key='placement_kind'), Column(name='Span', key='span'), Column(name='Presentation Style', key='presentation_style'), Column(name='Markdown Content', key='markdown_content'), Column(name='Identifier', key='identifier'), Column(name='GUID', key='guid')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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': 'DisplayDataContainer'})), 'Display-Data-Field-DrE-Advanced': FormatSet(target_type='Display Data Field', heading='Display-Data-Field-DrE-Advanced Attributes', description='Auto-generated format for Display Data Field (Create, Advanced).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Input Field', key='input_field'), Column(name='Placement Kind', key='placement_kind'), Column(name='Span', key='span'), Column(name='Presentation Style', key='presentation_style'), Column(name='Markdown Content', key='markdown_content'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties'), 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='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Input Field', key='input_field'), Column(name='Placement Kind', key='placement_kind'), Column(name='Span', key='span'), Column(name='Presentation Style', key='presentation_style'), Column(name='Markdown Content', key='markdown_content'), Column(name='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='GUID', key='guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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': 'DisplayDataField'})), 'Display-Data-Field-DrE-Basic': FormatSet(target_type='Display Data Field', heading='Display-Data-Field-DrE-Basic Attributes', description='Auto-generated format for Display Data Field (Create, Basic).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Input Field', key='input_field'), Column(name='Placement Kind', key='placement_kind'), Column(name='Span', key='span'), Column(name='Presentation Style', key='presentation_style'), Column(name='Markdown Content', key='markdown_content'), Column(name='Identifier', key='identifier'), 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='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Input Field', key='input_field'), Column(name='Placement Kind', key='placement_kind'), Column(name='Span', key='span'), Column(name='Presentation Style', key='presentation_style'), Column(name='Markdown Content', key='markdown_content'), Column(name='Identifier', key='identifier'), Column(name='GUID', key='guid')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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': 'DisplayDataField'})), - 'Element-DrE-Advanced': FormatSet(target_type='Element', heading='Element-DrE-Advanced Attributes', description='Auto-generated format for Element (Create, Advanced).', family='Automation', formats=[Format(types=['LIST'], attributes=[Column(name='Element Type Name', key='type_name'), Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties'), Column(name='Generic Initial Classifications', key='initial_classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Effective Time', key='effective_time'), Column(name='Deep Copy', key='deep_copy'), Column(name='Initial Status', key='initial_status', valid_values=['ACTIVE', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'DEPRECATED', 'OTHER'])]), Format(types=['ALL'], attributes=[Column(name='Element Type Name', key='type_name'), Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties'), Column(name='Initial Status', key='initial_status', valid_values=['ACTIVE', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'DEPRECATED', 'OTHER']), Column(name='Generic Initial Classifications', key='initial_classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Effective Time', key='effective_time'), Column(name='Deep Copy', key='deep_copy')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Element-DrE-Basic': FormatSet(target_type='Element', heading='Element-DrE-Basic Attributes', description='Auto-generated format for Element (Create, Basic).', family='Automation', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Embedded-Process-DrE-Advanced': FormatSet(target_type='Embedded Process', heading='Embedded-Process-DrE-Advanced Attributes', description='Auto-generated format for Embedded Process (Create, Advanced).', family='Action Author', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Formula', key='formula'), Column(name='Formula Type', key='formula_type'), Column(name='Expected Behaviour', key='expected_behaviour'), Column(name='Priority', key='priority'), 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='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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Formula', key='formula'), Column(name='Formula Type', key='formula_type'), Column(name='Expected Behaviour', key='expected_behaviour'), Column(name='Priority', key='priority'), 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='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Embedded-Process-DrE-Basic': FormatSet(target_type='Embedded Process', heading='Embedded-Process-DrE-Basic Attributes', description='Auto-generated format for Embedded Process (Create, Basic).', family='Action Author', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Priority', key='priority'), Column(name='Version Identifier', key='version_identifier'), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Priority', key='priority')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), + 'Element-DrE-Advanced': FormatSet(target_type='Element', heading='Element-DrE-Advanced Attributes', description='Auto-generated format for Element (Create, Advanced).', family='Automation', formats=[Format(types=['LIST'], attributes=[Column(name='Element Type Name', key='type_name'), Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties'), Column(name='Generic Initial Classifications', key='initial_classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Effective Time', key='effective_time'), Column(name='Deep Copy', key='deep_copy'), Column(name='Initial Status', key='initial_status', valid_values=['ACTIVE', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'DEPRECATED', 'OTHER'])]), Format(types=['ALL'], attributes=[Column(name='Element Type Name', key='type_name'), Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties'), Column(name='Initial Status', key='initial_status', valid_values=['ACTIVE', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'DEPRECATED', 'OTHER']), Column(name='Generic Initial Classifications', key='initial_classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Effective Time', key='effective_time'), Column(name='Deep Copy', key='deep_copy')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'OpenMetadataRoot', 'property_names': ['displayName', 'qualifiedName']})), + 'Element-DrE-Basic': FormatSet(target_type='Element', heading='Element-DrE-Basic Attributes', description='Auto-generated format for Element (Create, Basic).', family='Automation', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'OpenMetadataRoot', 'property_names': ['displayName', 'qualifiedName']})), + 'Embedded-Process-DrE-Advanced': FormatSet(target_type='Embedded Process', heading='Embedded-Process-DrE-Advanced Attributes', description='Auto-generated format for Embedded Process (Create, Advanced).', family='Action Author', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Formula', key='formula'), Column(name='Formula Type', key='formula_type'), Column(name='Expected Behaviour', key='expected_behaviour'), Column(name='Priority', key='priority'), 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='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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Formula', key='formula'), Column(name='Formula Type', key='formula_type'), Column(name='Expected Behaviour', key='expected_behaviour'), Column(name='Priority', key='priority'), 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='ClassificationExplorer.find_elements_by_property_value', 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': 'EmbeddedProcess', 'property_names': ['displayName', 'qualifiedName']})), + 'Embedded-Process-DrE-Basic': FormatSet(target_type='Embedded Process', heading='Embedded-Process-DrE-Basic Attributes', description='Auto-generated format for Embedded Process (Create, Basic).', family='Action Author', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Priority', key='priority'), Column(name='Version Identifier', key='version_identifier'), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Priority', key='priority')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'EmbeddedProcess', 'property_names': ['displayName', 'qualifiedName']})), 'Event-Set-DrE-Advanced': FormatSet(target_type='Event Set', heading='Event-Set-DrE-Advanced Attributes', description='Auto-generated format for Event Set (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': 'EventSet'})), 'Event-Set-DrE-Basic': FormatSet(target_type='Event Set', heading='Event-Set-DrE-Basic Attributes', description='Auto-generated format for Event Set (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='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': 'EventSet'})), 'Experiment-DrE-Advanced': FormatSet(target_type='Experiment', heading='Experiment-DrE-Advanced Attributes', description='Auto-generated format for Experiment (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': ['Experiment']})), @@ -194,8 +194,8 @@ 'External-Source-Code-DrE-Basic': FormatSet(target_type='External Source Code', heading='External-Source-Code-DrE-Basic Attributes', description='Auto-generated format for External Source Code (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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': 'ExternalSourceCode'})), 'External-Standard-DrE-Advanced': FormatSet(target_type='External Standard', heading='External-Standard-DrE-Advanced Attributes', description='Auto-generated format for External Standard (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='ExternalReferences.find_external_references', 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': 'ExternalStandard'})), 'External-Standard-DrE-Basic': FormatSet(target_type='External Standard', heading='External-Standard-DrE-Basic Attributes', description='Auto-generated format for External Standard (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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': 'ExternalStandard'})), - 'Folder-Element-DrE-Advanced': FormatSet(target_type='Folder Element', heading='Folder-Element-DrE-Advanced Attributes', description='Auto-generated format for Folder Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Folder-Element-DrE-Basic': FormatSet(target_type='Folder Element', heading='Folder-Element-DrE-Basic Attributes', description='Auto-generated format for Folder Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), + 'Folder-Element-DrE-Advanced': FormatSet(target_type='Folder Element', heading='Folder-Element-DrE-Advanced Attributes', description='Auto-generated format for Folder Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'DataFolder', 'property_names': ['displayName', 'qualifiedName']})), + 'Folder-Element-DrE-Basic': FormatSet(target_type='Folder Element', heading='Folder-Element-DrE-Basic Attributes', description='Auto-generated format for Folder Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Folder Name', key='folder_name'), Column(name='Directory Path Name', key='path_name'), Column(name='File System Name', key='file_system_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'DataFolder', 'property_names': ['displayName', 'qualifiedName']})), 'Folio-DrE-Advanced': FormatSet(target_type='Folio', heading='Folio-DrE-Advanced Attributes', description='Auto-generated format for Folio (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': 'Folio'})), 'Folio-DrE-Basic': FormatSet(target_type='Folio', heading='Folio-DrE-Basic Attributes', description='Auto-generated format for Folio (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='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': 'Folio'})), 'Glossary-DrE-Advanced': FormatSet(target_type='Glossary', heading='Glossary-DrE-Advanced Attributes', description='Auto-generated format for Glossary (Create, Advanced).', family='Glossary', 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='Canonical Scope', key='scope'), Column(name='Is Canonical', key='is_canonical'), Column(name='Is Taxonomy', key='is_taxonomy'), Column(name='Language', key='language'), Column(name='Organizing Principle', key='organizing_principle'), 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='Purpose', key='purpose'), Column(name='Canonical Scope', key='scope'), Column(name='Is Canonical', key='is_canonical'), Column(name='Is Taxonomy', key='is_taxonomy'), Column(name='Language', key='language'), Column(name='Organizing Principle', key='organizing_principle'), 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='GlossaryManager.find_glossaries', 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'])), @@ -252,8 +252,8 @@ 'IT-Subsystem-DrE-Basic': FormatSet(target_type='IT Subsystem', heading='IT-Subsystem-DrE-Basic Attributes', description='Auto-generated format for IT Subsystem (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='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': 'ITSubsystem'})), 'Journal-Entry-DrE-Advanced': FormatSet(target_type='Journal Entry', heading='Journal-Entry-DrE-Advanced Attributes', description='Auto-generated format for Journal 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')])]), 'Journal-Entry-DrE-Basic': FormatSet(target_type='Journal Entry', heading='Journal-Entry-DrE-Basic Attributes', description='Auto-generated format for Journal 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')])]), - 'Kafka-Server-Element-DrE-Advanced': FormatSet(target_type='Kafka Server Element', heading='Kafka-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for Kafka Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description')]), Format(types=['ALL'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Kafka-Server-Element-DrE-Basic': FormatSet(target_type='Kafka Server Element', heading='Kafka-Server-Element-DrE-Basic Attributes', description='Auto-generated format for Kafka Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description')]), Format(types=['ALL'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), + 'Kafka-Server-Element-DrE-Advanced': FormatSet(target_type='Kafka Server Element', heading='Kafka-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for Kafka Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')]), Format(types=['ALL'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Apache Kafka Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'Kafka-Server-Element-DrE-Basic': FormatSet(target_type='Kafka Server Element', heading='Kafka-Server-Element-DrE-Basic Attributes', description='Auto-generated format for Kafka Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')]), Format(types=['ALL'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Apache Kafka Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), 'License-Type-DrE-Advanced': FormatSet(target_type='License Type', heading='License-Type-DrE-Advanced Attributes', description='Auto-generated format for License Type (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='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions'), 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='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='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions')])], 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': 'LicenseType'})), 'License-Type-DrE-Basic': FormatSet(target_type='License Type', heading='License-Type-DrE-Basic Attributes', description='Auto-generated format for License Type (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='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions'), 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'), Column(name='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions')])], 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': 'LicenseType'})), 'Like-DrE-Advanced': FormatSet(target_type='Like', heading='Like-DrE-Advanced Attributes', description='Auto-generated format for Like (Create, Advanced).', family='Feedback', formats=[Format(types=['LIST'], attributes=[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='Version Identifier', key='current_version'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Parent Relationship Type Name', key='parent_rel_type_name'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Parent at End1', key='parent_end1'), Column(name='Additional Properties', key='additional_properties'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Status', key='element_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='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category'), Column(name='Version Identifier', key='current_version'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Parent Relationship Type Name', key='parent_rel_type_name'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Parent at End1', key='parent_end1'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Additional Properties', key='additional_properties'), Column(name='URL', key='url'), Column(name='Supplementary Properties', key='supplementary_properties')])]), @@ -286,10 +286,10 @@ 'Personal-Project-DrE-Basic': FormatSet(target_type='Personal Project', heading='Personal-Project-DrE-Basic Attributes', description='Auto-generated format for Personal 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': ['PersonalProject']})), 'Perspective-DrE-Advanced': FormatSet(target_type='Perspective', heading='Perspective-DrE-Advanced Attributes', description='Auto-generated format for Perspective (Create, Advanced).', family='Actor 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='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='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='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='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='ActorManager.find_perspectives', 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': 'Perspective'})), 'Perspective-DrE-Basic': FormatSet(target_type='Perspective', heading='Perspective-DrE-Basic Attributes', description='Auto-generated format for Perspective (Create, Basic).', family='Actor 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='Version Identifier', key='version_identifier'), 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')])], action=ActionParameter(function='ActorManager.find_perspectives', 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': 'Perspective'})), - 'Postgres-Database-Element-DrE-Advanced': FormatSet(target_type='Postgres Database Element', heading='Postgres-Database-Element-DrE-Advanced Attributes', description='Auto-generated format for Postgres Database Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Postgres-Database-Element-DrE-Basic': FormatSet(target_type='Postgres Database Element', heading='Postgres-Database-Element-DrE-Basic Attributes', description='Auto-generated format for Postgres Database Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Postgres-Server-Element-DrE-Advanced': FormatSet(target_type='Postgres Server Element', heading='Postgres-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for Postgres Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Postgres-Server-Element-DrE-Basic': FormatSet(target_type='Postgres Server Element', heading='Postgres-Server-Element-DrE-Basic Attributes', description='Auto-generated format for Postgres Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), + 'Postgres-Database-Element-DrE-Advanced': FormatSet(target_type='Postgres Database Element', heading='Postgres-Database-Element-DrE-Advanced Attributes', description='Auto-generated format for Postgres Database Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'PostgreSQL Relational Database', 'metadata_element_type': 'RelationalDatabase', 'property_names': ['displayName', 'qualifiedName']})), + 'Postgres-Database-Element-DrE-Basic': FormatSet(target_type='Postgres Database Element', heading='Postgres-Database-Element-DrE-Basic Attributes', description='Auto-generated format for Postgres Database Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'PostgreSQL Relational Database', 'metadata_element_type': 'RelationalDatabase', 'property_names': ['displayName', 'qualifiedName']})), + 'Postgres-Server-Element-DrE-Advanced': FormatSet(target_type='Postgres Server Element', heading='Postgres-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for Postgres Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'PostgreSQL Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'Postgres-Server-Element-DrE-Basic': FormatSet(target_type='Postgres Server Element', heading='Postgres-Server-Element-DrE-Basic Attributes', description='Auto-generated format for Postgres Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'PostgreSQL Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), 'Project-DrE-Advanced': FormatSet(target_type='Project', heading='Project-DrE-Advanced Attributes', description='Auto-generated format for 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'])), 'Project-DrE-Basic': FormatSet(target_type='Project', heading='Project-DrE-Basic Attributes', description='Auto-generated format for 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'])), 'Question-DrE-Advanced': FormatSet(target_type='Question', heading='Question-DrE-Advanced Attributes', description='Auto-generated format for Question (Create, Advanced).', family='Glossary', 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Class Word Classification', key='class_word_classification'), Column(name='Context Scope', key='scope'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Is Abstract Concept', key='is_abstract_concept'), Column(name='Is Activity Description', key='is_activity_description'), Column(name='Is Context', key='is_data_value'), Column(name='Modifier Classification', key='modifier_classification'), Column(name='Prime Word Classification', key='prime_word_classification'), Column(name='Summary', key='summary'), Column(name='Term Activity Type', key='term_activity_type', valid_values=['OPERATION', 'ACTION', 'TASK', 'PROCESS', 'PROJECT', 'OTHER']), 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Class Word Classification', key='class_word_classification'), Column(name='Context Scope', key='scope'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Is Abstract Concept', key='is_abstract_concept'), Column(name='Is Activity Description', key='is_activity_description'), Column(name='Is Context', key='is_data_value'), Column(name='Modifier Classification', key='modifier_classification'), Column(name='Prime Word Classification', key='prime_word_classification'), Column(name='Summary', key='summary'), Column(name='Term Activity Type', key='term_activity_type', valid_values=['OPERATION', 'ACTION', 'TASK', 'PROCESS', 'PROJECT', 'OTHER']), 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='GlossaryManager.find_glossary_terms', 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': ['Question'], 'metadata_element_type': 'GlossaryTerm'})), @@ -312,8 +312,8 @@ 'Regulation-DrE-Basic': FormatSet(target_type='Regulation', heading='Regulation-DrE-Basic Attributes', description='Auto-generated format for Regulation (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='Regulation Source', key='regulation_source'), Column(name='Regulators', key='regulators'), 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'), Column(name='Regulation Source', key='regulation_source'), Column(name='Regulators', key='regulators')])], 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': 'Regulation'})), 'Related-Media-DrE-Advanced': FormatSet(target_type='Related Media', heading='Related-Media-DrE-Advanced Attributes', description='Auto-generated format for Related Media (Create, Advanced).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id'), 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='ExternalReferences.find_external_references', 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': 'RelatedMedia'})), 'Related-Media-DrE-Basic': FormatSet(target_type='Related Media', heading='Related-Media-DrE-Basic Attributes', description='Auto-generated format for Related Media (Create, Basic).', family='External Reference', 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id'), 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='Attribution', key='attribution'), Column(name='Copyright', key='copyright'), Column(name='License', key='license'), Column(name='Organization', key='organization'), Column(name='Reference Abstract', key='reference_abstract'), Column(name='Reference Title', key='reference_title'), Column(name='Sources', key='reference_sources'), Column(name='Default Media Usage', key='default_media_usage', valid_values=['ICON', 'THUMBNAIL', 'ILLUSTRATION', 'USAGE_GUIDANCE', 'OTHER']), Column(name='Default Media Usage Other Id', key='default_media_usage_other_id'), Column(name='Media Type', key='media_type', valid_values=['IMAGE', 'AUDIO', 'DOCUMENT', 'VIDEO', 'OTHER']), Column(name='Media Type Other Id', key='media_type_other_id')])], action=ActionParameter(function='ExternalReferences.find_external_references', 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': 'RelatedMedia'})), - 'Report-DrE-Advanced': FormatSet(target_type='Report', heading='Report-DrE-Advanced Attributes', description='Auto-generated format for Report (Create, Advanced).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='AsOfTime', key='as_of_time'), Column(name='Ends With', key='ends_with'), Column(name='Governance Zone Filter', key='governance_zone_filter'), Column(name='Graph Query Depth', key='graph_query_depth'), Column(name='Ignore Case', key='ignore_case'), Column(name='Include Only Classified Elements', key='include_only_classified_elements'), Column(name='Include Only Relationships', key='include_only_relationships'), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Order Property Name', key='order_property_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Output Sort Order', key='sort_order', valid_values=['ANY', 'CREATION_DATE_RECENT', 'CREATION_DATA_OLDEST', 'LAST_UPDATE_RECENT', 'LAST_UPDATE_OLDEST', 'PROPERTY_ASCENDING', 'PROPERTY_DESCENDING']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Skip Classified Elements', key='skip_classified_elements'), Column(name='Skip Relationships', key='skip_relationships'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with'), 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='Limit Result by Status', key='limit_result_by_status', valid_values=['UNKNOWN', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'APPROVED_CONCEPT', 'UNDER_DEVELOPMENT', 'DEVELOPMENT_COMPLETE', 'APPROVED_FOR_DEPLOYMENT', 'STANDBY', 'ACTIVE', 'FAILED', 'DISABLED', 'COMPLETE', 'DEPRECATED', 'OTHER', 'DELETED']), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='AsOfTime', key='as_of_time'), Column(name='Ends With', key='ends_with'), Column(name='Governance Zone Filter', key='governance_zone_filter'), Column(name='Graph Query Depth', key='graph_query_depth'), Column(name='Ignore Case', key='ignore_case'), Column(name='Include Only Classified Elements', key='include_only_classified_elements'), Column(name='Include Only Relationships', key='include_only_relationships'), Column(name='Limit Result by Status', key='limit_result_by_status', valid_values=['UNKNOWN', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'APPROVED_CONCEPT', 'UNDER_DEVELOPMENT', 'DEVELOPMENT_COMPLETE', 'APPROVED_FOR_DEPLOYMENT', 'STANDBY', 'ACTIVE', 'FAILED', 'DISABLED', 'COMPLETE', 'DEPRECATED', 'OTHER', 'DELETED']), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Order Property Name', key='order_property_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Output Sort Order', key='sort_order', valid_values=['ANY', 'CREATION_DATE_RECENT', 'CREATION_DATA_OLDEST', 'LAST_UPDATE_RECENT', 'LAST_UPDATE_OLDEST', 'PROPERTY_ASCENDING', 'PROPERTY_DESCENDING']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Skip Classified Elements', key='skip_classified_elements'), Column(name='Skip Relationships', key='skip_relationships'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with'), 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='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Report-DrE-Basic': FormatSet(target_type='Report', heading='Report-DrE-Basic Attributes', description='Auto-generated format for Report (Create, Basic).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='Ends With', key='ends_with'), Column(name='Ignore Case', key='ignore_case'), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with'), Column(name='Version Identifier', key='version_identifier'), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='Ends With', key='ends_with'), Column(name='Ignore Case', key='ignore_case'), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), + 'Report-DrE-Advanced': FormatSet(target_type='Report', heading='Report-DrE-Advanced Attributes', description='Auto-generated format for Report (Create, Advanced).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='AsOfTime', key='as_of_time'), Column(name='Ends With', key='ends_with'), Column(name='Governance Zone Filter', key='governance_zone_filter'), Column(name='Graph Query Depth', key='graph_query_depth'), Column(name='Ignore Case', key='ignore_case'), Column(name='Include Only Classified Elements', key='include_only_classified_elements'), Column(name='Include Only Relationships', key='include_only_relationships'), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Order Property Name', key='order_property_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Output Sort Order', key='sort_order', valid_values=['ANY', 'CREATION_DATE_RECENT', 'CREATION_DATA_OLDEST', 'LAST_UPDATE_RECENT', 'LAST_UPDATE_OLDEST', 'PROPERTY_ASCENDING', 'PROPERTY_DESCENDING']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Skip Classified Elements', key='skip_classified_elements'), Column(name='Skip Relationships', key='skip_relationships'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with'), 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='Limit Result by Status', key='limit_result_by_status', valid_values=['UNKNOWN', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'APPROVED_CONCEPT', 'UNDER_DEVELOPMENT', 'DEVELOPMENT_COMPLETE', 'APPROVED_FOR_DEPLOYMENT', 'STANDBY', 'ACTIVE', 'FAILED', 'DISABLED', 'COMPLETE', 'DEPRECATED', 'OTHER', 'DELETED']), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='AsOfTime', key='as_of_time'), Column(name='Ends With', key='ends_with'), Column(name='Governance Zone Filter', key='governance_zone_filter'), Column(name='Graph Query Depth', key='graph_query_depth'), Column(name='Ignore Case', key='ignore_case'), Column(name='Include Only Classified Elements', key='include_only_classified_elements'), Column(name='Include Only Relationships', key='include_only_relationships'), Column(name='Limit Result by Status', key='limit_result_by_status', valid_values=['UNKNOWN', 'DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'APPROVED_CONCEPT', 'UNDER_DEVELOPMENT', 'DEVELOPMENT_COMPLETE', 'APPROVED_FOR_DEPLOYMENT', 'STANDBY', 'ACTIVE', 'FAILED', 'DISABLED', 'COMPLETE', 'DEPRECATED', 'OTHER', 'DELETED']), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Order Property Name', key='order_property_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Output Sort Order', key='sort_order', valid_values=['ANY', 'CREATION_DATE_RECENT', 'CREATION_DATA_OLDEST', 'LAST_UPDATE_RECENT', 'LAST_UPDATE_OLDEST', 'PROPERTY_ASCENDING', 'PROPERTY_DESCENDING']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Skip Classified Elements', key='skip_classified_elements'), Column(name='Skip Relationships', key='skip_relationships'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with'), 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='ClassificationExplorer.find_elements_by_property_value', 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': 'Report', 'property_names': ['displayName', 'qualifiedName']})), + 'Report-DrE-Basic': FormatSet(target_type='Report', heading='Report-DrE-Basic Attributes', description='Auto-generated format for Report (Create, Basic).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='Ends With', key='ends_with'), Column(name='Ignore Case', key='ignore_case'), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with'), Column(name='Version Identifier', key='version_identifier'), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Analytic Parameters', key='analytic_parameters'), Column(name='Ends With', key='ends_with'), Column(name='Ignore Case', key='ignore_case'), Column(name='Metadata Element Subtype Names', key='metadata_element_subtype_names'), Column(name='Metadata Element Type Name', key='metadata_element_type_name'), Column(name='Output Format', key='output_format', valid_values=['BAR', 'DICT', 'FORM', 'GRAPH', 'HTML', 'JSON', 'KPI', 'LIST', 'MD', 'MERMAID', 'PIE', 'REPORT', 'REPORT-GRAPH', 'SERIES', 'TABLE']), Column(name='Page Size', key='page_size'), Column(name='Report Parameters', key='report_parameters'), Column(name='Report Spec', key='report_spec'), Column(name='Search String', key='search_string'), Column(name='Start From', key='start_from'), Column(name='Starts With', key='starts_with')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'Report', 'property_names': ['displayName', 'qualifiedName']})), 'Report-Spec-DrE-Advanced': FormatSet(target_type='Report Spec', heading='Report-Spec-DrE-Advanced Attributes', description='Auto-generated format for Report Spec (Create, Advanced).', family='Views & Reports', 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='Microflow', key='microflow'), Column(name='Target Type Name', key='target_type_name'), Column(name='Aliases', key='aliases'), Column(name='Output Types', key='output_types'), Column(name='Include Preamble', key='include_preamble'), 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='Microflow', key='microflow'), Column(name='Target Type Name', key='target_type_name'), Column(name='Aliases', key='aliases'), Column(name='Output Types', key='output_types'), Column(name='Include Preamble', key='include_preamble'), 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': 'ReportSpec'})), 'Report-Spec-DrE-Basic': FormatSet(target_type='Report Spec', heading='Report-Spec-DrE-Basic Attributes', description='Auto-generated format for Report Spec (Create, Basic).', family='Views & Reports', 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='Microflow', key='microflow'), Column(name='Target Type Name', key='target_type_name'), Column(name='Aliases', key='aliases'), Column(name='Output Types', key='output_types'), Column(name='Include Preamble', key='include_preamble'), 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='Microflow', key='microflow'), Column(name='Target Type Name', key='target_type_name'), Column(name='Aliases', key='aliases'), Column(name='Output Types', key='output_types'), Column(name='Include Preamble', key='include_preamble')])], 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': 'ReportSpec'})), 'Report-Type-DrE-Advanced': FormatSet(target_type='Report Type', heading='Report-Type-DrE-Advanced Attributes', description='Auto-generated format for Report Type (Create, Advanced).', family='Data Designer', 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='Last Modifier', key='last_modifier'), Column(name='Last Modified Time', key='last_modified_time'), Column(name='Created Time', key='created_time'), 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='Last Modifier', key='last_modifier'), Column(name='Last Modified Time', key='last_modified_time'), Column(name='Created Time', key='created_time'), 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': 'ReportType'})), @@ -326,18 +326,18 @@ 'Risk-DrE-Basic': FormatSet(target_type='Risk', heading='Risk-DrE-Basic Attributes', description='Auto-generated format for Risk (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': 'Risk'})), 'Root-Collection-DrE-Advanced': FormatSet(target_type='Root Collection', heading='Root-Collection-DrE-Advanced Attributes', description='Auto-generated format for Root Collection (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': 'RootCollection'})), 'Root-Collection-DrE-Basic': FormatSet(target_type='Root Collection', heading='Root-Collection-DrE-Basic Attributes', description='Auto-generated format for Root Collection (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='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': 'RootCollection'})), - 'Saved-Query-DrE-Advanced': FormatSet(target_type='Saved Query', heading='Saved-Query-DrE-Advanced Attributes', description='Auto-generated format for Saved Query (Create, Advanced).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Query URL', key='query_url'), Column(name='Query Request Body', key='query_request_body'), 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='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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Query URL', key='query_url'), Column(name='Query Request Body', key='query_request_body'), 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='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Saved-Query-DrE-Basic': FormatSet(target_type='Saved Query', heading='Saved-Query-DrE-Basic Attributes', description='Auto-generated format for Saved Query (Create, Basic).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Query URL', key='query_url'), Column(name='Query Request Body', key='query_request_body'), Column(name='Version Identifier', key='version_identifier'), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Query URL', key='query_url'), Column(name='Query Request Body', key='query_request_body')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Schema-Attribute-DrE-Advanced': FormatSet(target_type='Schema Attribute', heading='Schema-Attribute-DrE-Advanced Attributes', description='Auto-generated format for Schema Attribute (Create, Advanced).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties'), 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='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='GUID', key='guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Schema-Attribute-DrE-Basic': FormatSet(target_type='Schema Attribute', heading='Schema-Attribute-DrE-Basic Attributes', description='Auto-generated format for Schema Attribute (Create, Basic).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Identifier', key='identifier'), 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='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Identifier', key='identifier'), Column(name='GUID', key='guid')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Schema-Attribute-From-Template-DrE-Advanced': FormatSet(target_type='Schema Attribute From Template', heading='Schema-Attribute-From-Template-DrE-Advanced Attributes', description='Auto-generated format for Schema Attribute From Template (Create, Advanced).', family='Schema Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Schema-Attribute-From-Template-DrE-Basic': FormatSet(target_type='Schema Attribute From Template', heading='Schema-Attribute-From-Template-DrE-Basic Attributes', description='Auto-generated format for Schema Attribute From Template (Create, Basic).', family='Schema Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Schema-Type-DrE-Advanced': FormatSet(target_type='Schema Type', heading='Schema-Type-DrE-Advanced Attributes', description='Auto-generated format for Schema Type (Create, Advanced).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Is Deprecated', key='is_deprecated'), Column(name='Author', key='author'), Column(name='Encoding Standard', key='encoding_standard'), Column(name='Namespace', key='namespace'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties'), 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='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Is Deprecated', key='is_deprecated'), Column(name='Author', key='author'), Column(name='Encoding Standard', key='encoding_standard'), Column(name='Namespace', key='namespace'), Column(name='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='GUID', key='guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Schema-Type-DrE-Basic': FormatSet(target_type='Schema Type', heading='Schema-Type-DrE-Basic Attributes', description='Auto-generated format for Schema Type (Create, Basic).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Is Deprecated', key='is_deprecated'), Column(name='Author', key='author'), Column(name='Encoding Standard', key='encoding_standard'), Column(name='Identifier', key='identifier'), 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='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Is Deprecated', key='is_deprecated'), Column(name='Author', key='author'), Column(name='Encoding Standard', key='encoding_standard'), Column(name='Identifier', key='identifier'), Column(name='GUID', key='guid')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Schema-Type-From-Template-DrE-Advanced': FormatSet(target_type='Schema Type From Template', heading='Schema-Type-From-Template-DrE-Advanced Attributes', description='Auto-generated format for Schema Type From Template (Create, Advanced).', family='Schema Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Schema-Type-From-Template-DrE-Basic': FormatSet(target_type='Schema Type From Template', heading='Schema-Type-From-Template-DrE-Basic Attributes', description='Auto-generated format for Schema Type From Template (Create, Basic).', family='Schema Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Secrets-Store-Element-DrE-Advanced': FormatSet(target_type='Secrets Store Element', heading='Secrets-Store-Element-DrE-Advanced Attributes', description='Auto-generated format for Secrets Store Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='File Path Name', key='file_path_name'), Column(name='File Name', key='file_name'), Column(name='Description', key='description'), Column(name='File System Name', key='file_system_name'), Column(name='File Type', key='file_type'), Column(name='File Extension', key='file_extension'), Column(name='File Encoding', key='file_encoding'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='File Path Name', key='file_path_name'), Column(name='File Name', key='file_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='File System Name', key='file_system_name'), Column(name='File Type', key='file_type'), Column(name='File Extension', key='file_extension'), Column(name='File Encoding', key='file_encoding')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'Secrets-Store-Element-DrE-Basic': FormatSet(target_type='Secrets Store Element', heading='Secrets-Store-Element-DrE-Basic Attributes', description='Auto-generated format for Secrets Store Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='File Path Name', key='file_path_name'), Column(name='File Name', key='file_name'), Column(name='Description', key='description'), Column(name='File System Name', key='file_system_name'), Column(name='File Type', key='file_type'), Column(name='File Extension', key='file_extension'), Column(name='File Encoding', key='file_encoding'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='File Path Name', key='file_path_name'), Column(name='File Name', key='file_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='File System Name', key='file_system_name'), Column(name='File Type', key='file_type'), Column(name='File Extension', key='file_extension'), Column(name='File Encoding', key='file_encoding')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), + 'Saved-Query-DrE-Advanced': FormatSet(target_type='Saved Query', heading='Saved-Query-DrE-Advanced Attributes', description='Auto-generated format for Saved Query (Create, Advanced).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Query URL', key='query_url'), Column(name='Query Request Body', key='query_request_body'), 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='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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Source', key='source'), Column(name='Query URL', key='query_url'), Column(name='Query Request Body', key='query_request_body'), 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='ClassificationExplorer.find_elements_by_property_value', 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': 'SavedQuery', 'property_names': ['displayName', 'qualifiedName']})), + 'Saved-Query-DrE-Basic': FormatSet(target_type='Saved Query', heading='Saved-Query-DrE-Basic Attributes', description='Auto-generated format for Saved Query (Create, Basic).', family='Views & Reports', 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Query URL', key='query_url'), Column(name='Query Request Body', key='query_request_body'), Column(name='Version Identifier', key='version_identifier'), 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='Deployed Implementation Type', key='deployed_impl_type'), Column(name='Namespace Path', key='namespace_path'), Column(name='Resource Name', key='resource_name'), Column(name='Query URL', key='query_url'), Column(name='Query Request Body', key='query_request_body')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SavedQuery', 'property_names': ['displayName', 'qualifiedName']})), + 'Schema-Attribute-DrE-Advanced': FormatSet(target_type='Schema Attribute', heading='Schema-Attribute-DrE-Advanced Attributes', description='Auto-generated format for Schema Attribute (Create, Advanced).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties'), 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='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='GUID', key='guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SchemaAttribute', 'property_names': ['displayName', 'qualifiedName']})), + 'Schema-Attribute-DrE-Basic': FormatSet(target_type='Schema Attribute', heading='Schema-Attribute-DrE-Basic Attributes', description='Auto-generated format for Schema Attribute (Create, Basic).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Identifier', key='identifier'), 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='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Element Position', key='element_position'), Column(name='Min Cardinality', key='min_cardinality'), Column(name='Max Cardinality', key='max_cardinality'), Column(name='Allows Duplicate Values', key='allows_duplicate_values'), Column(name='Is Ordered Values', key='is_ordered_values'), Column(name='Default Value Override', key='default_value_override'), Column(name='Identifier', key='identifier'), Column(name='GUID', key='guid')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SchemaAttribute', 'property_names': ['displayName', 'qualifiedName']})), + 'Schema-Attribute-From-Template-DrE-Advanced': FormatSet(target_type='Schema Attribute From Template', heading='Schema-Attribute-From-Template-DrE-Advanced Attributes', description='Auto-generated format for Schema Attribute From Template (Create, Advanced).', family='Schema Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SchemaAttribute', 'property_names': ['displayName', 'qualifiedName']})), + 'Schema-Attribute-From-Template-DrE-Basic': FormatSet(target_type='Schema Attribute From Template', heading='Schema-Attribute-From-Template-DrE-Basic Attributes', description='Auto-generated format for Schema Attribute From Template (Create, Basic).', family='Schema Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SchemaAttribute', 'property_names': ['displayName', 'qualifiedName']})), + 'Schema-Type-DrE-Advanced': FormatSet(target_type='Schema Type', heading='Schema-Type-DrE-Advanced Attributes', description='Auto-generated format for Schema Type (Create, Advanced).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Is Deprecated', key='is_deprecated'), Column(name='Author', key='author'), Column(name='Encoding Standard', key='encoding_standard'), Column(name='Namespace', key='namespace'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties'), 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='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category')]), Format(types=['ALL'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Additional Properties', key='additional_properties'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Effective From', key='effective_from'), Column(name='Effective To', key='effective_to'), Column(name='Is Deprecated', key='is_deprecated'), Column(name='Author', key='author'), Column(name='Encoding Standard', key='encoding_standard'), Column(name='Namespace', key='namespace'), Column(name='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='GUID', key='guid'), Column(name='Effective Time', key='effective_time'), Column(name='Supplementary Properties', key='supplementary_properties')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SchemaType', 'property_names': ['displayName', 'qualifiedName']})), + 'Schema-Type-DrE-Basic': FormatSet(target_type='Schema Type', heading='Schema-Type-DrE-Basic Attributes', description='Auto-generated format for Schema Type (Create, Basic).', family='Schema Maker', 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='Usage', key='usage'), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Is Deprecated', key='is_deprecated'), Column(name='Author', key='author'), Column(name='Encoding Standard', key='encoding_standard'), Column(name='Identifier', key='identifier'), 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='Display Name', key='display_name'), Column(name='Qualified Name', key='qualified_name'), Column(name='Description', key='description'), Column(name='Category', key='category'), Column(name='Version Identifier', key='version_identifier'), Column(name='URL', key='url'), Column(name='Usage', key='usage'), Column(name='Content Status', key='content_status', valid_values=['DRAFT', 'PREPARED', 'PROPOSED', 'APPROVED', 'REJECTED', 'ACTIVE', 'DEPRECATED', 'OTHER']), Column(name='Authors', key='authors'), Column(name='Initial Classifications', key='initial_classifications'), Column(name='Is Deprecated', key='is_deprecated'), Column(name='Author', key='author'), Column(name='Encoding Standard', key='encoding_standard'), Column(name='Identifier', key='identifier'), Column(name='GUID', key='guid')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SchemaType', 'property_names': ['displayName', 'qualifiedName']})), + 'Schema-Type-From-Template-DrE-Advanced': FormatSet(target_type='Schema Type From Template', heading='Schema-Type-From-Template-DrE-Advanced Attributes', description='Auto-generated format for Schema Type From Template (Create, Advanced).', family='Schema Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SchemaType', 'property_names': ['displayName', 'qualifiedName']})), + 'Schema-Type-From-Template-DrE-Basic': FormatSet(target_type='Schema Type From Template', heading='Schema-Type-From-Template-DrE-Basic Attributes', description='Auto-generated format for Schema Type From Template (Create, Basic).', family='Schema Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')]), Format(types=['ALL'], attributes=[Column(name='Template GUID', key='template_guid'), Column(name='Placeholder Property Values', key='placeholder_property_values'), Column(name='Template Properties', key='template_properties')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SchemaType', 'property_names': ['displayName', 'qualifiedName']})), + 'Secrets-Store-Element-DrE-Advanced': FormatSet(target_type='Secrets Store Element', heading='Secrets-Store-Element-DrE-Advanced Attributes', description='Auto-generated format for Secrets Store Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='File Path Name', key='file_path_name'), Column(name='File Name', key='file_name'), Column(name='Description', key='description'), Column(name='File System Name', key='file_system_name'), Column(name='File Type', key='file_type'), Column(name='File Extension', key='file_extension'), Column(name='File Encoding', key='file_encoding'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='File Path Name', key='file_path_name'), Column(name='File Name', key='file_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='File System Name', key='file_system_name'), Column(name='File Type', key='file_type'), Column(name='File Extension', key='file_extension'), Column(name='File Encoding', key='file_encoding')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SecretsCollection', 'property_names': ['displayName', 'qualifiedName']})), + 'Secrets-Store-Element-DrE-Basic': FormatSet(target_type='Secrets Store Element', heading='Secrets-Store-Element-DrE-Basic Attributes', description='Auto-generated format for Secrets Store Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='File Path Name', key='file_path_name'), Column(name='File Name', key='file_name'), Column(name='Description', key='description'), Column(name='File System Name', key='file_system_name'), Column(name='File Type', key='file_type'), Column(name='File Extension', key='file_extension'), Column(name='File Encoding', key='file_encoding'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='File Path Name', key='file_path_name'), Column(name='File Name', key='file_name'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='File System Name', key='file_system_name'), Column(name='File Type', key='file_type'), Column(name='File Extension', key='file_extension'), Column(name='File Encoding', key='file_encoding')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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': 'SecretsCollection', 'property_names': ['displayName', 'qualifiedName']})), 'Security-Access-Control-DrE-Advanced': FormatSet(target_type='Security Access Control', heading='Security-Access-Control-DrE-Advanced Attributes', description='Auto-generated format for Security Access Control (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='Implementation Description', key='implementation_description'), 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='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='Implementation Description', key='implementation_description')])], 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': 'SecurityAccessControl'})), 'Security-Access-Control-DrE-Basic': FormatSet(target_type='Security Access Control', heading='Security-Access-Control-DrE-Basic Attributes', description='Auto-generated format for Security Access Control (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='Implementation Description', key='implementation_description'), 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'), Column(name='Implementation Description', key='implementation_description')])], 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': 'SecurityAccessControl'})), 'Security-Finding-DrE-Advanced': FormatSet(target_type='Security Finding', heading='Security-Finding-DrE-Advanced Attributes', description='Auto-generated format for Security Finding (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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='CVSS Vector', key='cvss_vector'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Vulnerability Type', key='vulnerability_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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='CVSS Vector', key='cvss_vector'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Vulnerability Type', key='vulnerability_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')])]), @@ -386,18 +386,18 @@ 'Threat-DrE-Basic': FormatSet(target_type='Threat', heading='Threat-DrE-Basic Attributes', description='Auto-generated format for Threat (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': 'Threat'})), 'ToDo-DrE-Advanced': FormatSet(target_type='ToDo', heading='ToDo-DrE-Advanced Attributes', description='Auto-generated format for ToDo (Create, Advanced).', family='Actor Manager', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), 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'), Column(name='Objective', key='objective'), Column(name='Priority', key='priority'), Column(name='Activity Status', key='activity_status', valid_values=['REQUESTED', 'APPROVED', 'WAITING', 'ACTIVATING', 'IN_PROGRESS', 'PAUSED', 'COMPLETED', 'INVALID', 'IGNORED', 'FAILED', 'CANCELLED', 'ABANDONED', 'OTHER'])]), 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='Display Name', key='display_name'), Column(name='Description', key='description'), Column(name='Situation', key='situation'), Column(name='Objective', key='objective'), Column(name='Priority', key='priority'), Column(name='Activity Status', key='activity_status', valid_values=['REQUESTED', 'APPROVED', 'WAITING', 'ACTIVATING', 'IN_PROGRESS', 'PAUSED', 'COMPLETED', 'INVALID', 'IGNORED', 'FAILED', 'CANCELLED', 'ABANDONED', 'OTHER'])])]), 'ToDo-DrE-Basic': FormatSet(target_type='ToDo', heading='ToDo-DrE-Basic Attributes', description='Auto-generated format for ToDo (Create, Basic).', family='Actor Manager', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Description', key='description'), Column(name='Situation', key='situation'), Column(name='Objective', key='objective'), Column(name='Priority', key='priority'), Column(name='Activity Status', key='activity_status', valid_values=['REQUESTED', 'APPROVED', 'WAITING', 'ACTIVATING', 'IN_PROGRESS', 'PAUSED', 'COMPLETED', 'INVALID', 'IGNORED', 'FAILED', 'CANCELLED', 'ABANDONED', 'OTHER'])]), Format(types=['ALL'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Description', key='description'), Column(name='Situation', key='situation'), Column(name='Objective', key='objective'), Column(name='Priority', key='priority'), Column(name='Activity Status', key='activity_status', valid_values=['REQUESTED', 'APPROVED', 'WAITING', 'ACTIVATING', 'IN_PROGRESS', 'PAUSED', 'COMPLETED', 'INVALID', 'IGNORED', 'FAILED', 'CANCELLED', 'ABANDONED', 'OTHER'])])]), - 'UC-Catalog-Element-DrE-Advanced': FormatSet(target_type='UC Catalog Element', heading='UC-Catalog-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Catalog Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Catalog-Element-DrE-Basic': FormatSet(target_type='UC Catalog Element', heading='UC-Catalog-Element-DrE-Basic Attributes', description='Auto-generated format for UC Catalog Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Function-Element-DrE-Advanced': FormatSet(target_type='UC Function Element', heading='UC-Function-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Function Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Function-Element-DrE-Basic': FormatSet(target_type='UC Function Element', heading='UC-Function-Element-DrE-Basic Attributes', description='Auto-generated format for UC Function Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Schema-Element-DrE-Advanced': FormatSet(target_type='UC Schema Element', heading='UC-Schema-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Schema Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Schema-Element-DrE-Basic': FormatSet(target_type='UC Schema Element', heading='UC-Schema-Element-DrE-Basic Attributes', description='Auto-generated format for UC Schema Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Server-Element-DrE-Advanced': FormatSet(target_type='UC Server Element', heading='UC-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Server-Element-DrE-Basic': FormatSet(target_type='UC Server Element', heading='UC-Server-Element-DrE-Basic Attributes', description='Auto-generated format for UC Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Table-Element-DrE-Advanced': FormatSet(target_type='UC Table Element', heading='UC-Table-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Table Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Table-Element-DrE-Basic': FormatSet(target_type='UC Table Element', heading='UC-Table-Element-DrE-Basic Attributes', description='Auto-generated format for UC Table Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Volume-Element-DrE-Advanced': FormatSet(target_type='UC Volume Element', heading='UC-Volume-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Volume Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), - 'UC-Volume-Element-DrE-Basic': FormatSet(target_type='UC Volume Element', heading='UC-Volume-Element-DrE-Basic Attributes', description='Auto-generated format for UC Volume Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier')])], action=ActionParameter(function='MetadataExpert.find_metadata_elements_with_string', 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'])), + 'UC-Catalog-Element-DrE-Advanced': FormatSet(target_type='UC Catalog Element', heading='UC-Catalog-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Catalog Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Catalog', 'metadata_element_type': 'SoftwareCapability', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Catalog-Element-DrE-Basic': FormatSet(target_type='UC Catalog Element', heading='UC-Catalog-Element-DrE-Basic Attributes', description='Auto-generated format for UC Catalog Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Catalog', 'metadata_element_type': 'SoftwareCapability', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Function-Element-DrE-Advanced': FormatSet(target_type='UC Function Element', heading='UC-Function-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Function Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Function', 'metadata_element_type': 'DeployedAPI', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Function-Element-DrE-Basic': FormatSet(target_type='UC Function Element', heading='UC-Function-Element-DrE-Basic Attributes', description='Auto-generated format for UC Function Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Function', 'metadata_element_type': 'DeployedAPI', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Schema-Element-DrE-Advanced': FormatSet(target_type='UC Schema Element', heading='UC-Schema-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Schema Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Schema', 'metadata_element_type': 'DeployedDatabaseSchema', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Schema-Element-DrE-Basic': FormatSet(target_type='UC Schema Element', heading='UC-Schema-Element-DrE-Basic Attributes', description='Auto-generated format for UC Schema Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Schema', 'metadata_element_type': 'DeployedDatabaseSchema', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Server-Element-DrE-Advanced': FormatSet(target_type='UC Server Element', heading='UC-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Server-Element-DrE-Basic': FormatSet(target_type='UC Server Element', heading='UC-Server-Element-DrE-Basic Attributes', description='Auto-generated format for UC Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Table-Element-DrE-Advanced': FormatSet(target_type='UC Table Element', heading='UC-Table-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Table Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Table', 'metadata_element_type': 'RelationalTable', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Table-Element-DrE-Basic': FormatSet(target_type='UC Table Element', heading='UC-Table-Element-DrE-Basic Attributes', description='Auto-generated format for UC Table Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Table', 'metadata_element_type': 'RelationalTable', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Volume-Element-DrE-Advanced': FormatSet(target_type='UC Volume Element', heading='UC-Volume-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Volume Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Volume', 'metadata_element_type': 'StorageVolume', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Volume-Element-DrE-Basic': FormatSet(target_type='UC Volume Element', heading='UC-Volume-Element-DrE-Basic Attributes', description='Auto-generated format for UC Volume Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Volume', 'metadata_element_type': 'StorageVolume', 'property_names': ['displayName', 'qualifiedName']})), 'Vulnerability-Finding-DrE-Advanced': FormatSet(target_type='Vulnerability Finding', heading='Vulnerability-Finding-DrE-Advanced Attributes', description='Auto-generated format for Vulnerability Finding (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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='CVSS Vector', key='cvss_vector'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Vulnerability Type', key='vulnerability_type'), Column(name='Package URL', key='package_url'), Column(name='Installed Version', key='installed_version'), Column(name='Fixed Version', key='fixed_version'), Column(name='Patch Available', key='patch_available'), 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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='CVSS Vector', key='cvss_vector'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Vulnerability Type', key='vulnerability_type'), Column(name='Package URL', key='package_url'), Column(name='Installed Version', key='installed_version'), Column(name='Fixed Version', key='fixed_version'), Column(name='Patch Available', key='patch_available'), 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')])]), 'Vulnerability-Finding-DrE-Basic': FormatSet(target_type='Vulnerability Finding', heading='Vulnerability-Finding-DrE-Basic Attributes', description='Auto-generated format for Vulnerability Finding (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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Package URL', key='package_url'), Column(name='Installed Version', key='installed_version'), Column(name='Fixed Version', key='fixed_version'), Column(name='Patch Available', key='patch_available'), 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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Package URL', key='package_url'), Column(name='Installed Version', key='installed_version'), Column(name='Fixed Version', key='fixed_version'), Column(name='Patch Available', key='patch_available')])]), 'Work-Item-List-DrE-Advanced': FormatSet(target_type='Work Item List', heading='Work-Item-List-DrE-Advanced Attributes', description='Auto-generated format for Work Item List (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': 'WorkItemList'})), diff --git a/pyegeria/view/format_set_executor.py b/pyegeria/view/format_set_executor.py index 549673fc..85ee81bc 100644 --- a/pyegeria/view/format_set_executor.py +++ b/pyegeria/view/format_set_executor.py @@ -18,7 +18,7 @@ import json import os import sys -from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Any, Dict, Iterable, List, Optional, Tuple, Union from loguru import logger from pydantic import ValidationError @@ -550,6 +550,53 @@ def _to_string_list(raw_value: Any) -> Any: return _canonical_param_names(cleaned) +# Run-parameter names that are aliases or rendering options rather than parameters of the report: +# consumed under another name, so never reported as dropped. +_RUN_PARAM_ALIASES = frozenset({ + "search_string", "filter_string", "property_value", "filter", "output_format", "report_spec", + "graph_query_depth", "metadata_element_name", "limit_result_by_status", "sort_order", + "output_sort_order", "order_property_name", "anchor_scope_id", +}) + + +def _warn_dropped_params(report_name: str, params: Dict[str, Any], call_params: Dict[str, Any], + declared: Iterable[str]) -> None: + """A caller's run parameter that the report does not take is dropped; say so (P3: never silent). + + Same warning class as an unknown filter on a method call (UnknownFilterWarning), plus a log line. + """ + import warnings + from pyegeria.core.request_filters import (DEPRECATED_NAMES, LEGACY_ALIASES, RENDER_OPTIONS, + UnknownFilterWarning, _SKIP_PREFIXES) + + known = _RUN_PARAM_ALIASES | RENDER_OPTIONS | set(DEPRECATED_NAMES) | set(LEGACY_ALIASES) + dropped = sorted(k for k in (params or {}) if k not in call_params and k not in known) + if not dropped: + return + takes = ", ".join(sorted(set(declared))) or "no parameters" + msg = (f"report '{report_name}': parameter(s) {', '.join(repr(k) for k in dropped)} ignored -- " + f"not parameters of this report (it takes: {takes}). " + f"(pyegeria will raise an error for unknown parameters in a future release.)") + logger.warning(msg) + warnings.warn(msg, UnknownFilterWarning, skip_file_prefixes=_SKIP_PREFIXES) + + +def _bind_search_parameter(func: Any, call_params: Dict[str, Any]) -> Dict[str, Any]: + """Generated report specs always pass the user's text as `search_string`. A method that takes it + as `property_value` instead (ClassificationExplorer.find_elements_by_property_value) gets it + under that name.""" + try: + names = inspect.signature(func).parameters + except (TypeError, ValueError): + return call_params + if "search_string" in call_params and "search_string" not in names and "property_value" in names \ + and "property_value" not in call_params: + out = dict(call_params) + out["property_value"] = out.pop("search_string") + return out + return call_params + + def _canonical_param_names(params: Dict[str, Any]) -> Dict[str, Any]: """Rename deprecated filter spellings (metadata_element_type_name, ...) to the canonical names, quietly: a report spec or Dr.Egeria parameter list is not the caller's code, so it @@ -843,6 +890,9 @@ async def _async_run_report_impl( ) call_params = _merge_signature_params(func, params, call_params) + call_params = _bind_search_parameter(func, call_params) + _warn_dropped_params(report_name, params, call_params, + [*required_params, *optional_params, *spec_params]) # Only (re)create a bearer token if one is not already set on the client. try: existing_token = None @@ -1281,6 +1331,9 @@ def _exec_report_spec_impl( ) call_params = _add_request_options(func, params, call_params) + call_params = _bind_search_parameter(func, call_params) + _warn_dropped_params(format_set_name, params, call_params, + [*required_params, *optional_params, *spec_params]) result = func(**call_params) if not result or result == NO_ELEMENTS_FOUND: @@ -1324,9 +1377,11 @@ def _exec_report_spec_impl( except ValidationError as e: print_validation_error(e) raise - except ValueError as e: - import traceback - traceback.print_exc() + except ValueError: + # Re-raise, as the async path does: this used to print the traceback and return None, so a + # plain-words refusal (e.g. "give a search string or a narrower type") reached the caller as + # "no result" -- an absence that looked like an answer. + raise finally: try: diff --git a/tests/micro-tests/test_metadata_expert_report_spec_kwarg.py b/tests/micro-tests/test_metadata_expert_report_spec_kwarg.py index cb228c4c..9b776468 100644 --- a/tests/micro-tests/test_metadata_expert_report_spec_kwarg.py +++ b/tests/micro-tests/test_metadata_expert_report_spec_kwarg.py @@ -60,9 +60,11 @@ def _specs_using(method: str) -> list[str]: def test_known_failing_spec_is_covered(): - # Reproduced live 2026-11-07. Specs added later on the same function + # Reproduced live 2026-11-07 with Report-DrE-Basic. Since 6.2.28 the generic-search specs + # (Report-DrE-* among them) call ClassificationExplorer; the specs still on this function # (e.g. Dashboards) are picked up by the registry scan below. - assert "Report-DrE-Basic" in _WITH_STRING_SPECS + assert "Report-DrE-Basic" not in _WITH_STRING_SPECS + assert "Dashboard-DrE-Basic" in _WITH_STRING_SPECS @pytest.mark.parametrize("spec_name", _WITH_STRING_SPECS) @@ -76,7 +78,8 @@ def test_exec_report_spec_runs(spec_name, _offline): @pytest.mark.parametrize("method, args", [ - ("find_metadata_elements_with_string", {}), + # an untyped '*' is refused in words since 6.2.28, so give it a type + ("find_metadata_elements_with_string", {"metadata_element_type": "Report"}), ("find_elements_for_anchor", {"guid": "a1"}), ("find_elements_in_anchor_domain", {"anchor_domain": "Glossary"}), ("find_elements_in_anchor_scope", {"guid": "a1"}), diff --git a/tests/micro-tests/test_search_get_filter_kwargs.py b/tests/micro-tests/test_search_get_filter_kwargs.py index 7301c390..6b49ccd5 100644 --- a/tests/micro-tests/test_search_get_filter_kwargs.py +++ b/tests/micro-tests/test_search_get_filter_kwargs.py @@ -378,3 +378,167 @@ def test_report_executor_canonicalizes_quietly(): "metadata_element_subtype_names": "A,B"}, action_mode="find") assert out["metadata_element_type"] == "X" and out["metadata_element_subtypes"] == ["A", "B"] assert "metadata_element_type_name" not in out and "metadata_element_subtype_names" not in out + + +# ---------------------------------------------------------------------------- generic-search specs + +# (ClassificationExplorer.get_elements is not here: it always sends a type, Referenceable by default.) +GENERIC_SEARCH_FUNCTIONS = { + "MetadataExpert.find_metadata_elements_with_string", + "ClassificationExplorer.find_elements_by_property_value", +} +TYPE_FILTERS = {"metadata_element_type", "metadata_element_subtypes", "include_only_classified_elements"} + + +def test_every_generic_search_spec_names_a_type(): + """A generic search with no type lists whatever matches across the whole repository, and with + '*' Egeria refuses it outright ("searchString is null"). Each such report spec must say which + type (or classification) it is about -- set it in the Dr.Egeria command's find_constraints.""" + from pyegeria.view.base_report_formats import get_report_registry + + untyped = [] + for name, fs in get_report_registry().items(): + action = getattr(fs, "action", None) + if getattr(action, "function", None) in GENERIC_SEARCH_FUNCTIONS: + if not TYPE_FILTERS & set(getattr(action, "spec_params", None) or {}): + untyped.append(f"{name} -> {action.function}") + assert not untyped, "generic-search report specs with no type filter:\n" + "\n".join(sorted(untyped)) + + +def test_untyped_star_is_refused_with_words(explorer, monkeypatch): + from pyegeria.omvs.metadata_expert import MetadataExpert + + with pytest.raises(ValueError, match="give a search string or a"): + explorer.find_elements_by_property_value("*", ["displayName"]) + assert not explorer.sent + + monkeypatch.setattr(MetadataExpert, "check_connection", lambda self: "test") + expert = MetadataExpert("view-server", "https://egeria.example:9443", "user", "pwd") + with pytest.raises(ValueError, match="give a search string or a type"): + expert.find_metadata_elements_with_string("*") + + +def test_typed_star_lists_every_element_of_the_type(explorer): + explorer.find_elements_by_property_value("*", ["displayName", "qualifiedName"], + metadata_element_type="EmbeddedProcess", page_size=5) + body = explorer.sent[-1] + assert body["metadataElementTypeName"] == "EmbeddedProcess" + assert "propertyValue" not in body and "searchString" not in body # sent as a by-type list + + +def test_report_search_string_reaches_property_value(): + import pyegeria.view.format_set_executor as fse + from pyegeria.omvs.classification_explorer import ClassificationExplorer + + out = fse._bind_search_parameter(ClassificationExplorer.find_elements_by_property_value, + {"search_string": "pump", "property_names": ["displayName"]}) + assert out == {"property_value": "pump", "property_names": ["displayName"]} + + +def test_star_with_a_technology_lists_exactly_that_technology(explorer): + explorer.find_elements_by_property_value("*", ["displayName", "qualifiedName"], + metadata_element_type="SoftwareServer", + deployed_implementation_type="PostgreSQL Server") + body = explorer.sent[-1] + assert body["metadataElementTypeName"] == "SoftwareServer" + assert body["propertyNames"] == ["deployedImplementationType"] + assert body["propertyValue"] == "PostgreSQL Server" # matched by Egeria, so paging stays right + + +def test_search_string_with_a_technology_searches_names_within_the_type(explorer): + # The documented limit: a real search string matches displayName/qualifiedName within the + # supertype; the technology is not applied (it cannot be combined in one Egeria query). + explorer.find_elements_by_property_value("orders", ["displayName", "qualifiedName"], + metadata_element_type="SoftwareServer", + deployed_implementation_type="PostgreSQL Server") + body = explorer.sent[-1] + assert body["propertyNames"] == ["displayName", "qualifiedName"] + assert body["metadataElementTypeName"] == "SoftwareServer" + + +def test_generator_derives_type_and_technology_from_the_command(): + import importlib.util + + spec = importlib.util.spec_from_file_location("gen_report_specs", REPO / "commands" / "tech" / "gen_report_specs.py") + gen = importlib.util.module_from_spec(spec) + spec.loader.exec_module(gen) + ce = "ClassificationExplorer.find_elements_by_property_value" + assert gen._generic_search_constraints("Create Postgres Server Element", {"OM_TYPE": "SoftwareServer"}, ce, {}) == { + "metadata_element_type": "SoftwareServer", "property_names": ["displayName", "qualifiedName"], + "deployed_implementation_type": "PostgreSQL Server"} + assert gen._generic_search_constraints("Create Element", {"OM_TYPE": ""}, ce, {})["metadata_element_type"] \ + == "OpenMetadataRoot" + # an explicit type in find_constraints is kept; other find methods are untouched + assert gen._generic_search_constraints("Create X", {"OM_TYPE": "A"}, ce, {"metadata_element_type": "B"})[ + "metadata_element_type"] == "B" + assert gen._generic_search_constraints("Create X", {"OM_TYPE": "A"}, "GlossaryManager.find_glossaries", {}) == {} + + +def test_technology_specs_show_the_technology_column(): + from pyegeria.view.base_report_formats import get_report_registry + + fs = get_report_registry()["Postgres-Server-Element-DrE-Basic"] + assert fs.action.spec_params["deployed_implementation_type"] == "PostgreSQL Server" + assert any(c.key == "deployed_implementation_type" for c in fs.formats[0].attributes) + + +def test_report_run_param_typo_warns(monkeypatch): + """P3: exec_report_spec passes only the report's declared parameters; a caller's typo used to vanish.""" + import pyegeria.view.format_set_executor as fse + + with pytest.warns(UnknownFilterWarning, match=r"report 'R': parameter\(s\) 'metadata_element_subtipes' ignored"): + fse._warn_dropped_params("R", {"search_string": "*", "metadata_element_subtipes": ["X"], "page_size": 5}, + {"search_string": "*", "page_size": 5}, ["search_string", "page_size"]) + with warnings.catch_warnings(): + warnings.simplefilter("error", UnknownFilterWarning) + fse._warn_dropped_params("R", {"search_string": "*", "sort_order": "ANY"}, {"property_value": "*"}, + ["search_string"]) + + +@pytest.mark.parametrize("root", ["OpenMetadataRoot", "Referenceable"]) +def test_star_on_a_root_type_is_refused(explorer, root): + # get_elements(OpenMetadataRoot, page_size=1000) ran the quickstart platform out of heap. + with pytest.raises(ValueError, match="give a search string or a narrower type"): + explorer.find_elements_by_property_value("*", ["displayName"], metadata_element_type=root) + assert not explorer.sent + explorer.find_elements_by_property_value("pump", ["displayName"], metadata_element_type=root) + assert explorer.sent[-1]["propertyValue"] == "pump" + + +@pytest.mark.parametrize("asked, sent", [(0, 100), (None, 100), (1000, 100), (25, 25)]) +def test_star_pages_never_more_than_100(explorer, asked, sent): + explorer.find_elements_by_property_value("*", ["displayName"], metadata_element_type="EmbeddedProcess", + page_size=asked, start_from=200) + body = explorer.sent[-1] + assert body["pageSize"] == sent and body["startFrom"] == 200 + + +def test_technology_star_pages_never_more_than_100(explorer): + explorer.find_elements_by_property_value("*", ["displayName"], metadata_element_type="SoftwareServer", + deployed_implementation_type="PostgreSQL Server", page_size=1000) + assert explorer.sent[-1]["pageSize"] == 100 + + +def test_exec_report_spec_surfaces_a_refusal(monkeypatch): + """The sync executor used to swallow ValueError and return None.""" + import pyegeria.view.format_set_executor as fse + + class _Client: + def __init__(self, *a, **k): + pass + + def set_bearer_token(self, token): + pass + + def close_session(self): + pass + + def find_things(self, search_string="*", **kwargs): + raise ValueError("give a search string or a narrower type") + + fmt = {"action": {"function": "X.find_things", "required_params": ["search_string"], "spec_params": {}}} + monkeypatch.setattr(fse, "select_report_spec", lambda name, kind: fmt) + monkeypatch.setattr(fse, "_resolve_client_and_method", lambda decl: (_Client, "find_things")) + with pytest.raises(ValueError, match="narrower type"): + fse.exec_report_spec("R", output_format="DICT", params={"search_string": "*"}, + view_server="v", view_url="https://x", user="u", user_pass="p", token="t") From 137132c6c9e64a42fea7f594b82fa2527835828b Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 13:19:11 +0000 Subject: [PATCH 12/14] fix: technology report specs match the technology exactly, ANDed server-side Architect read-back of 88ab7775: - P2: a technology spec with a search string returned other technologies (Postgres-Server-Element-DrE-Basic "Coco" gave 10 non-Postgres SoftwareServers). - P3: the technology match was "contains" (UC-Server '*' included "Databricks Unity Catalog Server"). find_elements_by_property_value with deployed_implementation_type now sends one ClassificationExplorer complex query (find_root_elements, /elements/by-complex-query): deployedImplementationType EQ the technology AND, for a search string, ANY of property_names matching it, with STARTS_WITH / ENDS_WITH / EQ / LIKE (CASE_INSENSITIVE_* for ignore_case) chosen from the search options. Egeria's Postgres repository matches LIKE literally (it escapes % and _), so no regex is sent. Paging stays exact; nothing is filtered client-side. The technology conditions win over a caller's search_properties. Live as erinoverview, page_size 25: Postgres-Server "Coco" -> empty; UC-Server '*' -> 2, both "Unity Catalog Server" (was 3 incl. Databricks); all 9 technology specs return only their exact technology, in 0.2 s each instead of 11-20 s. Docstring, docs page and release note drop the limitation text. Signed-off-by: Dan Wolfson --- docs/release-notes/6.2.28.md | 7 +- docs/search-and-get-filters.md | 16 ++--- pyegeria/omvs/classification_explorer.py | 69 +++++++++++++++---- .../test_search_get_filter_kwargs.py | 41 ++++++++--- 4 files changed, 98 insertions(+), 35 deletions(-) diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index 47113f5d..c1d50851 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -47,9 +47,10 @@ A search string used to match every type; it now matches only that type. - The 9 technology commands (Kafka, Postgres server/database, the Unity Catalog elements) also pass their `deployedImplementationType` (from the same table Dr.Egeria's create-from-template - calls use), so `'*'` lists exactly that technology. **Limit:** a search string matches - `displayName`/`qualifiedName` within the supertype and may include other technologies; those - specs show a *Deployed Implementation Type* column. + calls use). Egeria ANDs "technology equals" with the name search in one query, so these + reports list exactly that technology for `'*'` and for a search string (a "Databricks Unity + Catalog Server" is not a "Unity Catalog Server"); they show a *Deployed Implementation Type* + column. - `'*'` with no type or a root type (`OpenMetadataRoot`, `Referenceable`) is refused: "give a search string or a narrower type" (a whole-repository listing helped run the quickstart platform out of heap on 2026-11-09). So `Element-DrE-*` works only with a search string. diff --git a/docs/search-and-get-filters.md b/docs/search-and-get-filters.md index 0106bee8..71a2268b 100644 --- a/docs/search-and-get-filters.md +++ b/docs/search-and-get-filters.md @@ -135,14 +135,14 @@ specs: `displayName` and `qualifiedName`) within `metadata_element_type`. time: the caller's `page_size`, 100 when none is given, never more than 100 per call — page on with `start_from`. `'*'` with no type, or with a root type (`OpenMetadataRoot`, `Referenceable`), is refused: "give a search string or a narrower type". -- `deployed_implementation_type="PostgreSQL Server"` with `'*'` lists only that technology - within the type (Egeria matches `deployedImplementationType` containing the name; the - filtering is Egeria's, so paging stays correct). -- **Limit:** with any other search string the technology is not applied — Egeria cannot - combine the two in one query — so results may include other technologies of the same - supertype (e.g. a Kafka server whose name matches, in a Postgres-Server report). The - technology report specs show a *Deployed Implementation Type* column so each row's - technology is visible. +- `deployed_implementation_type="PostgreSQL Server"` restricts the search to exactly that + technology within the type. Egeria evaluates it in one complex query: + `deployedImplementationType` **equals** the technology, **and**, for a search string other than + `'*'`, one of `property_names` matches it (`starts_with` / `ends_with` / `ignore_case` choose the + operator: STARTS_WITH, ENDS_WITH, EQ or LIKE (contains), case-insensitive variants with + `ignore_case`). So a Postgres-Server report never lists a Kafka server or a "Databricks Unity + Catalog Server", and paging stays exact. The technology report specs also show a *Deployed + Implementation Type* column. `MetadataExpert.find_metadata_elements_with_string("*")` with no type is refused with "give a search string or a type" instead of passing Egeria's "searchString is null" through. diff --git a/pyegeria/omvs/classification_explorer.py b/pyegeria/omvs/classification_explorer.py index 22076fe6..7ca4df71 100644 --- a/pyegeria/omvs/classification_explorer.py +++ b/pyegeria/omvs/classification_explorer.py @@ -43,6 +43,26 @@ # '*' lists a type page by page: the caller's page_size, 100 when none is given, never more than 100. STAR_PAGE_MAX = 100 + +def _string_condition(property_name: str, operator: str, value: str) -> dict: + """One SearchProperties condition on a string property.""" + return {"property": property_name, "operator": operator, + "value": {"class": "PrimitiveTypePropertyValue", "typeName": "string", "primitiveValue": value}} + + +def _match_operator(starts_with: bool, ends_with: bool, ignore_case: bool) -> str: + """The PropertyComparisonOperator for a search string, mirroring the property-value search options. + Egeria matches the value literally (it escapes LIKE wildcards), so no regex is needed.""" + if starts_with and ends_with: + op = "EQ" + elif starts_with: + op = "STARTS_WITH" + elif ends_with: + op = "ENDS_WITH" + else: + op = "LIKE" + return f"CASE_INSENSITIVE_{op}" if ignore_case else op + class ClassificationExplorer(ServerClient): """ Client for the Classification Explorer OMVS. @@ -2966,7 +2986,7 @@ async def _async_find_elements_by_property_value( property_value: str - property value to be searched. '*' (or empty) with a metadata_element_type returns every element of that type (via get_elements); '*' without a type is refused. deployed_implementation_type: str, optional - - with '*', list only elements of this technology (Egeria matches deployedImplementationType containing it, case-insensitive) within metadata_element_type. Ignored for any other search string, which matches property_names within the whole type. + - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. property_names: list[str] - property names to search in. metadata_element_type : str, default = None @@ -3059,7 +3079,40 @@ async def _async_find_elements_by_property_value( # "effectiveTime": effective_time, # } - if property_value in (None, "", "*") and body is None: + star = property_value in (None, "", "*") + if deployed_implementation_type and body is None: + # One technology within a shared supertype (e.g. "PostgreSQL Server" among the + # SoftwareServers). Both conditions are ANDed by Egeria in one complex query, so paging is + # exact and no other technology can appear: deployedImplementationType EQUALS the + # technology, AND (for a search string) one of property_names matches it. + conditions = [_string_condition("deployedImplementationType", "EQ", deployed_implementation_type)] + if not star: + operator = _match_operator(starts_with, ends_with, ignore_case) + conditions.append({"nestedConditions": { + "class": "SearchProperties", "matchCriteria": "ANY", + "conditions": [_string_condition(name, operator, property_value) + for name in (property_names or ["displayName", "qualifiedName"])]}}) + filters = { + "anchor_domain": anchor_domain, "metadata_element_subtypes": metadata_element_subtypes, + "skip_relationships": skip_relationships, + "include_only_relationships": include_only_relationships, + "skip_classified_elements": skip_classified_elements, + "include_only_classified_elements": include_only_classified_elements, + "governance_zone_filter": governance_zone_filter, "as_of_time": as_of_time, + "limit_results_by_status": limit_results_by_status, "sequencing_order": sequencing_order, + "sequencing_property": sequencing_property, + } + return await self._async_find_root_elements( + metadata_element_type=metadata_element_type, + start_from=start_from, + page_size=min(page_size or STAR_PAGE_MAX, STAR_PAGE_MAX) if star else page_size, + graph_query_depth=graph_query_depth, output_format=output_format, report_spec=report_spec, + timeout=timeout, **{k: v for k, v in filters.items() if v is not None}, + # the technology conditions win over any search_properties a caller passed + **{**kwargs, "search_properties": {"class": "SearchProperties", "matchCriteria": "ALL", + "conditions": conditions}}) + + if star and body is None: # Egeria's property-value search refuses a null value (OPEN-METADATA-400-002), and pyegeria # sends '*' as null. '*' with a type therefore means "every element of that type"; without # a type there is nothing to ask for. @@ -3081,16 +3134,6 @@ async def _async_find_elements_by_property_value( "limit_results_by_status": limit_results_by_status, "sequencing_order": sequencing_order, "sequencing_property": sequencing_property, "graph_query_depth": graph_query_depth, } - if deployed_implementation_type: - # One technology within a shared supertype (e.g. "PostgreSQL Server" among the - # SoftwareServers): Egeria matches deployedImplementationType containing this name - # (literal, case-insensitive -- checked live). Done by Egeria, so paging stays correct; - # a client-side filter would make a short page look like the last one. - return await self._async_find_elements_by_property_value( - deployed_implementation_type, ["deployedImplementationType"], metadata_element_type, - start_from=start_from, page_size=page_size, output_format=output_format, - report_spec=report_spec, timeout=timeout, - **{k: v for k, v in list_filters.items() if v is not None}, **kwargs) return await self._async_get_elements( metadata_element_type=metadata_element_type, start_from=start_from, page_size=page_size, output_format=output_format, report_spec=report_spec, @@ -3172,7 +3215,7 @@ def find_elements_by_property_value( property_value: str - property value to be searched. '*' (or empty) with a metadata_element_type returns every element of that type (via get_elements); '*' without a type is refused. deployed_implementation_type: str, optional - - with '*', list only elements of this technology (Egeria matches deployedImplementationType containing it, case-insensitive) within metadata_element_type. Ignored for any other search string, which matches property_names within the whole type. + - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. property_names: list[str] - property names to search in. metadata_element_type : str, default = None diff --git a/tests/micro-tests/test_search_get_filter_kwargs.py b/tests/micro-tests/test_search_get_filter_kwargs.py index 6b49ccd5..3b16296f 100644 --- a/tests/micro-tests/test_search_get_filter_kwargs.py +++ b/tests/micro-tests/test_search_get_filter_kwargs.py @@ -435,25 +435,44 @@ def test_report_search_string_reaches_property_value(): assert out == {"property_value": "pump", "property_names": ["displayName"]} +def _conditions(body): + return body["searchProperties"]["conditions"] + + def test_star_with_a_technology_lists_exactly_that_technology(explorer): explorer.find_elements_by_property_value("*", ["displayName", "qualifiedName"], metadata_element_type="SoftwareServer", - deployed_implementation_type="PostgreSQL Server") + deployed_implementation_type="Unity Catalog Server") body = explorer.sent[-1] - assert body["metadataElementTypeName"] == "SoftwareServer" - assert body["propertyNames"] == ["deployedImplementationType"] - assert body["propertyValue"] == "PostgreSQL Server" # matched by Egeria, so paging stays right + assert body["class"] == "FindRequestBody" and body["metadataElementTypeName"] == "SoftwareServer" + # exact, so "Databricks Unity Catalog Server" is not a "Unity Catalog Server" + assert _conditions(body) == [{"property": "deployedImplementationType", "operator": "EQ", + "value": {"class": "PrimitiveTypePropertyValue", "typeName": "string", + "primitiveValue": "Unity Catalog Server"}}] + assert body["searchProperties"]["matchCriteria"] == "ALL" -def test_search_string_with_a_technology_searches_names_within_the_type(explorer): - # The documented limit: a real search string matches displayName/qualifiedName within the - # supertype; the technology is not applied (it cannot be combined in one Egeria query). - explorer.find_elements_by_property_value("orders", ["displayName", "qualifiedName"], +def test_search_string_with_a_technology_ands_both_conditions_server_side(explorer): + explorer.find_elements_by_property_value("Coco", ["displayName", "qualifiedName"], metadata_element_type="SoftwareServer", - deployed_implementation_type="PostgreSQL Server") + deployed_implementation_type="PostgreSQL Server", page_size=25) body = explorer.sent[-1] - assert body["propertyNames"] == ["displayName", "qualifiedName"] - assert body["metadataElementTypeName"] == "SoftwareServer" + tech, names = _conditions(body) + assert tech["property"] == "deployedImplementationType" and tech["operator"] == "EQ" + nested = names["nestedConditions"] + assert nested["matchCriteria"] == "ANY" + assert [(c["property"], c["operator"], c["value"]["primitiveValue"]) for c in nested["conditions"]] == [ + ("displayName", "STARTS_WITH", "Coco"), ("qualifiedName", "STARTS_WITH", "Coco")] + assert body["searchProperties"]["matchCriteria"] == "ALL" and body["pageSize"] == 25 + + +@pytest.mark.parametrize("starts, ends, ignore, op", [ + (True, False, False, "STARTS_WITH"), (False, True, False, "ENDS_WITH"), (True, True, False, "EQ"), + (False, False, False, "LIKE"), (True, False, True, "CASE_INSENSITIVE_STARTS_WITH"), + (False, False, True, "CASE_INSENSITIVE_LIKE")]) +def test_search_options_map_to_egeria_operators(starts, ends, ignore, op): + from pyegeria.omvs.classification_explorer import _match_operator + assert _match_operator(starts, ends, ignore) == op def test_generator_derives_type_and_technology_from_the_command(): From 4bbcc6c47e2aee5deac8718866ee45ef3ecc1ea8 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 13:25:13 +0000 Subject: [PATCH 13/14] feat: technology report specs take the technology as a run parameter ("*" = any) Owner: "For the technology specs we should allow the tech type to be a wildcard?" The 9 technology specs (and their -Advanced twins) now pin default_deployed_implementation_type (from ELEMENT_TEMPLATE_TECHNOLOGY via the generator) and declare deployed_implementation_type as an optional run parameter, so it is not an unknown filter and the Portal's run form shows it. spec_params still win on a collision (section 9.13 unchanged), which is why the default is a separate parameter and not a pinned deployed_implementation_type. find_elements_by_property_value: technology = deployed_implementation_type or default_deployed_implementation_type; - not given: the spec's technology, exact, ANDed server-side with the name match; - "*": no technology condition; the report searches every element of its type ('*' lists via get_elements, at most 100 per call; a root type is still refused); - anything else: that technology, exact. Live as erinoverview, Postgres-Server-Element-DrE-Basic, page_size 25: default '*' -> 1 PostgreSQL Server; technology "*" -> 19 SoftwareServers across 14 technologies; default "Coco" -> empty; technology "*" + "Coco" -> 10. No UnknownFilterWarning. Census 437/376/0/61. Signed-off-by: Dan Wolfson --- commands/tech/gen_report_specs.py | 11 ++- docs/release-notes/6.2.28.md | 3 + docs/search-and-get-filters.md | 8 ++ md_processing/data/generated_format_sets.json | 90 +++++++++++-------- pyegeria/omvs/classification_explorer.py | 22 +++-- pyegeria/view/base_report_formats.py | 36 ++++---- .../test_search_get_filter_kwargs.py | 86 +++++++++++++++++- 7 files changed, 191 insertions(+), 65 deletions(-) diff --git a/commands/tech/gen_report_specs.py b/commands/tech/gen_report_specs.py index aa8ae615..77aa4fbc 100644 --- a/commands/tech/gen_report_specs.py +++ b/commands/tech/gen_report_specs.py @@ -331,7 +331,9 @@ def _generic_search_constraints(cmd_key: str, cmd_obj: dict, find_method: str, c out.setdefault("property_names", list(GENERIC_PROPERTY_NAMES)) technology = _technology_for_command(cmd_key) if technology: - out.setdefault("deployed_implementation_type", technology) + # A default, not a pin: the run parameter deployed_implementation_type (declared optional, + # so the Portal's run form shows it) overrides it, and "*" means any technology. + out.setdefault("default_deployed_implementation_type", technology) return out @@ -436,8 +438,8 @@ def build_format_sets_from_commands( find_method = cmd_obj.get("find_method") or "" constraints = _generic_search_constraints( cmd_key, cmd_obj, find_method, _safe_parse_constraints(cmd_obj.get("find_constraints"))) - if "deployed_implementation_type" in constraints and \ - all(c.key != TECHNOLOGY_COLUMN.key for c in columns): + technology_spec = "default_deployed_implementation_type" in constraints + if technology_spec and all(c.key != TECHNOLOGY_COLUMN.key for c in columns): columns = [*columns, Column(**TECHNOLOGY_COLUMN.model_dump())] extra_find = cmd_obj.get("extra_find") or "" extra_constraints = _safe_parse_constraints(cmd_obj.get("extra_constraints")) @@ -449,7 +451,8 @@ def build_format_sets_from_commands( action = ActionParameter( function=find_method or None, required_params=["search_string"] if find_method else [], - optional_params=OPTIONAL_SEARCH_PARAMS if find_method else [], + optional_params=([*OPTIONAL_SEARCH_PARAMS, "deployed_implementation_type"] + if technology_spec else OPTIONAL_SEARCH_PARAMS) if find_method else [], spec_params=constraints or {}, analytic_function=extra_find or None, analytic_spec_params=(extra_constraints or {}) if extra_find else {}, diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index 0b1bed3d..76219941 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -77,6 +77,9 @@ reports list exactly that technology for `'*'` and for a search string (a "Databricks Unity Catalog Server" is not a "Unity Catalog Server"); they show a *Deployed Implementation Type* column. + The technology is an optional run parameter, `deployed_implementation_type`, defaulting to the + spec's own: `"*"` searches every element of the type (any technology), any other value is an + exact match on that technology. - `'*'` with no type or a root type (`OpenMetadataRoot`, `Referenceable`) is refused: "give a search string or a narrower type" (a whole-repository listing helped run the quickstart platform out of heap on 2026-11-09). So `Element-DrE-*` works only with a search string. diff --git a/docs/search-and-get-filters.md b/docs/search-and-get-filters.md index 71a2268b..b63a16d3 100644 --- a/docs/search-and-get-filters.md +++ b/docs/search-and-get-filters.md @@ -143,6 +143,14 @@ specs: `displayName` and `qualifiedName`) within `metadata_element_type`. `ignore_case`). So a Postgres-Server report never lists a Kafka server or a "Databricks Unity Catalog Server", and paging stays exact. The technology report specs also show a *Deployed Implementation Type* column. +- In the technology report specs (Kafka, Postgres server/database, Unity Catalog ...) the + technology is a **run parameter**, `deployed_implementation_type`, whose default is the spec's + own technology (the spec pins it as `default_deployed_implementation_type`): + - not given → the spec's technology, matched exactly; + - `"*"` → any technology: the report lists or searches every element of its type (e.g. every + `SoftwareServer`); `'*'` as the search string still lists at most 100 per call, and a root type + is still refused; + - any other value → that technology, matched exactly. `MetadataExpert.find_metadata_elements_with_string("*")` with no type is refused with "give a search string or a type" instead of passing Egeria's "searchString is null" through. diff --git a/md_processing/data/generated_format_sets.json b/md_processing/data/generated_format_sets.json index d5511ffb..b8ea614a 100644 --- a/md_processing/data/generated_format_sets.json +++ b/md_processing/data/generated_format_sets.json @@ -24295,7 +24295,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "SoftwareServer", @@ -24303,7 +24304,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Apache Kafka Server" + "default_deployed_implementation_type": "Apache Kafka Server" }, "analytic_function": null, "analytic_spec_params": {} @@ -24513,7 +24514,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "SoftwareServer", @@ -24521,7 +24523,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Apache Kafka Server" + "default_deployed_implementation_type": "Apache Kafka Server" }, "analytic_function": null, "analytic_spec_params": {} @@ -25485,7 +25487,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "SoftwareServer", @@ -25493,7 +25496,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "PostgreSQL Server" + "default_deployed_implementation_type": "PostgreSQL Server" }, "analytic_function": null, "analytic_spec_params": {} @@ -25831,7 +25834,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "SoftwareServer", @@ -25839,7 +25843,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "PostgreSQL Server" + "default_deployed_implementation_type": "PostgreSQL Server" }, "analytic_function": null, "analytic_spec_params": {} @@ -26177,7 +26181,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "RelationalDatabase", @@ -26185,7 +26190,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "PostgreSQL Relational Database" + "default_deployed_implementation_type": "PostgreSQL Relational Database" }, "analytic_function": null, "analytic_spec_params": {} @@ -26523,7 +26528,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "RelationalDatabase", @@ -26531,7 +26537,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "PostgreSQL Relational Database" + "default_deployed_implementation_type": "PostgreSQL Relational Database" }, "analytic_function": null, "analytic_spec_params": {} @@ -27207,7 +27213,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "SoftwareServer", @@ -27215,7 +27222,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Server" + "default_deployed_implementation_type": "Unity Catalog Server" }, "analytic_function": null, "analytic_spec_params": {} @@ -27457,7 +27464,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "SoftwareServer", @@ -27465,7 +27473,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Server" + "default_deployed_implementation_type": "Unity Catalog Server" }, "analytic_function": null, "analytic_spec_params": {} @@ -27675,7 +27683,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "SoftwareCapability", @@ -27683,7 +27692,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Catalog" + "default_deployed_implementation_type": "Unity Catalog Catalog" }, "analytic_function": null, "analytic_spec_params": {} @@ -27893,7 +27902,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "SoftwareCapability", @@ -27901,7 +27911,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Catalog" + "default_deployed_implementation_type": "Unity Catalog Catalog" }, "analytic_function": null, "analytic_spec_params": {} @@ -28143,7 +28153,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "DeployedDatabaseSchema", @@ -28151,7 +28162,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Schema" + "default_deployed_implementation_type": "Unity Catalog Schema" }, "analytic_function": null, "analytic_spec_params": {} @@ -28393,7 +28404,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "DeployedDatabaseSchema", @@ -28401,7 +28413,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Schema" + "default_deployed_implementation_type": "Unity Catalog Schema" }, "analytic_function": null, "analytic_spec_params": {} @@ -28815,7 +28827,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "RelationalTable", @@ -28823,7 +28836,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Table" + "default_deployed_implementation_type": "Unity Catalog Table" }, "analytic_function": null, "analytic_spec_params": {} @@ -29237,7 +29250,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "RelationalTable", @@ -29245,7 +29259,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Table" + "default_deployed_implementation_type": "Unity Catalog Table" }, "analytic_function": null, "analytic_spec_params": {} @@ -29519,7 +29533,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "DeployedAPI", @@ -29527,7 +29542,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Function" + "default_deployed_implementation_type": "Unity Catalog Function" }, "analytic_function": null, "analytic_spec_params": {} @@ -29801,7 +29816,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "DeployedAPI", @@ -29809,7 +29825,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Function" + "default_deployed_implementation_type": "Unity Catalog Function" }, "analytic_function": null, "analytic_spec_params": {} @@ -30159,7 +30175,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "StorageVolume", @@ -30167,7 +30184,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Volume" + "default_deployed_implementation_type": "Unity Catalog Volume" }, "analytic_function": null, "analytic_spec_params": {} @@ -30517,7 +30534,8 @@ "ignore_case", "classification_names", "metadata_element_subtypes", - "metadata_element_type" + "metadata_element_type", + "deployed_implementation_type" ], "spec_params": { "metadata_element_type": "StorageVolume", @@ -30525,7 +30543,7 @@ "displayName", "qualifiedName" ], - "deployed_implementation_type": "Unity Catalog Volume" + "default_deployed_implementation_type": "Unity Catalog Volume" }, "analytic_function": null, "analytic_spec_params": {} diff --git a/pyegeria/omvs/classification_explorer.py b/pyegeria/omvs/classification_explorer.py index 7ca4df71..fd6b036a 100644 --- a/pyegeria/omvs/classification_explorer.py +++ b/pyegeria/omvs/classification_explorer.py @@ -2972,6 +2972,7 @@ async def _async_find_elements_by_property_value( timeout: int = default_timeout, body: Optional[dict | FindPropertyNamesRequestBody] = None, deployed_implementation_type: Optional[str] = None, + default_deployed_implementation_type: Optional[str] = None, **kwargs, ) -> list | str: """ @@ -2986,7 +2987,9 @@ async def _async_find_elements_by_property_value( property_value: str - property value to be searched. '*' (or empty) with a metadata_element_type returns every element of that type (via get_elements); '*' without a type is refused. deployed_implementation_type: str, optional - - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. + - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. "*" means any technology (no technology condition). + default_deployed_implementation_type: str, optional + - the technology used when deployed_implementation_type is not given (report specs pin it; a caller's deployed_implementation_type overrides it). property_names: list[str] - property names to search in. metadata_element_type : str, default = None @@ -3080,12 +3083,17 @@ async def _async_find_elements_by_property_value( # } star = property_value in (None, "", "*") - if deployed_implementation_type and body is None: + # The technology: the caller's deployed_implementation_type if given, else the report spec's + # default; "*" means any technology (no technology condition). + technology = deployed_implementation_type or default_deployed_implementation_type + if technology == "*": + technology = None + if technology and body is None: # One technology within a shared supertype (e.g. "PostgreSQL Server" among the # SoftwareServers). Both conditions are ANDed by Egeria in one complex query, so paging is # exact and no other technology can appear: deployedImplementationType EQUALS the # technology, AND (for a search string) one of property_names matches it. - conditions = [_string_condition("deployedImplementationType", "EQ", deployed_implementation_type)] + conditions = [_string_condition("deployedImplementationType", "EQ", technology)] if not star: operator = _match_operator(starts_with, ends_with, ignore_case) conditions.append({"nestedConditions": { @@ -3116,7 +3124,7 @@ async def _async_find_elements_by_property_value( # Egeria's property-value search refuses a null value (OPEN-METADATA-400-002), and pyegeria # sends '*' as null. '*' with a type therefore means "every element of that type"; without # a type there is nothing to ask for. - if not metadata_element_type or (metadata_element_type in _ROOT_TYPES and not deployed_implementation_type): + if not metadata_element_type or metadata_element_type in _ROOT_TYPES: # A root type is no narrower than no type: listing every element of the repository # ran the quickstart platform out of heap (2026-11-09), so it is refused like '*'. raise ValueError("find_elements_by_property_value: give a search string or a narrower type " @@ -3201,6 +3209,7 @@ def find_elements_by_property_value( timeout: int = default_timeout, body: Optional[dict | FindPropertyNamesRequestBody] = None, deployed_implementation_type: Optional[str] = None, + default_deployed_implementation_type: Optional[str] = None, **kwargs, ) -> list | str: """ @@ -3215,7 +3224,9 @@ def find_elements_by_property_value( property_value: str - property value to be searched. '*' (or empty) with a metadata_element_type returns every element of that type (via get_elements); '*' without a type is refused. deployed_implementation_type: str, optional - - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. + - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. "*" means any technology (no technology condition). + default_deployed_implementation_type: str, optional + - the technology used when deployed_implementation_type is not given (report specs pin it; a caller's deployed_implementation_type overrides it). property_names: list[str] - property names to search in. metadata_element_type : str, default = None @@ -3290,6 +3301,7 @@ def find_elements_by_property_value( timeout=timeout, body=body, deployed_implementation_type=deployed_implementation_type, + default_deployed_implementation_type=default_deployed_implementation_type, **kwargs ) ) diff --git a/pyegeria/view/base_report_formats.py b/pyegeria/view/base_report_formats.py index fb479d4d..5c8db0c2 100644 --- a/pyegeria/view/base_report_formats.py +++ b/pyegeria/view/base_report_formats.py @@ -252,8 +252,8 @@ 'IT-Subsystem-DrE-Basic': FormatSet(target_type='IT Subsystem', heading='IT-Subsystem-DrE-Basic Attributes', description='Auto-generated format for IT Subsystem (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='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': 'ITSubsystem'})), 'Journal-Entry-DrE-Advanced': FormatSet(target_type='Journal Entry', heading='Journal-Entry-DrE-Advanced Attributes', description='Auto-generated format for Journal 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')])]), 'Journal-Entry-DrE-Basic': FormatSet(target_type='Journal Entry', heading='Journal-Entry-DrE-Basic Attributes', description='Auto-generated format for Journal 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')])]), - 'Kafka-Server-Element-DrE-Advanced': FormatSet(target_type='Kafka Server Element', heading='Kafka-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for Kafka Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')]), Format(types=['ALL'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Apache Kafka Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), - 'Kafka-Server-Element-DrE-Basic': FormatSet(target_type='Kafka Server Element', heading='Kafka-Server-Element-DrE-Basic Attributes', description='Auto-generated format for Kafka Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')]), Format(types=['ALL'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Apache Kafka Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'Kafka-Server-Element-DrE-Advanced': FormatSet(target_type='Kafka Server Element', heading='Kafka-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for Kafka Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')]), Format(types=['ALL'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Apache Kafka Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'Kafka-Server-Element-DrE-Basic': FormatSet(target_type='Kafka Server Element', heading='Kafka-Server-Element-DrE-Basic Attributes', description='Auto-generated format for Kafka Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')]), Format(types=['ALL'], attributes=[Column(name='Kafka Server Name', key='kafka_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Apache Kafka Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), 'License-Type-DrE-Advanced': FormatSet(target_type='License Type', heading='License-Type-DrE-Advanced Attributes', description='Auto-generated format for License Type (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='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions'), 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='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='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions')])], 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': 'LicenseType'})), 'License-Type-DrE-Basic': FormatSet(target_type='License Type', heading='License-Type-DrE-Basic Attributes', description='Auto-generated format for License Type (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='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions'), 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'), Column(name='Implementation Description', key='implementation_description'), Column(name='Entitlements', key='entitlements'), Column(name='Obligations', key='obligations'), Column(name='Restrictions', key='restrictions')])], 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': 'LicenseType'})), 'Like-DrE-Advanced': FormatSet(target_type='Like', heading='Like-DrE-Advanced Attributes', description='Auto-generated format for Like (Create, Advanced).', family='Feedback', formats=[Format(types=['LIST'], attributes=[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='Version Identifier', key='current_version'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Parent Relationship Type Name', key='parent_rel_type_name'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Parent at End1', key='parent_end1'), Column(name='Additional Properties', key='additional_properties'), Column(name='Supplementary Properties', key='supplementary_properties'), Column(name='Status', key='element_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='Status', key='element_status'), Column(name='User Defined Status', key='user_defined_status'), Column(name='Category', key='category'), Column(name='Version Identifier', key='current_version'), Column(name='Identifier', key='identifier'), Column(name='Classifications', key='classifications'), Column(name='Is Own Anchor', key='is_own_anchor'), Column(name='Parent Relationship Type Name', key='parent_rel_type_name'), Column(name='Anchor Scope Name', key='anchor_scope_guid'), Column(name='Parent at End1', key='parent_end1'), Column(name='Qualified Name', key='qualified_name'), Column(name='GUID', key='guid'), Column(name='Additional Properties', key='additional_properties'), Column(name='URL', key='url'), Column(name='Supplementary Properties', key='supplementary_properties')])]), @@ -286,10 +286,10 @@ 'Personal-Project-DrE-Basic': FormatSet(target_type='Personal Project', heading='Personal-Project-DrE-Basic Attributes', description='Auto-generated format for Personal 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': ['PersonalProject']})), 'Perspective-DrE-Advanced': FormatSet(target_type='Perspective', heading='Perspective-DrE-Advanced Attributes', description='Auto-generated format for Perspective (Create, Advanced).', family='Actor 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='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='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='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='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='ActorManager.find_perspectives', 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': 'Perspective'})), 'Perspective-DrE-Basic': FormatSet(target_type='Perspective', heading='Perspective-DrE-Basic Attributes', description='Auto-generated format for Perspective (Create, Basic).', family='Actor 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='Version Identifier', key='version_identifier'), 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')])], action=ActionParameter(function='ActorManager.find_perspectives', 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': 'Perspective'})), - 'Postgres-Database-Element-DrE-Advanced': FormatSet(target_type='Postgres Database Element', heading='Postgres-Database-Element-DrE-Advanced Attributes', description='Auto-generated format for Postgres Database Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'PostgreSQL Relational Database', 'metadata_element_type': 'RelationalDatabase', 'property_names': ['displayName', 'qualifiedName']})), - 'Postgres-Database-Element-DrE-Basic': FormatSet(target_type='Postgres Database Element', heading='Postgres-Database-Element-DrE-Basic Attributes', description='Auto-generated format for Postgres Database Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'PostgreSQL Relational Database', 'metadata_element_type': 'RelationalDatabase', 'property_names': ['displayName', 'qualifiedName']})), - 'Postgres-Server-Element-DrE-Advanced': FormatSet(target_type='Postgres Server Element', heading='Postgres-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for Postgres Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'PostgreSQL Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), - 'Postgres-Server-Element-DrE-Basic': FormatSet(target_type='Postgres Server Element', heading='Postgres-Server-Element-DrE-Basic Attributes', description='Auto-generated format for Postgres Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'PostgreSQL Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'Postgres-Database-Element-DrE-Advanced': FormatSet(target_type='Postgres Database Element', heading='Postgres-Database-Element-DrE-Advanced Attributes', description='Auto-generated format for Postgres Database Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'PostgreSQL Relational Database', 'metadata_element_type': 'RelationalDatabase', 'property_names': ['displayName', 'qualifiedName']})), + 'Postgres-Database-Element-DrE-Basic': FormatSet(target_type='Postgres Database Element', heading='Postgres-Database-Element-DrE-Basic Attributes', description='Auto-generated format for Postgres Database Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Database Name', key='postgres_database'), Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'PostgreSQL Relational Database', 'metadata_element_type': 'RelationalDatabase', 'property_names': ['displayName', 'qualifiedName']})), + 'Postgres-Server-Element-DrE-Advanced': FormatSet(target_type='Postgres Server Element', heading='Postgres-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for Postgres Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'PostgreSQL Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'Postgres-Server-Element-DrE-Basic': FormatSet(target_type='Postgres Server Element', heading='Postgres-Server-Element-DrE-Basic Attributes', description='Auto-generated format for Postgres Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='Postgres Server Name', key='postgres_server'), Column(name='Host Name', key='host_name'), Column(name='Port', key='port'), Column(name='Secrets Store Path Name', key='secrets_store_path_name'), Column(name='Secrets Collection Name', key='secrets_collection_name'), Column(name='Resource Name', key='resource_name'), Column(name='Version Identifier', key='version_identifier'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'PostgreSQL Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), 'Project-DrE-Advanced': FormatSet(target_type='Project', heading='Project-DrE-Advanced Attributes', description='Auto-generated format for 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'])), 'Project-DrE-Basic': FormatSet(target_type='Project', heading='Project-DrE-Basic Attributes', description='Auto-generated format for 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'])), 'Question-DrE-Advanced': FormatSet(target_type='Question', heading='Question-DrE-Advanced Attributes', description='Auto-generated format for Question (Create, Advanced).', family='Glossary', 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Class Word Classification', key='class_word_classification'), Column(name='Context Scope', key='scope'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Is Abstract Concept', key='is_abstract_concept'), Column(name='Is Activity Description', key='is_activity_description'), Column(name='Is Context', key='is_data_value'), Column(name='Modifier Classification', key='modifier_classification'), Column(name='Prime Word Classification', key='prime_word_classification'), Column(name='Summary', key='summary'), Column(name='Term Activity Type', key='term_activity_type', valid_values=['OPERATION', 'ACTION', 'TASK', 'PROCESS', 'PROJECT', 'OTHER']), 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='Abbreviation', key='abbreviation'), Column(name='Aliases', key='aliases'), Column(name='Class Word Classification', key='class_word_classification'), Column(name='Context Scope', key='scope'), Column(name='Example', key='example'), Column(name='Folders', key='folders'), Column(name='Glossary Name', key='glossary_names'), Column(name='Is Abstract Concept', key='is_abstract_concept'), Column(name='Is Activity Description', key='is_activity_description'), Column(name='Is Context', key='is_data_value'), Column(name='Modifier Classification', key='modifier_classification'), Column(name='Prime Word Classification', key='prime_word_classification'), Column(name='Summary', key='summary'), Column(name='Term Activity Type', key='term_activity_type', valid_values=['OPERATION', 'ACTION', 'TASK', 'PROCESS', 'PROJECT', 'OTHER']), 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='GlossaryManager.find_glossary_terms', 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': ['Question'], 'metadata_element_type': 'GlossaryTerm'})), @@ -386,18 +386,18 @@ 'Threat-DrE-Basic': FormatSet(target_type='Threat', heading='Threat-DrE-Basic Attributes', description='Auto-generated format for Threat (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': 'Threat'})), 'ToDo-DrE-Advanced': FormatSet(target_type='ToDo', heading='ToDo-DrE-Advanced Attributes', description='Auto-generated format for ToDo (Create, Advanced).', family='Actor Manager', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), 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'), Column(name='Objective', key='objective'), Column(name='Priority', key='priority'), Column(name='Activity Status', key='activity_status', valid_values=['REQUESTED', 'APPROVED', 'WAITING', 'ACTIVATING', 'IN_PROGRESS', 'PAUSED', 'COMPLETED', 'INVALID', 'IGNORED', 'FAILED', 'CANCELLED', 'ABANDONED', 'OTHER'])]), 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='Display Name', key='display_name'), Column(name='Description', key='description'), Column(name='Situation', key='situation'), Column(name='Objective', key='objective'), Column(name='Priority', key='priority'), Column(name='Activity Status', key='activity_status', valid_values=['REQUESTED', 'APPROVED', 'WAITING', 'ACTIVATING', 'IN_PROGRESS', 'PAUSED', 'COMPLETED', 'INVALID', 'IGNORED', 'FAILED', 'CANCELLED', 'ABANDONED', 'OTHER'])])]), 'ToDo-DrE-Basic': FormatSet(target_type='ToDo', heading='ToDo-DrE-Basic Attributes', description='Auto-generated format for ToDo (Create, Basic).', family='Actor Manager', formats=[Format(types=['LIST'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Description', key='description'), Column(name='Situation', key='situation'), Column(name='Objective', key='objective'), Column(name='Priority', key='priority'), Column(name='Activity Status', key='activity_status', valid_values=['REQUESTED', 'APPROVED', 'WAITING', 'ACTIVATING', 'IN_PROGRESS', 'PAUSED', 'COMPLETED', 'INVALID', 'IGNORED', 'FAILED', 'CANCELLED', 'ABANDONED', 'OTHER'])]), Format(types=['ALL'], attributes=[Column(name='Display Name', key='display_name'), Column(name='Description', key='description'), Column(name='Situation', key='situation'), Column(name='Objective', key='objective'), Column(name='Priority', key='priority'), Column(name='Activity Status', key='activity_status', valid_values=['REQUESTED', 'APPROVED', 'WAITING', 'ACTIVATING', 'IN_PROGRESS', 'PAUSED', 'COMPLETED', 'INVALID', 'IGNORED', 'FAILED', 'CANCELLED', 'ABANDONED', 'OTHER'])])]), - 'UC-Catalog-Element-DrE-Advanced': FormatSet(target_type='UC Catalog Element', heading='UC-Catalog-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Catalog Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Catalog', 'metadata_element_type': 'SoftwareCapability', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Catalog-Element-DrE-Basic': FormatSet(target_type='UC Catalog Element', heading='UC-Catalog-Element-DrE-Basic Attributes', description='Auto-generated format for UC Catalog Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Catalog', 'metadata_element_type': 'SoftwareCapability', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Function-Element-DrE-Advanced': FormatSet(target_type='UC Function Element', heading='UC-Function-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Function Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Function', 'metadata_element_type': 'DeployedAPI', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Function-Element-DrE-Basic': FormatSet(target_type='UC Function Element', heading='UC-Function-Element-DrE-Basic Attributes', description='Auto-generated format for UC Function Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Function', 'metadata_element_type': 'DeployedAPI', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Schema-Element-DrE-Advanced': FormatSet(target_type='UC Schema Element', heading='UC-Schema-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Schema Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Schema', 'metadata_element_type': 'DeployedDatabaseSchema', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Schema-Element-DrE-Basic': FormatSet(target_type='UC Schema Element', heading='UC-Schema-Element-DrE-Basic Attributes', description='Auto-generated format for UC Schema Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Schema', 'metadata_element_type': 'DeployedDatabaseSchema', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Server-Element-DrE-Advanced': FormatSet(target_type='UC Server Element', heading='UC-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Server-Element-DrE-Basic': FormatSet(target_type='UC Server Element', heading='UC-Server-Element-DrE-Basic Attributes', description='Auto-generated format for UC Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Table-Element-DrE-Advanced': FormatSet(target_type='UC Table Element', heading='UC-Table-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Table Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Table', 'metadata_element_type': 'RelationalTable', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Table-Element-DrE-Basic': FormatSet(target_type='UC Table Element', heading='UC-Table-Element-DrE-Basic Attributes', description='Auto-generated format for UC Table Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Table', 'metadata_element_type': 'RelationalTable', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Volume-Element-DrE-Advanced': FormatSet(target_type='UC Volume Element', heading='UC-Volume-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Volume Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Volume', 'metadata_element_type': 'StorageVolume', 'property_names': ['displayName', 'qualifiedName']})), - 'UC-Volume-Element-DrE-Basic': FormatSet(target_type='UC Volume Element', heading='UC-Volume-Element-DrE-Basic Attributes', description='Auto-generated format for UC Volume Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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={'deployed_implementation_type': 'Unity Catalog Volume', 'metadata_element_type': 'StorageVolume', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Catalog-Element-DrE-Advanced': FormatSet(target_type='UC Catalog Element', heading='UC-Catalog-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Catalog Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Catalog', 'metadata_element_type': 'SoftwareCapability', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Catalog-Element-DrE-Basic': FormatSet(target_type='UC Catalog Element', heading='UC-Catalog-Element-DrE-Basic Attributes', description='Auto-generated format for UC Catalog Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Catalog', 'metadata_element_type': 'SoftwareCapability', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Function-Element-DrE-Advanced': FormatSet(target_type='UC Function Element', heading='UC-Function-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Function Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Function', 'metadata_element_type': 'DeployedAPI', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Function-Element-DrE-Basic': FormatSet(target_type='UC Function Element', heading='UC-Function-Element-DrE-Basic Attributes', description='Auto-generated format for UC Function Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Function Name', key='uc_function'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Function', 'metadata_element_type': 'DeployedAPI', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Schema-Element-DrE-Advanced': FormatSet(target_type='UC Schema Element', heading='UC-Schema-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Schema Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Schema', 'metadata_element_type': 'DeployedDatabaseSchema', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Schema-Element-DrE-Basic': FormatSet(target_type='UC Schema Element', heading='UC-Schema-Element-DrE-Basic Attributes', description='Auto-generated format for UC Schema Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Schema', 'metadata_element_type': 'DeployedDatabaseSchema', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Server-Element-DrE-Advanced': FormatSet(target_type='UC Server Element', heading='UC-Server-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Server Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Server-Element-DrE-Basic': FormatSet(target_type='UC Server Element', heading='UC-Server-Element-DrE-Basic Attributes', description='Auto-generated format for UC Server Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Server Name', key='uc_server_name'), Column(name='Host URL', key='host_url'), Column(name='Port', key='port'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Server', 'metadata_element_type': 'SoftwareServer', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Table-Element-DrE-Advanced': FormatSet(target_type='UC Table Element', heading='UC-Table-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Table Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Table', 'metadata_element_type': 'RelationalTable', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Table-Element-DrE-Basic': FormatSet(target_type='UC Table Element', heading='UC-Table-Element-DrE-Basic Attributes', description='Auto-generated format for UC Table Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Table Name', key='uc_table'), Column(name='UC Table Type', key='uc_table_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='UC Data Source Format', key='uc_data_source_format', valid_values=['DELTA', 'CSV', 'JSON', 'AVRO', 'PARQUET', 'ORC', 'TEXT']), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Table', 'metadata_element_type': 'RelationalTable', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Volume-Element-DrE-Advanced': FormatSet(target_type='UC Volume Element', heading='UC-Volume-Element-DrE-Advanced Attributes', description='Auto-generated format for UC Volume Element (Create, Advanced).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Volume', 'metadata_element_type': 'StorageVolume', 'property_names': ['displayName', 'qualifiedName']})), + 'UC-Volume-Element-DrE-Basic': FormatSet(target_type='UC Volume Element', heading='UC-Volume-Element-DrE-Basic Attributes', description='Auto-generated format for UC Volume Element (Create, Basic).', family='Asset Maker', formats=[Format(types=['LIST'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Deployed Implementation Type', key='deployed_implementation_type'), Column(name='Version Identifier', key='version_identifier')]), Format(types=['ALL'], attributes=[Column(name='UC Catalog Name', key='uc_catalog'), Column(name='UC Schema Name', key='uc_schema'), Column(name='UC Volume Name', key='uc_volume'), Column(name='UC Volume Type', key='uc_vol_type', valid_values=['Managed', 'External']), Column(name='UC Storage Location', key='uc_storage_loc'), Column(name='Network Address', key='network_address'), Column(name='Description', key='description'), Column(name='Version Identifier', key='version_identifier'), Column(name='Deployed Implementation Type', key='deployed_implementation_type')])], action=ActionParameter(function='ClassificationExplorer.find_elements_by_property_value', 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', 'deployed_implementation_type'], spec_params={'default_deployed_implementation_type': 'Unity Catalog Volume', 'metadata_element_type': 'StorageVolume', 'property_names': ['displayName', 'qualifiedName']})), 'Vulnerability-Finding-DrE-Advanced': FormatSet(target_type='Vulnerability Finding', heading='Vulnerability-Finding-DrE-Advanced Attributes', description='Auto-generated format for Vulnerability Finding (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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='CVSS Vector', key='cvss_vector'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Vulnerability Type', key='vulnerability_type'), Column(name='Package URL', key='package_url'), Column(name='Installed Version', key='installed_version'), Column(name='Fixed Version', key='fixed_version'), Column(name='Patch Available', key='patch_available'), 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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='CVSS Vector', key='cvss_vector'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Vulnerability Type', key='vulnerability_type'), Column(name='Package URL', key='package_url'), Column(name='Installed Version', key='installed_version'), Column(name='Fixed Version', key='fixed_version'), Column(name='Patch Available', key='patch_available'), 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')])]), 'Vulnerability-Finding-DrE-Basic': FormatSet(target_type='Vulnerability Finding', heading='Vulnerability-Finding-DrE-Basic Attributes', description='Auto-generated format for Vulnerability Finding (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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Package URL', key='package_url'), Column(name='Installed Version', key='installed_version'), Column(name='Fixed Version', key='fixed_version'), Column(name='Patch Available', key='patch_available'), 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='Survey Report', key='survey_report'), Column(name='Summary', key='summary'), Column(name='Severity', key='severity', valid_values=['None', 'Low', 'Medium', 'High', 'Critical']), Column(name='CVSS Score', key='cvss_score'), Column(name='Vulnerability Identifiers', key='vulnerability_identifiers'), Column(name='Weakness Identifiers', key='weakness_identifiers'), Column(name='Affected Location', key='affected_location'), Column(name='Evidence', key='evidence'), Column(name='Remediation', key='remediation'), Column(name='Exploit Available', key='exploit_available'), Column(name='Affected Elements', key='affected_elements'), Column(name='Previous Finding', key='previous_finding'), Column(name='Package URL', key='package_url'), Column(name='Installed Version', key='installed_version'), Column(name='Fixed Version', key='fixed_version'), Column(name='Patch Available', key='patch_available')])]), 'Work-Item-List-DrE-Advanced': FormatSet(target_type='Work Item List', heading='Work-Item-List-DrE-Advanced Attributes', description='Auto-generated format for Work Item List (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': 'WorkItemList'})), diff --git a/tests/micro-tests/test_search_get_filter_kwargs.py b/tests/micro-tests/test_search_get_filter_kwargs.py index 3b16296f..023c35ae 100644 --- a/tests/micro-tests/test_search_get_filter_kwargs.py +++ b/tests/micro-tests/test_search_get_filter_kwargs.py @@ -484,7 +484,7 @@ def test_generator_derives_type_and_technology_from_the_command(): ce = "ClassificationExplorer.find_elements_by_property_value" assert gen._generic_search_constraints("Create Postgres Server Element", {"OM_TYPE": "SoftwareServer"}, ce, {}) == { "metadata_element_type": "SoftwareServer", "property_names": ["displayName", "qualifiedName"], - "deployed_implementation_type": "PostgreSQL Server"} + "default_deployed_implementation_type": "PostgreSQL Server"} assert gen._generic_search_constraints("Create Element", {"OM_TYPE": ""}, ce, {})["metadata_element_type"] \ == "OpenMetadataRoot" # an explicit type in find_constraints is kept; other find methods are untouched @@ -497,7 +497,11 @@ def test_technology_specs_show_the_technology_column(): from pyegeria.view.base_report_formats import get_report_registry fs = get_report_registry()["Postgres-Server-Element-DrE-Basic"] - assert fs.action.spec_params["deployed_implementation_type"] == "PostgreSQL Server" + # the spec pins a DEFAULT; the run parameter is declared optional (no unknown-filter warning, and + # the Portal's run form shows it) + assert fs.action.spec_params["default_deployed_implementation_type"] == "PostgreSQL Server" + assert "deployed_implementation_type" not in fs.action.spec_params + assert "deployed_implementation_type" in fs.action.optional_params assert any(c.key == "deployed_implementation_type" for c in fs.formats[0].attributes) @@ -561,3 +565,81 @@ def find_things(self, search_string="*", **kwargs): with pytest.raises(ValueError, match="narrower type"): fse.exec_report_spec("R", output_format="DICT", params={"search_string": "*"}, view_server="v", view_url="https://x", user="u", user_pass="p", token="t") + + + +def _tech(body): + conds = body.get("searchProperties", {}).get("conditions", []) if isinstance(body, dict) else [] + return [c["value"]["primitiveValue"] for c in conds if c.get("property") == "deployedImplementationType"] + + +def test_technology_default_applies_when_not_given(explorer): + explorer.find_elements_by_property_value("*", ["displayName"], metadata_element_type="SoftwareServer", + default_deployed_implementation_type="PostgreSQL Server") + assert _tech(explorer.sent[-1]) == ["PostgreSQL Server"] + + +def test_technology_star_means_any_technology(explorer): + # '*' as the technology drops the condition: every SoftwareServer, '*' still lists via get_elements + explorer.find_elements_by_property_value("*", ["displayName"], metadata_element_type="SoftwareServer", + deployed_implementation_type="*", + default_deployed_implementation_type="PostgreSQL Server", + page_size=500) + body = explorer.sent[-1] + assert _tech(body) == [] and body["metadataElementTypeName"] == "SoftwareServer" + assert body["pageSize"] == 100 # still capped + # a search string still matches by name, within the whole type + explorer.find_elements_by_property_value("Coco", ["displayName"], metadata_element_type="SoftwareServer", + deployed_implementation_type="*", + default_deployed_implementation_type="PostgreSQL Server") + assert explorer.sent[-1]["propertyValue"] == "Coco" and _tech(explorer.sent[-1]) == [] + + +def test_technology_star_keeps_the_root_type_refusal(explorer): + with pytest.raises(ValueError, match="narrower type"): + explorer.find_elements_by_property_value("*", ["displayName"], metadata_element_type="OpenMetadataRoot", + deployed_implementation_type="*") + + +def test_any_other_technology_is_an_exact_match(explorer): + explorer.find_elements_by_property_value("*", ["displayName"], metadata_element_type="SoftwareServer", + deployed_implementation_type="Apache Kafka Server", + default_deployed_implementation_type="PostgreSQL Server") + body = explorer.sent[-1] + assert _tech(body) == ["Apache Kafka Server"] + assert body["searchProperties"]["conditions"][0]["operator"] == "EQ" + + +def test_report_run_param_overrides_the_technology_default(monkeypatch): + """Through the executor: the spec pins the default, the caller's run parameter wins, no warning.""" + import pyegeria.view.format_set_executor as fse + from pyegeria.view.base_report_formats import get_report_registry + + calls = [] + + class _Client: + def __init__(self, *a, **k): + pass + + def set_bearer_token(self, token): + pass + + def close_session(self): + pass + + def find_elements_by_property_value(self, property_value, property_names, metadata_element_type=None, + deployed_implementation_type=None, + default_deployed_implementation_type=None, **kwargs): + calls.append((deployed_implementation_type, default_deployed_implementation_type)) + return [] + + action = get_report_registry()["Postgres-Server-Element-DrE-Basic"].action + fmt = {"action": action.model_dump()} + monkeypatch.setattr(fse, "select_report_spec", lambda name, kind: fmt) + monkeypatch.setattr(fse, "_resolve_client_and_method", lambda decl: (_Client, "find_elements_by_property_value")) + with warnings.catch_warnings(): + warnings.simplefilter("error", UnknownFilterWarning) + for run_params in ({"search_string": "*"}, {"search_string": "*", "deployed_implementation_type": "*"}): + fse.exec_report_spec("Postgres-Server-Element-DrE-Basic", output_format="DICT", params=run_params, + view_server="v", view_url="https://x", user="u", user_pass="p", token="t") + assert calls == [(None, "PostgreSQL Server"), ("*", "PostgreSQL Server")] From c564e3be87f84c785e1220c40def6938319431ee Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Mon, 9 Nov 2026 13:34:32 +0000 Subject: [PATCH 14/14] fix: technology match is exact but ignores case Architect read-back of 4bbcc6c4 (P3): "postgresql server" returned empty with no explanation because the deployedImplementationType condition was case-sensitive EQ. It is now CASE_INSENSITIVE_EQ: still an exact match, ignoring case. "*" still means any technology. Live as erinoverview, Postgres-Server-Element-DrE-Basic, page_size 25: deployed_implementation_type="postgresql server" -> 1 PostgreSQL Server. Docstrings, docs page and release note say "ignoring case". Signed-off-by: Dan Wolfson --- docs/release-notes/6.2.28.md | 2 +- docs/search-and-get-filters.md | 2 +- pyegeria/omvs/classification_explorer.py | 7 ++++--- .../micro-tests/test_search_get_filter_kwargs.py | 15 ++++++++++++--- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/docs/release-notes/6.2.28.md b/docs/release-notes/6.2.28.md index 76219941..396e90b1 100644 --- a/docs/release-notes/6.2.28.md +++ b/docs/release-notes/6.2.28.md @@ -79,7 +79,7 @@ column. The technology is an optional run parameter, `deployed_implementation_type`, defaulting to the spec's own: `"*"` searches every element of the type (any technology), any other value is an - exact match on that technology. + exact match on that technology (ignoring case). - `'*'` with no type or a root type (`OpenMetadataRoot`, `Referenceable`) is refused: "give a search string or a narrower type" (a whole-repository listing helped run the quickstart platform out of heap on 2026-11-09). So `Element-DrE-*` works only with a search string. diff --git a/docs/search-and-get-filters.md b/docs/search-and-get-filters.md index b63a16d3..73192b77 100644 --- a/docs/search-and-get-filters.md +++ b/docs/search-and-get-filters.md @@ -137,7 +137,7 @@ specs: `displayName` and `qualifiedName`) within `metadata_element_type`. `Referenceable`), is refused: "give a search string or a narrower type". - `deployed_implementation_type="PostgreSQL Server"` restricts the search to exactly that technology within the type. Egeria evaluates it in one complex query: - `deployedImplementationType` **equals** the technology, **and**, for a search string other than + `deployedImplementationType` **equals** the technology (ignoring case, so `"postgresql server"` works), **and**, for a search string other than `'*'`, one of `property_names` matches it (`starts_with` / `ends_with` / `ignore_case` choose the operator: STARTS_WITH, ENDS_WITH, EQ or LIKE (contains), case-insensitive variants with `ignore_case`). So a Postgres-Server report never lists a Kafka server or a "Databricks Unity diff --git a/pyegeria/omvs/classification_explorer.py b/pyegeria/omvs/classification_explorer.py index fd6b036a..81c19531 100644 --- a/pyegeria/omvs/classification_explorer.py +++ b/pyegeria/omvs/classification_explorer.py @@ -2987,7 +2987,7 @@ async def _async_find_elements_by_property_value( property_value: str - property value to be searched. '*' (or empty) with a metadata_element_type returns every element of that type (via get_elements); '*' without a type is refused. deployed_implementation_type: str, optional - - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. "*" means any technology (no technology condition). + - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value (ignoring case) with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. "*" means any technology (no technology condition). default_deployed_implementation_type: str, optional - the technology used when deployed_implementation_type is not given (report specs pin it; a caller's deployed_implementation_type overrides it). property_names: list[str] @@ -3093,7 +3093,8 @@ async def _async_find_elements_by_property_value( # SoftwareServers). Both conditions are ANDed by Egeria in one complex query, so paging is # exact and no other technology can appear: deployedImplementationType EQUALS the # technology, AND (for a search string) one of property_names matches it. - conditions = [_string_condition("deployedImplementationType", "EQ", technology)] + # exact, ignoring case: "postgresql server" finds the PostgreSQL Server + conditions = [_string_condition("deployedImplementationType", "CASE_INSENSITIVE_EQ", technology)] if not star: operator = _match_operator(starts_with, ends_with, ignore_case) conditions.append({"nestedConditions": { @@ -3224,7 +3225,7 @@ def find_elements_by_property_value( property_value: str - property value to be searched. '*' (or empty) with a metadata_element_type returns every element of that type (via get_elements); '*' without a type is refused. deployed_implementation_type: str, optional - - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. "*" means any technology (no technology condition). + - list only elements of exactly this technology within metadata_element_type: Egeria ANDs deployedImplementationType EQUALS this value (ignoring case) with (for a search string other than '*') property_names matching it, in one complex query, so paging stays exact. "*" means any technology (no technology condition). default_deployed_implementation_type: str, optional - the technology used when deployed_implementation_type is not given (report specs pin it; a caller's deployed_implementation_type overrides it). property_names: list[str] diff --git a/tests/micro-tests/test_search_get_filter_kwargs.py b/tests/micro-tests/test_search_get_filter_kwargs.py index 023c35ae..7abe1e25 100644 --- a/tests/micro-tests/test_search_get_filter_kwargs.py +++ b/tests/micro-tests/test_search_get_filter_kwargs.py @@ -446,7 +446,7 @@ def test_star_with_a_technology_lists_exactly_that_technology(explorer): body = explorer.sent[-1] assert body["class"] == "FindRequestBody" and body["metadataElementTypeName"] == "SoftwareServer" # exact, so "Databricks Unity Catalog Server" is not a "Unity Catalog Server" - assert _conditions(body) == [{"property": "deployedImplementationType", "operator": "EQ", + assert _conditions(body) == [{"property": "deployedImplementationType", "operator": "CASE_INSENSITIVE_EQ", "value": {"class": "PrimitiveTypePropertyValue", "typeName": "string", "primitiveValue": "Unity Catalog Server"}}] assert body["searchProperties"]["matchCriteria"] == "ALL" @@ -458,7 +458,7 @@ def test_search_string_with_a_technology_ands_both_conditions_server_side(explor deployed_implementation_type="PostgreSQL Server", page_size=25) body = explorer.sent[-1] tech, names = _conditions(body) - assert tech["property"] == "deployedImplementationType" and tech["operator"] == "EQ" + assert tech["property"] == "deployedImplementationType" and tech["operator"] == "CASE_INSENSITIVE_EQ" nested = names["nestedConditions"] assert nested["matchCriteria"] == "ANY" assert [(c["property"], c["operator"], c["value"]["primitiveValue"]) for c in nested["conditions"]] == [ @@ -607,7 +607,7 @@ def test_any_other_technology_is_an_exact_match(explorer): default_deployed_implementation_type="PostgreSQL Server") body = explorer.sent[-1] assert _tech(body) == ["Apache Kafka Server"] - assert body["searchProperties"]["conditions"][0]["operator"] == "EQ" + assert body["searchProperties"]["conditions"][0]["operator"] == "CASE_INSENSITIVE_EQ" def test_report_run_param_overrides_the_technology_default(monkeypatch): @@ -643,3 +643,12 @@ def find_elements_by_property_value(self, property_value, property_names, metada fse.exec_report_spec("Postgres-Server-Element-DrE-Basic", output_format="DICT", params=run_params, view_server="v", view_url="https://x", user="u", user_pass="p", token="t") assert calls == [(None, "PostgreSQL Server"), ("*", "PostgreSQL Server")] + + + +def test_technology_match_ignores_case(explorer): + # exact, but "postgresql server" finds the PostgreSQL Server rather than an unexplained empty result + explorer.find_elements_by_property_value("*", ["displayName"], metadata_element_type="SoftwareServer", + deployed_implementation_type="postgresql server") + cond = explorer.sent[-1]["searchProperties"]["conditions"][0] + assert (cond["operator"], cond["value"]["primitiveValue"]) == ("CASE_INSENSITIVE_EQ", "postgresql server")