pyegeria 0.7.45.1__py3-none-any.whl → 0.8.0__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.
Files changed (47) hide show
  1. examples/widgets/cat/list_cert_types.py +61 -43
  2. examples/widgets/cat/list_projects.py +1 -1
  3. examples/widgets/my/my_profile_actions.py +51 -32
  4. examples/widgets/ops/engine_actions.py +35 -23
  5. examples/widgets/ops/integration_daemon_actions.py +51 -32
  6. examples/widgets/tech/get_element_info.py +63 -38
  7. examples/widgets/tech/get_guid_info.py +50 -27
  8. examples/widgets/tech/list_asset_types.py +33 -23
  9. examples/widgets/tech/list_elements.py +44 -34
  10. examples/widgets/tech/list_elements_x.py +69 -49
  11. examples/widgets/tech/list_registered_services.py +44 -24
  12. examples/widgets/tech/list_related_specification.py +70 -45
  13. examples/widgets/tech/list_relationship_types.py +50 -31
  14. examples/widgets/tech/list_valid_metadata_values.py +57 -28
  15. examples/widgets/tech/x_list_related_elements.py +54 -34
  16. pyegeria/Xloaded_resources_omvs.py +43 -41
  17. pyegeria/__init__.py +5 -1
  18. pyegeria/_client.py +142 -102
  19. pyegeria/_deprecated_gov_engine.py +218 -167
  20. pyegeria/action_author_omvs.py +107 -88
  21. pyegeria/asset_catalog_omvs.py +467 -395
  22. pyegeria/automated_curation_omvs.py +2 -2
  23. pyegeria/classification_manager_omvs.py +3 -9
  24. pyegeria/collection_manager_omvs.py +1957 -1519
  25. pyegeria/core_omag_server_config.py +310 -192
  26. pyegeria/egeria_cat_client.py +88 -0
  27. pyegeria/egeria_config_client.py +37 -0
  28. pyegeria/egeria_my_client.py +47 -0
  29. pyegeria/egeria_ops_client.py +67 -0
  30. pyegeria/egeria_tech_client.py +77 -0
  31. pyegeria/feedback_manager_omvs.py +633 -631
  32. pyegeria/full_omag_server_config.py +330 -158
  33. pyegeria/glossary_browser_omvs.py +927 -474
  34. pyegeria/glossary_manager_omvs.py +1033 -543
  35. pyegeria/my_profile_omvs.py +714 -574
  36. pyegeria/platform_services.py +228 -176
  37. pyegeria/project_manager_omvs.py +1158 -903
  38. pyegeria/registered_info.py +76 -74
  39. pyegeria/runtime_manager_omvs.py +749 -670
  40. pyegeria/server_operations.py +123 -85
  41. pyegeria/valid_metadata_omvs.py +268 -168
  42. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/METADATA +1 -1
  43. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/RECORD +46 -42
  44. pyegeria/tech_guids_31-08-2024 14:33.py +0 -79
  45. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/LICENSE +0 -0
  46. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/WHEEL +0 -0
  47. {pyegeria-0.7.45.1.dist-info → pyegeria-0.8.0.dist-info}/entry_points.txt +0 -0
@@ -14,11 +14,7 @@ import json
14
14
  # import json
15
15
  from pyegeria._client import Client
16
16
  from pyegeria._globals import enable_ssl_check
17
- from pyegeria._validators import (
18
- validate_name,
19
- validate_guid,
20
- validate_url
21
- )
17
+ from pyegeria._validators import validate_name, validate_guid, validate_url
22
18
 
23
19
 
24
20
  class CoreServerConfig(Client):
@@ -38,29 +34,27 @@ class CoreServerConfig(Client):
38
34
  user_pwd: str
39
35
  The password associated with the user_id. Defaults to None
40
36
 
41
- """
37
+ """
42
38
 
43
39
  def __init__(
44
- self,
45
- server_name: str,
46
- platform_url: str,
47
- user_id: str,
48
- user_pwd: str = None,
49
- verify_flag: bool = enable_ssl_check,
40
+ self,
41
+ server_name: str,
42
+ platform_url: str,
43
+ user_id: str,
44
+ user_pwd: str = None,
45
+ verify_flag: bool = enable_ssl_check,
50
46
  ):
51
47
  self.admin_command_root: str
52
- Client.__init__(self, server_name, platform_url, user_id, user_pwd, verify_flag)
48
+ Client.__init__(self, server_name, platform_url, user_id, user_pwd)
53
49
  self.admin_command_root = (
54
- self.platform_url
55
- + "/open-metadata/admin-services/users/"
56
- + user_id
50
+ self.platform_url + "/open-metadata/admin-services/users/" + user_id
57
51
  )
58
52
 
59
53
  #
60
54
  # Configure Access Services
61
55
  #
62
56
  def get_stored_configuration(self, server_name: str = None) -> dict:
63
- """ Retrieves all the configuration documents for a server
57
+ """Retrieves all the configuration documents for a server
64
58
  Parameters
65
59
  ----------
66
60
  self :
@@ -98,7 +92,7 @@ class CoreServerConfig(Client):
98
92
  return response.json().get("omagserverConfig", "No configuration found")
99
93
 
100
94
  def is_server_configured(self, server_name: str = None) -> bool:
101
- """ Check if the server has a stored configuration
95
+ """Check if the server has a stored configuration
102
96
 
103
97
  Parameters
104
98
  ----------
@@ -115,13 +109,13 @@ class CoreServerConfig(Client):
115
109
 
116
110
  response = self.get_stored_configuration(server_name=server_name)
117
111
 
118
- if 'auditTrail' in response:
112
+ if "auditTrail" in response:
119
113
  return True
120
114
  else:
121
115
  return False
122
116
 
123
117
  def get_configured_access_services(self, server_name: str = None) -> list | str:
124
- """ Return the list of access services that are configured for this server.
118
+ """Return the list of access services that are configured for this server.
125
119
 
126
120
  Parameters
127
121
  ----------
@@ -153,7 +147,7 @@ class CoreServerConfig(Client):
153
147
  return response.json().get("services", "No access services found")
154
148
 
155
149
  def configure_all_access_services(self, server_name: str = None) -> None:
156
- """ Enable all access services that are registered with this server platform.
150
+ """Enable all access services that are registered with this server platform.
157
151
  The access services will send notifications if it is part of its implementation.
158
152
  Parameters
159
153
  ----------
@@ -185,7 +179,7 @@ class CoreServerConfig(Client):
185
179
  self.make_request("POST", url)
186
180
 
187
181
  def configure_all_access_services_no_topics(self, server_name: str = None) -> None:
188
- """ Configure all access services for the specified server with no cohort/Event Bus.
182
+ """Configure all access services for the specified server with no cohort/Event Bus.
189
183
  Parameters
190
184
  ----------
191
185
  server_name : str, optional
