pyegeria 5.4.0.dev10__py3-none-any.whl → 5.4.0.dev11__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.
@@ -7,6 +7,7 @@ Copyright Contributors to the ODPi Egeria project.
7
7
  """
8
8
 
9
9
  import asyncio
10
+
10
11
  from pyegeria._client import Client
11
12
  from pyegeria._globals import NO_ELEMENTS_FOUND
12
13
  from pyegeria._validators import validate_guid, validate_search_string
@@ -150,6 +151,10 @@ class CollectionManager(Client):
150
151
  the class instance.
151
152
  body: dict, optional, default = None
152
153
  If supplied, adds addition request details - for instance, to filter the results on collectionType
154
+ output_format: str, default = "JSON"
155
+ - one of "MD", "LIST", "FORM", "REPORT", "DICT", "MERMAID" or "JSON"
156
+
157
+
153
158
  Returns
154
159
  -------
155
160
  List
@@ -795,8 +800,8 @@ class CollectionManager(Client):
795
800
  self._async_get_collection_by_guid(collection_guid, collection_type, body, output_format))
796
801
 
797
802
  async def _async_get_collection_members(self, collection_guid: str = None, collection_name: str = None,
798
- collection_qname: str = None, body: dict= None, start_from: int = 0, page_size: int = 0,
799
- output_format: str = "JSON") -> list | str:
803
+ collection_qname: str = None, body: dict = None, start_from: int = 0,
804
+ page_size: int = 0, output_format: str = "JSON") -> list | str:
800
805
  """Return a list of elements that are a member of a collection. Async version.
801
806
 
802
807
  Parameters
@@ -930,9 +935,8 @@ class CollectionManager(Client):
930
935
 
931
936
  return resp
932
937
 
933
-
934
- async def _async_get_collection_graph(self, collection_guid: str, body: dict = None, start_from: int = 0, page_size: int = 0,
935
- output_format: str = "JSON") -> list | str:
938
+ async def _async_get_collection_graph(self, collection_guid: str, body: dict = None, start_from: int = 0,
939
+ page_size: int = 0, output_format: str = "JSON") -> list | str:
936
940
  """ Return a graph of elements that are the nested members of a collection along
937
941
  with elements immediately connected to the starting collection. The result
938
942
  includes a mermaid graph of the returned elements. Async version.
@@ -997,8 +1001,8 @@ class CollectionManager(Client):
997
1001
  return self.generate_collection_output(elements, None, None, output_format)
998
1002
  return elements
999
1003
 
1000
- def get_collection_graph(self, collection_guid: str = None, body: dict = None, start_from: int = 0, page_size: int = 0,
1001
- output_format: str = "JSON") -> list | str:
1004
+ def get_collection_graph(self, collection_guid: str = None, body: dict = None, start_from: int = 0,
1005
+ page_size: int = 0, output_format: str = "JSON") -> list | str:
1002
1006
  """ Return a graph of elements that are the nested members of a collection along
1003
1007
  with elements immediately connected to the starting collection. The result
1004
1008
  includes a mermaid graph of the returned elements.
@@ -1112,8 +1116,8 @@ class CollectionManager(Client):
1112
1116
  return self.generate_collection_output(elements, None, None, output_format)
1113
1117
  return elements
1114
1118
 
1115
- def get_collection_graph_w_body(self, collection_guid: str, body: dict = None, start_from: int = 0, page_size: int = None,
1116
- output_format: str = "JSON") -> list | str:
1119
+ def get_collection_graph_w_body(self, collection_guid: str, body: dict = None, start_from: int = 0,
1120
+ page_size: int = None, output_format: str = "JSON") -> list | str:
1117
1121
 
1118
1122
  """ Return a graph of elements that are the nested members of a collection along
1119
1123
  with elements immediately connected to the starting collection. The result
@@ -1315,14 +1319,14 @@ class CollectionManager(Client):
1315
1319
  }
1316
1320
  """
1317
1321
 
1318
- return asyncio.get_event_loop().run_until_complete(self._async_create_collection_w_body(body, classification_name))
1322
+ return asyncio.get_event_loop().run_until_complete(
1323
+ self._async_create_collection_w_body(body, classification_name))
1319
1324
 
1320
1325
  async def _async_create_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
1321
1326
  classification_name: str = None, anchor_guid: str = None,
1322
1327
  parent_guid: str = None, parent_relationship_type_name: str = None,
1323
1328
  parent_at_end1: bool = True, collection_type: str = None,
1324
- anchor_scope_guid: str = None, collection_ordering: str = None,
1325
- order_property_name: str = None, additional_properties: dict = None,
1329
+ anchor_scope_guid: str = None, additional_properties: dict = None,
1326
1330
  extended_properties: dict = None) -> str:
1327
1331
  """ Create a new generic collection.
1328
1332
  Create Collections: https://egeria-project.org/concepts/collection
@@ -1354,11 +1358,6 @@ class CollectionManager(Client):
1354
1358
  Adds an user supplied valid value for the collection type.
1355
1359
  anchor_scope_guid: str, optional, defaults to None
1356
1360
  optional GUID of search scope
1357
- collection_ordering: str, optional, defaults to "OTHER"
1358
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
1359
- "OTHER"
1360
- order_property_name: str, optional, defaults to "Something"
1361
- Property to use for sequencing if collection_ordering is "OTHER"
1362
1361
  additional_properties: dict, optional, defaults to None
1363
1362
  User specified Additional properties to add to the collection definition.
1364
1363
  extended_properties: dict, optional, defaults to None
@@ -1397,9 +1396,8 @@ class CollectionManager(Client):
1397
1396
  "parentRelationshipTypeName": parent_relationship_type_name, "parentAtEnd1": parent_at_end1_s,
1398
1397
  "properties": {
1399
1398
  "class": "CollectionProperties", "qualifiedName": qualified_name, "name": display_name,
1400
- "description": description, "collectionType": collection_type, "collectionOrder": collection_ordering,
1401
- "orderByPropertyName": order_property_name, "additionalProperties": additional_properties,
1402
- "extendedProperties": extended_properties
1399
+ "description": description, "collectionType": collection_type,
1400
+ "additionalProperties": additional_properties, "extendedProperties": extended_properties
1403
1401
  },
1404
1402
  }
1405
1403
 
@@ -1409,9 +1407,8 @@ class CollectionManager(Client):
1409
1407
  def create_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
1410
1408
  classification_name: str = None, anchor_guid: str = None, parent_guid: str = None,
1411
1409
  parent_relationship_type_name: str = None, parent_at_end1: bool = True,
1412
- collection_type: str = None, anchor_scope_guid: str = None, collection_ordering: str = None,
1413
- order_property_name: str = None, additional_properties: dict = None,
1414
- extended_properties: dict = None) -> str:
1410
+ collection_type: str = None, anchor_scope_guid: str = None,
1411
+ additional_properties: dict = None, extended_properties: dict = None) -> str:
1415
1412
  """ Create a new generic collection.
1416
1413
  Create Collections: https://egeria-project.org/concepts/collection
1417
1414
 
@@ -1441,11 +1438,6 @@ class CollectionManager(Client):
1441
1438
  Adds an user supplied valid value for the collection type.
1442
1439
  anchor_scope_guid: str, optional, defaults to None
1443
1440
  optional GUID of search scope
1444
- collection_ordering: str, optional, defaults to "OTHER"
1445
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
1446
- "OTHER"
1447
- order_property_name: str, optional, defaults to "Something"
1448
- Property to use for sequencing if collection_ordering is "OTHER"
1449
1441
  additional_properties: dict, optional, defaults to None
1450
1442
  User specified Additional properties to add to the collection definition.
1451
1443
  extended_properties: dict, optional, defaults to None
@@ -1469,17 +1461,14 @@ class CollectionManager(Client):
1469
1461
  return asyncio.get_event_loop().run_until_complete(
1470
1462
  self._async_create_collection(display_name, description, is_own_anchor, classification_name, anchor_guid,
1471
1463
  parent_guid, parent_relationship_type_name, parent_at_end1, collection_type,
1472
- anchor_scope_guid, collection_ordering, order_property_name,
1473
- additional_properties, extended_properties))
1474
-
1475
-
1464
+ anchor_scope_guid, additional_properties, extended_properties))
1476
1465
 
1477
- async def _async_create_generic_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
1466
+ async def _async_create_generic_collection(self, display_name: str, description: str, qualified_name: str = None,
1467
+ is_own_anchor: bool = True, url_item=None,
1478
1468
  classification_name: str = None, anchor_guid: str = None,
1479
1469
  parent_guid: str = None, parent_relationship_type_name: str = None,
1480
1470
  parent_at_end1: bool = True, collection_type: str = None,
1481
- anchor_scope_guid: str = None, collection_ordering: str = None,
1482
- order_property_name: str = None, additional_properties: dict = None,
1471
+ anchor_scope_guid: str = None, additional_properties: dict = None,
1483
1472
  extended_properties: dict = None) -> str:
1484
1473
  """ Create a new generic collection.
1485
1474
  Create Collections: https://egeria-project.org/concepts/collection
@@ -1491,6 +1480,8 @@ class CollectionManager(Client):
1491
1480
  The display name of the element. Will also be used as the basis of the qualified_name.
1492
1481
  description: str
1493
1482
  A description of the collection.
1483
+ qualified_name: str, optional, defaults to None
1484
+ Allows user to specify a qualified name of the collection.
1494
1485
  is_own_anchor: bool, optional, defaults to True
1495
1486
  Indicates if the collection should be classified as its own anchor or not.
1496
1487
  classification_name: str
@@ -1511,11 +1502,6 @@ class CollectionManager(Client):
1511
1502
  Adds an user supplied valid value for the collection type.
1512
1503
  anchor_scope_guid: str, optional, defaults to None
1513
1504
  optional GUID of search scope
1514
- collection_ordering: str, optional, defaults to "OTHER"
1515
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
1516
- "OTHER"
1517
- order_property_name: str, optional, defaults to "Something"
1518
- Property to use for sequencing if collection_ordering is "OTHER"
1519
1505
  additional_properties: dict, optional, defaults to None
1520
1506
  User specified Additional properties to add to the collection definition.
1521
1507
  extended_properties: dict, optional, defaults to None
@@ -1535,17 +1521,21 @@ class CollectionManager(Client):
1535
1521
  NotAuthorizedException
1536
1522
  The principle specified by the user_id does not have authorization for the requested action
1537
1523
 
1524
+ Args:
1525
+ url_item ():
1526
+ qualified_name ():
1527
+
1538
1528
  """
1539
1529
 
1540
1530
  is_own_anchor_s = str(is_own_anchor).lower()
1541
1531
  parent_at_end1_s = str(parent_at_end1).lower()
1542
1532
 
1543
-
1544
- url = f"{self.collection_command_root}/{classification_name}"
1545
- if classification_name is not None:
1546
- qualified_name = self.__create_qualified_name__(classification_name, display_name)
1547
- else:
1548
- qualified_name = self.__create_qualified_name__("Collection", display_name)
1533
+ url = f"{self.collection_command_root}/{url_item}"
1534
+ if qualified_name is None:
1535
+ if classification_name is not None:
1536
+ qualified_name = self.__create_qualified_name__(classification_name, display_name)
1537
+ else:
1538
+ qualified_name = self.__create_qualified_name__("Collection", display_name)
1549
1539
 
1550
1540
  body = {
1551
1541
  "class": "NewElementRequestBody", "anchorGUID": anchor_guid, "anchorScopeGUID": anchor_scope_guid,
@@ -1553,20 +1543,20 @@ class CollectionManager(Client):
1553
1543
  "parentRelationshipTypeName": parent_relationship_type_name, "parentAtEnd1": parent_at_end1_s,
1554
1544
  "properties": {
1555
1545
  "class": "CollectionProperties", "qualifiedName": qualified_name, "name": display_name,
1556
- "description": description, "collectionType": collection_type, "collectionOrder": collection_ordering,
1557
- "orderByPropertyName": order_property_name, "additionalProperties": additional_properties,
1558
- "extendedProperties": extended_properties
1546
+ "description": description, "collectionType": collection_type,
1547
+ "additionalProperties": additional_properties, "extendedProperties": extended_properties
1559
1548
  },
1560
1549
  }
1561
1550
 
1562
1551
  resp = await self._async_make_request("POST", url, body_slimmer(body))
1563
1552
  return resp.json().get("guid", "No GUID returned")
1564
1553
 
1565
- async def _async_create_root_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
1566
- anchor_guid: str = None, parent_guid: str = None,
1567
- parent_relationship_type_name: str = None, parent_at_end1: bool = True,
1568
- collection_type: str = None, anchor_scope_guid: str = None,
1569
- collection_ordering: str = None, order_property_name: str = None,
1554
+ async def _async_create_root_collection(self, display_name: str, description: str, qualified_name: str = None,
1555
+ is_own_anchor: bool = True, anchor_guid: str = None,
1556
+ parent_guid: str = None, parent_relationship_type_name: str = None,
1557
+ parent_at_end1: bool = True, collection_type: str = None,
1558
+ anchor_scope_guid: str = None,
1559
+
1570
1560
  additional_properties: dict = None,
1571
1561
  extended_properties: dict = None) -> str:
1572
1562
  """ Create a new collection with the RootCollection classification. Used to identify the top of a collection
@@ -1580,6 +1570,8 @@ class CollectionManager(Client):
1580
1570
  The display name of the element. Will also be used as the basis of the qualified_name.
1581
1571
  description: str
1582
1572
  A description of the collection.
1573
+ qualified_name: str, optional, defaults to None
1574
+ Allows user to specify a qualified name of the collection.
1583
1575
  is_own_anchor: bool, optional, defaults to True
1584
1576
  Indicates if the collection should be classified as its own anchor or not.
1585
1577
  anchor_guid: str
@@ -1597,11 +1589,6 @@ class CollectionManager(Client):
1597
1589
  Adds an user supplied valid value for the collection type.
1598
1590
  anchor_scope_guid: str, optional, defaults to None
1599
1591
  optional GUID of search scope
1600
- collection_ordering: str, optional, defaults to "OTHER"
1601
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
1602
- "OTHER"
1603
- order_property_name: str, optional, defaults to "Something"
1604
- Property to use for sequencing if collection_ordering is "OTHER"
1605
1592
  additional_properties: dict, optional, defaults to None
1606
1593
  User specified Additional properties to add to the collection definition.
1607
1594
  extended_properties: dict, optional, defaults to None
@@ -1623,19 +1610,24 @@ class CollectionManager(Client):
1623
1610
 
1624
1611
  """
1625
1612
 
1626
- resp = await self._async_create_generic_collection(display_name, description, is_own_anchor, "root-collection",
1627
- anchor_guid, parent_guid, parent_relationship_type_name,
1628
- parent_at_end1, collection_type, anchor_scope_guid,
1629
- collection_ordering, order_property_name,
1630
- additional_properties, extended_properties)
1613
+ resp = await self._async_create_generic_collection(display_name, description, qualified_name,
1614
+ is_own_anchor=is_own_anchor, url_item="root-collection",
1615
+ classification_name="RootCollection",
1616
+ anchor_guid=anchor_guid, parent_guid=parent_guid,
1617
+ parent_relationship_type_name=parent_relationship_type_name,
1618
+ parent_at_end1=parent_at_end1,
1619
+ collection_type=collection_type,
1620
+ anchor_scope_guid=anchor_scope_guid,
1621
+ additional_properties=additional_properties,
1622
+ extended_properties=extended_properties)
1631
1623
 
1632
1624
  return resp
1633
1625
 
1634
- def create_root_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
1635
- anchor_guid: str = None, parent_guid: str = None,
1626
+ def create_root_collection(self, display_name: str, description: str, qualified_name: str = None,
1627
+ is_own_anchor: bool = True, anchor_guid: str = None, parent_guid: str = None,
1636
1628
  parent_relationship_type_name: str = None, parent_at_end1: bool = True,
1637
1629
  collection_type: str = None, anchor_scope_guid: str = None,
1638
- collection_ordering: str = None, order_property_name: str = None,
1630
+
1639
1631
  additional_properties: dict = None, extended_properties: dict = None) -> str:
1640
1632
  """ Create a new collection with the RootCollection classification.
1641
1633
  Used to identify the top of a collection hierarchy.
@@ -1647,6 +1639,8 @@ class CollectionManager(Client):
1647
1639
  The display name of the element. Will also be used as the basis of the qualified_name.
1648
1640
  description: str
1649
1641
  A description of the collection.
1642
+ qualified_name: str, optional, defaults to None
1643
+ Allows user to specify a qualified name of the collection.
1650
1644
  is_own_anchor: bool, optional, defaults to True
1651
1645
  Indicates if the collection should be classified as its own anchor or not.
1652
1646
  anchor_guid: str
@@ -1664,11 +1658,6 @@ class CollectionManager(Client):
1664
1658
  Adds an user supplied valid value for the collection type.
1665
1659
  anchor_scope_guid: str, optional, defaults to None
1666
1660
  optional GUID of search scope
1667
- collection_ordering: str, optional, defaults to "OTHER"
1668
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
1669
- "OTHER"
1670
- order_property_name: str, optional, defaults to "Something"
1671
- Property to use for sequencing if collection_ordering is "OTHER"
1672
1661
  additional_properties: dict, optional, defaults to None
1673
1662
  User specified Additional properties to add to the collection definition.
1674
1663
  extended_properties: dict, optional, defaults to None
@@ -1691,18 +1680,17 @@ class CollectionManager(Client):
1691
1680
  """
1692
1681
  loop = asyncio.get_event_loop()
1693
1682
  resp = loop.run_until_complete(
1694
- self._async_create_root_collection(display_name, description, is_own_anchor, anchor_guid, parent_guid,
1695
- parent_relationship_type_name, parent_at_end1, collection_type,
1696
- anchor_scope_guid, collection_ordering, order_property_name,
1697
- additional_properties, extended_properties))
1683
+ self._async_create_root_collection(display_name, description, qualified_name, is_own_anchor, anchor_guid,
1684
+ parent_guid, parent_relationship_type_name, parent_at_end1,
1685
+ collection_type, anchor_scope_guid, additional_properties,
1686
+ extended_properties))
1698
1687
  return resp
1699
1688
 
1700
- async def _async_create_data_spec_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
1701
- anchor_guid: str = None, parent_guid: str = None,
1702
- parent_relationship_type_name: str = None, parent_at_end1: bool = True,
1703
- collection_type: str = None, anchor_scope_guid: str = None,
1704
- collection_ordering: str = None, order_property_name: str = None,
1705
- additional_properties: dict = None,
1689
+ async def _async_create_data_spec_collection(self, display_name: str, description: str, qualified_name: str = None,
1690
+ is_own_anchor: bool = True, anchor_guid: str = None,
1691
+ parent_guid: str = None, parent_relationship_type_name: str = None,
1692
+ parent_at_end1: bool = True, collection_type: str = None,
1693
+ anchor_scope_guid: str = None, additional_properties: dict = None,
1706
1694
  extended_properties: dict = None) -> str:
1707
1695
  """ Create a new collection with the DataSpec classification. Used to identify a collection of data
1708
1696
  structures and
@@ -1715,6 +1703,8 @@ class CollectionManager(Client):
1715
1703
  The display name of the element. Will also be used as the basis of the qualified_name.
1716
1704
  description: str
1717
1705
  A description of the collection.
1706
+ qualified_name: str, optional, defaults to None
1707
+ Allows user to specify a qualified name of the collection.
1718
1708
  is_own_anchor: bool, optional, defaults to True
1719
1709
  Indicates if the collection should be classified as its own anchor or not.
1720
1710
  anchor_guid: str
@@ -1732,11 +1722,6 @@ class CollectionManager(Client):
1732
1722
  Adds an user supplied valid value for the collection type.
1733
1723
  anchor_scope_guid: str, optional, defaults to None
1734
1724
  optional GUID of search scope
1735
- collection_ordering: str, optional, defaults to "OTHER"
1736
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
1737
- "OTHER"
1738
- order_property_name: str, optional, defaults to "Something"
1739
- Property to use for sequencing if collection_ordering is "OTHER"
1740
1725
  additional_properties: dict, optional, defaults to None
1741
1726
  User specified Additional properties to add to the collection definition.
1742
1727
  extended_properties: dict, optional, defaults to None
@@ -1758,20 +1743,24 @@ class CollectionManager(Client):
1758
1743
 
1759
1744
  """
1760
1745
 
1761
- resp = await self._async_create_generic_collection(display_name, description, is_own_anchor,
1762
- "data-spec-collection", anchor_guid, parent_guid,
1763
- parent_relationship_type_name, parent_at_end1,
1764
- collection_type, anchor_scope_guid, collection_ordering,
1765
- order_property_name, additional_properties,
1766
- extended_properties)
1746
+ resp = await self._async_create_generic_collection(display_name, description, qualified_name,
1747
+ is_own_anchor=is_own_anchor, url_item="data-spec-collection",
1748
+ classification_name="DataSpec", anchor_guid=anchor_guid,
1749
+ parent_guid=parent_guid,
1750
+ parent_relationship_type_name=parent_relationship_type_name,
1751
+ parent_at_end1=parent_at_end1,
1752
+ collection_type=collection_type,
1753
+ anchor_scope_guid=anchor_scope_guid,
1754
+ additional_properties=additional_properties,
1755
+ extended_properties=extended_properties)
1767
1756
 
1768
1757
  return resp
1769
1758
 
1770
- def create_data_spec_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
1771
- anchor_guid: str = None, parent_guid: str = None,
1759
+ def create_data_spec_collection(self, display_name: str, description: str, qualified_name: str = None,
1760
+ is_own_anchor: bool = True, anchor_guid: str = None, parent_guid: str = None,
1772
1761
  parent_relationship_type_name: str = None, parent_at_end1: bool = True,
1773
1762
  collection_type: str = None, anchor_scope_guid: str = None,
1774
- collection_ordering: str = None, order_property_name: str = None,
1763
+
1775
1764
  additional_properties: dict = None, extended_properties: dict = None) -> str:
1776
1765
  """ Create a new collection with the DataSpec classification. Used to identify a collection of data
1777
1766
  structures and
@@ -1783,6 +1772,8 @@ class CollectionManager(Client):
1783
1772
  The display name of the element. Will also be used as the basis of the qualified_name.
1784
1773
  description: str
1785
1774
  A description of the collection.
1775
+ qualified_name: str, optional, defaults to None
1776
+ Allows user to specify a qualified name of the collection.
1786
1777
  is_own_anchor: bool, optional, defaults to True
1787
1778
  Indicates if the collection should be classified as its own anchor or not.
1788
1779
  anchor_guid: str
@@ -1800,11 +1791,6 @@ class CollectionManager(Client):
1800
1791
  Adds an user supplied valid value for the collection type.
1801
1792
  anchor_scope_guid: str, optional, defaults to None
1802
1793
  optional GUID of search scope
1803
- collection_ordering: str, optional, defaults to "OTHER"
1804
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
1805
- "OTHER"
1806
- order_property_name: str, optional, defaults to "Something"
1807
- Property to use for sequencing if collection_ordering is "OTHER"
1808
1794
  additional_properties: dict, optional, defaults to None
1809
1795
  User specified Additional properties to add to the collection definition.
1810
1796
  extended_properties: dict, optional, defaults to None
@@ -1827,19 +1813,18 @@ class CollectionManager(Client):
1827
1813
  """
1828
1814
  loop = asyncio.get_event_loop()
