pyegeria 5.3.7.8__py3-none-any.whl → 5.3.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.
pyegeria/_client.py CHANGED
@@ -775,12 +775,13 @@ class Client:
775
775
  """Helper function to create a qualified name for a given type and display name.
776
776
  If present, the local qualifier will be prepended to the qualified name."""
777
777
  EGERIA_LOCAL_QUALIFIER = os.environ.get("EGERIA_LOCAL_QUALIFIER", local_qualifier)
778
- display_name = re.sub(r'\s','-',display_name.strip())
779
- q_name = f"{type}:{display_name}"
778
+ # display_name = re.sub(r'\s','-',display_name.strip()) # This changes spaces between words to -; removing
779
+
780
+ q_name = f"{type}::{display_name.strip()}"
780
781
  if EGERIA_LOCAL_QUALIFIER:
781
- q_name = f"{EGERIA_LOCAL_QUALIFIER}:{q_name}"
782
+ q_name = f"{EGERIA_LOCAL_QUALIFIER}::{q_name}"
782
783
  if version_identifier:
783
- q_name = f"{q_name}:{version_identifier}"
784
+ q_name = f"{q_name}::{version_identifier}"
784
785
  return q_name
785
786
 
786
787
  if __name__ == "__main__":
@@ -47,7 +47,7 @@ console = Console(width=int(EGERIA_WIDTH))
47
47
 
48
48
  @click.command("process-markdown-file", help="Process a markdown file and return the output as a string.")
49
49
  @click.option("--file-path", help="File path to markdown file",
50
- default="glossary_exp.md")
50
+ default="glossary_test1.md")
51
51
  @click.option("--directive", default="display-only", help="How to process the file")
52
52
  @click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use.")
53
53
  @click.option(
@@ -43,7 +43,7 @@ EGERIA_OUTBOX_PATH = os.environ.get("EGERIA_OUTBOX_PATH", "pyegeria/commands/cat
43
43
 
44
44
  @click.command("process_markdown_file", help="Process a markdown file and return the output as a string.")
45
45
  @click.option("--file-path", help="File path to markdown file",
46
- default="glossary_exp.md", required=True, prompt=False)
46
+ default="glossary_test1.md", required=True, prompt=False)
47
47
  @click.option("--directive", default="display", help="How to process the file",
48
48
  type=click.Choice(["display","validate","process"],case_sensitive=False), prompt=False,)
49
49
  @click.option("--server", default=EGERIA_VIEW_SERVER, help="Egeria view server to use.")
@@ -119,14 +119,15 @@ def process_markdown_file(
119
119
  else:
120
120
  # If command is not recognized, keep the block as-is
121
121
  result = None
122
- print(json.dumps(shared_state.get_element_dictionary(), indent=4))
122
+ # print(json.dumps(shared_state.get_element_dictionary(), indent=4))
123
123
  if result:
124
124
  if directive == "process":
125
125
  updated = True
126
126
  final_output.append(result)
127
- print(json.dumps(shared_state.get_element_dictionary(), indent=4))
127
+ # print(json.dumps(shared_state.get_element_dictionary(), indent=4))
128
128
  elif directive == "validate":
129
- print(json.dumps(shared_state.get_element_dictionary(), indent=4))
129
+ pass
130
+ # print(json.dumps(shared_state.get_element_dictionary(), indent=4))
130
131
  elif directive == "process":
131
132
  # Handle errors (skip this block but notify the user)
132
133
  print(f"\n==>\tErrors found while processing command: \'{potential_command}\'\n"
@@ -151,7 +151,7 @@ from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_v
151
151
  )
152
152
  @click.option(
153
153
  "--integration_daemon",
154
- default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
154
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "qs-integration-daemon"),
155
155
  help="Egeria integration daemon to work with",
156
156
  )
157
157
  @click.option(
@@ -161,7 +161,7 @@ from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_v
161
161
  )
162
162
  @click.option(
163
163
  "--view_server",
164
- default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
164
+ default=os.environ.get("EGERIA_VIEW_SERVER", "qs-view-server"),
165
165
  help="Egeria view server to work with",
166
166
  )
167
167
  @click.option(
@@ -171,7 +171,7 @@ from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_v
171
171
  )
172
172
  @click.option(
173
173
  "--engine_host",
174
- default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
174
+ default=os.environ.get("EGERIA_ENGINE_HOST", "qs-engine-host"),
175
175
  help="Egeria engine host to work with",
176
176
  )
177
177
  @click.option(
@@ -2025,16 +2025,11 @@ def tell_integration_daemon(ctx):
2025
2025
  default="all",
2026
2026
  help="Name of connector to refresh or 'all' to refresh all",
2027
2027
  )
2028
- @click.option(
2029
- "--server",
2030
- default="integration-daemon",
2031
- help="Name of the integration server to refresh",
2032
- )
2033
- def refresh_connectors(ctx, server, connector):
2028
+ def refresh_connectors(ctx, connector):
2034
2029
  """Refresh the specified integration connector or ALL connectors if not specified"""
2035
2030
  c = ctx.obj
2036
2031
  refresh_connector(
2037
- connector, server, c.view_server_url, c.view_server, c.userid, c.password
2032
+ connector, c.integration_daemon, c.integration_daemon_urll, c.view_server, c.userid, c.password
2038
2033
  )
2039
2034
 
2040
2035
 
@@ -2045,16 +2040,12 @@ def refresh_connectors(ctx, server, connector):
2045
2040
  default="all",
2046
2041
  help="Name of connector to restart or 'all' to restart all",
2047
2042
  )