@@ -211,11 +205,13 @@ class CoreServerConfig(Client):
211
205
  """
212
206
  if server_name is None:
213
207
  server_name = self.server_name
214
- url = f"{self.admin_command_root}/servers/{server_name}/access-services/no-topics"
208
+ url = (
209
+ f"{self.admin_command_root}/servers/{server_name}/access-services/no-topics"
210
+ )
215
211
  self.make_request("POST", url)
216
212
 
217
213
  def clear_all_access_services(self, server_name: str = None) -> None:
218
- """ Disable the access services. This removes all configuration for the access services and disables the
214
+ """Disable the access services. This removes all configuration for the access services and disables the
219
215
  enterprise repository services.
220
216
  Parameters
221
217
  ----------
@@ -247,8 +243,10 @@ class CoreServerConfig(Client):
247
243
  url = f"{self.admin_command_root}/servers/{server_name}/access-services"
248
244
  self.make_request("DELETE", url)
249
245
 
250
- def get_access_service_config(self, access_service_name: str, server_name: str = None) -> dict:
251
- """ Retrieve the config for an access service.
246
+ def get_access_service_config(
247
+ self, access_service_name: str, server_name: str = None
248
+ ) -> dict:
249
+ """Retrieve the config for an access service.
252
250
 
253
251
  Parameters
254
252
  ----------
@@ -276,7 +274,7 @@ class CoreServerConfig(Client):
276
274
  ConfigurationErrorException
277
275
  Raised when configuration parameters passed on earlier calls turn out to be
278
276
  invalid or make the new call invalid.
279
- """
277
+ """
280
278
  if server_name is None:
281
279
  server_name = self.server_name
282
280
  validate_name(access_service_name)
@@ -285,9 +283,13 @@ class CoreServerConfig(Client):
285
283
  response = self.make_request("GET", url)
286
284
  return response.json().get("config", "Access service not found")
287
285
 
288
- def configure_access_service(self, access_service_name: str, access_service_options: dict = None,
289
- server_name: str = None) -> None:
290
- """ Enable a single access service. This access service will send notifications if it is part
286
+ def configure_access_service(
287
+ self,
288
+ access_service_name: str,
289
+ access_service_options: dict = None,
290
+ server_name: str = None,
291
+ ) -> None:
292
+ """Enable a single access service. This access service will send notifications if it is part
291
293
  of its implementation.
292
294
 
293
295
  Parameters
@@ -329,9 +331,13 @@ class CoreServerConfig(Client):
329
331
  url = f"{self.admin_command_root}/servers/{server_name}/access-services/{access_service_name}"
330
332
  self.make_request("POST", url, access_service_options)
331
333
 
332
- def configure_access_service_no_topics(self, access_service_name: str, access_service_options: dict = None,
333
- server_name: str = None) -> None:
334
- """ Enable a single access service. Notifications, if supported, are disabled.
334
+ def configure_access_service_no_topics(
335
+ self,
336
+ access_service_name: str,
337
+ access_service_options: dict = None,
338
+ server_name: str = None,
339
+ ) -> None:
340
+ """Enable a single access service. Notifications, if supported, are disabled.
335
341
 
336
342
  Parameters
337
343
  ----------
@@ -375,8 +381,10 @@ class CoreServerConfig(Client):
375
381
  url = f"{self.admin_command_root}/servers/{server_name}/access-services/{access_service_name}/no-topics"
376
382
  self.make_request("POST", url, access_service_options)
377
383
 
378
- def clear_access_service(self, access_service_name: str, server_name: str = None) -> None:
379
- """ Remove the config for an access service.
384
+ def clear_access_service(
385
+ self, access_service_name: str, server_name: str = None
386
+ ) -> None:
387
+ """Remove the config for an access service.
380
388
 
381
389
  Parameters
382
390
  ----------
@@ -413,7 +421,7 @@ class CoreServerConfig(Client):
413
421
  self.make_request("DELETE", url)
414
422
 
415
423
  def get_access_services_configuration(self, server_name: str = None) -> list:
416
- """ Return the detailed configuration for the access services in this server.
424
+ """Return the detailed configuration for the access services in this server.
417
425
 
418
426
  Parameters
419
427
  ----------
@@ -438,7 +446,7 @@ class CoreServerConfig(Client):
438
446
  # Configure Event Bus
439
447
  #
440
448
  def get_event_bus(self, server_name: str = None) -> dict:
441
- """ Returns the event bus configuration for the specified server
449
+ """Returns the event bus configuration for the specified server
442
450
 
443
451
  Parameters
444
452
  ----------
@@ -468,7 +476,7 @@ class CoreServerConfig(Client):
468
476
  return response.json().get("config", "No event bus configured")
469
477
 
470
478
  def set_event_bus(self, event_bus_config: dict, server_name: str = None) -> None:
471
- """ Sets the event bus configuration for the server.
479
+ """Sets the event bus configuration for the server.
472
480
 
473
481
  Parameters
474
482
  ----------
@@ -511,7 +519,7 @@ class CoreServerConfig(Client):
511
519
  self.make_request("POST", url, event_bus_config)
512
520
 
513
521
  def clear_event_bus(self, server_name: str = None) -> None:
514
- """ Delete the event bus configuration for the given server.
522
+ """Delete the event bus configuration for the given server.
515
523
 
516
524
  Parameters
517
525
  ----------
@@ -550,27 +558,27 @@ class CoreServerConfig(Client):
550
558
  # Configure Audit Logs
551
559
  #
552
560
  def get_audit_log_destinations(self, server_name: str = None) -> dict:
553
- """ Get the destinations for a servers audit log
561
+ """Get the destinations for a servers audit log
554
562
 
555
- Parameters
556
- ----------
557
- server_name : str, optional
558
- The name of the server to retrieve the audit configuration for. If no value is provided will pull
559
- the default from the class definition.
563
+ Parameters
564
+ ----------
565
+ server_name : str, optional
566
+ The name of the server to retrieve the audit configuration for. If no value is provided will pull
567
+ the default from the class definition.
560
568
 
561
- Returns
562
- -------
563
- Returns json string containing the audit log destinations configuration.
569
+ Returns
570
+ -------
571
+ Returns json string containing the audit log destinations configuration.
564
572
 
565
- Raises
566
- ------
573
+ Raises
574
+ ------
567
575
 
568
- InvalidParameterException
569
- If the client passes incorrect parameters on the request - such as bad URLs or invalid values
570
- PropertyServerException
571
- Raised by the server when an issue arises in processing a valid request
572
- NotAuthorizedException
573
- The principle specified by the user_id does not have authorization for the requested action
576
+ InvalidParameterException
577
+ If the client passes incorrect parameters on the request - such as bad URLs or invalid values
578
+ PropertyServerException
579
+ Raised by the server when an issue arises in processing a valid request
580
+ NotAuthorizedException
581
+ The principle specified by the user_id does not have authorization for the requested action
574
582
  """
575
583
 
576
584
  if server_name is None:
@@ -578,10 +586,12 @@ class CoreServerConfig(Client):
578
586
 
