pyegeria 0.3.8__py3-none-any.whl → 0.4.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 (59) hide show
  1. pyegeria/Xfeedback_manager_omvs.py +238 -0
  2. pyegeria/Xloaded_resources_omvs.py +91 -0
  3. pyegeria/__init__.py +15 -12
  4. pyegeria/_client.py +4 -6
  5. pyegeria/{gov_engine.py → _deprecated_gov_engine.py} +2 -59
  6. pyegeria/_exceptions.py +5 -6
  7. pyegeria/_globals.py +3 -1
  8. pyegeria/asset_catalog_omvs.py +672 -0
  9. pyegeria/automated_curation_omvs.py +627 -359
  10. pyegeria/collection_manager_omvs.py +187 -248
  11. pyegeria/core_guids.py +128 -0
  12. pyegeria/core_omag_server_config.py +1 -5
  13. pyegeria/full_omag_server_config.py +53 -83
  14. pyegeria/glossary_browser_omvs.py +2208 -0
  15. pyegeria/glossary_manager_omvs.py +3002 -0
  16. pyegeria/my_profile_omvs.py +2 -7
  17. pyegeria/platform_services.py +0 -3
  18. pyegeria/project_manager_omvs.py +9 -15
  19. pyegeria/registered_info.py +12 -52
  20. pyegeria/runtime_manager_omvs.py +967 -0
  21. pyegeria/server_operations.py +1 -5
  22. pyegeria/valid_metadata_omvs.py +204 -43
  23. pyegeria-0.4.0.data/scripts/Create_Collection_Sample.py +292 -0
  24. pyegeria-0.4.0.data/scripts/Create_Sustainability_Collection_Sample.py +115 -0
  25. pyegeria-0.4.0.data/scripts/get_guid_info.py +86 -0
  26. pyegeria-0.3.8.data/scripts/view_my_profile.py → pyegeria-0.4.0.data/scripts/get_my_profile.py +8 -34
  27. {pyegeria-0.3.8.data → pyegeria-0.4.0.data}/scripts/get_tech_details.py +1 -37
  28. pyegeria-0.4.0.data/scripts/get_tech_type_elements.py +137 -0
  29. pyegeria-0.4.0.data/scripts/get_tech_type_template.py +137 -0
  30. {pyegeria-0.3.8.data → pyegeria-0.4.0.data}/scripts/list_asset_types.py +3 -25
  31. pyegeria-0.4.0.data/scripts/list_assets.py +138 -0
  32. pyegeria-0.3.8.data/scripts/project_list_viewer.py → pyegeria-0.4.0.data/scripts/list_projects.py +13 -27
  33. pyegeria-0.4.0.data/scripts/list_registered_services.py +135 -0
  34. pyegeria-0.3.8.data/scripts/get_relationship_types.py → pyegeria-0.4.0.data/scripts/list_relationship_types.py +25 -43
  35. pyegeria-0.4.0.data/scripts/list_tech_templates.py +134 -0
  36. pyegeria-0.3.8.data/scripts/find_todos.py → pyegeria-0.4.0.data/scripts/list_todos.py +11 -39
  37. pyegeria-0.4.0.data/scripts/list_valid_metadata_values.py +144 -0
  38. pyegeria-0.4.0.data/scripts/view_asset_graph.py +236 -0
  39. pyegeria-0.3.8.data/scripts/multi-server_status.py → pyegeria-0.4.0.data/scripts/view_coco_status.py +17 -39
  40. pyegeria-0.3.8.data/scripts/collection_viewer.py → pyegeria-0.4.0.data/scripts/view_collection.py +12 -31
  41. pyegeria-0.3.8.data/scripts/engine_action_status.py → pyegeria-0.4.0.data/scripts/view_eng_action_status.py +17 -31
  42. pyegeria-0.3.8.data/scripts/glossary_view.py → pyegeria-0.4.0.data/scripts/view_glossary.py +2 -2
  43. pyegeria-0.3.8.data/scripts/gov_engine_status.py → pyegeria-0.4.0.data/scripts/view_gov_eng_status.py +0 -1
  44. pyegeria-0.3.8.data/scripts/integration_daemon_status.py → pyegeria-0.4.0.data/scripts/view_integ_daemon_status.py +30 -42
  45. pyegeria-0.3.8.data/scripts/my_todos.py → pyegeria-0.4.0.data/scripts/view_my_todos.py +1 -1
  46. pyegeria-0.3.8.data/scripts/open_todos.py → pyegeria-0.4.0.data/scripts/view_open_todos.py +3 -24
  47. pyegeria-0.4.0.data/scripts/view_platform_status.py +123 -0
  48. pyegeria-0.3.8.data/scripts/server_status.py → pyegeria-0.4.0.data/scripts/view_server_status.py +1 -20
  49. {pyegeria-0.3.8.dist-info → pyegeria-0.4.0.dist-info}/METADATA +5 -4
  50. pyegeria-0.4.0.dist-info/RECORD +58 -0
  51. {pyegeria-0.3.8.dist-info → pyegeria-0.4.0.dist-info}/WHEEL +1 -1
  52. pyegeria/glossary_omvs.py +0 -789
  53. pyegeria/loaded_resources_omvs.py +0 -159
  54. pyegeria-0.3.8.dist-info/RECORD +0 -42
  55. /pyegeria/{governance_author.py → action_author_omvs.py} +0 -0
  56. /pyegeria-0.3.8.data/scripts/get_tech_types.py → /pyegeria-0.4.0.data/scripts/list_tech_types.py +0 -0
  57. /pyegeria-0.3.8.data/scripts/server_status_widget.py → /pyegeria-0.4.0.data/scripts/view_server_list.py +0 -0
  58. {pyegeria-0.3.8.dist-info → pyegeria-0.4.0.dist-info}/LICENSE +0 -0
  59. {pyegeria-0.3.8.dist-info → pyegeria-0.4.0.dist-info}/top_level.txt +0 -0