1829
1815
  resp = loop.run_until_complete(
1830
- self._async_create_data_spec_collection(display_name, description, is_own_anchor, anchor_guid, parent_guid,
1831
- parent_relationship_type_name, parent_at_end1, collection_type,
1832
- anchor_scope_guid, collection_ordering, order_property_name,
1816
+ self._async_create_data_spec_collection(display_name, description, qualified_name, is_own_anchor,
1817
+ anchor_guid, parent_guid, parent_relationship_type_name,
1818
+ parent_at_end1, collection_type, anchor_scope_guid,
1833
1819
  additional_properties, extended_properties))
1834
1820
  return resp
1835
1821
 
1836
1822
  async def _async_create_data_dictionary_collection(self, display_name: str, description: str,
1837
- is_own_anchor: bool = True, anchor_guid: str = None,
1838
- parent_guid: str = None,
1823
+ qualified_name: str = None, is_own_anchor: bool = True,
1824
+ anchor_guid: str = None, parent_guid: str = None,
1839
1825
  parent_relationship_type_name: str = None,
1840
1826
  parent_at_end1: bool = True, collection_type: str = None,
1841
- anchor_scope_guid: str = None, collection_ordering: str = None,
1842
- order_property_name: str = None,
1827
+ anchor_scope_guid: str = None,
1843
1828
  additional_properties: dict = None,
1844
1829
  extended_properties: dict = None) -> str:
1845
1830
  """ Create a new collection with the DataDictionary classification. Used to identify a collection of data
@@ -1853,6 +1838,8 @@ class CollectionManager(Client):
1853
1838
  The display name of the element. Will also be used as the basis of the qualified_name.
1854
1839
  description: str
1855
1840
  A description of the collection.
1841
+ qualified_name: str, optional, defaults to None
1842
+ Allows user to specify a qualified name of the collection.
1856
1843
  is_own_anchor: bool, optional, defaults to True
1857
1844
  Indicates if the collection should be classified as its own anchor or not.
1858
1845
  anchor_guid: str
@@ -1870,11 +1857,6 @@ class CollectionManager(Client):
1870
1857
  Adds an user supplied valid value for the collection type.
1871
1858
  anchor_scope_guid: str, optional, defaults to None
1872
1859
  optional GUID of search scope
1873
- collection_ordering: str, optional, defaults to "OTHER"
1874
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
1875
- "OTHER"
1876
- order_property_name: str, optional, defaults to "Something"
1877
- Property to use for sequencing if collection_ordering is "OTHER"
1878
1860
  additional_properties: dict, optional, defaults to None
1879
1861
  User specified Additional properties to add to the collection definition.
1880
1862
  extended_properties: dict, optional, defaults to None
@@ -1896,20 +1878,25 @@ class CollectionManager(Client):
1896
1878
 
1897
1879
  """
1898
1880
 
1899
- resp = await self._async_create_generic_collection(display_name, description, is_own_anchor,
1900
- "data-dictionary-collection", anchor_guid, parent_guid,
1901
- parent_relationship_type_name, parent_at_end1,
1902
- collection_type, anchor_scope_guid, collection_ordering,
1903
- order_property_name, additional_properties,
1904
- extended_properties)
1881
+ resp = await self._async_create_generic_collection(display_name, description, qualified_name,
1882
+ is_own_anchor=is_own_anchor,
1883
+ url_item="data-dictionary-collection",
1884
+ classification_name="DataDictionary",
1885
+ anchor_guid=anchor_guid, parent_guid=parent_guid,
1886
+ parent_relationship_type_name=parent_relationship_type_name,
1887
+ parent_at_end1=parent_at_end1,
1888
+ collection_type=collection_type,
1889
+ anchor_scope_guid=anchor_scope_guid,
1890
+ additional_properties=additional_properties,
1891
+ extended_properties=extended_properties)
1905
1892
 
1906
1893
  return resp
1907
1894
 
1908
- def create_data_dictionary_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
1909
- anchor_guid: str = None, parent_guid: str = None,
1895
+ def create_data_dictionary_collection(self, display_name: str, description: str, qualified_name: str = None,
1896
+ is_own_anchor: bool = True, anchor_guid: str = None, parent_guid: str = None,
1910
1897
  parent_relationship_type_name: str = None, parent_at_end1: bool = True,
1911
1898
  collection_type: str = None, anchor_scope_guid: str = None,
1912
- collection_ordering: str = None, order_property_name: str = None,
1899
+
1913
1900
  additional_properties: dict = None, extended_properties: dict = None) -> str:
1914
1901
  """ Create a new collection with the DataSpec classification. Used to identify a collection of data
1915
1902
  structures and
@@ -1921,6 +1908,8 @@ class CollectionManager(Client):
1921
1908
  The display name of the element. Will also be used as the basis of the qualified_name.
1922
1909
  description: str
1923
1910
  A description of the collection.
1911
+ qualified_name: str, optional, defaults to None
1912
+ Allows user to specify a qualified name of the collection.
1924
1913
  is_own_anchor: bool, optional, defaults to True
1925
1914
  Indicates if the collection should be classified as its own anchor or not.
1926
1915
  anchor_guid: str
@@ -1938,11 +1927,6 @@ class CollectionManager(Client):
1938
1927
  Adds an user supplied valid value for the collection type.
1939
1928
  anchor_scope_guid: str, optional, defaults to None
1940
1929
  optional GUID of search scope
1941
- collection_ordering: str, optional, defaults to "OTHER"
1942
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
1943
- "OTHER"
1944
- order_property_name: str, optional, defaults to "Something"
1945
- Property to use for sequencing if collection_ordering is "OTHER"
1946
1930
  additional_properties: dict, optional, defaults to None
1947
1931
  User specified Additional properties to add to the collection definition.
1948
1932
  extended_properties: dict, optional, defaults to None
@@ -1965,18 +1949,18 @@ class CollectionManager(Client):
1965
1949
  """
1966
1950
  loop = asyncio.get_event_loop()
1967
1951
  resp = loop.run_until_complete(
1968
- self._async_create_data_dictionary_collection(display_name, description, is_own_anchor, anchor_guid,
1969
- parent_guid, parent_relationship_type_name, parent_at_end1,
1970
- collection_type, anchor_scope_guid, collection_ordering,
1971
- order_property_name, additional_properties,
1972
- extended_properties))
1952
+ self._async_create_data_dictionary_collection(display_name, description, qualified_name, is_own_anchor,
1953
+ anchor_guid, parent_guid, parent_relationship_type_name,
1954
+ parent_at_end1, collection_type, anchor_scope_guid,
1955
+ additional_properties, extended_properties))
1973
1956
  return resp
1974
1957
 
1975
- async def _async_create_folder_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
1976
- anchor_guid: str = None, parent_guid: str = None,
1977
- parent_relationship_type_name: str = None, parent_at_end1: bool = True,
1978
- collection_type: str = None, anchor_scope_guid: str = None,
1979
- collection_ordering: str = None, order_property_name: str = None,
1958
+ async def _async_create_folder_collection(self, display_name: str, description: str, qualified_name: str = None,
1959
+ is_own_anchor: bool = True, anchor_guid: str = None,
1960
+ parent_guid: str = None, parent_relationship_type_name: str = None,
1961
+ parent_at_end1: bool = True, collection_type: str = None,
1962
+ anchor_scope_guid: str = None,
1963
+
1980
1964
  additional_properties: dict = None,
1981
1965
  extended_properties: dict = None) -> str:
1982
1966
  """ Create a new collection with the Folder classification. This is used to identify the organizing collections
@@ -1989,6 +1973,8 @@ class CollectionManager(Client):
1989
1973
  The display name of the element. Will also be used as the basis of the qualified_name.
1990
1974
  description: str
1991
1975
  A description of the collection.
1976
+ qualified_name: str, optional, defaults to None
1977
+ Allows user to specify a qualified name of the collection.
1992
1978
  is_own_anchor: bool, optional, defaults to True
1993
1979
  Indicates if the collection should be classified as its own anchor or not.
1994
1980
  anchor_guid: str
@@ -2006,11 +1992,6 @@ class CollectionManager(Client):
2006
1992
  Adds an user supplied valid value for the collection type.
2007
1993
  anchor_scope_guid: str, optional, defaults to None
2008
1994
  optional GUID of search scope
2009
- collection_ordering: str, optional, defaults to "OTHER"
2010
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2011
- "OTHER"
2012
- order_property_name: str, optional, defaults to "Something"
2013
- Property to use for sequencing if collection_ordering is "OTHER"
2014
1995
  additional_properties: dict, optional, defaults to None
2015
1996
  User specified Additional properties to add to the collection definition.
2016
1997
  extended_properties: dict, optional, defaults to None
@@ -2032,19 +2013,24 @@ class CollectionManager(Client):
2032
2013
 
2033
2014
  """
2034
2015
 
2035
- resp = await self._async_create_generic_collection(display_name, description, is_own_anchor, "folder",
2036
- anchor_guid, parent_guid, parent_relationship_type_name,
2037
- parent_at_end1, collection_type, anchor_scope_guid,
2038
- collection_ordering, order_property_name,
2039
- additional_properties, extended_properties)
2016
+ resp = await self._async_create_generic_collection(display_name, description, qualified_name,
2017
+ is_own_anchor=is_own_anchor, url_item="folder",
2018
+ classification_name="Folder", anchor_guid=anchor_guid,
2019
+ parent_guid=parent_guid,
2020
+ parent_relationship_type_name=parent_relationship_type_name,
2021
+ parent_at_end1=parent_at_end1,
2022
+ collection_type=collection_type,
2023
+ anchor_scope_guid=anchor_scope_guid,
2024
+ additional_properties=additional_properties,
2025
+ extended_properties=extended_properties)
2040
2026
 
2041
2027
  return resp
2042
2028
 
2043
- def create_folder_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
2044
- anchor_guid: str = None, parent_guid: str = None,
2029
+ def create_folder_collection(self, display_name: str, description: str, qualified_name: str = None,
2030
+ is_own_anchor: bool = True, anchor_guid: str = None, parent_guid: str = None,
2045
2031
  parent_relationship_type_name: str = None, parent_at_end1: bool = True,
2046
2032
  collection_type: str = None, anchor_scope_guid: str = None,
2047
- collection_ordering: str = None, order_property_name: str = None,
2033
+
2048
2034
  additional_properties: dict = None, extended_properties: dict = None) -> str:
2049
2035
  """ Create a new collection with the Folder classification. This is used to identify the organizing collections
2050
2036
  in a collection hierarchy.
@@ -2055,6 +2041,8 @@ class CollectionManager(Client):
2055
2041
  The display name of the element. Will also be used as the basis of the qualified_name.
2056
2042
  description: str
2057
2043
  A description of the collection.
2044
+ qualified_name: str, optional, defaults to None
2045
+ Allows user to specify a qualified name of the collection.
2058
2046
  is_own_anchor: bool, optional, defaults to True
2059
2047
  Indicates if the collection should be classified as its own anchor or not.
2060
2048
  anchor_guid: str
@@ -2072,11 +2060,6 @@ class CollectionManager(Client):
2072
2060
  Adds an user supplied valid value for the collection type.
2073
2061
  anchor_scope_guid: str, optional, defaults to None
2074
2062
  optional GUID of search scope
2075
- collection_ordering: str, optional, defaults to "OTHER"
2076
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2077
- "OTHER"
2078
- order_property_name: str, optional, defaults to "Something"
2079
- Property to use for sequencing if collection_ordering is "OTHER"
2080
2063
  additional_properties: dict, optional, defaults to None
2081
2064
  User specified Additional properties to add to the collection definition.
2082
2065
  extended_properties: dict, optional, defaults to None
@@ -2099,19 +2082,18 @@ class CollectionManager(Client):
2099
2082
  """
2100
2083
  loop = asyncio.get_event_loop()
2101
2084
  resp = loop.run_until_complete(
2102
- self._async_create_folder_collection(display_name, description, is_own_anchor, anchor_guid, parent_guid,
2103
- parent_relationship_type_name, parent_at_end1, collection_type,
2104
- anchor_scope_guid, collection_ordering, order_property_name,
2105
- additional_properties, extended_properties))
2085
+ self._async_create_folder_collection(display_name, description, qualified_name, is_own_anchor, anchor_guid,
2086
+ parent_guid, parent_relationship_type_name, parent_at_end1,
2087
+ collection_type, anchor_scope_guid, additional_properties,
2088
+ extended_properties))
2106
2089
  return resp
2107
2090
 
2108
2091
  async def _async_create_context_event_collection(self, display_name: str, description: str,
2109
- is_own_anchor: bool = True, anchor_guid: str = None,
2110
- parent_guid: str = None, parent_relationship_type_name: str = None,
2092
+ qualified_name: str = None, is_own_anchor: bool = True,
2093
+ anchor_guid: str = None, parent_guid: str = None,
2094
+ parent_relationship_type_name: str = None,
2111
2095
  parent_at_end1: bool = True, collection_type: str = None,
2112
- anchor_scope_guid: str = None, collection_ordering: str = None,
2113
- order_property_name: str = None,
2114
- additional_properties: dict = None,
2096
+ anchor_scope_guid: str = None, additional_properties: dict = None,
2115
2097
  extended_properties: dict = None) -> str:
2116
2098
  """ Create a new collection with the ContextEventCollection classification. This is used to group context
2117
2099
  events together.
@@ -2124,6 +2106,8 @@ class CollectionManager(Client):
2124
2106
  The display name of the element. Will also be used as the basis of the qualified_name.
2125
2107
  description: str
2126
2108
  A description of the collection.
2109
+ qualified_name: str, optional, defaults to None
2110
+ Allows user to specify a qualified name of the collection.
2127
2111
  is_own_anchor: bool, optional, defaults to True
2128
2112
  Indicates if the collection should be classified as its own anchor or not.
2129
2113
  anchor_guid: str
@@ -2141,11 +2125,6 @@ class CollectionManager(Client):
2141
2125
  Adds an user supplied valid value for the collection type.
2142
2126
  anchor_scope_guid: str, optional, defaults to None
2143
2127
  optional GUID of search scope
2144
- collection_ordering: str, optional, defaults to "OTHER"
2145
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2146
- "OTHER"
2147
- order_property_name: str, optional, defaults to "Something"
2148
- Property to use for sequencing if collection_ordering is "OTHER"
2149
2128
  additional_properties: dict, optional, defaults to None
2150
2129
  User specified Additional properties to add to the collection definition.
2151
2130
  extended_properties: dict, optional, defaults to None
@@ -2167,20 +2146,25 @@ class CollectionManager(Client):
2167
2146
 
2168
2147
  """
2169
2148
 
2170
- resp = await self._async_create_generic_collection(display_name, description, is_own_anchor,
2171
- "context-event-collection", anchor_guid, parent_guid,
2172
- parent_relationship_type_name, parent_at_end1,
2173
- collection_type, anchor_scope_guid, collection_ordering,
2174
- order_property_name, additional_properties,
2175
- extended_properties)
2149
+ resp = await self._async_create_generic_collection(display_name, description, qualified_name,
2150
+ is_own_anchor=is_own_anchor,
2151
+ url_item="context-event-collection",
2152
+ classification_name="CtxEventCollection",
2153
+ anchor_guid=anchor_guid, parent_guid=parent_guid,
2154
+ parent_relationship_type_name=parent_relationship_type_name,
2155
+ parent_at_end1=parent_at_end1,
2156
+ collection_type=collection_type,
2157
+ anchor_scope_guid=anchor_scope_guid,
2158
+ additional_properties=additional_properties,
2159
+ extended_properties=extended_properties)
2176
2160
 