579
587
  url = f"{self.admin_command_root}/servers/{server_name}/audit-log-destinations"
580
588
  response = self.make_request("GET", url)
581
- return response.json().get("connections", "No audit log destinations configured")
589
+ return response.json().get(
590
+ "connections", "No audit log destinations configured"
591
+ )
582
592
 
583
593
  def clear_audit_log_destinations(self, server_name: str = None) -> None:
584
- """ Clears the audit log destination configuration for the specified server
594
+ """Clears the audit log destination configuration for the specified server
585
595
 
586
596
  Parameters
587
597
  ----------
@@ -611,7 +621,7 @@ class CoreServerConfig(Client):
611
621
  self.make_request("DELETE", url)
612
622
 
613
623
  def clear_a_log_destination(self, dest_name: str, server_name: str = None) -> None:
614
- """ Clears audit log destinations for a server
624
+ """Clears audit log destinations for a server
615
625
 
616
626
  Parameters
617
627
  ----------
@@ -642,8 +652,10 @@ class CoreServerConfig(Client):
642
652
  url = f"{self.admin_command_root}/servers/{server_name}/audit-log-destinations/connection/{dest_name}"
643
653
  self.make_request("DELETE", url)
644
654
 
645
- def add_console_log_destinations(self, severities: [str], server_name: str = None) -> None:
646
- """ Adds a console log destination to a server
655
+ def add_console_log_destinations(
656
+ self, severities: [str], server_name: str = None
657
+ ) -> None:
658
+ """Adds a console log destination to a server
647
659
 
648
660
  Parameters
649
661
  ----------
@@ -678,7 +690,7 @@ class CoreServerConfig(Client):
678
690
  self.make_request("POST", url, severities)
679
691
 
680
692
  def add_default_log_destinations(self, server_name: str = None) -> None:
681
- """ Adds the default log destination to a server
693
+ """Adds the default log destination to a server
682
694
 
683
695
  Parameters
684
696
  ----------
@@ -706,8 +718,10 @@ class CoreServerConfig(Client):
706
718
  url = f"{self.admin_command_root}/servers/{server_name}/audit-log-destinations/default"
707
719
  self.make_request("POST", url)
708
720
 
709
- def add_event_topic_log_destinations(self, topic_name: str, severities: [str], server_name: str = None) -> None:
710
- """ Adds an event topic log destination to a server
721
+ def add_event_topic_log_destinations(
722
+ self, topic_name: str, severities: [str], server_name: str = None
723
+ ) -> None:
724
+ """Adds an event topic log destination to a server
711
725
 
712
726
  Parameters
713
727
  ----------
@@ -746,13 +760,16 @@ class CoreServerConfig(Client):
746
760
  if severities is None:
747
761
  severities = []
748
762
 
749
- url = (f"{self.admin_command_root}/servers/{server_name}/audit-log-destinations/event-topic?topicName="
750
- f"{topic_name}")
763
+ url = (
764
+ f"{self.admin_command_root}/servers/{server_name}/audit-log-destinations/event-topic?topicName="
765
+ f"{topic_name}"
766
+ )
751
767
  self.make_request("POST", url, severities)
752
768
 
753
- def add_file_log_destinations(self, directory_name: str, severities=None,
754
- server_name: str = None) -> None:
755
- """ Adds a file log destination to a server. Each message is a separate file in the directory
769
+ def add_file_log_destinations(
770
+ self, directory_name: str, severities=None, server_name: str = None
771
+ ) -> None:
772
+ """Adds a file log destination to a server. Each message is a separate file in the directory
756
773
  indicated by the directory name.
757
774
 
758
775
  Parameters
@@ -791,12 +808,16 @@ class CoreServerConfig(Client):
791
808
 
792
809
  if severities is None:
793
810
  severities = []
794
- url = (f"{self.admin_command_root}/servers/{server_name}/audit-log-destinations/files?directoryName="
795
- f"{directory_name}")
811
+ url = (
812
+ f"{self.admin_command_root}/servers/{server_name}/audit-log-destinations/files?directoryName="
813
+ f"{directory_name}"
814
+ )
796
815
  self.make_request("POST", url, severities)
797
816
 
798
- def add_slf4j_log_destination(self, severities: [str] = None, server_name: str = None) -> None:
799
- """ Adds an SLF4J log destination to a server
817
+ def add_slf4j_log_destination(
818
+ self, severities: [str] = None, server_name: str = None
819
+ ) -> None:
820
+ """Adds an SLF4J log destination to a server
800
821
 
801
822
  Parameters
802
823
  ----------
@@ -830,7 +851,7 @@ class CoreServerConfig(Client):
830
851
  # Basic Repository Configuration
831
852
  #
832
853
  def set_no_repository_mode(self, server_name: str = None) -> None:
833
- """ Disable the local repository for this server
854
+ """Disable the local repository for this server
834
855
 
835
856
  Parameters
836
857
  ----------
@@ -857,7 +878,7 @@ class CoreServerConfig(Client):
857
878
  self.make_request("DELETE", url)
858
879
 
859
880
  def get_local_repository_config(self, server_name: str = None) -> dict:
860
- """ Retrieve the local repository configuration as a JSON dictionary
881
+ """Retrieve the local repository configuration as a JSON dictionary
861
882
 
862
883
  Parameters
863
884
  ----------
@@ -882,7 +903,12 @@ class CoreServerConfig(Client):
882
903
  """
883
904
  if server_name is None:
884
905
  server_name = self.server_name
885
- url = self.admin_command_root + "/servers/" + server_name + "/local-repository/configuration"
906
+ url = (
907
+ self.admin_command_root
908
+ + "/servers/"
909
+ + server_name
910
+ + "/local-repository/configuration"
911
+ )
886
912
  response = self.make_request("GET", url)
887
913
 
888
914
  # return response.json().get("config")
@@ -890,7 +916,7 @@ class CoreServerConfig(Client):
890
916
  return response.json().get("config", "No configuration found")
891
917
 
892
918
  def clear_local_repository_config(self, server_name: str = None) -> None:
893
- """ Clear the configuration of the local repository
919
+ """Clear the configuration of the local repository
894
920
 
895
921
  Parameters
896
922
  ----------
@@ -914,11 +940,18 @@ class CoreServerConfig(Client):
914
940
  """
915
941
  if server_name is None:
916
942
  server_name = self.server_name
917
- url = self.admin_command_root + "/servers/" + server_name + "/local-repository/configuration"
943
+ url = (
944
+ self.admin_command_root
945
+ + "/servers/"
946
+ + server_name
947
+ + "/local-repository/configuration"
948
+ )
918
949
  self.make_request("DELETE", url)
919
950
 
920
- def set_local_metadata_collection_id(self, metadata_collection_id: str, server_name: str = None) -> None:
921
- """ set the metadata collection id of the local repository
951
+ def set_local_metadata_collection_id(
952
+ self, metadata_collection_id: str, server_name: str = None
953
+ ) -> None:
954
+ """set the metadata collection id of the local repository
922
955
 