pyegeria/core_guids.py ADDED
@@ -0,0 +1,128 @@
1
+ """
2
+ SPDX-License-Identifier: Apache-2.0
3
+ Copyright Contributors to the ODPi Egeria project.
4
+
5
+ Useful from core content archive
6
+ """
7
+
8
+ #
9
+ # Template guids
10
+ #
11
+
12
+ FILE_FOLDER_TEMPLATE = "553f51cf-3981-480e-acd8-86ed3e25329d"
13
+
14
+ KAFKA_SERVER_TEMPLATE = "5e1ff810-5418-43f7-b7c4-e6e062f9aff7"
15
+
16
+ POSTGRESQL_SERVER_TEMPLATE = "542134e6-b9ce-4dce-8aef-22e8daf34fdb"
17
+
18
+ CSV_Data_File_template_GUID = '1b81010e-8525-43b4-8bd9-40c102f7f7d6'
19
+
20
+ Keystore_File_template_GUID = '754def0b-b811-4ea0-b8bf-7414fa8a77b4'
21
+
22
+ OSS_Unity_Catalog_Function_template_GUID = '4ae9f6df-4678-4b0a-a492-4a982c8397fd'
23
+
24
+ Data_File_template_GUID = 'd7633260-0810-43fe-ba48-f3e3e3e7c95c'
25
+
26
+ View_Server_template_GUID = 'fd61ca01-390d-4aa2-a55d-426826aa4e1b'
27
+
28
+ Archive_File_template_GUID = '8a4ea587-dd3e-4148-8c01-0d366d19de11'
29
+
30
+ PostgreSQL_Relational_Database_template_GUID = '3d398b3f-7ae6-4713-952a-409f3dea8520'
31
+
32
+ OSS_Unity_Catalog_Volume_template_GUID = 'bf4dc272-a323-4ca7-8e37-b78a005ac578'
33
+
34
+ Program_File_template_GUID = 'd8b8cae5-f4bd-4631-8836-88dc67a55c00'
35
+
36
+ FileFolder_template_GUID = '99b0c995-7494-4063-89d1-1e0ec7153abd'
37
+
38
+ OSS_Unity_Catalog_Catalog_template_GUID = '8bf8f102-490f-4718-bd27-d018660124b6'
39
+
40
+ PostgreSQL_Server_template_GUID = '542134e6-b9ce-4dce-8aef-22e8daf34fdb'
41
+
42
+ Audio_Data_File_template_GUID = 'f65ea229-5473-469f-a447-32ba09bf1f14'
43
+
44
+ Document_File_template_GUID = '080ca599-095a-499e-ba26-7d58e538c32a'
45
+
46
+ Integration_Daemon_template_GUID = '6b3516f0-dd13-4786-9601-07215f995197'
47
+
48
+ XML_Data_File_template_GUID = '643a284b-3137-41de-8c37-521dcd3a1441'
49
+
50
+ Parquet_Data_File_template_GUID = '2396c38e-54aa-4d04-a95d-ce02fb998c55'
51
+
52
+ ThreeD_Image_Data_File_template_GUID = '5648eaa6-4826-4964-9657-78ab9cc387d8'
53
+
54
+ YAML_File_template_GUID = '6515915a-c218-4e55-9b2c-d5fbec9dfdb4'
55
+
56
+ Metadata_Access_Server_template_GUID = 'bd8de890-fa79-4c24-aab8-20b41b5893dd'
57
+
58
+ Properties_File_template_GUID = '1cefcfe3-585d-4d78-a4dd-3f929f5c5a9b'
59
+
60
+ Vector_Data_File_template_GUID = 'ea60c096-71e6-4492-ba10-90de63e4fe3a'
61
+
62
+ Apache_Kafka_Server_template_GUID = '5e1ff810-5418-43f7-b7c4-e6e062f9aff7'
63
+
64
+ OSS_Unity_Catalog_Schema_template_GUID = 'd95e5364-4ebf-42d5-bb39-ff1334143b15'
65
+
66
+ Executable_File_template_GUID = '588c89e7-cc16-4ae1-8b81-0cd90250df0c'
67
+
68
+ JSON_Data_File_template_GUID = 'c62ff28b-5cd2-4c74-bba3-0a875ddbbdf4'
69
+
70
+ File_System_template_GUID = 'd3b548d5-c5bf-42f7-8714-80a034b00424'
71
+
72
+ Source_Code_File_template_GUID = '092e6742-7d5a-40cb-b5be-b0440e730c0a'
73
+
74
+ OSS_Unity_Catalog_Server_template_GUID = '1077a346-7a50-4cb0-a795-b219bafaabf6'
75
+
76
+ Apple_MacBook_Pro_template_GUID = '32a9fd56-85c9-47fe-a211-9da3871bf4da'
77
+
78
+ Build_Instruction_File_template_GUID = '7a2b22a1-2198-4ad6-adc0-8a3c2e2faaa7'
79
+
80
+ Spreadsheet_Data_File_template_GUID = '33860da2-c467-4192-908c-f8dab837c098'
81
+
82
+ UNIX_File_System_template_GUID = '6d82998d-5d6c-4cd2-902e-8baa98e152d4'
83
+
84
+ Video_Data_File_template_GUID = '6d7b46f9-c7ea-4d68-b66b-b077ec91bc19'
85
+
86
+ PostgreSQL_Relational_Database_Schema_template_GUID = '82a5417c-d882-4271-8444-4c6a996a8bfc'
87
+
88
+ Engine_Host_template_GUID = '1764a891-4234-45f1-8cc3-536af40c790d'
89
+
90
+ Avro_Data_File_template_GUID = '0c61cfef-a0d3-4130-85fc-d5c39287499c'
91
+
92
+ OSS_Unity_Catalog_Table_template_GUID = 'f5b12348-92ac-4a52-b8e0-b06cf215484e'
93
+
94
+ File_template_GUID = '9725e90e-ebad-474f-af65-a8aaaca03208'
95
+
96
+ Apache_Kafka_Topic_template_GUID = 'ea8f81c9-c59c-47de-9525-7cc59d1251e5'
97
+
98
+ Script_File_template_GUID = '4842a347-56a1-4940-b340-2f39cf91dc6d'
99
+
100
+ Apache_Atlas_Server_template_GUID = 'fe6dce45-a978-4417-ab55-17f05b8bcea7'
101
+
102
+ Raster_Data_File_template_GUID = 'c972afee-0170-446f-893b-f88a373a4a99'
103
+
104
+ Data_Folder_template_GUID = 'e854455c-8b5a-4030-8289-2323f7f68841'
105
+
106
+ OMAG_Server_Platform_template_GUID = '9b06c4dc-ddc8-47ae-b56b-28775d3a96f0'
107
+
108
+ DBC_Relational_Database_Integration_Connector_GUID = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
109
+
110
+ #
111
+ # Integration Connector GUIDS
112
+ #
113
+
114
+ PostgreSQL_Relational_Database_Integration_Connector_GUID = '70dcd0b7-9f06-48ad-ad44-ae4d7a7762aa'
115
+
116
+ Landing_Area_File_Monitor_Integration_Connector_GUID = '1b98cdac-dd0a-4621-93db-99ef5a1098bc'
117
+
118
+ FileFolder_Integration_Connector_GUID = 'cd6479e1-2fe7-4426-b358-8a0cf70be117'
119
+
120
+ OSS_Unity_Catalog_Catalog_Integration_Connector_GUID = '74dde22f-2249-4ea3-af2b-b39e73f79b81'
121
+
122
+ PostgreSQL_Server_Integration_Connector_GUID = '36f69fd0-54ba-4f59-8a44-11ccf2687a34'
123
+
124
+ Apache_Kafka_Server_Integration_Connector_GUID = 'fa1f711c-0b34-4b57-8e6e-16162b132b0c'
125
+
126
+ Software_Server_Integration_Connector_GUID = 'b89d9a5a-2ea6-49bc-a4fc-e7df9f3ca93e'
127
+
128
+ OSS_Unity_Catalog_Server_Integration_Connector_GUID = '06d068d9-9e08-4e67-8c59-073bbf1013af'
@@ -37,10 +37,6 @@ class CoreServerConfig(Client):
37
37
  when the user doesn't pass the user_id on a method call.