2177
2161
  return resp
2178
2162
 
2179
- def create_context_event_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
2180
- anchor_guid: str = None, parent_guid: str = None,
2163
+ def create_context_event_collection(self, display_name: str, description: str, qualified_name: str = None,
2164
+ is_own_anchor: bool = True, anchor_guid: str = None, parent_guid: str = None,
2181
2165
  parent_relationship_type_name: str = None, parent_at_end1: bool = True,
2182
2166
  collection_type: str = None, anchor_scope_guid: str = None,
2183
- collection_ordering: str = None, order_property_name: str = None,
2167
+
2184
2168
  additional_properties: dict = None, extended_properties: dict = None) -> str:
2185
2169
  """ Create a new collection with the ContextEventCollection classification. This is used to group context
2186
2170
  events together.
@@ -2192,6 +2176,8 @@ class CollectionManager(Client):
2192
2176
  The display name of the element. Will also be used as the basis of the qualified_name.
2193
2177
  description: str
2194
2178
  A description of the collection.
2179
+ qualified_name: str, optional, defaults to None
2180
+ Allows user to specify a qualified name of the collection.
2195
2181
  is_own_anchor: bool, optional, defaults to True
2196
2182
  Indicates if the collection should be classified as its own anchor or not.
2197
2183
  anchor_guid: str
@@ -2209,11 +2195,6 @@ class CollectionManager(Client):
2209
2195
  Adds an user supplied valid value for the collection type.
2210
2196
  anchor_scope_guid: str, optional, defaults to None
2211
2197
  optional GUID of search scope
2212
- collection_ordering: str, optional, defaults to "OTHER"
2213
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2214
- "OTHER"
2215
- order_property_name: str, optional, defaults to "Something"
2216
- Property to use for sequencing if collection_ordering is "OTHER"
2217
2198
  additional_properties: dict, optional, defaults to None
2218
2199
  User specified Additional properties to add to the collection definition.
2219
2200
  extended_properties: dict, optional, defaults to None
@@ -2236,18 +2217,17 @@ class CollectionManager(Client):
2236
2217
  """
2237
2218
  loop = asyncio.get_event_loop()
2238
2219
  resp = loop.run_until_complete(
2239
- self._async_create_context_event_collection(display_name, description, is_own_anchor, anchor_guid,
2240
- parent_guid, parent_relationship_type_name, parent_at_end1,
2241
- collection_type, anchor_scope_guid, collection_ordering,
2242
- order_property_name, additional_properties, extended_properties))
2220
+ self._async_create_context_event_collection(display_name, description, qualified_name, is_own_anchor,
2221
+ anchor_guid, parent_guid, parent_relationship_type_name,
2222
+ parent_at_end1, collection_type, anchor_scope_guid,
2223
+ additional_properties, extended_properties))
2243
2224
  return resp
2244
2225
 
2245
- async def _async_create_name_space_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
2246
- anchor_guid: str = None, parent_guid: str = None,
2247
- parent_relationship_type_name: str = None,
2226
+ async def _async_create_name_space_collection(self, display_name: str, description: str, qualified_name: str = None,
2227
+ is_own_anchor: bool = True, anchor_guid: str = None,
2228
+ parent_guid: str = None, parent_relationship_type_name: str = None,
2248
2229
  parent_at_end1: bool = True, collection_type: str = None,
2249
- anchor_scope_guid: str = None, collection_ordering: str = None,
2250
- order_property_name: str = None, additional_properties: dict = None,
2230
+ anchor_scope_guid: str = None, additional_properties: dict = None,
2251
2231
  extended_properties: dict = None) -> str:
2252
2232
  """ Create a new collection with the Namespace classification. This is used to group elements that belong to
2253
2233
  the same namespace.
@@ -2261,6 +2241,8 @@ class CollectionManager(Client):
2261
2241
  The display name of the element. Will also be used as the basis of the qualified_name.
2262
2242
  description: str
2263
2243
  A description of the collection.
2244
+ qualified_name: str, optional, defaults to None
2245
+ Allows user to specify a qualified name of the collection.
2264
2246
  is_own_anchor: bool, optional, defaults to True
2265
2247
  Indicates if the collection should be classified as its own anchor or not.
2266
2248
  anchor_guid: str
@@ -2278,11 +2260,6 @@ class CollectionManager(Client):
2278
2260
  Adds an user supplied valid value for the collection type.
2279
2261
  anchor_scope_guid: str, optional, defaults to None
2280
2262
  optional GUID of search scope
2281
- collection_ordering: str, optional, defaults to "OTHER"
2282
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2283
- "OTHER"
2284
- order_property_name: str, optional, defaults to "Something"
2285
- Property to use for sequencing if collection_ordering is "OTHER"
2286
2263
  additional_properties: dict, optional, defaults to None
2287
2264
  User specified Additional properties to add to the collection definition.
2288
2265
  extended_properties: dict, optional, defaults to None
@@ -2304,20 +2281,24 @@ class CollectionManager(Client):
2304
2281
 
2305
2282
  """
2306
2283
 
2307
- resp = await self._async_create_generic_collection(display_name, description, is_own_anchor,
2308
- "namespace-collection", anchor_guid, parent_guid,
2309
- parent_relationship_type_name, parent_at_end1,
2310
- collection_type, anchor_scope_guid, collection_ordering,
2311
- order_property_name, additional_properties,
2312
- extended_properties)
2284
+ resp = await self._async_create_generic_collection(display_name, description, qualified_name,
2285
+ is_own_anchor=is_own_anchor, url_item="namespace-collection",
2286
+ classification_name="NamespaceCollection",
2287
+ anchor_guid=anchor_guid, parent_guid=parent_guid,
2288
+ parent_relationship_type_name=parent_relationship_type_name,
2289
+ parent_at_end1=parent_at_end1,
2290
+ collection_type=collection_type,
2291
+ anchor_scope_guid=anchor_scope_guid,
2292
+ additional_properties=additional_properties,
2293
+ extended_properties=extended_properties)
2313
2294
 
2314
2295
  return resp
2315
2296
 
2316
- def create_name_space_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
2317
- anchor_guid: str = None, parent_guid: str = None,
2297
+ def create_name_space_collection(self, display_name: str, description: str, qualified_name: str = None,
2298
+ is_own_anchor: bool = True, anchor_guid: str = None, parent_guid: str = None,
2318
2299
  parent_relationship_type_name: str = None, parent_at_end1: bool = True,
2319
2300
  collection_type: str = None, anchor_scope_guid: str = None,
2320
- collection_ordering: str = None, order_property_name: str = None,
2301
+
2321
2302
  additional_properties: dict = None, extended_properties: dict = None) -> str:
2322
2303
  """ Create a new collection with the Namespace classification. This is used to group elements that belong to
2323
2304
  the same namespace.
@@ -2330,6 +2311,8 @@ class CollectionManager(Client):
2330
2311
  The display name of the element. Will also be used as the basis of the qualified_name.
2331
2312
  description: str
2332
2313
  A description of the collection.
2314
+ qualified_name: str, optional, defaults to None
2315
+ Allows user to specify a qualified name of the collection.
2333
2316
  is_own_anchor: bool, optional, defaults to True
2334
2317
  Indicates if the collection should be classified as its own anchor or not.
2335
2318
  anchor_guid: str
@@ -2347,11 +2330,6 @@ class CollectionManager(Client):
2347
2330
  Adds an user supplied valid value for the collection type.
2348
2331
  anchor_scope_guid: str, optional, defaults to None
2349
2332
  optional GUID of search scope
2350
- collection_ordering: str, optional, defaults to "OTHER"
2351
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2352
- "OTHER"
2353
- order_property_name: str, optional, defaults to "Something"
2354
- Property to use for sequencing if collection_ordering is "OTHER"
2355
2333
  additional_properties: dict, optional, defaults to None
2356
2334
  User specified Additional properties to add to the collection definition.
2357
2335
  extended_properties: dict, optional, defaults to None
@@ -2374,17 +2352,17 @@ class CollectionManager(Client):
2374
2352
  """
2375
2353
  loop = asyncio.get_event_loop()
2376
2354
  resp = loop.run_until_complete(
2377
- self._async_create_name_space_collection(display_name, description, is_own_anchor, anchor_guid, parent_guid,
2378
- parent_relationship_type_name, parent_at_end1, collection_type,
2379
- anchor_scope_guid, collection_ordering, order_property_name,
2380
- additional_properties, extended_properties))
2355
+ self._async_create_name_space_collection(display_name, description, qualified_name, is_own_anchor,
2356
+ anchor_guid, parent_guid, parent_relationship_type_name,
2357
+ parent_at_end1, collection_type, anchor_scope_guid))
2381
2358
  return resp
2382
2359
 
2383
- async def _async_create_event_set_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
2384
- anchor_guid: str = None, parent_guid: str = None,
2385
- parent_relationship_type_name: str = None, parent_at_end1: bool = True,
2386
- collection_type: str = None, anchor_scope_guid: str = None,
2387
- collection_ordering: str = None, order_property_name: str = None,
2360
+ async def _async_create_event_set_collection(self, display_name: str, description: str, qualified_name: str = None,
2361
+ is_own_anchor: bool = True, anchor_guid: str = None,
2362
+ parent_guid: str = None, parent_relationship_type_name: str = None,
2363
+ parent_at_end1: bool = True, collection_type: str = None,
2364
+ anchor_scope_guid: str = None,
2365
+
2388
2366
  additional_properties: dict = None,
2389
2367
  extended_properties: dict = None) -> str:
2390
2368
  """ Create a new collection with the EventSet classification. This is used to group event schemas together.
@@ -2398,6 +2376,8 @@ class CollectionManager(Client):
2398
2376
  The display name of the element. Will also be used as the basis of the qualified_name.
2399
2377
  description: str
2400
2378
  A description of the collection.
2379
+ qualified_name: str, optional, defaults to None
2380
+ Allows user to specify a qualified name of the collection.
2401
2381
  is_own_anchor: bool, optional, defaults to True
2402
2382
  Indicates if the collection should be classified as its own anchor or not.
2403
2383
  anchor_guid: str
@@ -2415,11 +2395,6 @@ class CollectionManager(Client):
2415
2395
  Adds an user supplied valid value for the collection type.
2416
2396
  anchor_scope_guid: str, optional, defaults to None
2417
2397
  optional GUID of search scope
2418
- collection_ordering: str, optional, defaults to "OTHER"
2419
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2420
- "OTHER"
2421
- order_property_name: str, optional, defaults to "Something"
2422
- Property to use for sequencing if collection_ordering is "OTHER"
2423
2398
  additional_properties: dict, optional, defaults to None
2424
2399
  User specified Additional properties to add to the collection definition.
2425
2400
  extended_properties: dict, optional, defaults to None
@@ -2441,20 +2416,24 @@ class CollectionManager(Client):
2441
2416
 
2442
2417
  """
2443
2418
 
2444
- resp = await self._async_create_generic_collection(display_name, description, is_own_anchor,
2445
- "event-set-collection", anchor_guid, parent_guid,
2446
- parent_relationship_type_name, parent_at_end1,
2447
- collection_type, anchor_scope_guid, collection_ordering,
2448
- order_property_name, additional_properties,
2449
- extended_properties)
2419
+ resp = await self._async_create_generic_collection(display_name, description, qualified_name,
2420
+ is_own_anchor=is_own_anchor, url_item="event-set-collection",
2421
+ classification_name="EventSetCollection",
2422
+ anchor_guid=anchor_guid, parent_guid=parent_guid,
2423
+ parent_relationship_type_name=parent_relationship_type_name,
2424
+ parent_at_end1=parent_at_end1,
2425
+ collection_type=collection_type,
2426
+ anchor_scope_guid=anchor_scope_guid,
2427
+ additional_properties=additional_properties,
2428
+ extended_properties=extended_properties)
2450
2429
 
2451
2430
  return resp
2452
2431
 
2453
- def create_event_set_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
2454
- anchor_guid: str = None, parent_guid: str = None,
2432
+ def create_event_set_collection(self, display_name: str, description: str, qualified_name: str = None,
2433
+ is_own_anchor: bool = True, anchor_guid: str = None, parent_guid: str = None,
2455
2434
  parent_relationship_type_name: str = None, parent_at_end1: bool = True,
2456
2435
  collection_type: str = None, anchor_scope_guid: str = None,
2457
- collection_ordering: str = None, order_property_name: str = None,
2436
+
2458
2437
  additional_properties: dict = None, extended_properties: dict = None) -> str:
2459
2438
  """ Create a new collection with the EventSet classification. This is used to group event schemas together.
2460
2439
  For example, the collection may describe a set of events emitted by a specific system or to disseminate
@@ -2466,6 +2445,8 @@ class CollectionManager(Client):
2466
2445
  The display name of the element. Will also be used as the basis of the qualified_name.
2467
2446
  description: str
2468
2447
  A description of the collection.
2448
+ qualified_name: str, optional, defaults to None
2449
+ Allows user to specify a qualified name of the collection.
2469
2450
  is_own_anchor: bool, optional, defaults to True
2470
2451
  Indicates if the collection should be classified as its own anchor or not.
2471
2452
  anchor_guid: str
@@ -2483,11 +2464,6 @@ class CollectionManager(Client):
2483
2464
  Adds an user supplied valid value for the collection type.
2484
2465
  anchor_scope_guid: str, optional, defaults to None
2485
2466
  optional GUID of search scope
2486
- collection_ordering: str, optional, defaults to "OTHER"
2487
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2488
- "OTHER"
2489
- order_property_name: str, optional, defaults to "Something"
2490
- Property to use for sequencing if collection_ordering is "OTHER"
2491
2467
  additional_properties: dict, optional, defaults to None
2492
2468
  User specified Additional properties to add to the collection definition.
2493
2469
  extended_properties: dict, optional, defaults to None
@@ -2510,20 +2486,18 @@ class CollectionManager(Client):
2510
2486
  """
2511
2487
  loop = asyncio.get_event_loop()
2512
2488
  resp = loop.run_until_complete(
2513
- self._async_create_event_set_collection(display_name, description, is_own_anchor, anchor_guid, parent_guid,
2514
- parent_relationship_type_name, parent_at_end1, collection_type,
2515
- anchor_scope_guid, collection_ordering, order_property_name,
2489
+ self._async_create_event_set_collection(display_name, description, qualified_name, is_own_anchor,
2490
+ anchor_guid, parent_guid, parent_relationship_type_name,
2491
+ parent_at_end1, collection_type, anchor_scope_guid,
2516
2492
  additional_properties, extended_properties))
2517
2493
  return resp
2518
2494
 
2519
2495
  async def _async_create_naming_standard_ruleset_collection(self, display_name: str, description: str,
2520
- is_own_anchor: bool = True, anchor_guid: str = None,
2521
- parent_guid: str = None,
2496
+ qualified_name: str = None, is_own_anchor: bool = True,
2497
+ anchor_guid: str = None, parent_guid: str = None,
2522
2498
  parent_relationship_type_name: str = None,
2523
2499
  parent_at_end1: bool = True, collection_type: str = None,
2524
2500
  anchor_scope_guid: str = None,
2525
- collection_ordering: str = None,
2526
- order_property_name: str = None,
2527
2501
  additional_properties: dict = None,
2528
2502
  extended_properties: dict = None) -> str:
2529
2503
  """ Create a new collection with the NamingStandardRuleSet classification. This is used to group naming
@@ -2537,6 +2511,8 @@ class CollectionManager(Client):
2537
2511
  The display name of the element. Will also be used as the basis of the qualified_name.
2538
2512
  description: str
2539
2513
  A description of the collection.
2514
+ qualified_name: str, optional, defaults to None
2515
+ Allows user to specify a qualified name of the collection.
2540
2516
  is_own_anchor: bool, optional, defaults to True
2541
2517
  Indicates if the collection should be classified as its own anchor or not.
2542
2518
  anchor_guid: str
@@ -2554,11 +2530,6 @@ class CollectionManager(Client):
2554
2530
  Adds an user supplied valid value for the collection type.
2555
2531
  anchor_scope_guid: str, optional, defaults to None
2556
2532
  optional GUID of search scope
2557
- collection_ordering: str, optional, defaults to "OTHER"
2558
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2559
- "OTHER"
2560
- order_property_name: str, optional, defaults to "Something"
2561
- Property to use for sequencing if collection_ordering is "OTHER"
2562
2533
  additional_properties: dict, optional, defaults to None
2563
2534
  User specified Additional properties to add to the collection definition.
2564
2535
  extended_properties: dict, optional, defaults to None
@@ -2580,21 +2551,25 @@ class CollectionManager(Client):
2580
2551
 
2581
2552
  """
2582
2553
 
2583
- resp = await self._async_create_generic_collection(display_name, description, is_own_anchor,
2584
- "naming-standard-rule-set-collection", anchor_guid,
2585
- parent_guid, parent_relationship_type_name, parent_at_end1,
2586
- collection_type, anchor_scope_guid, collection_ordering,
2587
- order_property_name, additional_properties,
2588
- extended_properties)
2554
+ resp = await self._async_create_generic_collection(display_name, description, qualified_name,
2555
+ is_own_anchor=is_own_anchor,
2556
+ url_item="naming-standard-rule-set-collection",
2557
+ classification_name="NamingRulesCollection",
2558
+ anchor_guid=anchor_guid, parent_guid=parent_guid,
2559
+ parent_relationship_type_name=parent_relationship_type_name,
2560
+ parent_at_end1=parent_at_end1,
2561
+ collection_type=collection_type,
2562
+ anchor_scope_guid=anchor_scope_guid,
2563
+ additional_properties=additional_properties,
2564
+ extended_properties=extended_properties)
2589
2565
 
2590
2566
  return resp
2591
2567
 
2592
- def create_naming_standard_ruleset_collection(self, display_name: str, description: str, is_own_anchor: bool = True,
2593
- anchor_guid: str = None, parent_guid: str = None,
2594
- parent_relationship_type_name: str = None,
2568
+ def create_naming_standard_ruleset_collection(self, display_name: str, description: str, qualified_name: str = None,
2569
+ is_own_anchor: bool = True, anchor_guid: str = None,
2570
+ parent_guid: str = None, parent_relationship_type_name: str = None,
2595
2571
  parent_at_end1: bool = True, collection_type: str = None,
2596
- anchor_scope_guid: str = None, collection_ordering: str = None,
2597
- order_property_name: str = None, additional_properties: dict = None,
2572
+ anchor_scope_guid: str = None, additional_properties: dict = None,
2598
2573
  extended_properties: dict = None) -> str:
2599
2574
  """ Create a new collection with the NamingStandardRuleSet classification. This is used to group naming
2600
2575
  standard rule
@@ -2606,6 +2581,8 @@ class CollectionManager(Client):
2606
2581
  The display name of the element. Will also be used as the basis of the qualified_name.
2607
2582
  description: str
2608
2583
  A description of the collection.
2584
+ qualified_name: str, optional, defaults to None
2585
+ Allows user to specify a qualified name of the collection.
2609
2586
  is_own_anchor: bool, optional, defaults to True
2610
2587
  Indicates if the collection should be classified as its own anchor or not.
2611
2588
  anchor_guid: str
@@ -2623,11 +2600,6 @@ class CollectionManager(Client):
2623
2600
  Adds an user supplied valid value for the collection type.
2624
2601
  anchor_scope_guid: str, optional, defaults to None
2625
2602
  optional GUID of search scope
2626
- collection_ordering: str, optional, defaults to "OTHER"
2627
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER", "DATE_CREATED",
2628
- "OTHER"
2629
- order_property_name: str, optional, defaults to "Something"
2630
- Property to use for sequencing if collection_ordering is "OTHER"
2631
2603
  additional_properties: dict, optional, defaults to None
2632
2604
  User specified Additional properties to add to the collection definition.
2633
2605
  extended_properties: dict, optional, defaults to None
@@ -2650,11 +2622,10 @@ class CollectionManager(Client):
2650
2622
  """
2651
2623
  loop = asyncio.get_event_loop()
2652
2624
  resp = loop.run_until_complete(
2653
- self._async_create_naming_standard_ruleset_collection(display_name, description, is_own_anchor, anchor_guid,
2654
- parent_guid, parent_relationship_type_name,
2655
- parent_at_end1, collection_type, anchor_scope_guid,
2656
- collection_ordering, order_property_name,
2657
- additional_properties, extended_properties))
2625
+ self._async_create_naming_standard_ruleset_collection(display_name, description, qualified_name,
2626
+ is_own_anchor, anchor_guid, parent_guid,
2627
+ parent_relationship_type_name, parent_at_end1,
2628
+ collection_type, anchor_scope_guid))
2658
2629
  return resp
2659
2630
 
2660
2631
  #
@@ -2780,9 +2751,9 @@ class CollectionManager(Client):
2780
2751
  #
2781
2752
  async def _async_update_collection(self, collection_guid: str, qualified_name: str = None, display_name: str = None,
2782
2753
  description: str = None, collection_type: str = None,
2783
- collection_ordering: str = None, order_property_name: str = None,
2784
- additional_properties: dict = None,
2785
- extended_properties: dict = None, replace_all_props: bool = False) -> None:
2754
+
2755
+ additional_properties: dict = None, extended_properties: dict = None,
2756
+ replace_all_props: bool = False) -> None:
2786
2757
  """Update the properties of a collection. Async version.
2787
2758
 
2788
2759
  Parameters
@@ -2797,11 +2768,6 @@ class CollectionManager(Client):
2797
2768
  A description of the collection.
2798
2769
  collection_type: str, optional, defaults to None
2799
2770
  Add appropriate valid value for the collection type.
2800
- collection_ordering: str, optional, defaults to None
2801
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER",
2802
- "DATE_CREATED", "OTHER"
2803
- order_property_name: str, optional, defaults to None
2804
- Property to use for sequencing if collection_ordering is "OTHER"
2805
2771
  replace_all_props: bool, optional, defaults to False
2806
2772
  Whether to replace all properties in the collection.
2807
2773
  additional_properties: dict, optional, defaults to None
@@ -2831,17 +2797,16 @@ class CollectionManager(Client):
2831
2797
  body = {
2832
2798
  "class": "UpdateElementRequestBody", "properties": {
2833
2799
  "class": "CollectionProperties", "qualifiedName": qualified_name, "name": display_name,
2834
- "description": description, "collectionType": collection_type, "collectionOrder": collection_ordering,
2835
- "orderByPropertyName": order_property_name, "additionalProperties": additional_properties,
2836
- "extendedProperties": extended_properties
2800
+ "description": description, "collectionType": collection_type,
2801
+ "additionalProperties": additional_properties, "extendedProperties": extended_properties
2837
2802
  }
2838
2803
  }
2839
2804
  body_s = body_slimmer(body)
2840
2805
  await self._async_make_request("POST", url, body_s)
2841
2806
 
2842
2807
  def update_collection(self, collection_guid, qualified_name: str = None, display_name: str = None,
2843
- description: str = None, collection_type: str = None, collection_ordering: str = None,
2844
- order_property_name: str = None, additional_properties: dict = None, extended_properties: dict = None, replace_all_props: bool = False) -> None:
2808
+ description: str = None, collection_type: str = None, additional_properties: dict = None,
2809
+ extended_properties: dict = None, replace_all_props: bool = False) -> None:
2845
2810
  """Update the properties of a collection.
2846
2811
 
2847
2812
  Parameters
@@ -2856,11 +2821,6 @@ class CollectionManager(Client):
2856
2821
  A description of the collection.
2857
2822
  collection_type: str
2858
2823
  Add appropriate valid value for the collection type.
2859
- collection_ordering: str, optional, defaults to "OTHER"
2860
- Specifies the sequencing to use in a collection. Examples include "NAME", "OWNER",
2861
- "DATE_CREATED", "OTHER"
2862
- order_property_name: str, optional, defaults to "Something"
2863
- Property to use for sequencing if collection_ordering is "OTHER"
2864
2824
  replace_all_props: bool, optional, defaults to False
2865
2825
  Whether to replace all properties in the collection.
2866
2826
  additional_properties: dict, optional, defaults to None
@@ -2885,11 +2845,11 @@ class CollectionManager(Client):
2885
2845
  loop = asyncio.get_event_loop()
2886
2846
  loop.run_until_complete(
2887
2847
  self._async_update_collection(collection_guid, qualified_name, display_name, description, collection_type,
2888
- collection_ordering, order_property_name,
2889
- additional_properties, extended_properties, replace_all_props))
2890
2848
 
2849
+ additional_properties, extended_properties, replace_all_props))
2891
2850
 
2892
- async def _async_update_collection_w_body(self, collection_guid: str, body: dict, replace_all_props: bool=False) -> None:
2851
+ async def _async_update_collection_w_body(self, collection_guid: str, body: dict,
2852
+ replace_all_props: bool = False) -> None:
2893
2853
  """Update the properties of a collection. Async version.
2894
2854
 
2895
2855
  Parameters
@@ -2940,7 +2900,7 @@ class CollectionManager(Client):
2940
2900
  body_s = body_slimmer(body)
2941
2901
  await self._async_make_request("POST", url, body_s)
2942
2902
 
2943
- def update_collection_w_body(self, collection_guid: str, body:dict, replace_all_props: bool=False) -> None:
2903
+ def update_collection_w_body(self, collection_guid: str, body: dict, replace_all_props: bool = False) -> None:
2944
2904
  """Update the properties of a collection.
2945
2905
 
2946
2906
  Parameters
@@ -2986,9 +2946,7 @@ class CollectionManager(Client):
2986
2946
 