2048
- @click.option(
2049
- "--server",
2050
- default="integration-daemon",
2051
- help="Name of the integration server to refresh",
2052
- )
2043
+
2053
2044
  def restart_connectors(ctx, server, connector):
2054
2045
  """Restart the specified integration connector or ALL connectors if not specified"""
2055
2046
  c = ctx.obj
2056
2047
  restart_connector(
2057
- connector, server, c.view_server_url, c.view_server, c.userid, c.password
2048
+ connector, c.integration_daemon, c.integration_daemon_url, c.view_server, c.userid, c.password
2058
2049
  )
2059
2050
 
2060
2051
 
@@ -66,7 +66,7 @@ from pyegeria.commands.tech.list_asset_types import display_asset_types
66
66
  @click.group()
67
67
  @click.option(
68
68
  "--server",
69
- default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
69
+ default=os.environ.get("EGERIA_METADATA_STORE", "qs-metadata-store"),
70
70
  help="Egeria metadata store to work with",
71
71
  )
72
72
  @click.option(
@@ -76,7 +76,7 @@ from pyegeria.commands.tech.list_asset_types import display_asset_types
76
76
  )
77
77
  @click.option(
78
78
  "--integration_daemon",
79
- default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
79
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "qs-integration-daemon"),
80
80
  help="Egeria integration daemon to work with",
81
81
  )
82
82
  @click.option(
@@ -86,7 +86,7 @@ from pyegeria.commands.tech.list_asset_types import display_asset_types
86
86
  )
87
87
  @click.option(
88
88
  "--view_server",
89
- default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
89
+ default=os.environ.get("EGERIA_VIEW_SERVER", "qs-view-server"),
90
90
  help="Egeria view server to work with",
91
91
  )
92
92
  @click.option(
@@ -96,7 +96,7 @@ from pyegeria.commands.tech.list_asset_types import display_asset_types
96
96
  )
97
97
  @click.option(
98
98
  "--engine_host",
99
- default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
99
+ default=os.environ.get("EGERIA_ENGINE_HOST", "qs-engine-host"),
100
100
  help="Egeria engine host to work with",
101
101
  )