38
38
  user_pwd: str
39
39
  The password associated with the user_id. Defaults to None
40
- verify_flag: bool
41
- Flag to indicate if SSL Certificates should be verified in the HTTP requests.
42
- Defaults to False.
43
-
44
40
 
45
41
  """
46
42
 
@@ -1722,7 +1718,7 @@ class CoreServerConfig(Client):
1722
1718
  return response.json().get("services", "No view services found")
1723
1719
 
1724
1720
  def __config_all_view_services(self, mdr_server_name: str,
1725
- mdr_server_platform_root_url: str, server_name: str = None) -> None:
1721
+ mdr_server_platform_root_url: str, server_name: str = None) -> None:
1726
1722
  """ Enable all view services that are registered with this OMAG server platform.
1727
1723
 
1728
1724
  Parameters
@@ -6,14 +6,14 @@ Copyright Contributors to the ODPi Egeria project.
6
6
  This class encompasses the full set of configuration methods.
7
7
  """
8
8
 
9
- from pyegeria._validators import validate_name, validate_url
10
- from pyegeria import (
11
- InvalidParameterException
12
- )
13
- from pyegeria._globals import enable_ssl_check
9
+ import json
10
+
14
11
  from pyegeria import Client
12
+ from pyegeria import (InvalidParameterException)
13
+ from pyegeria._globals import enable_ssl_check
14
+ from pyegeria._validators import validate_name, validate_url
15
15
  from .core_omag_server_config import CoreServerConfig
16
- import json
16
+
17
17
 
18
18
  class FullServerConfig(CoreServerConfig):
19
19
  """