923
956
  Parameters
924
957
  ----------
@@ -949,7 +982,7 @@ class CoreServerConfig(Client):
949
982
  self.make_request("POST", url, metadata_collection_id)
950
983
 
951
984
  def get_local_metadata_collection_id(self, server_name: str = None) -> str:
952
- """ get the local metadata collection id
985
+ """get the local metadata collection id
953
986
  Parameters
954
987
  ----------
955
988
  server_name : str, optional
@@ -976,11 +1009,14 @@ class CoreServerConfig(Client):
976
1009
  server_name = self.server_name
977
1010
 
978
1011
  url = f"{self.admin_command_root}/servers/{server_name}/local-repository/metadata-collection-id"
979
- response = self.make_request("GET", url, )
980
- return response.json().get('guid', "No ID found")
1012
+ response = self.make_request(
1013
+ "GET",
1014
+ url,
1015
+ )
1016
+ return response.json().get("guid", "No ID found")
981
1017
 
982
1018
  def get_local_metadata_collection_name(self, server_name: str = None) -> str:
983
- """ get the local metadata collection name
1019
+ """get the local metadata collection name
984
1020
  Parameters
985
1021
  ----------
986
1022
  server_name : str, optional
@@ -1007,11 +1043,16 @@ class CoreServerConfig(Client):
1007
1043
  server_name = self.server_name
1008
1044
 
1009
1045
  url = f"{self.admin_command_root}/servers/{server_name}/local-repository/metadata-collection-name"
1010
- response = self.make_request("GET", url, )
1046
+ response = self.make_request(
1047
+ "GET",
1048
+ url,
1049
+ )
1011
1050
  return response.json().get("resultString", "No name found")
1012
1051
 
1013
- def set_local_metadata_collection_name(self, metadata_collection_name: str, server_name: str = None) -> None:
1014
- """ Set local metadata collection name
1052
+ def set_local_metadata_collection_name(
1053
+ self, metadata_collection_name: str, server_name: str = None
1054
+ ) -> None:
1055
+ """Set local metadata collection name
1015
1056
 
1016
1057
  Parameters
1017
1058
  ----------
@@ -1040,12 +1081,14 @@ class CoreServerConfig(Client):
1040
1081
  server_name = self.server_name
1041
1082
  validate_name(metadata_collection_name)
1042
1083
 
1043
- url = (f"{self.admin_command_root}/servers/{server_name}/local-repository/"
1044
- f"metadata-collection-name/{metadata_collection_name}")
1084
+ url = (
1085
+ f"{self.admin_command_root}/servers/{server_name}/local-repository/"
1086
+ f"metadata-collection-name/{metadata_collection_name}"
1087
+ )
1045
1088
  self.make_request("POST", url)
1046
1089
 
1047
1090
  def set_in_mem_local_repository(self, server_name: str = None) -> None:
1048
- """ Sets the local repository to use the native in-memory repository
1091
+ """Sets the local repository to use the native in-memory repository
1049
1092
 
1050
1093
  Parameters
1051
1094
  ----------
@@ -1071,7 +1114,7 @@ class CoreServerConfig(Client):
1071
1114
  self.make_request("POST", url)
1072
1115
 
1073
1116
  def set_graph_local_repository(self, server_name: str = None) -> None:
1074
- """ Sets the local repository to use JanusGraph file based repository
1117
+ """Sets the local repository to use JanusGraph file based repository
1075
1118
 
1076
1119
  Parameters
1077
1120
  ----------
@@ -1099,7 +1142,7 @@ class CoreServerConfig(Client):
1099
1142
  self.make_request("POST", url)
1100
1143
 
1101
1144
  def set_read_only_local_repository(self, server_name: str = None) -> None:
1102
- """ Sets the local repository to be read-only
1145
+ """Sets the local repository to be read-only
1103
1146
 
1104
1147
  Parameters
1105
1148
  ----------
@@ -1126,8 +1169,10 @@ class CoreServerConfig(Client):
1126
1169
  url = f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/read-only-repository"
1127
1170
  self.make_request("POST", url)
1128
1171
 
1129
- def set_repository_proxy_details(self, connector_provider: str, server_name: str = None) -> None:
1130
- """ Sets the local repository to use the proxy repository specified by the connection.
1172
+ def set_repository_proxy_details(
1173
+ self, connector_provider: str, server_name: str = None
1174
+ ) -> None:
1175
+ """Sets the local repository to use the proxy repository specified by the connection.
1131
1176
 
1132
1177
  Parameters
1133
1178
  ----------
@@ -1156,12 +1201,16 @@ class CoreServerConfig(Client):
1156
1201
 
1157
1202
  validate_name(connector_provider)
1158
1203
 
1159
- url = (f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/repository-proxy/"
1160
- f"details?connectorProvider={connector_provider}")
1204
+ url = (
1205
+ f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/repository-proxy/"
1206
+ f"details?connectorProvider={connector_provider}"
1207
+ )
1161
1208
  self.make_request("POST", url)
1162
1209
 
1163
- def set_plug_in_repository(self, config_body: dict, server_name: str = None) -> None:
1164
- """ Configure the metadata repository using a full repository connection body.
1210
+ def set_plug_in_repository(
1211
+ self, config_body: dict, server_name: str = None
1212
+ ) -> None:
1213
+ """Configure the metadata repository using a full repository connection body.
1165
1214
 
1166
1215
  Parameters
1167
1216
  ----------
@@ -1193,7 +1242,7 @@ class CoreServerConfig(Client):
1193
1242
  self.make_request("POST", url, config_body)
1194
1243
 
1195
1244
  def set_xtdb_in_mem_repository(self, server_name: str = None) -> None:
1196
- """ Set xtdb local repository connection to be XTDB with an in memory repository
1245
+ """Set xtdb local repository connection to be XTDB with an in memory repository
1197
1246
 
1198
1247
  Parameters
1199
1248
  ----------
@@ -1221,7 +1270,7 @@ class CoreServerConfig(Client):
1221
1270
  self.make_request("POST", url)
1222
1271
 
1223
1272
  def set_xtdb_local_kv_repository(self, server_name: str = None) -> None:
1224
- """ Set xtdb local repository connection to be XTDB with a local file based key-value store
1273
+ """Set xtdb local repository connection to be XTDB with a local file based key-value store
1225
1274
 
1226
1275
  Parameters
1227
1276
  ----------
@@ -1253,8 +1302,10 @@ class CoreServerConfig(Client):
1253
1302
  url = f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/xtdb-local-kv-repository"
1254
1303
  self.make_request("POST", url)
1255
1304
 