102
102
  @click.option(
@@ -47,7 +47,7 @@ from pyegeria.commands.my.todo_actions import (
47
47
  @click.group()
48
48
  @click.option(
49
49
  "--server",
50
- default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
50
+ default=os.environ.get("EGERIA_METADATA_STORE", "qs-metadata-store"),
51
51
  help="Egeria metadata store to work with",
52
52
  )
53
53
  @click.option(
@@ -57,7 +57,7 @@ from pyegeria.commands.my.todo_actions import (
57
57
  )
58
58
  @click.option(
59
59
  "--integration_daemon",
60
- default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
60
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "qs-integration-daemon"),
61
61
  help="Egeria integration daemon to work with",
62
62
  )
63
63
  @click.option(
@@ -67,7 +67,7 @@ from pyegeria.commands.my.todo_actions import (
67
67
  )
68
68
  @click.option(
69
69
  "--view_server",
70
- default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
70
+ default=os.environ.get("EGERIA_VIEW_SERVER", "qs-view-server"),
71
71
  help="Egeria view server to work with",
72
72
  )
73
73
  @click.option(
@@ -77,7 +77,7 @@ from pyegeria.commands.my.todo_actions import (
77
77
  )
78
78
  @click.option(
79
79
  "--engine_host",
80
- default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
80
+ default=os.environ.get("EGERIA_ENGINE_HOST", "qs-engine-host"),
81
81
  help="Egeria engine host to work with",
82
82
  )
83
83
  @click.option(
@@ -63,7 +63,7 @@ from pyegeria.commands.ops.restart_integration_daemon import restart_connector
63
63
  @click.group()
64
64
  @click.option(
65
65
  "--server",
66
- default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
66
+ default=os.environ.get("EGERIA_METADATA_STORE", "qs-metadata-store"),
67
67
  help="Egeria metadata store to work with",
68
68
  )
69
69
  @click.option(
@@ -73,7 +73,7 @@ from pyegeria.commands.ops.restart_integration_daemon import restart_connector
73
73
  )
74
74
  @click.option(
75
75
  "--integration_daemon",
76
- default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
76
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "qs-integration-daemon"),
77
77
  help="Egeria integration daemon to work with",
78
78
  )
79
79
  @click.option(
@@ -83,7 +83,7 @@ from pyegeria.commands.ops.restart_integration_daemon import restart_connector
83
83
  )
84
84
  @click.option(
85
85
  "--view_server",
86
- default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
86
+ default=os.environ.get("EGERIA_VIEW_SERVER", "qs-view-server"),
87
87
  help="Egeria view server to work with",
88
88
  )
89
89
  @click.option(
@@ -93,7 +93,7 @@ from pyegeria.commands.ops.restart_integration_daemon import restart_connector
93
93
  )
94
94
  @click.option(
95
95
  "--engine_host",
96
- default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
96
+ default=os.environ.get("EGERIA_ENGINE_HOST", "qs-engine-host"),
97
97
  help="Egeria engine host to work with",
98
98
  )
99
99
  @click.option(
@@ -449,16 +449,12 @@ def integration_daemon(ctx):
449
449
  default="all",
450
450
  help="Name of connector to refresh or 'all' to refresh all",
451
451
  )
452
- @click.option(
453
- "--server",
454
- default="integration-daemon",
455
- help="Name of the integration server to refresh",
456
- )
457
- def refresh_connectors(ctx, server, connector):
452
+
453
+ def refresh_connectors(ctx, connector):
458
454
  """Refresh the specified integration connector or ALL connectors if not specified"""
459
455
  c = ctx.obj
460
456
  refresh_connector(
461
- connector, server, c.view_server_url, c.view_server, c.userid, c.password
457
+ connector, c.integration_daemon, c.integration_daemon_url, c.view_server, c.userid, c.password
462
458
  )
463
459
 
464
460
 
@@ -469,16 +465,11 @@ def refresh_connectors(ctx, server, connector):
469
465
  default="all",
470
466
  help="Name of connector to restart or 'all' to restart all",
471
467
  )
472
- @click.option(
473
- "--server",
474
- default="integration-daemon",
475
- help="Name of the integration server to restart",
476
- )
477
- def restart_connectors(ctx, server, connector):
468
+ def restart_connectors(ctx, connector):
478
469
  """Restart the specified integration connector or ALL connectors if not specified"""
479
470
  c = ctx.obj
480
471
  restart_connector(
481
- connector, server, c.view_server_url, c.view_server, c.userid, c.password
472
+ connector, c.integration_daemon, c.integration_daemon_url, c.view_server, c.userid, c.password
482
473
  )
483
474
 
484
475
 
@@ -60,7 +60,7 @@ from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_v
60
60
  @click.group()
61
61
  @click.option(
62
62
  "--server",
63
- default=os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store"),
63
+ default=os.environ.get("EGERIA_METADATA_STORE", "qs-metadata-store"),
64
64
  help="Egeria metadata store to work with",
65
65
  )
66
66
  @click.option(
@@ -70,7 +70,7 @@ from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_v
70
70
  )
71
71
  @click.option(
72
72
  "--integration_daemon",
73
- default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon"),
73
+ default=os.environ.get("EGERIA_INTEGRATION_DAEMON", "qs-integration-daemon"),
74
74
  help="Egeria integration daemon to work with",
75
75
  )
76
76
  @click.option(
@@ -80,7 +80,7 @@ from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_v
80
80
  )
81
81
  @click.option(
82
82
  "--view_server",
83
- default=os.environ.get("EGERIA_VIEW_SERVER", "view-server"),
83
+ default=os.environ.get("EGERIA_VIEW_SERVER", "qs-view-server"),
84
84
  help="Egeria view server to work with",
85
85
  )
86
86
  @click.option(
@@ -90,7 +90,7 @@ from pyegeria.commands.tech.list_valid_metadata_values import display_metadata_v
90
90
  )
91
91
  @click.option(
92
92
  "--engine_host",
93
- default=os.environ.get("EGERIA_ENGINE_HOST", "engine-host"),
93
+ default=os.environ.get("EGERIA_ENGINE_HOST", "qs-engine-host"),
94
94
  help="Egeria engine host to work with",
95
95
  )
96
96
  @click.option(
@@ -63,7 +63,7 @@ def add_catalog_target(
63
63
  @click.argument("relationship-guid")
64
64
  @click.pass_context
65
65
  def remove_catalog_target(ctx, relationship_guid: str):
66
- """Remove the catalog target specified by the relationship guidr"""
66
+ """Remove the catalog target specified by the relationship guid"""
67
67
  try:
68
68
  c = ctx.obj
69
69
  a_client = AutomatedCuration(
@@ -129,7 +129,7 @@ def refresh_gov_eng_config(ctx, engine_host_guid: str):
129
129
 
130
130
  @click.command("start")
131
131
  @click.pass_context
132
- @click.option("--server", default="simple-metadata-store", help="OMAG Server to start")
132
+ @click.option("--server", default="qs-metadata-store", help="OMAG Server to start")
133
133
  def start_server(ctx, server):
134
134
  """Start or restart an engine-host from its known configuration"""
135
135
  c = ctx.obj
@@ -18,14 +18,14 @@ from pyegeria._exceptions import (
18
18
  print_exception_response,
19
19
  )
20
20
 
21
- EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
21
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "qs-metadata-store")
22
22
  EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
23
23
  EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
24
- EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
24
+ EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "qs-view-server")
25
25
  EGERIA_VIEW_SERVER_URL = os.environ.get(
26
26
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
27
27
  )
28
- EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon")
28
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "qs-integration-daemon")
29
29
  EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
30
30
  "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
31
31
  )
@@ -44,7 +44,7 @@ def refresh_connector(
44
44
  statement = "ALL connectors"
45
45
  else:
46
46
  statement = f"the {connector} "
47
- server = "integration_daemon" if server is None else server
47
+ server = "qs-integration_daemon" if server is None else server
48
48
 
49
49
  s_client.refresh_integration_connectors(
50
50
  connector_name=connector, server_guid=None, display_name=server
@@ -18,14 +18,14 @@ from pyegeria._exceptions import (
18
18
  print_exception_response,
19
19
  )
20
20
 
21
- EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
21
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "qs-metadata-store")
22
22
  EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
23
23
  EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
24
- EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
24
+ EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "qs-view-server")
25
25
  EGERIA_VIEW_SERVER_URL = os.environ.get(
26
26
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
27
27
  )
28
- EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon")
28
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "qs-integration-daemon")
29
29
  EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
30
30
  "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
31
31
  )