@@ -34,21 +34,11 @@ class FullServerConfig(CoreServerConfig):
34
34
 
35
35
  """
36
36
 
37
- def __init__(
38
- self,
39
- server_name: str,
40
- platform_url: str,
41
- user_id: str,
42
- user_pwd: str = None,
43
- verify_flag: bool = enable_ssl_check,
44
- ):
37
+ def __init__(self, server_name: str, platform_url: str, user_id: str, user_pwd: str = None,
38
+ verify_flag: bool = enable_ssl_check, ):
45
39
  self.admin_command_root: str
46
40
  Client.__init__(self, server_name, platform_url, user_id, user_pwd, verify_flag)
47
- self.admin_command_root = (
48
- self.platform_url
49
- + "/open-metadata/admin-services/users/"
50
- + user_id
51
- )
41
+ self.admin_command_root = (self.platform_url + "/open-metadata/admin-services/users/" + user_id)
52
42
 
53
43
  def get_access_services_topic_names(self, access_service_name: str, server_name: str = None) -> list[str]:
54
44
  """ Retrieve the topic names for this access service.
@@ -69,13 +59,13 @@ class FullServerConfig(CoreServerConfig):
69
59
  if server_name is None:
70
60
  server_name = self.server_name
71
61
  validate_name(access_service_name)
72
- url = (self.admin_command_root + "/servers/" + server_name + "/access-services/"
73
- + access_service_name + "/topic-names")
62
+ url = (
63
+ self.admin_command_root + "/servers/" + server_name + "/access-services/" + access_service_name +
64
+ "/topic-names")
74
65
  response = self.make_request("GET", url)
75
66
 
76
67
  return response.json() # todo fix
77
68
 