2987
2947
  """
2988
2948
  loop = asyncio.get_event_loop()
2989
- loop.run_until_complete(
2990
- self._async_update_collection_w_body(collection_guid, body, replace_all_props))
2991
-
2949
+ loop.run_until_complete(self._async_update_collection_w_body(collection_guid, body, replace_all_props))
2992
2950
 
2993
2951
  #
2994
2952
  # Digital Products
@@ -3219,7 +3177,6 @@ class CollectionManager(Client):
3219
3177
 
3220
3178
  await self._async_make_request("POST", url, body)
3221
3179
 
3222
-
3223
3180
  def update_digital_product(self, collection_guid: str, body: dict, replace_all_props: bool = False, ):
3224
3181
  """Update the properties of the DigitalProduct classification attached to a collection.
3225
3182
 
@@ -3270,7 +3227,6 @@ class CollectionManager(Client):
3270
3227
  loop = asyncio.get_event_loop()
3271
3228
  loop.run_until_complete(self._async_update_digital_product(collection_guid, body, replace_all_props))
3272
3229
 
3273
-
3274
3230
  async def _async_update_digital_product_status(self, digital_prod_guid: str, body: dict):
3275
3231
  """Update the status of a DigitalProduct collection. Async version.
3276
3232
 
@@ -3308,12 +3264,13 @@ class CollectionManager(Client):
3308
3264
  }
3309
3265
  """
3310
3266
 
3311
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital-products/"
3312
- f"{digital_prod_guid}/update=status")
3267
+ url = (
3268
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital"
3269
+ f"-products/"
3270
+ f"{digital_prod_guid}/update=status")
3313
3271
 
3314
3272
  await self._async_make_request("POST", url, body)
3315
3273
 
3316
-
3317
3274
  def update_digital_product_status(self, digital_prod_guid: str, body: dict):
3318
3275
  """Update the status of a DigitalProduct collection. Async version.
3319
3276
 
@@ -3354,8 +3311,6 @@ class CollectionManager(Client):
3354
3311
  loop = asyncio.get_event_loop()
3355
3312
  loop.run_until_complete(self._async_update_digital_product_status(digital_prod_guid, body))
3356
3313
 
3357
-
3358
-
3359
3314
  async def _async_link_digital_product_dependency(self, upstream_digital_prod_guid: str,
3360
3315
  downstream_digital_prod_guid: str, body: dict = None):
3361
3316
  """ Link two dependent digital products. The linked elements are of type DigitalProduct.
@@ -3403,16 +3358,17 @@ class CollectionManager(Client):
3403
3358
  }
3404
3359
  """
3405
3360
 
3406
-
3407
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital-products/"
3408
- f"{upstream_digital_prod_guid}/product-dependencies/{downstream_digital_prod_guid}/attach")
3361
+ url = (
3362
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital"
3363
+ f"-products/"
3364
+ f"{upstream_digital_prod_guid}/product-dependencies/{downstream_digital_prod_guid}/attach")
3409
3365
  if body:
3410
3366
  await self._async_make_request("POST", url, body)
3411
3367
  else:
3412
3368
  await self._async_make_request("POST", url)
3413
3369
 
3414
-
3415
- def link_digital_product_dependency(self, upstream_digital_prod_guid: str, downstream_digital_prod_guid: str, body: dict = None):
3370
+ def link_digital_product_dependency(self, upstream_digital_prod_guid: str, downstream_digital_prod_guid: str,
3371
+ body: dict = None):
3416
3372
  """ Link two dependent digital products. The linked elements are of type DigitalProduct.
3417
3373
  Request body is optional.
3418
3374
 
@@ -3461,7 +3417,6 @@ class CollectionManager(Client):
3461
3417
  loop.run_until_complete(
3462
3418
  self._async_link_digital_product_dependency(upstream_digital_prod_guid, downstream_digital_prod_guid, body))
3463
3419
 
3464
-
3465
3420
  async def _async_detach_digital_product_dependency(self, upstream_digital_prod_guid: str,
3466
3421
  downstream_digital_prod_guid: str, body: dict = None):
3467
3422
  """ Unlink two dependent digital products. The linked elements are of type DigitalProduct.
@@ -3502,14 +3457,15 @@ class CollectionManager(Client):
3502
3457
  }
3503
3458
  """
3504
3459
 
3505
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital-products/"
3506
- f"{upstream_digital_prod_guid}/product-dependencies/{downstream_digital_prod_guid}/detach")
3460
+ url = (
3461
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital"
3462
+ f"-products/"
3463
+ f"{upstream_digital_prod_guid}/product-dependencies/{downstream_digital_prod_guid}/detach")
3507
3464
  if body:
3508
3465
  await self._async_make_request("POST", url, body)
3509
3466
  else:
3510
3467
  await self._async_make_request("POST", url)
3511
3468
 
3512
-
3513
3469
  async def _async_link_product_manager(self, digital_prod_guid: str, digital_prod_manager_guid: str,
3514
3470
  body: dict = None) -> None:
3515
3471
  """ Attach a product manager to a digital product. Request body is optional.
@@ -3550,15 +3506,15 @@ class CollectionManager(Client):
3550
3506
  }
3551
3507
  """
3552
3508
 
3553
-
3554
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital-products/"
3555
- f"{digital_prod_guid}/product-managers/{digital_prod_manager_guid}/attach")
3509
+ url = (
3510
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital"
3511
+ f"-products/"
3512
+ f"{digital_prod_guid}/product-managers/{digital_prod_manager_guid}/attach")
3556
3513
  if body:
3557
3514
  await self._async_make_request("POST", url, body)
3558
3515
  else:
3559
3516
  await self._async_make_request("POST", url)
3560
3517
 
3561
-
3562
3518
  def link_product_manager(self, digital_prod_guid: str, digital_prod_manager_guid: str, body: dict = None):
3563
3519
  """ Link a product manager to a digital product.
3564
3520
  Request body is optional.
@@ -3598,11 +3554,10 @@ class CollectionManager(Client):
3598
3554
  }
3599
3555
  """
3600
3556
  loop = asyncio.get_event_loop()
3601
- loop.run_until_complete(
3602
- self._async_link_product_manager(digital_prod_guid, digital_prod_manager_guid, body))
3557
+ loop.run_until_complete(self._async_link_product_manager(digital_prod_guid, digital_prod_manager_guid, body))
3603
3558
 
3604
-
3605
- async def _async_detach_product_manager(self, digital_prod_guid: str, digital_prod_manager_guid: str, body: dict = None):
3559
+ async def _async_detach_product_manager(self, digital_prod_guid: str, digital_prod_manager_guid: str,
3560
+ body: dict = None):
3606
3561
  """ Detach a product manager from a digital product. Request body is optional.
3607
3562
  Async version.
3608
3563
 
@@ -3641,14 +3596,15 @@ class CollectionManager(Client):
3641
3596
  }
3642
3597
  """
3643
3598
 
3644
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital-products/"
3645
- f"{digital_prod_guid}/product-managers/{digital_prod_manager_guid}/detach")
3599
+ url = (
3600
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/digital"
3601
+ f"-products/"
3602
+ f"{digital_prod_guid}/product-managers/{digital_prod_manager_guid}/detach")
3646
3603
  if body:
3647
3604
  await self._async_make_request("POST", url, body)
3648
3605
  else:
3649
3606
  await self._async_make_request("POST", url)
3650
3607
 
3651
-
3652
3608
  def detach_product_manager(self, digital_prod_guid: str, digital_prod_manager_guid: str, body: dict = None):
3653
3609
  """ Detach a product manager from a digital product. Request body is optional.
3654
3610
 
@@ -3687,9 +3643,7 @@ class CollectionManager(Client):
3687
3643
  }
3688
3644
  """
3689
3645
  loop = asyncio.get_event_loop()
3690
- loop.run_until_complete(
3691
- self._async_detach_product_manager(digital_prod_guid, digital_prod_manager_guid, body))
3692
-
3646
+ loop.run_until_complete(self._async_detach_product_manager(digital_prod_guid, digital_prod_manager_guid, body))
3693
3647
 
3694
3648
  #
3695
3649
  # Agreements
@@ -3775,7 +3729,8 @@ class CollectionManager(Client):
3775
3729
  }
3776
3730
 
3777
3731
 
3778
- The valid values for initialStatus are: DRAFT, PREPARED, PROPOSED, APPROVED, REJECTED, ACTIVE, DISABLED, DEPRECATED,
3732
+ The valid values for initialStatus are: DRAFT, PREPARED, PROPOSED, APPROVED, REJECTED, ACTIVE, DISABLED,
3733
+ DEPRECATED,
3779
3734
  OTHER. If using OTHER, set the userDefinedStatus with the status value you want.
3780
3735
  """
3781
3736
 
@@ -3784,7 +3739,6 @@ class CollectionManager(Client):
3784
3739
  resp = await self._async_make_request("POST", url, body_slimmer(body))
3785
3740
  return resp.json().get("guid", "No GUID returned")
3786
3741
 
3787
-
3788
3742
  def create_agreement(self, body: dict) -> str:
3789
3743
  """Create a new collection that represents am agreement. Async version.
3790
3744
 
@@ -3866,7 +3820,8 @@ class CollectionManager(Client):
3866
3820
  }
3867
3821
 
3868
3822
 
3869
- The valid values for initialStatus are: DRAFT, PREPARED, PROPOSED, APPROVED, REJECTED, ACTIVE, DISABLED, DEPRECATED,
3823
+ The valid values for initialStatus are: DRAFT, PREPARED, PROPOSED, APPROVED, REJECTED, ACTIVE, DISABLED,
3824
+ DEPRECATED,
3870
3825
  OTHER. If using OTHER, set the userDefinedStatus with the status value you want.
3871
3826
  """
3872
3827
  loop = asyncio.get_event_loop()
@@ -3930,12 +3885,12 @@ class CollectionManager(Client):
3930
3885
  }
3931
3886
  """
3932
3887
 
3933
- url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/data-sharing-agreement"
3888
+ url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/data"
3889
+ f"-sharing-agreement")
3934
3890
 
3935
3891
  resp = await self._async_make_request("POST", url, body_slimmer(body))
3936
3892
  return resp.json().get("guid", "No GUID returned")
3937
3893
 
3938
-
3939
3894
  def create_data_sharing_agreement(self, body: dict) -> str:
3940
3895
  """ Create a new collection with the DataSharingAgreement classification. The collection is typically
3941
3896
  an agreement which may use the NewElementRequestBody, or the NewAgreementRequestBody if the
@@ -3996,7 +3951,6 @@ class CollectionManager(Client):
3996
3951
  resp = loop.run_until_complete(self._async_create_data_sharing_agreement(body))
3997
3952
  return resp
3998
3953
 
3999
-
4000
3954
  async def _async_update_agreement(self, agreement_guid: str, body: dict, replace_all_props: bool = False, ):
4001
3955
  """Update the properties of the agreement collection. Async version.
4002
3956
 
@@ -4055,7 +4009,6 @@ class CollectionManager(Client):
4055
4009
 
4056
4010
  await self._async_make_request("POST", url, body)
4057
4011
 
4058
-
4059
4012
  def update_agreement(self, agreement_guid: str, body: dict, replace_all_props: bool = False, ):
4060
4013
  """Update the properties of the DigitalProduct classification attached to a collection.
4061
4014
 
@@ -4110,7 +4063,6 @@ class CollectionManager(Client):
4110
4063
  loop = asyncio.get_event_loop()
4111
4064
  loop.run_until_complete(self._async_update_digital_product(agreement_guid, body, replace_all_props))
4112
4065
 
4113
-
4114
4066
  async def _async_update_agreement_status(self, agreement_guid: str, body: dict):
4115
4067
  """Update the status of an agreement collection. Async version.
4116
4068
 
@@ -4148,12 +4100,13 @@ class CollectionManager(Client):
4148
4100
  }
4149
4101
  """
4150
4102
 
4151
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/agreements/"
4152
- f"{agreement_guid}/update-status")
4103
+ url = (
4104
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections"
4105
+ f"/agreements/"
4106
+ f"{agreement_guid}/update-status")
4153
4107
 
4154
4108
  await self._async_make_request("POST", url, body)
4155
4109
 
4156
-
4157
4110
  def update_agreement_status(self, agreement_guid: str, body: dict):
4158
4111
  """Update the status of an agreement collection. Async version.
4159
4112
 
@@ -4194,10 +4147,7 @@ class CollectionManager(Client):
4194
4147
  loop = asyncio.get_event_loop()
4195
4148
  loop.run_until_complete(self._async_update_agreement_status(agreement_guid, body))
4196
4149
 
4197
-
4198
-
4199
- async def _async_link_agreement_actor(self, agreement_guid: str,
4200
- actor_guid: str, body: dict = None):
4150
+ async def _async_link_agreement_actor(self, agreement_guid: str, actor_guid: str, body: dict = None):
4201
4151
  """ Attach an actor to an agreement. The actor element may be an actor profile (person, team or IT profile);
4202
4152
  actor role (person role, team role or IT profile role); or user identity. Request body is optional.
4203
4153
  Async version.
@@ -4243,15 +4193,15 @@ class CollectionManager(Client):
4243
4193
  }
4244
4194
  """