@@ -25,14 +25,14 @@ from pyegeria._exceptions import (
25
25
  print_exception_response,
26
26
  )
27
27
 
28
- EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "active-metadata-store")
28
+ EGERIA_METADATA_STORE = os.environ.get("EGERIA_METADATA_STORE", "qs-metadata-store")
29
29
  EGERIA_KAFKA_ENDPOINT = os.environ.get("KAFKA_ENDPOINT", "localhost:9092")
30
30
  EGERIA_PLATFORM_URL = os.environ.get("EGERIA_PLATFORM_URL", "https://localhost:9443")
31
- EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "view-server")
31
+ EGERIA_VIEW_SERVER = os.environ.get("EGERIA_VIEW_SERVER", "qs-view-server")
32
32
  EGERIA_VIEW_SERVER_URL = os.environ.get(
33
33
  "EGERIA_VIEW_SERVER_URL", "https://localhost:9443"
34
34
  )
35
- EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "integration-daemon")
35
+ EGERIA_INTEGRATION_DAEMON = os.environ.get("EGERIA_INTEGRATION_DAEMON", "qs-integration-daemon")
36
36
  EGERIA_INTEGRATION_DAEMON_URL = os.environ.get(
37
37
  "EGERIA_INTEGRATION_DAEMON_URL", "https://localhost:9443"
38
38
  )
@@ -556,7 +556,7 @@ class GlossaryBrowser(Client):
556
556
 