78
-
79
69
  def get_all_access_services_topic_names(self, server_name: str = None) -> list:
80
70
  """ Retrieve the topic names for all access services.
81
71
  Parameters
@@ -97,7 +87,6 @@ class FullServerConfig(CoreServerConfig):
97
87
 
98
88
  return response.json() # todo fix
99
89
 
100
-
101
90
  def set_access_services_configuration(self, access_services_body: str, server_name: str = None) -> None:
102
91
  """ Set up the configuration for selected open metadata access services (OMASs).
103
92
  This overrides the current configured values.
@@ -105,7 +94,8 @@ class FullServerConfig(CoreServerConfig):
105
94
  Parameters
106
95
  ----------
107
96
  access_services_body: str
108
- The body of the access services configuration. This should be a string representation of the desired configuration.
97
+ The body of the access services configuration. This should be a string representation of the desired
98
+ configuration.
109
99
 
110
100
  server_name: str, optional
111
101
  The name of the server. If not provided, the default server will be used.
@@ -128,8 +118,9 @@ class FullServerConfig(CoreServerConfig):
128
118
  if server_name is None:
129
119
  server_name = self.server_name
130
120
 
131
- url = (self.admin_command_root + "/servers/" + server_name + "/access-services/" +
132
- access_service_name + "/topic-names/in-topic")
121
+ url = (
122
+ self.admin_command_root + "/servers/" + server_name + "/access-services/" + access_service_name +
123
+ "/topic-names/in-topic")
133
124
  self.make_request("POST", url, new_topic_name)
134
125
  return
135
126
 
@@ -139,8 +130,9 @@ class FullServerConfig(CoreServerConfig):
139
130
  if server_name is None:
140
131
  server_name = self.server_name
141
132
 
142
- url = (self.admin_command_root + "/servers/" + server_name + "/access-services/" +
143
- access_service_name + "/topic-names/out-topic")
133
+ url = (
134
+ self.admin_command_root + "/servers/" + server_name + "/access-services/" + access_service_name +
135
+ "/topic-names/out-topic")
144
136
  self.make_request("POST", url, new_topic_name)
145
137
  return
146
138
 
@@ -204,7 +196,8 @@ class FullServerConfig(CoreServerConfig):
204
196
  if server_name is None:
205
197
  server_name = self.server_name
206
198
 
207
- url = self.admin_command_root + "/servers/" + server_name + "/audit-log-destinations/connection/" + connection_name
199
+ url = (self.admin_command_root + "/servers/" + server_name + "/audit-log-destinations/connection/" +
200
+ connection_name)
208
201
  self.make_request("POST", url, audit_dest_body)
209
202
  return
210
203
 
@@ -406,7 +399,8 @@ class FullServerConfig(CoreServerConfig):
406
399
  validate_name(cohort_name)
407
400
  validate_name(topic_override)
408
401
 
409
- url = self.admin_command_root + "/servers/" + server_name + "/cohorts/" + cohort_name + "/topic-name-override/instances"
402
+ url = (self.admin_command_root + "/servers/" + server_name + "/cohorts/" + cohort_name +
403
+ "/topic-name-override/instances")
410
404
  self.make_request("POST", url, topic_override)
411
405
  return
412
406
 
@@ -434,7 +428,8 @@ class FullServerConfig(CoreServerConfig):
434
428
  validate_name(cohort_name)
435
429
  validate_name(topic_override)
436
430
 
437
- url = self.admin_command_root + "/servers/" + server_name + "/cohorts/" + cohort_name + "/topic-name-override/registration"
431
+ url = (self.admin_command_root + "/servers/" + server_name + "/cohorts/" + cohort_name +
432
+ "/topic-name-override/registration")
438
433
  self.make_request("POST", url, topic_override)
439
434
  return
440
435
 
@@ -461,7 +456,8 @@ class FullServerConfig(CoreServerConfig):
461
456
  validate_name(cohort_name)
462
457
  validate_name(topic_override)
463
458
 
464
- url = self.admin_command_root + "/servers/" + server_name + "/cohorts/" + cohort_name + "/topic-name-override/types"
459
+ url = (self.admin_command_root + "/servers/" + server_name + "/cohorts/" + cohort_name +
460
+ "/topic-name-override/types")
465
461
  self.make_request("POST", url, topic_override)
466
462
  return
467
463
 
@@ -474,8 +470,9 @@ class FullServerConfig(CoreServerConfig):
474
470
  Name of the cohort to be registered.