4245
4195
 
4246
-
4247
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/agreements/"
4248
- f"{agreement_guid}/agreement-actors/{actor_guid}/attach")
4196
+ url = (
4197
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections"
4198
+ f"/agreements/"
4199
+ f"{agreement_guid}/agreement-actors/{actor_guid}/attach")
4249
4200
  if body:
4250
4201
  await self._async_make_request("POST", url, body)
4251
4202
  else:
4252
4203
  await self._async_make_request("POST", url)
4253
4204
 
4254
-
4255
4205
  def link_agreement_actor(self, agreement_guid: str, actor_guid: str, body: dict = None):
4256
4206
  """ Attach an actor to an agreement. The actor element may be an actor profile (person, team or IT profile);
4257
4207
  actor role (person role, team role or IT profile role); or user identity. Request body is optional.
@@ -4298,12 +4248,9 @@ class CollectionManager(Client):
4298
4248
  }
4299
4249
  """
4300
4250
  loop = asyncio.get_event_loop()
4301
- loop.run_until_complete(
4302
- self._async_link_agreement_actor(agreement_guid, actor_guid, body))
4303
-
4251
+ loop.run_until_complete(self._async_link_agreement_actor(agreement_guid, actor_guid, body))
4304
4252
 
4305
- async def _async_detach_agreement_actor(self, agreement_guid: str,
4306
- actor_guid: str, body: dict = None):
4253
+ async def _async_detach_agreement_actor(self, agreement_guid: str, actor_guid: str, body: dict = None):
4307
4254
  """ Unlink an actor from an agreement. Request body is optional. Async version.
4308
4255
 
4309
4256
  Parameters
@@ -4341,14 +4288,15 @@ class CollectionManager(Client):
4341
4288
  }
4342
4289
  """
4343
4290
 
4344
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/agreements/"
4345
- f"{agreement_guid}/agreement-actors/{actor_guid}/detach")
4291
+ url = (
4292
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections"
4293
+ f"/agreements/"
4294
+ f"{agreement_guid}/agreement-actors/{actor_guid}/detach")
4346
4295
  if body:
4347
4296
  await self._async_make_request("POST", url, body)
4348
4297
  else:
4349
4298
  await self._async_make_request("POST", url)
4350
4299
 
4351
-
4352
4300
  def detach_agreement_actor(self, agreement_guid: str, actor_guid: str, body: dict = None):
4353
4301
  """ Unlink an actor from an agreement. Request body is optional.
4354
4302
 
@@ -4387,12 +4335,10 @@ class CollectionManager(Client):
4387
4335
  }
4388
4336
  """
4389
4337
  loop = asyncio.get_event_loop()
4390
- loop.run_until_complete(
4391
- self._async_detach_agreement_actor(agreement_guid, actor_guid, body))
4392
-
4393
-
4338
+ loop.run_until_complete(self._async_detach_agreement_actor(agreement_guid, actor_guid, body))
4394
4339
 
4395
- async def _async_link_agreement_item(self, agreement_guid: str, agreement_item_guid: str, body: dict=None ) -> None:
4340
+ async def _async_link_agreement_item(self, agreement_guid: str, agreement_item_guid: str,
4341
+ body: dict = None) -> None:
4396
4342
  """ Attach an agreement to an element referenced in its definition. The agreement item element is of type
4397
4343
  'Referenceable' to allow the agreement to refer to many things. Request body is optional. Async version.
4398
4344
 
@@ -4460,9 +4406,7 @@ class CollectionManager(Client):
4460
4406
  else:
4461
4407
  await self._async_make_request("POST", url)
4462
4408
 
4463
-
4464
-
4465
- def link_agreement_item(self, agreement_guid: str, agreement_item_guid: str, body: dict = None ) -> None:
4409
+ def link_agreement_item(self, agreement_guid: str, agreement_item_guid: str, body: dict = None) -> None:
4466
4410
  """ Attach an agreement to an element referenced in its definition. The agreement item element is of type
4467
4411
  'Referenceable' to allow the agreement to refer to many things. Request body is optional.
4468
4412
 
@@ -4522,11 +4466,10 @@ class CollectionManager(Client):
4522
4466
 
4523
4467
  """
4524
4468
  loop = asyncio.get_event_loop()
4525
- loop.run_until_complete(
4526
- self._async_link_agreement_item(agreement_guid, agreement_item_guid, body ))
4469
+ loop.run_until_complete(self._async_link_agreement_item(agreement_guid, agreement_item_guid, body))
4527
4470
 
4528
-
4529
- async def _async_detach_agreement_item(self, agreement_guid: str, agreement_item_guid: str, body: dict = None) -> None:
4471
+ async def _async_detach_agreement_item(self, agreement_guid: str, agreement_item_guid: str,
4472
+ body: dict = None) -> None:
4530
4473
  """Detach an agreement item from an agreement. Request body is optional. Async version.
4531
4474
 
4532
4475
  Parameters
@@ -4564,16 +4507,16 @@ class CollectionManager(Client):
4564
4507
 
4565
4508
  """
4566
4509
 
4567
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/agreements"
4568
- f"{agreement_guid}/agreement-items/{agreement_item_guid}/detach")
4510
+ url = (
4511
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections"
4512
+ f"/agreements"
4513
+ f"{agreement_guid}/agreement-items/{agreement_item_guid}/detach")
4569
4514
 
4570
4515
  if body:
4571
4516
  await self._async_make_request("POST", url, body)
4572
4517
  else:
4573
4518
  await self._async_make_request("POST", url)
4574
4519
 
4575
-
4576
-
4577
4520
  def detach_agreement_item(self, agreement_guid: str, agreement_item_guid: str, body: dict = None) -> None:
4578
4521
  """Detach an agreement item from an agreement. Request body is optional. Async version.
4579
4522
 
@@ -4614,9 +4557,7 @@ class CollectionManager(Client):
4614
4557
  loop = asyncio.get_event_loop()
4615
4558
  loop.run_until_complete(self._async_detach_agreement_item(agreement_guid, agreement_item_guid, body))
4616
4559
 
4617
-
4618
- async def _async_link_contract(self, agreement_guid: str, external_ref_guid: str,
4619
- body: dict = None) -> None:
4560
+ async def _async_link_contract(self, agreement_guid: str, external_ref_guid: str, body: dict = None) -> None:
4620
4561
  """ Attach an agreement to an external reference element that describes the location of the contract documents.
4621
4562
  Request body is optional. Async version.
4622
4563
 
@@ -4673,8 +4614,6 @@ class CollectionManager(Client):
4673
4614
  else:
4674
4615
  await self._async_make_request("POST", url)
4675
4616
 
4676
-
4677
-
4678
4617
  def link_contract(self, agreement_guid: str, external_ref_guid: str, body: dict = None) -> None:
4679
4618
  """ Attach an agreement to an external reference element that describes the location of the contract documents.
4680
4619
  Request body is optional.
@@ -4724,12 +4663,9 @@ class CollectionManager(Client):
4724
4663
 
4725
4664
  """
4726
4665
  loop = asyncio.get_event_loop()
4727
- loop.run_until_complete(
4728
- self._async_link_contract(agreement_guid, external_ref_guid, body))
4729
-
4666
+ loop.run_until_complete(self._async_link_contract(agreement_guid, external_ref_guid, body))
4730
4667
 
4731
- async def _async_detach_contract(self, agreement_guid: str, external_ref_guid: str,
4732
- body: dict = None) -> None:
4668
+ async def _async_detach_contract(self, agreement_guid: str, external_ref_guid: str, body: dict = None) -> None:
4733
4669
  """Detach an external reference to a contract, from an agreement. Request body is optional. Async version.
4734
4670
 
4735
4671
  Parameters
@@ -4768,7 +4704,8 @@ class CollectionManager(Client):
4768
4704
  """
4769
4705
 
4770
4706
  url = (
4771
- f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/agreements"
4707
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections"
4708
+ f"/agreements"
4772
4709
  f"{agreement_guid}/contract-links/{external_ref_guid}/detach")
4773
4710
 
4774
4711
  if body:
@@ -4776,8 +4713,6 @@ class CollectionManager(Client):
4776
4713
  else:
4777
4714
  await self._async_make_request("POST", url)
4778
4715
 
4779
-
4780
-
4781
4716
  def detach_contract(self, agreement_guid: str, external_ref_guid: str, body: dict = None) -> None:
4782
4717
  """Detach an external reference to a contract, from an agreement. Request body is optional.
4783
4718
 
@@ -4818,7 +4753,6 @@ class CollectionManager(Client):
4818
4753
  loop = asyncio.get_event_loop()
4819
4754
  loop.run_until_complete(self._async_detach_contract(agreement_guid, external_ref_guid, body))
4820
4755
 
4821
-
4822
4756
  #
4823
4757
  # Digital Subscriptions
4824
4758
  #
@@ -4927,7 +4861,6 @@ class CollectionManager(Client):
4927
4861
  resp = await self._async_make_request("POST", url, body_slimmer(body))
4928
4862
  return resp.json().get("guid", "No GUID returned")
4929
4863
 
4930
-
4931
4864
  def create_digital_subscription(self, body: dict) -> str:
4932
4865
  """Create a new collection that represents a type of agreement called a digital_subscription.
4933
4866
 
@@ -4999,8 +4932,8 @@ class CollectionManager(Client):
4999
4932
  resp = loop.run_until_complete(self._async_create_digital_subscription(body))
5000
4933
  return resp
5001
4934
 
5002
-
5003
- async def _async_update_digital_subscription(self, digital_subscription_guid: str, body: dict, replace_all_props: bool = False, ):
4935
+ async def _async_update_digital_subscription(self, digital_subscription_guid: str, body: dict,
4936
+ replace_all_props: bool = False, ):
5004
4937
  """Update the properties of the digital_subscription collection. Async version.
5005
4938
 
5006
4939
  Parameters
@@ -5062,8 +4995,8 @@ class CollectionManager(Client):
5062
4995
 
5063
4996
  await self._async_make_request("POST", url, body)
5064
4997
 
5065
-
5066
- def update_digital_subscription(self, digital_subscription_guid: str, body: dict, replace_all_props: bool = False, ):
4998
+ def update_digital_subscription(self, digital_subscription_guid: str, body: dict,
4999
+ replace_all_props: bool = False, ):
5067
5000
  """Update the properties of the DigitalProduct classification attached to a collection.
5068
5001
 
5069
5002
  Parameters
@@ -5115,8 +5048,8 @@ class CollectionManager(Client):
5115
5048
 
5116
5049
  """
5117
5050
  loop = asyncio.get_event_loop()
5118
- loop.run_until_complete(self._async_update_digital_subscription(digital_subscription_guid, body, replace_all_props))
5119
-
5051
+ loop.run_until_complete(
5052
+ self._async_update_digital_subscription(digital_subscription_guid, body, replace_all_props))
5120
5053
 
5121
5054
  async def _async_update_digital_subscription_status(self, digital_subscription_guid: str, body: dict):
5122
5055
  """Update the status of an digital_subscription collection. Async version.
@@ -5155,12 +5088,13 @@ class CollectionManager(Client):
5155
5088
  }
5156
5089
  """
5157
5090
 
5158
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/agreements/"
5159
- f"{digital_subscription_guid}/update-status")
5091
+ url = (
5092
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections"
5093
+ f"/agreements/"
5094
+ f"{digital_subscription_guid}/update-status")
5160
5095
 
5161
5096
  await self._async_make_request("POST", url, body)
5162
5097
 
5163
-
5164
5098
  def update_digital_digital_subscription_status(self, digital_subscription_guid: str, body: dict):
5165
5099
  """Update the status of an digital_subscription collection. Async version.
5166
5100
 
@@ -5201,12 +5135,10 @@ class CollectionManager(Client):
5201
5135
  loop = asyncio.get_event_loop()
5202
5136
  loop.run_until_complete(self._async_update_digital_subscription_status(digital_subscription_guid, body))
5203
5137
 
5204
-
5205
-
5206
- async def _async_link_subscriber(self, subscriber_guid: str,
5207
- subscription_guid: str, body: dict = None):
5138
+ async def _async_link_subscriber(self, subscriber_guid: str, subscription_guid: str, body: dict = None):
5208
5139
  """ Attach a subscriber to a subscription. The subscriber is of type 'Referenceable' to allow digital
5209
- products, team or business capabilities to be the subscriber. The subscription is an element of type DigitalSubscription.
5140
+ products, team or business capabilities to be the subscriber. The subscription is an element of type
5141
+ DigitalSubscription.
5210
5142
  Async version.
5211
5143
 
5212
5144
  Parameters
@@ -5250,18 +5182,19 @@ class CollectionManager(Client):
5250
5182
  }