1256
- def set_xtdb_local_repository(self, xtdb_config_body: dict, server_name: str = None) -> None:
1257
- """ Set the local repository connection to be XTDB with a potentially complex XTDB configuration
1305
+ def set_xtdb_local_repository(
1306
+ self, xtdb_config_body: dict, server_name: str = None
1307
+ ) -> None:
1308
+ """Set the local repository connection to be XTDB with a potentially complex XTDB configuration
1258
1309
 
1259
1310
  Parameters
1260
1311
  ----------
@@ -1288,8 +1339,10 @@ class CoreServerConfig(Client):
1288
1339
  url = f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/xtdb-local-repository"
1289
1340
  self.make_request("POST", url, xtdb_config_body)
1290
1341
 
1291
- def set_xtdb_pg_repository(self, host: str, pg_user: str, pg_pwd: str, server_name: str = None) -> None:
1292
- """ Set the local repository connection to be XTDB using PostgresSQL Server, passing in basic parameters
1342
+ def set_xtdb_pg_repository(
1343
+ self, host: str, pg_user: str, pg_pwd: str, server_name: str = None
1344
+ ) -> None:
1345
+ """Set the local repository connection to be XTDB using PostgresSQL Server, passing in basic parameters
1293
1346
 
1294
1347
  Parameters
1295
1348
  ----------
@@ -1331,25 +1384,31 @@ class CoreServerConfig(Client):
1331
1384
  validate_name(host)
1332
1385
  pg_db = server_name.lower()
1333
1386
 
1334
- jdbc_url = f'"jdbc:postgresql://{host}/{pg_db}?user={pg_user}&password={pg_pwd}"'
1387
+ jdbc_url = (
1388
+ f'"jdbc:postgresql://{host}/{pg_db}?user={pg_user}&password={pg_pwd}"'
1389
+ )
1335
1390
  index_dir = f'"data/servers/{server_name}/repository/xtdb/rdb-index"'
1336
1391
  lucene_dir = f'"data/servers/{server_name}/repository/xtdb/lucene"'
1337
1392
 
1338
- index_str = '{:xtdb/index-store {:kv-store {:xtdb/module xtdb.rocksdb/->kv-store :db-dir '
1339
- index_str2 = index_str + index_dir + '}}'
1393
+ index_str = "{:xtdb/index-store {:kv-store {:xtdb/module xtdb.rocksdb/->kv-store :db-dir "
1394
+ index_str2 = index_str + index_dir + "}}"
1340
1395
 
1341
- lucene_str = ':xtdb.lucene/lucene-store {:db-dir ' + lucene_dir
1342
- lucene_str2 = lucene_str + ' :indexer {:xtdb/module xtdb.lucene.egeria/->egeria-indexer} '
1343
- lucene_str3 = lucene_str2 + ':analyzer {:xtdb/module xtdb.lucene.egeria/->ci-analyzer}} '
1396
+ lucene_str = ":xtdb.lucene/lucene-store {:db-dir " + lucene_dir
1397
+ lucene_str2 = (
1398
+ lucene_str + " :indexer {:xtdb/module xtdb.lucene.egeria/->egeria-indexer} "
1399
+ )
1400
+ lucene_str3 = (
1401
+ lucene_str2 + ":analyzer {:xtdb/module xtdb.lucene.egeria/->ci-analyzer}} "
1402
+ )
1344
1403
 
1345
- conn_pool_str = ':xtdb.jdbc/connection-pool {:dialect {:xtdb/module xtdb.jdbc.psql/->dialect} '
1346
- conn_pool_str2 = f'{conn_pool_str} :db-spec {{:jdbcUrl {jdbc_url} }} }}'
1404
+ conn_pool_str = ":xtdb.jdbc/connection-pool {:dialect {:xtdb/module xtdb.jdbc.psql/->dialect} "
1405
+ conn_pool_str2 = f"{conn_pool_str} :db-spec {{:jdbcUrl {jdbc_url} }} }}"
1347
1406
 
1348
- tx_str = ':xtdb/tx-log {:xtdb/module xtdb.jdbc/->tx-log :connection-pool '
1407
+ tx_str = ":xtdb/tx-log {:xtdb/module xtdb.jdbc/->tx-log :connection-pool "
1349
1408
  tx_str2 = tx_str + ':xtdb.jdbc/connection-pool :poll-sleep-duration "PT1S"}'
1350
1409
 
1351
- doc_str = ':xtdb/document-store {:xtdb/module xtdb.jdbc/->document-store :connection-pool'
1352
- doc_str2 = doc_str + ' :xtdb.jdbc/connection-pool}}'
1410
+ doc_str = ":xtdb/document-store {:xtdb/module xtdb.jdbc/->document-store :connection-pool"
1411
+ doc_str2 = doc_str + " :xtdb.jdbc/connection-pool}}"
1353
1412
 
1354
1413
  edn = f"{index_str2} {lucene_str3} {conn_pool_str2} {tx_str2} {doc_str2}"
1355
1414
  body = {
@@ -1357,11 +1416,11 @@ class CoreServerConfig(Client):
1357
1416
  }
1358
1417
 
1359
1418
  print(json.dumps(body, indent=4))
1360
- url = f'{self.admin_command_root}/servers/{server_name}/local-repository/mode/xtdb-local-repository'
1419
+ url = f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/xtdb-local-repository"
1361
1420
  self.make_request("POST", url, body)
1362
1421
 
1363
1422
  def get_open_metadata_archives(self, server_name: str = None) -> dict:
1364
- """ Return the list of open metadata archives configured to load on startup.
1423
+ """Return the list of open metadata archives configured to load on startup.
1365
1424
 
1366
1425
  Parameters
1367
1426
  ----------
@@ -1391,7 +1450,7 @@ class CoreServerConfig(Client):
1391
1450
  return response.json().get("connections", "No archives found")
1392
1451
 
1393
1452
  def clear_open_metadata_archives(self, server_name: str = None) -> None:
1394
- """ Clear open metadata archives from being loaded at startup
1453
+ """Clear open metadata archives from being loaded at startup
1395
1454
 
1396
1455
  Parameters
1397
1456
  ----------
@@ -1417,8 +1476,10 @@ class CoreServerConfig(Client):
1417
1476
  url = f"{self.admin_command_root}/servers/{server_name}/open-metadata-archives"
1418
1477
  self.make_request("DELETE", url)
1419
1478
 
1420
- def add_startup_open_metadata_archive_file(self, archive_file: str, server_name: str = None) -> None:
1421
- """ Add a metadata archive file to be loaded on startup
1479
+ def add_startup_open_metadata_archive_file(
1480
+ self, archive_file: str, server_name: str = None
1481
+ ) -> None:
1482
+ """Add a metadata archive file to be loaded on startup
1422
1483
  Parameters
1423
1484
  ----------
1424
1485
 
@@ -1452,10 +1513,17 @@ class CoreServerConfig(Client):
1452
1513
  #
1453
1514
  # Basic settings and security
1454
1515
  #