475
471
  topic_structure : str
476
472
  Topic structure for the cohort. This is a string from an enumerated list.
477
- 'Dedicated Cohort Topics', description='The cohort members use three topics to exchange information. One for
478
- registration requests, one for type validation and one for exchange of instances stored by the cohort members.
473
+ 'Dedicated Cohort Topics', description='The cohort members use three topics to exchange information.
474
+ One for registration requests, one for type validation and one for exchange of instances stored by the
475
+ cohort members.
479
476
  This is the preferred and optimal approach
480
477
  'Single Topic', description='All asynchronous communication between cohort members is via a single topic.
481
478
  This is the original design and may still be used when communicating with back level cohort members.
@@ -706,9 +703,7 @@ class FullServerConfig(CoreServerConfig):
706
703
  if server_name is None:
707
704
  server_name = self.server_name
708
705
  url = f"{self.admin_command_root}/servers/{server_name}/server-url-root-for-caller"
709
- body = {
710
- "urlRoot" : url_root
711
- }
706
+ body = {"urlRoot": url_root}
712
707
  response = self.make_request("POST", url, payload=body)
713
708
  related_code = response.json().get("relatedHTTPCode")
714
709
  if related_code != 200:
@@ -725,7 +720,8 @@ class FullServerConfig(CoreServerConfig):
725
720
  max_page_size : int
726
721
  The maximum page size to set.
727
722
  server_name : str, optional
728
- The name of the server for which to set the maximum page size. If not specified, the default server name will be used.
723
+ The name of the server for which to set the maximum page size. If not specified, the default server name
724
+ will be used.
729
725
 
730
726
  Returns
731
727
  -------
@@ -989,6 +985,7 @@ class FullServerConfig(CoreServerConfig):
989
985
 
990
986
  url = f"{self.admin_command_root}/servers/{server_name}/view-services/{service_url_marker}"
991
987
  self.make_request("POST", url, view_service_body)
988
+
992
989
  # todo - this may not be used anymore - old
993
990
  def set_view_svcs_config(self, view_svcs_config_body: dict, server_name: str = None) -> None:
994
991
  """ Set up the configuration for all the open metadata integration groups. This overrides the current values.
@@ -1071,31 +1068,18 @@ class FullServerConfig(CoreServerConfig):
1071
1068
  url = f"{self.admin_command_root}/servers/{server_name}/integration-groups/configuration/all"
1072
1069
  self.make_request("POST", url, integration_groups_config_body)
1073
1070
 
1074
- # def set_plug_in_repository_connection_from_provider(self, repository_connection: str, server_name: str = None) -> None:
1075
- # if server_name is None:
1076
- # server_name = self.server_name
1077
- # url = f"{self.admin_command_root}/servers/{server_name}/local-repository/mode/plugin-repository/connection"
1078
- # response = self.make_request("POST", url, json= repository_connection)
1079
- # related_code = response.json().get("relatedHTTPCode")
1080
- # if related_code != 200:
1081
- # raise InvalidParameterException(response.content)
1082
- # else:
1083
- # return
1084
-
1085
- #
1086
- #
1087
- # %% Repository configurations
1088
1071
  def set_engine_host_services(self):
1089
1072
  # handles an array of engine list - pass in JSON
1090
1073
 
1091
1074
  pass
1075
+
1092
1076
  def set_integration_daemon_services_configuration(self):
1093
1077
  # pass a json list
1094
1078
  pass
1095
1079
 
1096
- def config_integration_service(self, remote_omag_server: str, remote_omag_platform_url:str,
1097
- service_url_marker: str, integration_service_options: dict,
1098
- connector_configs: list, server_name: str = None) -> None:
1080
+ def config_integration_service(self, remote_omag_server: str, remote_omag_platform_url: str,
1081
+ service_url_marker: str, integration_service_options: dict, connector_configs: list,
1082
+ server_name: str = None) -> None:
1099
1083
 
1100
1084
  if server_name is None:
1101
1085
  server_name = self.server_name
@@ -1109,13 +1093,9 @@ class FullServerConfig(CoreServerConfig):
1109
1093
 
1110
1094
  validate_name(service_url_marker)
1111
1095
 
1112
- request_body = {
1113
- "class": "IntegrationServiceRequestBody",
1114
- "omagserverPlatformRootURL": remote_omag_platform_url,
1115
- "omagserverName": remote_omag_server,
1116
- "integrationServiceOptions": integration_service_options,
1117
- "integrationConnectorConfigs": connector_configs
1118
- }
1096
+ request_body = {"class": "IntegrationServiceRequestBody", "omagserverPlatformRootURL": remote_omag_platform_url,
1097
+ "omagserverName": remote_omag_server, "integrationServiceOptions": integration_service_options,
1098
+ "integrationConnectorConfigs": connector_configs}
1119
1099
 
1120
1100
  url = f"{self.admin_command_root}/servers/{server_name}/integration-services/{service_url_marker}"
1121
1101
  # print(f"URL is : {url}")
@@ -1124,27 +1104,19 @@ class FullServerConfig(CoreServerConfig):
1124
1104
  self.make_request("POST", url, request_body)
1125
1105
  return
1126
1106
 
1127
-
1128
- def config_all_integration_services(self, remote_omag_server: str, remote_omag_platform_url:str,
1129
- integration_service_options: dict,
1130
- connector_configs: dict, server_name: str = None) -> None:
1107
+ def config_all_integration_services(self, remote_omag_server: str, remote_omag_platform_url: str,
1108
+ integration_service_options: dict, connector_configs: dict,
1109
+ server_name: str = None) -> None:
1131
1110
 
1132
1111
  if server_name is None:
1133
1112
  server_name = self.server_name
1134
1113
  validate_name(remote_omag_server)
1135
1114
  validate_url(remote_omag_platform_url)
1136
1115
 
1137
- request_body = {
1138
- "IntegrationConnectorConfigs" : [
1139
- {
1140
- "class": "IntegrationServiceRequestBody",
1141
- "omagserverPlatformRootURL": remote_omag_platform_url,
1142
- "omagserverName": remote_omag_server,
1143
- "integrationServiceOptions": integration_service_options,
1144
- "integrationConnectorConfigs": connector_configs
1145
- }
1146
- ]
1147
- }
1116
+ request_body = {"IntegrationConnectorConfigs": [
1117
+ {"class": "IntegrationServiceRequestBody", "omagserverPlatformRootURL": remote_omag_platform_url,
1118
+ "omagserverName": remote_omag_server, "integrationServiceOptions": integration_service_options,
1119
+ "integrationConnectorConfigs": connector_configs}]}
1148
1120
 
1149
1121
  url = f"{self.admin_command_root}/servers/{server_name}/integration-services"
1150
1122
  print(f"URL is : {url}")
@@ -1152,8 +1124,7 @@ class FullServerConfig(CoreServerConfig):
1152
1124
 
1153
1125
  self.make_request("POST", url, request_body)
1154
1126
 
1155
-
1156
- def clear_integration_service(self, service_url_marker:str, server_name:str = None)-> None:
1127
+ def clear_integration_service(self, service_url_marker: str, server_name: str = None) -> None:
1157
1128
  if server_name is None:
1158
1129
  server_name = self.server_name
1159
1130
  validate_name(service_url_marker)
@@ -1161,19 +1132,18 @@ class FullServerConfig(CoreServerConfig):
1161
1132
  url = f"{self.admin_command_root}/servers/{server_name}/integration-services/{service_url_marker}"
1162
1133
  self.make_request("DELETE", url)
1163
1134
 
1164
- def get_integration_service_config(self, service_url_marker:str, server_name:str = None)-> dict | str:
1135
+ def get_integration_service_config(self, service_url_marker: str, server_name: str = None) -> dict | str:
1165
1136
  if server_name is None:
1166
1137
  server_name = self.server_name
1167
1138
  validate_name(service_url_marker)
1168
1139
  url = f"{self.admin_command_root}/servers/{server_name}/integration-services/{service_url_marker}/configuration"
1169
1140
  response = self.make_request("GET", url)
1170
- return response.json().get("config","No configuration found")
1141
+ return response.json().get("config", "No configuration found")
1171
1142
 
1172
- def get_integration_services_configs(self, server_name: str = None)-> dict | str:
1143
+ def get_integration_services_configs(self, server_name: str = None) -> dict | str:
1173
1144
  if server_name is None:
1174
1145
  server_name = self.server_name
1175
1146
 
1176
1147
  url = f"{self.admin_command_root}/servers/{server_name}/integration-services/configuration"
1177
1148
  response = self.make_request("GET", url)
1178
1149
  return response.json().get("services", "No configuration found")
1179
-