5251
5183
  """
5252
5184
 
5253
-
5254
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/subscribers/"
5255
- f"{subscriber_guid}/subscriptions/{subscription_guid}/attach")
5185
+ url = (
5186
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections"
5187
+ f"/subscribers/"
5188
+ f"{subscriber_guid}/subscriptions/{subscription_guid}/attach")
5256
5189
  if body:
5257
5190
  await self._async_make_request("POST", url, body)
5258
5191
  else:
5259
5192
  await self._async_make_request("POST", url)
5260
5193
 
5261
-
5262
5194
  def link_subscriber(self, subscriber_guid: str, subscription_guid: str, body: dict = None):
5263
5195
  """ Attach a subscriber to a subscription. The subscriber is of type 'Referenceable' to allow digital
5264
- products, team or business capabilities to be the subscriber. The subscription is an element of type DigitalSubscription.
5196
+ products, team or business capabilities to be the subscriber. The subscription is an element of type
5197
+ DigitalSubscription.
5265
5198
  Async version.
5266
5199
 
5267
5200
  Parameters
@@ -5305,12 +5238,9 @@ class CollectionManager(Client):
5305
5238
  }
5306
5239
  """
5307
5240
  loop = asyncio.get_event_loop()
5308
- loop.run_until_complete(
5309
- self._async_link_subscriber(subscriber_guid, subscription_guid, body))
5241
+ loop.run_until_complete(self._async_link_subscriber(subscriber_guid, subscription_guid, body))
5310
5242
 
5311
-
5312
- async def _async_detach_subscriber(self, subscriber_guid: str,
5313
- subscription_guid: str, body: dict = None):
5243
+ async def _async_detach_subscriber(self, subscriber_guid: str, subscription_guid: str, body: dict = None):
5314
5244
  """ Detach a subscriber from a subscription Request body is optional. Async version.
5315
5245
 
5316
5246
  Parameters
@@ -5348,14 +5278,15 @@ class CollectionManager(Client):
5348
5278
  }
5349
5279
  """
5350
5280
 
5351
- url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections/agreements/"
5352
- f"{subscriber_guid}/agreement-actors/{subscription_guid}/detach")
5281
+ url = (
5282
+ f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/collections"
5283
+ f"/agreements/"
5284
+ f"{subscriber_guid}/agreement-actors/{subscription_guid}/detach")
5353
5285
  if body:
5354
5286
  await self._async_make_request("POST", url, body)
5355
5287
  else:
5356
5288
  await self._async_make_request("POST", url)
5357
5289
 
5358
-
5359
5290
  def detach_subscriber(self, subscriber_guid: str, subscription_guid: str, body: dict = None):
5360
5291
  """ Detach a subscriber from a subscription. Request body is optional.
5361
5292
 
@@ -5394,18 +5325,13 @@ class CollectionManager(Client):
5394
5325
  }
5395
5326
  """
5396
5327
  loop = asyncio.get_event_loop()
5397
- loop.run_until_complete(
5398
- self._async_detach_subscriber(subscriber_guid, subscription_guid, body))
5399
-
5400
-
5401
-
5328
+ loop.run_until_complete(self._async_detach_subscriber(subscriber_guid, subscription_guid, body))
5402
5329
 
5403
5330
  #
5404
5331
  #
5405
5332
  #
5406
5333
 
5407
- async def _async_attach_collection(self, parent_guid: str,
5408
- collection_guid: str, body: dict = None):
5334
+ async def _async_attach_collection(self, parent_guid: str, collection_guid: str, body: dict = None):
5409
5335
  """ Connect an existing collection to an element using the ResourceList relationship (0019).
5410
5336
  Async version.
5411
5337
 
@@ -5456,7 +5382,6 @@ class CollectionManager(Client):
5456
5382
 
5457
5383
  """
5458
5384
 
5459
-
5460
5385
  url = (f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/collection-manager/metadata-elements/"
5461
5386
  f"{parent_guid}/collections/{collection_guid}/attach")
5462
5387
  if body:
@@ -5513,11 +5438,9 @@ class CollectionManager(Client):
5513
5438
  }
5514
5439
  """
5515
5440
  loop = asyncio.get_event_loop()
5516
- loop.run_until_complete(
5517
- self._async_attach_collection(parent_guid, collection_guid, body))
5441
+ loop.run_until_complete(self._async_attach_collection(parent_guid, collection_guid, body))
5518
5442
 
5519
- async def _async_detach_collection(self, parent_guid: str,
5520
- collection_guid: str, body: dict = None):
5443
+ async def _async_detach_collection(self, parent_guid: str, collection_guid: str, body: dict = None):
5521
5444
  """ Detach an existing collection from an element. If the collection is anchored to the element, it is delete.
5522
5445
  Async version.
5523
5446
 
@@ -5601,8 +5524,7 @@ class CollectionManager(Client):
5601
5524
  }
5602
5525
  """
5603
5526
  loop = asyncio.get_event_loop()
5604
- loop.run_until_complete(
5605
- self._async_detach_collection(parent_guid, collection_guid, body))
5527
+ loop.run_until_complete(self._async_detach_collection(parent_guid, collection_guid, body))
5606
5528
 
5607
5529
  async def _async_delete_collection(self, collection_guid: str, body: dict = None, cascade: bool = False) -> None:
5608
5530
  """Delete a collection. It is detected from all parent elements. If members are anchored to the collection
@@ -5699,7 +5621,6 @@ class CollectionManager(Client):
5699
5621
  loop = asyncio.get_event_loop()
5700
5622
  loop.run_until_complete(self._async_delete_collection(collection_guid, body, cascade))
5701
5623
 
5702
-
5703
5624
  async def _async_add_to_collection(self, collection_guid: str, element_guid: str, body: dict = None, ) -> None:
5704
5625
  """Add an element to a collection. The request body is optional. Async version.
5705
5626
 
@@ -5948,7 +5869,7 @@ class CollectionManager(Client):
5948
5869
  loop.run_until_complete(
5949
5870
  self._async_update_collection_membership(collection_guid, element_guid, body, replace_all_props))
5950
5871
 
5951
- async def _async_remove_from_collection(self, collection_guid: str, element_guid: str, body:dict = None) -> None:
5872
+ async def _async_remove_from_collection(self, collection_guid: str, element_guid: str, body: dict = None) -> None:
5952
5873
  """Remove an element from a collection. Async version.
5953
5874
 
5954
5875
  Parameters
@@ -5993,7 +5914,6 @@ class CollectionManager(Client):
5993
5914
  body = {"class": "NullRequestBody"}
5994
5915
  await self._async_make_request("POST", url, body)
5995
5916
 
5996
-
5997
5917
  def remove_from_collection(self, collection_guid: str, element_guid: str, body: dict = None) -> None:
5998
5918
  """Remove an element from a collection. Async version.
5999
5919
 
@@ -6035,7 +5955,6 @@ class CollectionManager(Client):
6035
5955
  loop = asyncio.get_event_loop()
6036
5956
  loop.run_until_complete(self._async_remove_from_collection(collection_guid, element_guid, body))
6037
5957
 
6038
-
6039
5958
  #
6040
5959
  #
6041
5960
  #
@@ -6151,8 +6070,9 @@ class CollectionManager(Client):
6151
6070
 
6152
6071
  return {
6153
6072
  'GUID': guid, 'display_name': display_name, 'qualified_name': qualified_name, 'description': description,
6154
- 'classifications': classification_names, 'collection_type': collection_type, 'members': member_names, 'properties': properties,
6155
- 'additional_properties': additional_properties, 'extended_properties': extended_properties,
6073
+ 'classifications': classification_names, 'collection_type': collection_type, 'members': member_names,
6074
+ 'properties': properties, 'additional_properties': additional_properties,
6075
+ 'extended_properties': extended_properties,
6156
6076
  }
6157
6077
 
6158
6078
  def generate_basic_structured_output(self, elements, filter, output_format: str = 'DICT',
@@ -6192,7 +6112,6 @@ class CollectionManager(Client):
6192
6112
  extract_properties_func=self._extract_collection_properties,
6193
6113
  columns=columns if output_format == 'LIST' else None)
6194
6114
 
6195
-
6196
6115
  def generate_collection_output(self, elements, filter, classification_name, output_format) -> str | list:
6197
6116
  """
6198
6117
  Generate output for collections in the specified format.
@@ -6228,24 +6147,24 @@ class CollectionManager(Client):
6228
6147
  return self.generate_basic_structured_output(elements, filter, output_format)
6229
6148
 
6230
6149
  # def generate_collection_output(self, elements, filter, collection_type: str, output_format,
6231
- # # output_profile: str = "CORE") -> str | list | dict: # """ # Generate output in the specified
6232
- # format # for the given elements. # # Args: # elements: Dictionary or list of dictionaries
6233
- # containing # element data # filter: The search string used to find the elements #
6234
- # output_format: The # desired output format (MD, FORM, REPORT, LIST, DICT, MERMAID, JSON) #
6150
+ # # output_profile: str = "CORE") -> str | list | dict: # """ # Generate output in the specified #
6151
+ # format # for the given elements. # # Args: # elements: Dictionary or list of dictionaries #
6152
+ # containing # element data # filter: The search string used to find the elements # #
6153
+ # output_format: The # desired output format (MD, FORM, REPORT, LIST, DICT, MERMAID, JSON) # #
6235
6154
  # output_profile: str, optional, # default = "CORE" # The desired output profile - BASIC, CORE,
6236
- # FULL # Returns: # # Formatted output as string or list of dictionaries # """ # if
6237
- # collection_type is None: # # entity_type = "Collection" # else: # entity_type =
6155
+ # FULL # Returns: # # Formatted output as string or list of dictionaries # """ # if #
6156
+ # collection_type is None: # # entity_type = "Collection" # else: # entity_type = #
6238
6157
  # collection_type # # # For LIST and DICT # formats, get member information # # if output_format in
6239
- # ["LIST", "DICT"]: # # Get the collection # GUID # collection_guid = None # if
6158
+ # ["LIST", "DICT"]: # # Get the collection # GUID # collection_guid = None # if #
6240
6159
  # isinstance(elements, dict): # collection_guid # = elements.get('elementHeader', {}).get('guid')
6241
- # elif isinstance(elements, list) and len(elements) > # 0: # collection_guid = elements[
6242
- # 0].get('elementHeader', {}).get('guid') # # # Get member # list if we have a valid
6243
- # collection GUID # members = [] # if collection_guid: # # members =
6160
+ # elif isinstance(elements, list) and len(elements) > # 0: # collection_guid = elements[ #
6161
+ # 0].get('elementHeader', {}).get('guid') # # # Get member # list if we have a valid #
6162
+ # collection GUID # members = [] # if collection_guid: # # members = #
6244
6163
  # self.get_member_list(collection_guid=collection_guid) # if isinstance(members,
6245
6164
  # str): # "No members found" case # members = [] # # # For DICT format, include all
6246
- # member information in the result # if output_format == "DICT": # result = #
6247
- # self.generate_basic_structured_output(elements, filter, output_format, collection_type) # if #
6248
- # isinstance(result, list): # for item in result: # item['members'] = #
6165
+ # member information in the result # if output_format == "DICT": # result = # #
6166
+ # self.generate_basic_structured_output(elements, filter, output_format, collection_type) # if # #
6167
+ # isinstance(result, list): # for item in result: # item['members'] = # #
6249
6168
  # members # return result # elif isinstance(result, dict): # # result['members']
6250
6169
  # = members # return result # # # For LIST format, add a column with # bulleted list
6251
6170
  # of qualified names # elif output_format == "LIST": # # Define columns for # LIST format,
@@ -6256,16 +6175,16 @@ class CollectionManager(Client):
6256
6175
  # 'key': 'classifications'}, # {'name': 'Members', 'key': 'members', 'format': True}] # # #
6257
6176
  # Create a function to add member information to the properties # def get_additional_props(element,
6258
6177
  # guid, output_format): # if not members: # return {'members': ''} # # #
6259
- # Create a comma-separated list of qualified names (no newlines to avoid table formatting issues) # #
6178
+ # Create a comma-separated list of qualified names (no newlines to avoid table formatting issues) # # #
6260
6179
  # member_list = ", ".join([member.get('qualifiedName', '') for member in members]) # return { #
6261
- # 'members': member_list} # # # Generate output with the additional properties # # # return
6180
+ # 'members': member_list} # # # Generate output with the additional properties # # # return #
6262
6181
  # generate_output(elements=elements, search_string=filter, entity_type=entity_type,
6263
6182
  # # output_format=output_format, extract_properties_func=self._extract_collection_properties,
6264
6183
  # # get_additional_props_func=get_additional_props, columns=columns) # # # For FORM, REPORT, JSON formats,
6265
6184
  # keep behavior unchanged # return self.generate_basic_structured_output(elements, filter, output_format,
6266
6185
  # collection_type)
6267
6186
 
6268
- # def generate_data_class_output(self, elements, filter, output_format) -> str | list: # return # #
6187
+ # def generate_data_class_output(self, elements, filter, output_format) -> str | list: # return # # #
6269
6188
  # self.generate_basic_structured_output(elements, filter, output_format) # # def generate_data_field_output( #
6270
6189
  # self, elements, filter, output_format) -> str | list: # return self.generate_basic_structured_output( #
6271
6190
  # elements, filter, output_format)