Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,25 @@
"max_cardinality": 1,
"level": "Advanced",
"Journal Entry": ""
},
"Deep Copy": {
"variable_name": "deep_copy",
"inUpdate": false,
"attr_labels": "",
"examples": "",
"default_value": "true",
"valid_values": [],
"existing_element": "",
"description": "If true (Egeria's default), the template's anchored attachments -- such as a connection and its endpoint -- are copied to the new element. Set to false to create only the top-level element.",
"generated": false,
"style": "Bool",
"user_specified": true,
"unique": false,
"input_required": false,
"min_cardinality": 0,
"max_cardinality": 1,
"level": "Advanced",
"Journal Entry": "2026-09-29 -- maps to TemplateRequestBody.deepCopy; pyegeria previously sent false by default."
}
},
"bundles": {
Expand Down Expand Up @@ -920,7 +939,8 @@
"Parent ID",
"Parent Relationship Type Name",
"Parent Relationship Attributes",
"Parent at End1"
"Parent at End1",
"Deep Copy"
],
"Journal Entry": "Added 2026-09-11 -- Asset Maker family, wraps automated_curation.py's create-element-from-template methods. OM_TYPE is best-effort (not yet confirmed against a live server's type system); create-only (no Update) since the underlying OMVS methods have no update counterpart."
},
Expand Down
32 changes: 32 additions & 0 deletions md_processing/data/generated_format_sets.json
Original file line number Diff line number Diff line change
Expand Up @@ -23687,6 +23687,14 @@
"detail_spec": null,
"valid_values": []
},
{
"name": "Deep Copy",
"key": "deep_copy",
"value": null,
"format": false,
"detail_spec": null,
"valid_values": []
},
{
"name": "Initial Status",
"key": "initial_status",
Expand Down Expand Up @@ -23778,6 +23786,14 @@
"detail_spec": null,
"valid_values": []
},
{
"name": "Deep Copy",
"key": "deep_copy",
"value": null,
"format": false,
"detail_spec": null,
"valid_values": []
},
{
"name": "Initial Status",
"key": "initial_status",
Expand Down Expand Up @@ -23890,6 +23906,14 @@
"format": false,
"detail_spec": null,
"valid_values": []
},
{
"name": "Deep Copy",
"key": "deep_copy",
"value": null,
"format": false,
"detail_spec": null,
"valid_values": []
}
],
"columns": [
Expand Down Expand Up @@ -23981,6 +24005,14 @@
"format": false,
"detail_spec": null,
"valid_values": []
},
{
"name": "Deep Copy",
"key": "deep_copy",
"value": null,
"format": false,
"detail_spec": null,
"valid_values": []
}
]
}
Expand Down
1 change: 1 addition & 0 deletions md_processing/v2/asset_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ async def apply_changes(self) -> str:
"parentRelationshipTypeName": _v(attributes, "Parent Relationship Type Name"),
"parentRelationshipProperties": _v(attributes, "Parent Relationship Attributes"),
"parentAtEnd1": _v(attributes, "Parent at End1", True),
"deepCopy": _v(attributes, "Deep Copy"),
}
guid = await client._async_create_elem_from_template(body)
display_name = f"{_v(attributes, 'Element Type Name')} element"
Expand Down
14 changes: 10 additions & 4 deletions pyegeria/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,9 @@ class TemplateRequestBody(RequestBody):
template_guid: str
replacement_properties: dict[str, Any] | None = None
placeholder_property_values: dict[str, Any] = {}
deep_copy: bool | None = False
# None (not False): omitted from the JSON so Egeria's own default (TemplateOptions.deepCopy = true)
# applies. False made every create-from-template skip the template's anchored attachments.
deep_copy: bool | None = None
effective_from: datetime | None = None
effective_to: datetime | None = None
template_substitute: bool | None = False
Expand Down Expand Up @@ -598,7 +600,8 @@ class NewOpenMetadataElementRequestBody(RequestBody):
type_name: str | None = None
initial_classifications: Dict[str, InitialClassifications] | None = None
anchor_guid: str | None = None
is_own_anchor: bool | None = False
# None: omitted so Egeria's AnchorOptions default (isOwnAnchor=true) applies.
is_own_anchor: bool | None = None
effective_from: datetime | None = None
effective_to: datetime | None = None
properties: dict | None = None
Expand Down Expand Up @@ -691,9 +694,12 @@ class FilterRequestBody(ResultsRequestBody):
class SearchStringRequestBody(ResultsRequestBody):
class_: Annotated[Literal["SearchStringRequestBody"], Field(alias="class")]
search_string: str | None = None
starts_with: bool = True
# None: omitted from the JSON so Egeria's SearchOptions defaults apply
# (startsWith=false, ignoreCase=true). Callers that want prefix or
# case-sensitive matching pass the value explicitly.
starts_with: bool | None = None
ends_with: bool = False
ignore_case: bool = False
ignore_case: bool | None = None


class FindRequestBody(ResultsRequestBody):
Expand Down
Loading
Loading