557
557
  async def _async_get_glossary_by_guid(
558
558
  self, glossary_guid: str, effective_time: str = None, output_format: str = "JSON"
559
- ) -> dict:
559
+ ) -> dict|str:
560
560
  """Retrieves information about a glossary
561
561
  Parameters
562
562
  ----------
@@ -574,9 +574,9 @@ class GlossaryBrowser(Client):
574
574
 
575
575
  Returns
576
576
  -------
577
- dict
578
- The glossary definition associated with the glossary_guid
579
-
577
+ dict | str
578
+ if output format is JSON: The glossary definition associated with the glossary_guid
579
+ if output format is MD: A markdown string with the same information.
580
580
  Raises
581
581
  ------
582
582
  InvalidParameterException
@@ -1194,107 +1194,6 @@ class GlossaryManager(GlossaryBrowser):
1194
1194
 
1195
1195
  return response
1196
1196
 
1197
- async def _async_add_data_field_to_term(
1198
- self, glossary_term_guid: str, body: dict
1199
- ) -> None:
1200
- """Add the data field values classification to a glossary term
1201
-
1202
- Async Version.
1203
-
1204
- Parameters
1205
- ----------
1206
- glossary_guid : str
1207
- Unique identifier for the glossary category to retrieve terms from.
1208
- glossary_term_guid: str
1209
- Unique identifier for the source glossary term.
1210
- body: dict
1211
- Body containing information about the data field to add
1212
-
1213
-
1214
- Returns
1215
- -------
1216
- None
1217
-
1218
- Raises
1219
- ------
1220
- InvalidParameterException
1221
- If the client passes incorrect parameters on the request - such as bad URLs or invalid values.
1222
- PropertyServerException
1223
- Raised by the server when an issue arises in processing a valid request.
1224
- NotAuthorizedException
1225
- The principle specified by the user_id does not have authorization for the requested action.
1226
- Notes
1227
- -----
1228
- Body is of the structure:
1229
-
1230
- {
1231
- "class" : "ClassificationRequestBody",
1232
- "properties" :
1233
- {
1234
- "class" : "DataFieldValuesProperties",
1235
- "defaultValue" : "Add default value here",
1236
- "sampleValues" : [ "Sample Value 1", "Sample Value 2"],
1237
- "dataPattern" : ["add data pattern here"],
1238
- "namePattern" : ["add column pattern here"]
1239
- }
1240
- }
1241
- """
1242
-
1243
- validate_guid(glossary_term_guid)
1244
-
1245
- url = (
1246
- f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/glossary-manager/glossaries/"
1247
- f"terms/{glossary_term_guid}/is-data-field"
1248
- )
1249
-
1250
- await self._async_make_request("POST", url, body)
1251
- return
1252
-
1253
- def add_data_field_to_term(self, glossary_term_guid: str, body: dict) -> None:
1254
- """Add the data field values classification to a glossary term
1255
-
1256
- Parameters
1257
- ----------
1258
- glossary_term_guid: str
1259
- Unique identifier for the source glossary term.
1260
- body: dict
1261
- Body containing information about the data field to add
1262
-
1263
-
1264
- Returns
1265
- -------
1266
- None
1267
-
1268
- Raises
1269
- ------
1270
- InvalidParameterException
1271
- If the client passes incorrect parameters on the request - such as bad URLs or invalid values.
1272
- PropertyServerException
1273
- Raised by the server when an issue arises in processing a valid request.
1274
- NotAuthorizedException
1275
- The principle specified by the user_id does not have authorization for the requested action.
1276
- Notes
1277
- -----
1278
- Body is of the structure:
1279
-
1280
- {
1281
- "class" : "ClassificationRequestBody",
1282
- "properties" :
1283
- {
1284
- "class" : "DataFieldValuesProperties",
1285
- "defaultValue" : "Add default value here",
1286
- "sampleValues" : [ "Sample Value 1", "Sample Value 2"],
1287
- "dataPattern" : ["add data pattern here"],
1288
- "namePattern" : ["add column pattern here"]
1289
- }
1290
- }
1291
- """
1292
- loop = asyncio.get_event_loop()
1293
- loop.run_until_complete(
1294
- self._async_add_data_field_to_term(glossary_term_guid, body)
1295
- )
1296
-
1297
- return
1298
1197
 
1299
1198
  async def _async_add_term_to_category(
1300
1199
  self, glossary_term_guid: str, glossary_category_guid: str