pyegeria 5.4.0.dev9__py3-none-any.whl → 5.4.0.dev10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -63,8 +63,12 @@ def add_member_to_data_collections(egeria_client: EgeriaTech, collection_list: l
63
63
  Add member to data dictionaries and data specifications.
64
64
  """
65
65
  body = {
66
- "class": "CollectionMembershipProperties", "membershipRationale": "User Specified",
67
- "notes": "Added by Dr.Egeria"
66
+ "class": "RelationshipRequestBody",
67
+ "properties": {
68
+ "class": "CollectionMembershipProperties",
69
+ "membershipRationale": "User Specified",
70
+ "notes": "Added by Dr.Egeria"
71
+ }
68
72
  }
69
73
  try:
70
74
  if collection_list is not None:
@@ -526,10 +530,11 @@ def process_data_spec_upsert_command(egeria_client: EgeriaTech, txt: str, direct
526
530
  logger.error(msg)
527
531
  return None
528
532
  else:
529
- guid = egeria_client.create_data_spec_collection(anchor_guid, parent_guid,
530
- parent_relationship_type_name, parent_at_end1,
531
- display_name, description, collection_type,
532
- anchor_scope_guid, is_own_anchor, qualified_name)
533
+ guid = egeria_client.create_data_spec_collection(display_name, description,
534
+ is_own_anchor, anchor_guid, parent_guid, parent_relationship_type_name,
535
+ parent_at_end1, collection_type,
536
+ anchor_scope_guid, collection_ordering,order_property_name,
537
+ additional_properties, extended_properties)
533
538
  if guid:
534
539
  update_element_dictionary(qualified_name, {
535
540
  'guid': guid, 'display_name': display_name
@@ -639,12 +644,12 @@ def process_data_dict_upsert_command(egeria_client: EgeriaTech, txt: str, direct
639
644
  f"`Create` to `Update` in processed output\n\n___")
640
645
  return update_a_command(txt, object_action, object_type, qualified_name, guid)
641
646
  else:
642
- guid = egeria_client.create_data_dictionary_collection(anchor_guid, parent_guid,
643
- parent_relationship_type_name,
644
- parent_at_end1, display_name, description,
645
- collection_type, anchor_scope_guid,
646
- is_own_anchor, qualified_name,
647
- additional_properties, extended_properties)
647
+ guid = egeria_client.create_data_dictionary_collection(display_name,description, is_own_anchor, anchor_guid,
648
+ parent_guid, parent_relationship_type_name,
649
+ parent_at_end1, collection_type,
650
+ anchor_scope_guid, collection_ordering,
651
+ order_property_name, additional_properties,
652
+ extended_properties)
648
653
  if guid:
649
654
  update_element_dictionary(qualified_name, {
650
655
  'guid': guid, 'display_name': display_name
@@ -527,6 +527,7 @@ def process_term_upsert_command(egeria_client: EgeriaTech, txt: str, directive:
527
527
  else:
528
528
  known_glossary_q_name, known_glossary_guid, glossary_valid, glossary_exists = process_element_identifiers(
529
529
  egeria_client, "Glossary", GLOSSARY_NAME_LABELS, txt, EXISTS_REQUIRED, None)
530
+ # Todo - add logic to fail if no valid glossary provided.
530
531
 
531
532
  # process categories, if present
532
533
  categories = process_simple_attribute(txt, ['Glossary Categories', 'Glossary Category', 'Category', 'Categories'])