1455
- def set_basic_server_properties(self, local_server_description: str, organization_name: str,
1456
- local_server_url: str, local_server_user_id: str, local_server_password: str,
1457
- max_page_size: int = 0, server_name: str = None):
1458
- """ Sets the basic server properties.
1516
+ def set_basic_server_properties(
1517
+ self,
1518
+ local_server_description: str,
1519
+ organization_name: str,
1520
+ local_server_url: str,
1521
+ local_server_user_id: str,
1522
+ local_server_password: str,
1523
+ max_page_size: int = 0,
1524
+ server_name: str = None,
1525
+ ):
1526
+ """Sets the basic server properties.
1459
1527
  Parameters
1460
1528
  ----------
1461
1529
  local_server_description : str
@@ -1496,14 +1564,14 @@ class CoreServerConfig(Client):
1496
1564
  "localServerURL": local_server_url,
1497
1565
  "localServerUserId": local_server_user_id,
1498
1566
  "localServerPassword": local_server_password,
1499
- "maxPageSize": max_page_size
1567
+ "maxPageSize": max_page_size,
1500
1568
  }
1501
1569
  url = self.admin_command_root + "/servers/" + server_name + "/server-properties"
1502
1570
 
1503
1571
  self.make_request("POST", url, basic_props)
1504
1572
 
1505
1573
  def get_basic_server_properties(self, server_name: str = None) -> dict | str:
1506
- """ Retrieve the basic properties associated with this server
1574
+ """Retrieve the basic properties associated with this server
1507
1575
 
1508
1576
  Parameters
1509
1577
  ----------
@@ -1531,10 +1599,12 @@ class CoreServerConfig(Client):
1531
1599
  url = self.admin_command_root + "/servers/" + server_name + "/server-properties"
1532
1600
  response = self.make_request("GET", url)
1533
1601
 
1534
- return response.json().get("basicServerProperties", "No server properties found")
1602
+ return response.json().get(
1603
+ "basicServerProperties", "No server properties found"
1604
+ )
1535
1605
 
1536
1606
  def get_server_type_classification(self, server_name: str = None) -> dict | str:
1537
- """ Clears the server type for the given server
1607
+ """Clears the server type for the given server
1538
1608
 
1539
1609
  Parameters
1540
1610
  ----------
@@ -1564,7 +1634,7 @@ class CoreServerConfig(Client):
1564
1634
  return response.json().get("serverTypeClassification", "No server type found")
1565
1635
 
1566
1636
  def get_server_security_connection(self, server_name: str = None) -> dict | str:
1567
- """ Retrieve the security connection configuration for a server.
1637
+ """Retrieve the security connection configuration for a server.
1568
1638
 
1569
1639
  Parameters
1570
1640
  ----------
@@ -1593,8 +1663,10 @@ class CoreServerConfig(Client):
1593
1663
  response = self.make_request("GET", url)
1594
1664
  return response.json()
1595
1665
 
1596
- def set_server_security_connection(self, security_connection_body: dict, server_name: str = None) -> None:
1597
- """ Set the server security configuration
1666
+ def set_server_security_connection(
1667
+ self, security_connection_body: dict, server_name: str = None
1668
+ ) -> None:
1669
+ """Set the server security configuration
1598
1670
 
1599
1671
  Parameters
1600
1672
  ----------
@@ -1625,36 +1697,36 @@ class CoreServerConfig(Client):
1625
1697
  self.make_request("POST", url, security_connection_body)
1626
1698
 
1627
1699
  def clear_server_security_connection(self, server_name: str = None) -> None:
1628
- """ Clears the server security configuration
1700
+ """Clears the server security configuration
1629
1701
 
1630
- Parameters
1631
- ----------
1702
+ Parameters
1703
+ ----------
1632
1704
 
1633
- server_name : str (optional)
1634
- The name of the server for which the security connection should be set.
1635
- If not provided, the default server name will be used.
1705
+ server_name : str (optional)
1706
+ The name of the server for which the security connection should be set.
1707
+ If not provided, the default server name will be used.
1636
1708
 
1637
- Returns
1638
- -------
1639
- None
1709
+ Returns
1710
+ -------
1711
+ None
1640
1712
 
1641
- Raises
1642
- ------
1643
- InvalidParameterException
1644
- If the response code is not 200.
1645
- PropertyServerException:
1646
- Raised by the server when an issue arises in processing a valid request
1647
- NotAuthorizedException:
1648
- The principle specified by the user_id does not have authorization for the requested action
1713
+ Raises
1714
+ ------
1715
+ InvalidParameterException
1716
+ If the response code is not 200.
1717
+ PropertyServerException:
1718
+ Raised by the server when an issue arises in processing a valid request
1719
+ NotAuthorizedException:
1720
+ The principle specified by the user_id does not have authorization for the requested action
1649
1721
 
1650
- """
1722
+ """
1651
1723
  if server_name is None:
1652
1724
  server_name = self.server_name
1653
1725
  url = f"{self.admin_command_root}/servers/{server_name}/security/connection"
1654
1726
  self.make_request("DELETE", url)
1655
1727
 
1656
1728
  def get_server_classification(self, server_name: str = None) -> dict:
1657
- """ Get server classification
1729
+ """Get server classification
1658
1730
 
1659
1731
  Parameters
1660
1732
  ----------
@@ -1688,7 +1760,7 @@ class CoreServerConfig(Client):
1688
1760
  #
1689
1761
 
1690
1762
  def get_configured_view_svcs(self, server_name: str = None) -> dict:
1691
- """ Get the list of view services configured for the specified server
1763
+ """Get the list of view services configured for the specified server
1692
1764
 
1693
1765
  Parameters
1694
1766
  ----------
@@ -1717,9 +1789,13 @@ class CoreServerConfig(Client):
1717
1789
 
1718
1790
  return response.json().get("services", "No view services found")
1719
1791
 
1720
- def config_all_view_services(self, mdr_server_name: str,
1721
- mdr_server_platform_root_url: str, server_name: str = None) -> None:
1722
- """ Enable all view services that are registered with this OMAG server platform.
1792
+ def config_all_view_services(
1793
+ self,
1794
+ mdr_server_name: str,
1795
+ mdr_server_platform_root_url: str,
1796
+ server_name: str = None,
1797
+ ) -> None:
1798
+ """Enable all view services that are registered with this OMAG server platform.
1723
1799
 
1724
1800
  Parameters
1725
1801
  ----------
@@ -1762,14 +1838,16 @@ class CoreServerConfig(Client):
1762
1838
  view_service_body = {
1763
1839
  "class": "ViewServiceRequestBody",
1764
1840
  "omagserverName": mdr_server_name,
1765
- "omagserverPlatformRootURL": mdr_server_platform_root_url
1841
+ "omagserverPlatformRootURL": mdr_server_platform_root_url,
1766
1842
  }
1767
1843
 
1768
1844
  url = f"{self.admin_command_root}/servers/{server_name}/view-services"
1769
1845
  self.make_request("POST", url, view_service_body)
1770
1846
 
1771
- def config_all_view_services_w_body(self, view_services_request_body, server_name: str = None) -> None:
1772
- """ Configure all view services for the specified view server with a simple configuration.
1847
+ def config_all_view_services_w_body(
1848
+ self, view_services_request_body, server_name: str = None
1849
+ ) -> None:
1850
+ """Configure all view services for the specified view server with a simple configuration.
1773
1851
 
1774
1852
  Parameters
1775
1853
  ----------
@@ -1805,7 +1883,7 @@ class CoreServerConfig(Client):
1805
1883
  self.make_request("POST", url, view_services_request_body)
1806
1884
 
1807
1885
  def clear_all_view_services(self, server_name: str = None) -> None:
1808
- """ Clears all the view services for the given server
1886
+ """Clears all the view services for the given server
1809
1887
 
1810
1888
  Parameters
1811
1889
  ----------
@@ -1831,8 +1909,10 @@ class CoreServerConfig(Client):
1831
1909
  url = f"{self.admin_command_root}/servers/{server_name}/view-services"
1832
1910
  self.make_request("DELETE", url)
1833
1911
 
1834
- def get_view_svc_config(self, service_url_marker: str, server_name: str = None) -> dict | str:
1835
- """ Retrieves the view service configuration for the given view server.
1912
+ def get_view_svc_config(
1913
+ self, service_url_marker: str, server_name: str = None
1914
+ ) -> dict | str:
1915
+ """Retrieves the view service configuration for the given view server.
1836
1916
  Parameters
1837
1917
  ----------
1838
1918
  service_url_marker : str
@@ -1871,9 +1951,14 @@ class CoreServerConfig(Client):
1871
1951
  response = self.make_request("GET", url)
1872
1952
  return response.json().get("config", "No view services found")
1873
1953
 
1874
- def config_view_service(self, service_url_marker: str, mdr_server_name: str,
1875
- mdr_server_platform_root_url: str, server_name: str = None) -> None:
1876
- """ Configure a view service specified by the service_url_marker with basic properties.
1954
+ def config_view_service(
1955
+ self,
1956
+ service_url_marker: str,
1957
+ mdr_server_name: str,
1958
+ mdr_server_platform_root_url: str,
1959
+ server_name: str = None,
1960
+ ) -> None:
1961
+ """Configure a view service specified by the service_url_marker with basic properties.
1877
1962
 
1878
1963
  Parameters
1879
1964
  ----------
@@ -1919,14 +2004,16 @@ class CoreServerConfig(Client):
1919
2004
  view_service_body = {
1920
2005
  "class": "ViewServiceRequestBody",
1921
2006
  "omagserverName": mdr_server_name,
1922
- "omagserverPlatformRootURL": mdr_server_platform_root_url
2007
+ "omagserverPlatformRootURL": mdr_server_platform_root_url,
1923
2008
  }
1924
2009
 
1925
2010
  url = f"{self.admin_command_root}/servers/{server_name}/view-services/{service_url_marker}"
1926
2011
  self.make_request("POST", url, view_service_body)
1927
2012
 
1928
- def clear_view_service(self, service_url_marker: str, server_name: str = None) -> None:
1929
- """ Remove the view service specified by the service_url_marker.
2013
+ def clear_view_service(
2014
+ self, service_url_marker: str, server_name: str = None
2015
+ ) -> None:
2016
+ """Remove the view service specified by the service_url_marker.
1930
2017
 
1931
2018
  Parameters
1932
2019
  ----------
@@ -1965,7 +2052,7 @@ class CoreServerConfig(Client):
1965
2052
  self.make_request("DELETE", url)
1966
2053
 
1967
2054
  def get_view_svcs_config(self, server_name: str = None) -> str | list:
1968
- """ Retrieves the view services configuration for the specified view server.
2055
+ """Retrieves the view services configuration for the specified view server.
1969
2056
  Parameters
1970
2057
  ----------
1971
2058
  server_name : str, optional
@@ -2004,8 +2091,10 @@ class CoreServerConfig(Client):
2004
2091
  #
2005
2092
  # Cohort Configuration, etc.
2006
2093
  #
2007
- def add_cohort_registration(self, cohort_name: str, server_name: str = None) -> None:
2008
- """ Enable registration of server to an open metadata repository cohort using the default topic structure
2094
+ def add_cohort_registration(
2095
+ self, cohort_name: str, server_name: str = None
2096
+ ) -> None:
2097
+ """Enable registration of server to an open metadata repository cohort using the default topic structure
2009
2098
  (DEDICATED_TOPICS). A cohort is a group of open metadata repositories that are sharing metadata.
2010
2099
  An OMAG server can connect to zero, one or more cohorts. Each cohort needs a unique name.
2011
2100
  The members of the cohort use a shared topic to exchange registration information and events
@@ -2038,7 +2127,7 @@ class CoreServerConfig(Client):
2038
2127
  self.make_request("POST", url)
2039
2128
 
2040
2129
  def get_cohort_config(self, cohort_name: str, server_name: str = None) -> dict:
2041
- """ Get the cohort configuration for the given cohort.
2130
+ """Get the cohort configuration for the given cohort.
2042
2131
 
2043
2132
  Parameters
2044
2133
  ----------
@@ -2066,13 +2155,21 @@ class CoreServerConfig(Client):
2066
2155
 
2067
2156
  validate_name(cohort_name)
2068
2157
 
2069
- url = self.admin_command_root + "/servers/" + server_name + "/cohorts/" + cohort_name
2158
+ url = (
2159
+ self.admin_command_root
2160
+ + "/servers/"
2161
+ + server_name
2162
+ + "/cohorts/"
2163
+ + cohort_name
2164
+ )
2070
2165
  response = self.make_request("GET", url)
2071
2166
 
2072
2167
  return response.json().get("config", "No cohort configuration found")
2073
2168
 
2074
- def deploy_server_config(self, target_platform_body: dict, server_name: str = None) -> None:
2075
- """ Add a metadata archive file to be loaded on startup
2169
+ def deploy_server_config(
2170
+ self, target_platform_body: dict, server_name: str = None
2171
+ ) -> None:
2172
+ """Add a metadata archive file to be loaded on startup
2076
2173
  Parameters
2077
2174
  ----------
2078
2175
 
@@ -2106,7 +2203,7 @@ class CoreServerConfig(Client):
2106
2203
  # Integration Groups
2107
2204
  #
2108
2205
  def clear_all_integration_groups(self, server_name: str = None) -> None:
2109
- """ Remove all the integration groups associated with the server.
2206
+ """Remove all the integration groups associated with the server.
2110
2207
 
2111
2208
  Parameters
2112
2209
  ----------
@@ -2138,8 +2235,10 @@ class CoreServerConfig(Client):
2138
2235
  url = f"{self.admin_command_root}/servers/{server_name}/integration-groups"
2139
2236
  self.make_request("DELETE", url)
2140
2237
 
2141
- def clear_an_integration_group(self, group_qualified_name: str, server_name: str = None) -> None:
2142
- """ Remove the integration group specified by the group_qualified_name parameter.
2238
+ def clear_an_integration_group(
2239
+ self, group_qualified_name: str, server_name: str = None
2240
+ ) -> None:
2241
+ """Remove the integration group specified by the group_qualified_name parameter.
2143
2242
 
2144
2243
  Parameters
2145
2244
  ----------
@@ -2174,7 +2273,7 @@ class CoreServerConfig(Client):
2174
2273
  self.make_request("DELETE", url)
2175
2274
 
2176
2275
  def get_integration_groups_config(self, server_name: str = None) -> list | str:
2177
- """ Get the Integration Groups configuration server specified by the server_name parameter.
2276
+ """Get the Integration Groups configuration server specified by the server_name parameter.
2178
2277
 
2179
2278
  Parameters
2180
2279
  ----------
@@ -2199,14 +2298,24 @@ class CoreServerConfig(Client):
2199
2298
  if server_name is None:
2200
2299
  server_name = self.server_name
2201
2300
 
2202
- url = self.admin_command_root + "/servers/" + server_name + "/integration-groups/configuration"
2301
+ url = (
2302
+ self.admin_command_root
2303
+ + "/servers/"
2304
+ + server_name
2305
+ + "/integration-groups/configuration"
2306
+ )
2203
2307
  response = self.make_request("GET", url)
2204
2308
 
2205
2309
  return response.json().get("groups", "No Integration Group configuration found")
2206
2310
 
2207
- def config_integration_group(self, omag_server_name: str, omag_server_platform_root_url: str,
2208
- qualified_name: str, server_name: str = None) -> None:
2209
- """ Add configuration for a single integration group to the server's config document.
2311
+ def config_integration_group(
2312
+ self,
2313
+ omag_server_name: str,
2314
+ omag_server_platform_root_url: str,
2315
+ qualified_name: str,
2316
+ server_name: str = None,
2317
+ ) -> None:
2318
+ """Add configuration for a single integration group to the server's config document.
2210
2319
 
2211
2320
  Parameters
2212
2321
  ----------
@@ -2252,7 +2361,7 @@ class CoreServerConfig(Client):
2252
2361
  "class": "IntegrationGroupConfig",
2253
2362
  "omagserverName": omag_server_name,
2254
2363
  "omagserverPlatformRootURL": omag_server_platform_root_url,
2255
- "integrationGroupQualifiedName": qualified_name
2364
+ "integrationGroupQualifiedName": qualified_name,
2256
2365
  }
2257
2366
 
2258
2367
  url = f"{self.admin_command_root}/servers/{server_name}/integration-groups/configuration"
@@ -2263,7 +2372,7 @@ class CoreServerConfig(Client):
2263
2372
  #
2264
2373
 
2265
2374
  def clear_engine_definitions_client_config(self, server_name: str = None) -> None:
2266
- """ Remove the configuration for the Governance Engine OMAS Engine client configuration in a single call.
2375
+ """Remove the configuration for the Governance Engine OMAS Engine client configuration in a single call.
2267
2376
  This overrides the current values.
2268
2377
 
2269
2378
  Parameters
@@ -2295,9 +2404,13 @@ class CoreServerConfig(Client):
2295
2404
  url = f"{self.admin_command_root}/servers/{server_name}/engine-definitions/client-config"
2296
2405
  self.make_request("DELETE", url)
2297
2406
 
2298
- def set_engine_definitions_client_config(self, mdr_server_name: str, mdr_server_platform_root_url: str,
2299
- server_name: str = None) -> None:
2300
- """ Set up the name and platform URL root for the metadata server running the Governance Engine OMAS that
2407
+ def set_engine_definitions_client_config(
2408
+ self,
2409
+ mdr_server_name: str,
2410
+ mdr_server_platform_root_url: str,
2411
+ server_name: str = None,
2412
+ ) -> None:
2413
+ """Set up the name and platform URL root for the metadata server running the Governance Engine OMAS that
2301
2414
  provides the governance engine definitions used by the engine services.
2302
2415
 
2303
2416
  Parameters
@@ -2346,7 +2459,7 @@ class CoreServerConfig(Client):
2346
2459
  self.make_request("POST", url, body)
2347
2460
 
2348
2461
  def clear_engine_list(self, server_name: str = None) -> None:
2349
- """ Remove the configuration for the Governance Engine OMAS Engine client configuration in a single call.
2462
+ """Remove the configuration for the Governance Engine OMAS Engine client configuration in a single call.
2350
2463
  This overrides the current values.
2351
2464
 
2352
2465
  Parameters
@@ -2379,7 +2492,7 @@ class CoreServerConfig(Client):
2379
2492
  self.make_request("DELETE", url)
2380
2493
 
2381
2494
  def set_engine_list(self, engine_list: [dict], server_name: str = None) -> None:
2382
- """ Set up the list of governance engine that will use the metadata from the same metadata access server
2495
+ """Set up the list of governance engine that will use the metadata from the same metadata access server
2383
2496
  as the engine host uses for retrieving the engine configuration.
2384
2497
 
2385
2498
  Parameters
@@ -2429,7 +2542,7 @@ class CoreServerConfig(Client):
2429
2542
  self.make_request("POST", url, engine_list)
2430
2543
 
2431
2544
  def get_engine_host_services_config(self, server_name: str = None) -> dict | str:
2432
- """ Return the configuration for the complete engine host services in this server.
2545
+ """Return the configuration for the complete engine host services in this server.
2433
2546
 
2434
2547
  Parameters
2435
2548
  ----------
@@ -2454,14 +2567,19 @@ class CoreServerConfig(Client):
2454
2567
  if server_name is None:
2455
2568
  server_name = self.server_name
2456
2569
 
2457
- url = self.admin_command_root + "/servers/" + server_name + "/engine-host-services/configuration"
2570
+ url = (
2571
+ self.admin_command_root
2572
+ + "/servers/"
2573
+ + server_name
2574
+ + "/engine-host-services/configuration"
2575
+ )
2458
2576
  response = self.make_request("GET", url)
2459
2577
 
2460
2578
  # return response.json().get("config", "No engine definitions client configuration found")
2461
2579
  return response.json().get("services", "No engine host services")
2462
2580
 
2463
2581
  def get_placeholder_variables(self) -> dict:
2464
- """ get placeholder variables
2582
+ """get placeholder variables
2465
2583
 
2466
2584
  Get the placeholder variables from the platform.
2467
2585
 
@@ -2486,7 +2604,7 @@ class CoreServerConfig(Client):
2486
2604
  return response.json().get("stringMap")
2487
2605
 
2488
2606
  def set_placeholder_variables(self, placeholder_variables: dict) -> None:
2489
- """ Set placeholder variables - replaces previous placeholders with the new list
2607
+ """Set placeholder variables - replaces previous placeholders with the new list
2490
2608
 
2491
2609
  Parameters
2492
2610
  ----------