pyegeria 1.5.1.1.36__py3-none-any.whl → 1.5.1.1.37__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.
@@ -65,7 +65,7 @@ class RuntimeManager(Client):
65
65
  self,
66
66
  cohort_name: str,
67
67
  server_guid: str = None,
68
- server_qualified_name: str = None,
68
+ qualified_name: str = None,
69
69
  ) -> None:
70
70
  """A new server needs to register the metadataCollectionId for its metadata repository with the other servers
71
71
  in the open metadata repository. It only needs to do this once and uses a timestamp to record that the
@@ -78,7 +78,7 @@ class RuntimeManager(Client):
78
78
  ----------
79
79
  server_guid : str, default = None
80
80
  Identity of the server to act on. If not specified, server_name must be.
81
- server_qualified_name: str, default = None
81
+ qualified_name: str, default = None
82
82
  Unique name of server to act on. If not specified, server_guid must be.
83
83
  cohort_name : str
84
84
  Name of the cohort to join
@@ -94,7 +94,7 @@ class RuntimeManager(Client):
94
94
  UserNotAuthorizedException
95
95
 
96
96
  """
97
- server_guid = self.__get_guid__(server_guid, server_qualified_name)
97
+ server_guid = self.__get_guid__(server_guid, qualified_name=qualified_name)
98
98
  url = (
99
99
  f"{self.runtime_command_root}/cohort-members/"
100
100
  f"{server_guid}/cohorts/{cohort_name}/connect"
@@ -106,7 +106,7 @@ class RuntimeManager(Client):
106
106
  self,
107
107
  cohort_name: str,
108
108
  server_guid: str = None,
109
- server_qualified_name: str = None,
109
+ qualified_name: str = None,
110
110
  ) -> None:
111
111
  """A new server needs to register the metadataCollectionId for its metadata repository with the other servers
112
112
  in the open metadata repository. It only needs to do this once and uses a timestamp to record that the
@@ -119,7 +119,7 @@ class RuntimeManager(Client):
119
119
  ----------
120
120
  server_guid : str, default = None
121
121
  Identity of the server to act on. If not specified, server_name must be.
122
- server_qualified_name: str, default = None
122
+ qualified_name: str, default = None
123
123
  Unique name of server to act on. If not specified, server_guid must be.
124
124
  cohort_name: str
125
125
  Name of the cohort to join
@@ -137,9 +137,7 @@ class RuntimeManager(Client):
137
137
  """
138
138
  loop = asyncio.get_event_loop()
139
139
  loop.run_until_complete(
140
- self._async_connect_to_cohort(
141
- cohort_name, server_guid, server_qualified_name
142
- )
140
+ self._async_connect_to_cohort(cohort_name, server_guid, qualified_name)
143
141
  )
144
142
  return
145
143
 
@@ -147,7 +145,7 @@ class RuntimeManager(Client):
147
145
  self,
148
146
  cohort_name: str,
149
147
  server_guid: str = None,
150
- server_qualified_name: str = None,
148
+ qualified_name: str = None,
151
149
  ) -> None:
152
150
  """Disconnect communications from a specific cohort. Async version.
153
151
 
@@ -157,7 +155,7 @@ class RuntimeManager(Client):
157
155
  ----------
158
156
  server_guid : str, default = None
159
157
  Identity of the server to act on. If not specified, server_name must be.
160
- server_qualified_name: str, default = None
158
+ qualified_name: str, default = None
161
159
  Unique name of server to act on. If not specified, server_guid must be.
162
160
  cohort_name : str
163
161
  Name of the cohort to join
@@ -173,7 +171,7 @@ class RuntimeManager(Client):
173
171
  UserNotAuthorizedException
174
172
 
175
173
  """
176
- server_guid = self.__get_guid__(server_guid, server_qualified_name)
174
+ server_guid = self.__get_guid__(server_guid, qualified_name=qualified_name)
177
175
  url = (
178
176
  f"{self.runtime_command_root}/runtime-manager/cohort-members/"
179
177
  f"{server_guid}/cohorts/{cohort_name}/disconnect"
@@ -185,7 +183,7 @@ class RuntimeManager(Client):
185
183
  self,
186
184
  cohort_name: str,
187
185
  server_guid: str = None,
188
- server_qualified_name: str = None,
186
+ qualified_name: str = None,
189
187
  ) -> None:
190
188
  """Disconnect communications from a specific cohort.
191
189
 
@@ -195,7 +193,7 @@ class RuntimeManager(Client):
195
193
  ----------
196
194
  server_guid : str, default = None
197
195
  Identity of the server to act on. If not specified, server_name must be.
198
- server_qualified_name: str, default = None
196
+ qualified_name: str, default = None
199
197
  Unique name of server to act on. If not specified, server_guid must be.
200
198
  cohort_name: str
201
199
  Name of the cohort to join
@@ -213,9 +211,7 @@ class RuntimeManager(Client):
213
211
  """
214
212
  loop = asyncio.get_event_loop()
215
213
  loop.run_until_complete(
216
- self._async_disconnect_from_cohort(
217
- cohort_name, server_guid, server_qualified_name
218
- )
214
+ self._async_disconnect_from_cohort(cohort_name, server_guid, qualified_name)
219
215
  )
220
216
  return
221
217
 
@@ -223,7 +219,7 @@ class RuntimeManager(Client):
223
219
  self,
224
220
  cohort_name: str,
225
221
  server_guid: str = None,
226
- server_qualified_name: str = None,
222
+ qualified_name: str = None,
227
223
  ) -> None:
228
224
  """Unregister from a specific cohort and disconnect from cohort communications. Async version.
229
225
 
@@ -233,7 +229,7 @@ class RuntimeManager(Client):
233
229
  ----------
234
230
  server_guid : str, default = None
235
231
  Identity of the server to act on. If not specified, server_name must be.
236
- server_qualified_name: str, default = None
232
+ qualified_name: str, default = None
237
233
  Unique name of server to act on. If not specified, server_guid must be.
238
234
  cohort_name : str
239
235
  Name of the cohort to join
@@ -249,7 +245,7 @@ class RuntimeManager(Client):
249
245
  UserNotAuthorizedException
250
246
 
251
247
  """
252
- server_guid = self.__get_guid__(server_guid, server_qualified_name)
248
+ server_guid = self.__get_guid__(server_guid, qualified_name=qualified_name)
253
249
  url = (
254
250
  f"{self.runtime_command_root}/cohort-members/"
255
251
  f"{server_guid}/cohorts/{cohort_name}/unregister"
@@ -261,7 +257,7 @@ class RuntimeManager(Client):
261
257
  self,
262
258
  cohort_name: str,
263
259
  server_guid: str = None,
264
- server_qualified_name: str = None,
260
+ qualified_name: str = None,
265
261
  ) -> None:
266
262
  """Unregister from a specific cohort and disconnect from cohort communications.
267
263
  https://egeria-project.org/concepts/cohort-member/
@@ -270,7 +266,7 @@ class RuntimeManager(Client):
270
266
  ----------
271
267
  server_guid : str, default = None
272
268
  Identity of the server to act on. If not specified, server_name must be.
273
- server_qualified_name: str, default = None
269
+ qualified_name: str, default = None
274
270
  Unique name of server to act on. If not specified, server_guid must be.
275
271
  cohort_name: str
276
272
  Name of the cohort to join
@@ -288,9 +284,7 @@ class RuntimeManager(Client):
288
284
  """
289
285
  loop = asyncio.get_event_loop()
290
286
  loop.run_until_complete(
291
- self._async_disconnect_from_cohort(
292
- cohort_name, server_guid, server_qualified_name
293
- )
287
+ self._async_disconnect_from_cohort(cohort_name, server_guid, qualified_name)
294
288
  )
295
289
  return
296
290
 
@@ -302,24 +296,28 @@ class RuntimeManager(Client):
302
296
  self,
303
297
  gov_engine_name: str = None,
304
298
  server_guid: str = None,
305
- server_name: str = None,
299
+ display_name: str = None,
300
+ qualified_name: str = None,
306
301
  ) -> None:
307
302
  """Request that the governance engine refresh its configuration by calling the metadata server. This request is
308
303
  useful if the metadata server has an outage, particularly while the governance server is initializing.
309
- This request just ensures that the latest configuration is in use. Async version.
304
+ This request just ensures that the latest configuration is in use. If gov_engine_name is None, all engines
305
+ will be refreshed. Async version.
310
306
 
311
307
  https://egeria-project.org/concepts/governance-engine-definition/
312
308
 
313
309
  Parameters
314
310
  ----------
311
+ gov_engine_name: str, default = None
312
+ If None, then all engines will be refreshed - this is the normal case. If an engine is specified only this
313
+ engine will be refreshed.
315
314
  server_guid : str, default = None
316
- Identity of the server to act on. If not specified, server_name must be.
317
- server_name: str, default = None
318
- Name of server to act on. If not specified, server_guid must be.
319
- server_name: str, opt, default is None.
320
- Identity of the server to act on. Either the server_guid or server_name must be provided.
321
- gov_engine_name : str, Opt
322
- Name of the governance engine to refresh. If None, then all governance engines will be refreshed.
315
+ Identity of the server to act on. If not specified, qualified_name or display_name must be.
316
+ display_name: str, default = None
317
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
318
+ qualified_name: str, opt, default is None.
319
+ Identity of the server to act on. Either the server_guid , qualified_name, or server_name must
320
+ be provided.
323
321
 
324
322
  Returns
325
323
  -------
@@ -332,11 +330,19 @@ class RuntimeManager(Client):
332
330
  UserNotAuthorizedException
333
331
 
334
332
  """
335
- server_guid = self.__get_guid__(server_guid, server_name, "name")
336
- url = (
337
- f"{self.runtime_command_root}/engine-hosts/"
338
- f"{server_guid}/governance_engines/{gov_engine_name}/refresh-config"
333
+ server_guid = self.__get_guid__(
334
+ server_guid, display_name, "name", qualified_name, tech_type="Engine Host"
339
335
  )
336
+ if gov_engine_name is None:
337
+ url = (
338
+ f"{self.runtime_command_root}/engine-hosts/"
339
+ f"{server_guid}/governance-engines/refresh-config"
340
+ )
341
+ else:
342
+ url = (
343
+ f"{self.runtime_command_root}/engine-hosts/"
344
+ f"{server_guid}/governance-engines/{gov_engine_name}/refresh-config"
345
+ )
340
346
  await self._async_make_request("GET", url)
341
347
  return
342
348
 
@@ -344,22 +350,28 @@ class RuntimeManager(Client):
344
350
  self,
345
351
  gov_engine_name: str = None,
346
352
  server_guid: str = None,
347
- server_name: str = None,
353
+ display_name: str = None,
354
+ qualified_name: str = None,
348
355
  ) -> None:
349
356
  """Request that the governance engine refresh its configuration by calling the metadata server. This request is
350
357
  useful if the metadata server has an outage, particularly while the governance server is initializing.
351
- This request just ensures that the latest configuration is in use.
358
+ This request just ensures that the latest configuration is in use. If gov_engine_name is None, all engines
359
+ will be refreshed. Async version.
352
360
 
353
361
  https://egeria-project.org/concepts/governance-engine-definition/
354
362
 
355
363
  Parameters
356
364
  ----------
365
+ gov_engine_name: str, default = None
366
+ If None, then all engines will be refreshed - this is the normal case. If an engine is specified only this
367
+ engine will be refreshed.
357
368
  server_guid : str, default = None
358
- Identity of the server to act on. If not specified, server_name must be.
359
- server_name: str, default = None
360
- Name of server to act on. If not specified, server_guid must be.
361
- gov_engine_name : str
362
- Name of the governance engine to refresh. If None, then all governance engines will be refreshed.
369
+ Identity of the server to act on. If not specified, qualified_name or display_name must be.
370
+ display_name: str, default = None
371
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
372
+ qualified_name: str, opt, default is None.
373
+ Identity of the server to act on. Either the server_guid , qualified_name, or server_name must
374
+ be provided.
363
375
 
364
376
  Returns
365
377
  -------
@@ -375,7 +387,7 @@ class RuntimeManager(Client):
375
387
  loop = asyncio.get_event_loop()
376
388
  loop.run_until_complete(
377
389
  self._async_refresh_gov_eng_config(
378
- gov_engine_name, server_guid, server_name
390
+ gov_engine_name, server_guid, display_name, qualified_name
379
391
  )
380
392
  )
381
393
  return
@@ -384,7 +396,11 @@ class RuntimeManager(Client):
384
396
  # Integration Connector Methods
385
397
  #
386
398
  async def _async_get_integ_connector_config_properties(
387
- self, connector_name: str, server_guid: str = None, server_name: str = None
399
+ self,
400
+ connector_name: str,
401
+ server_guid: str = None,
402
+ display_name: str = None,
403
+ qualified_name: str = None,
388
404
  ) -> dict | str:
389
405
  """Retrieve the configuration properties of the named integration connector running in the integration daemon.
390
406
  Async version.
@@ -394,9 +410,11 @@ class RuntimeManager(Client):
394
410
  Parameters
395
411
  ----------
396
412
  server_guid : str, default = None
397
- Identity of the server to act on. If not specified, server_name must be.
398
- server_name: str, default = None
399
- Name of server to act on. If not specified, server_guid must be.
413
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
414
+ display_name: str, default = None
415
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
416
+ qualified_name: str, default = None
417
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
400
418
  connector_name : str
401
419
  Name of the integration connector to retrieve properties for.
402
420
 
@@ -412,7 +430,11 @@ class RuntimeManager(Client):
412
430
 
413
431
  """
414
432
  server_guid = self.__get_guid__(
415
- server_guid, server_name, "qualifiedName", "Integration Daemon"
433
+ server_guid,
434
+ display_name,
435
+ "qualifiedName",
436
+ qualified_name,
437
+ "Integration Daemon",
416
438
  )
417
439
  url = (
418
440
  f"{self.runtime_command_root}/integration-daemons/"
@@ -422,7 +444,11 @@ class RuntimeManager(Client):
422
444
  return response.json().get("properties", "No pproperties found")
423
445
 
424
446
  def get_integ_connector_config_properties(
425
- self, connector_name: str, server_guid: str = None, server_name: str = None
447
+ self,
448
+ connector_name: str,
449
+ server_guid: str = None,
450
+ display_name: str = None,
451
+ qualified_name: str = None,
426
452
  ) -> dict | str:
427
453
  """Retrieve the configuration properties of the named integration connector running in the integration daemon.
428
454
  Async version.
@@ -431,12 +457,14 @@ class RuntimeManager(Client):
431
457
 
432
458
  Parameters
433
459
  ----------
434
- server_guid : str, default = None
435
- Identity of the server to act on. If not specified, server_name must be.
436
- server_name: str, default = None
437
- Name of server to act on. If not specified, server_guid must be.
438
460
  connector_name : str
439
461
  Name of the integration connector to retrieve properties for.
462
+ server_guid : str, default = None
463
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
464
+ display_name: str, default = None
465
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
466
+ qualified_name: str, default = None
467
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
440
468
  Returns
441
469
  -------
442
470
  None
@@ -451,17 +479,18 @@ class RuntimeManager(Client):
451
479
  loop = asyncio.get_event_loop()
452
480
  response = loop.run_until_complete(
453
481
  self._async_get_integ_connector_config_properties(
454
- connector_name, server_guid, server_name
482
+ connector_name, server_guid, display_name, qualified_name
455
483
  )
456
484
  )
457
485
  return response
458
486
 
459
- async def _async_update_connector_connection(
487
+ async def _async_update_connector_configuration(
460
488
  self,
461
- connector_name: str,
489
+ connector_name: str = None,
462
490
  server_guid: str = None,
463
- server_name: str = None,
464
- merge_update: bool = False,
491
+ display_name: str = None,
492
+ qualified_name: str = None,
493
+ merge_update: bool = True,
465
494
  config_properties: dict = None,
466
495
  ) -> None:
467
496
  """Update the configuration properties of the integration connectors, or specific integration connector
@@ -472,12 +501,15 @@ class RuntimeManager(Client):
472
501
 
473
502
  Parameters
474
503
  ----------
504
+ connector_name : str, default = None
505
+ Name of the integration connector to update properties for. If none, all connectors will be updated.
475
506
  server_guid : str, default = None
476
- Identity of the server to act on. If not specified, server_name must be.
477
- server_name: str, default = None
478
- Name of server to act on. If not specified, server_guid must be.
479
- connector_name : str
480
- Name of the integration connector to retrieve properties for.
507
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
508
+ display_name: str, default = None
509
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
510
+ qualified_name: str, default = None
511
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
512
+
481
513
  merge_update : bool, optional, default = False
482
514
  Specifies whether properties should be over-written or completely replace existing properties. If False
483
515
  the values will be replaced; if True, they will be merged.
@@ -496,11 +528,15 @@ class RuntimeManager(Client):
496
528
 
497
529
  """
498
530
  server_guid = self.__get_guid__(
499
- server_guid, server_name, "qualifiedName", "Connection"
531
+ server_guid,
532
+ display_name,
533
+ "qualifiedName",
534
+ qualified_name,
535
+ "Integration Daemon",
500
536
  )
501
537
  url = (
502
538
  f"{self.runtime_command_root}/integration-daemons/"
503
- f"{server_guid}/integration-connectors/{connector_name}/configuration-properties"
539
+ f"{server_guid}/integration-connectors/configuration-properties"
504
540
  )
505
541
 
506
542
  body = {
@@ -509,14 +545,15 @@ class RuntimeManager(Client):
509
545
  "mergeUpdate": merge_update,
510
546
  "configurationProperties": config_properties,
511
547
  }
512
- await self._async_make_request("POST", url, body)
548
+ await self._async_make_request("POST", url, body_slimmer(body))
513
549
  return
514
550
 
515
- def update_connector_connection(
551
+ def update_connector_configuration(
516
552
  self,
517
553
  connector_name: str,
518
554
  server_guid: str = None,
519
- server_name: str = None,
555
+ display_name: str = None,
556
+ qualified_name: str = None,
520
557
  merge_update: bool = False,
521
558
  config_properties: dict = None,
522
559
  ) -> None:
@@ -528,9 +565,11 @@ class RuntimeManager(Client):
528
565
  Parameters
529
566
  ----------
530
567
  server_guid : str, default = None
531
- Identity of the server to act on. If not specified, server_name must be.
532
- server_name: str, default = None
533
- Name of server to act on. If not specified, server_guid must be.
568
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
569
+ display_name: str, default = None
570
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
571
+ qualified_name: str, default = None
572
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
534
573
  connector_name : str
535
574
  Name of the integration connector to retrieve properties for.
536
575
  merge_update : bool, optional, default = False
@@ -552,10 +591,11 @@ class RuntimeManager(Client):
552
591
  """
553
592
  loop = asyncio.get_event_loop()
554
593
  loop.run_until_complete(
555
- self._async_update_connector_connection(
594
+ self._async_update_connector_configuration(
556
595
  connector_name,
557
596
  server_guid,
558
- server_name,
597
+ display_name,
598
+ qualified_name,
559
599
  merge_update,
560
600
  config_properties,
561
601
  )
@@ -567,7 +607,8 @@ class RuntimeManager(Client):
567
607
  connector_name: str,
568
608
  endpoint_address: str,
569
609
  server_guid: str = None,
570
- server_name: str = None,
610
+ display_name: str = None,
611
+ qualified_name: str = None,
571
612
  ) -> None:
572
613
  """Update the endpoint network address for a specific integration connector. Typically used for discovery.
573
614
  This update is in memory and will not persist over a server restart. Async version.
@@ -577,9 +618,11 @@ class RuntimeManager(Client):
577
618
  Parameters
578
619
  ----------
579
620
  server_guid : str, default = None
580
- Identity of the server to act on. If not specified, server_name must be.
581
- server_name: str, default = None
582
- Name of server to act on. If not specified, server_guid must be.
621
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
622
+ display_name: str, default = None
623
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
624
+ qualified_name: str, default = None
625
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
583
626
  connector_name : str
584
627
  Name of the integration connector to retrieve properties for.
585
628
  endpoint_address : str
@@ -598,7 +641,7 @@ class RuntimeManager(Client):
598
641
 
599
642
  """
600
643
  server_guid = self.__get_guid__(
601
- server_guid, server_name, "qualifiedName", "Connection"
644
+ server_guid, display_name, "qualifiedName", qualified_name, "Connection"
602
645
  )
603
646
  url = (
604
647
  f"{self.runtime_command_root}/integration-daemons/"
@@ -617,7 +660,8 @@ class RuntimeManager(Client):
617
660
  connector_name: str,
618
661
  endpoint_address: str,
619
662
  server_guid: str = None,
620
- server_name: str = None,
663
+ display_name: str = None,
664
+ qualified_name: str = None,
621
665
  ) -> None:
622
666
  """Update the endpoint network address for a specific integration connector. Typically used for discovery.
623
667
  This update is in memory and will not persist over a server restart. Async version.
@@ -627,9 +671,11 @@ class RuntimeManager(Client):
627
671
  Parameters
628
672
  ----------
629
673
  server_guid : str, default = None
630
- Identity of the server to act on. If not specified, server_name must be.
631
- server_name: str, default = None
632
- Name of server to act on. If not specified, server_guid must be.
674
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
675
+ display_name: str, default = None
676
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
677
+ qualified_name: str, default = None
678
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
633
679
  connector_name : str
634
680
  Name of the integration connector to retrieve properties for.
635
681
  endpoint_address : str
@@ -650,7 +696,11 @@ class RuntimeManager(Client):
650
696
  loop = asyncio.get_event_loop()
651
697
  loop.run_until_complete(
652
698
  self._async_update_endpoint_address(
653
- connector_name, endpoint_address, server_guid, server_name
699
+ connector_name,
700
+ endpoint_address,
701
+ server_guid,
702
+ display_name,
703
+ qualified_name,
654
704
  )
655
705
  )
656
706
  return
@@ -659,7 +709,8 @@ class RuntimeManager(Client):
659
709
  self,
660
710
  connector_name: str = None,
661
711
  server_guid: str = None,
662
- server_name: str = None,
712
+ display_name: str = None,
713
+ qualified_name: str = None,
663
714
  ) -> None:
664
715
  """Issue a refresh() request on all connectors running in the integration daemon, or a specific connector if
665
716
  the connector name is specified. Async version.
@@ -669,9 +720,11 @@ class RuntimeManager(Client):
669
720
  Parameters
670
721
  ----------
671
722
  server_guid : str, default = None
672
- Identity of the server to act on. If not specified, server_name must be.
673
- server_name: str, default = None
674
- Name of server to act on. If not specified, server_guid must be.
723
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
724
+ display_name: str, default = None
725
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
726
+ qualified_name: str, default = None
727
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
675
728
  connector_name : str, opt
676
729
  Name of the integration connector to retrieve properties for. If None, all connectors refreshed.
677
730
 
@@ -687,7 +740,11 @@ class RuntimeManager(Client):
687
740
 
688
741
  """
689
742
  server_guid = self.__get_guid__(
690
- server_guid, server_name, "qualifiedName", "Integration Daemon"
743
+ server_guid,
744
+ display_name,
745
+ "qualifiedName",
746
+ qualified_name,
747
+ "Integration Daemon",
691
748
  )
692
749
  url = (
693
750
  f"{self.runtime_command_root}/integration-daemons/"
@@ -705,7 +762,8 @@ class RuntimeManager(Client):
705
762
  self,
706
763
  connector_name: str = None,
707
764
  server_guid: str = None,
708
- server_name: str = None,
765
+ display_name: str = None,
766
+ qualified_name: str = None,
709
767
  ) -> None:
710
768
  """Issue a refresh() request on all connectors running in the integration daemon, or a specific connector if
711
769
  the connector name is specified.
@@ -715,9 +773,11 @@ class RuntimeManager(Client):
715
773
  Parameters
716
774
  ----------
717
775
  server_guid : str, default = None
718
- Identity of the server to act on. If not specified, server_name must be.
719
- server_name: str, default = None
720
- Name of server to act on. If not specified, server_guid must be.
776
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
777
+ display_name: str, default = None
778
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
779
+ qualified_name: str, default = None
780
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
721
781
  connector_name : str, opt
722
782
  Name of the integration connector to retrieve properties for. If None, all connectors refreshed.
723
783
 
@@ -735,7 +795,7 @@ class RuntimeManager(Client):
735
795
  loop = asyncio.get_event_loop()
736
796
  loop.run_until_complete(
737
797
  self._async_refresh_integration_connectors(
738
- connector_name, server_guid, server_name
798
+ connector_name, server_guid, display_name, qualified_name
739
799
  )
740
800
  )
741
801
  return
@@ -744,7 +804,8 @@ class RuntimeManager(Client):
744
804
  self,
745
805
  connector_name: str = None,
746
806
  server_guid: str = None,
747
- server_name: str = None,
807
+ display_name: str = None,
808
+ qualified_name: str = None,
748
809
  ) -> None:
749
810
  """Issue a restart() request on all connectors running in the integration daemon, or a specific connector if
750
811
  the connector name is specified. Async version.
@@ -754,9 +815,11 @@ class RuntimeManager(Client):
754
815
  Parameters
755
816
  ----------
756
817
  server_guid : str, default = None
757
- Identity of the server to act on. If not specified, server_name must be.
758
- server_name: str, default = None
759
- Name of server to act on. If not specified, server_guid must be.
818
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
819
+ display_name: str, default = None
820
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
821
+ qualified_name: str, default = None
822
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
760
823
  connector_name : str, opt
761
824
  Name of the integration connector to retrieve properties for. If None, all connectors restarted.
762
825
 
@@ -772,7 +835,11 @@ class RuntimeManager(Client):
772
835
 
773
836
  """
774
837
  server_guid = self.__get_guid__(
775
- server_guid, server_name, "qualifiedName", "Integration Daemon"
838
+ server_guid,
839
+ display_name,
840
+ "qualifiedName",
841
+ qualified_name,
842
+ "Integration Daemon",
776
843
  )
777
844
  url = (
778
845
  f"{self.runtime_command_root}/integration-daemons/"
@@ -790,7 +857,8 @@ class RuntimeManager(Client):
790
857
  self,
791
858
  connector_name: str = None,
792
859
  server_guid: str = None,
793
- server_name: str = None,
860
+ display_name: str = None,
861
+ qualified_name: str = None,
794
862
  ) -> None:
795
863
  """Issue a restart() request on all connectors running in the integration daemon, or a specific connector if
796
864
  the connector name is specified.
@@ -800,9 +868,11 @@ class RuntimeManager(Client):
800
868
  Parameters
801
869
  ----------
802
870
  server_guid : str, default = None
803
- Identity of the server to act on. If not specified, server_name must be.
804
- server_name: str, default = None
805
- Name of server to act on. If not specified, server_guid must be.
871
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
872
+ display_name: str, default = None
873
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
874
+ qualified_name: str, default = None
875
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
806
876
  connector_name : str, opt
807
877
  Name of the integration connector to retrieve properties for. If None, all connectors restarted.
808
878
 
@@ -820,7 +890,7 @@ class RuntimeManager(Client):
820
890
  loop = asyncio.get_event_loop()
821
891
  loop.run_until_complete(
822
892
  self._async_restart_integration_connectors(
823
- connector_name, server_guid, server_name
893
+ connector_name, server_guid, display_name, qualified_name
824
894
  )
825
895
  )
826
896
  return
@@ -829,7 +899,8 @@ class RuntimeManager(Client):
829
899
  self,
830
900
  integ_group_name: str = None,
831
901
  server_guid: str = None,
832
- server_name: str = None,
902
+ display_name: str = None,
903
+ qualified_name: str = None,
833
904
  ) -> None:
834
905
  """Request that the integration group refresh its configuration by calling the metadata access server.
835
906
  Changes to the connector configuration will result in the affected connectors being restarted.
@@ -841,9 +912,11 @@ class RuntimeManager(Client):
841
912
  Parameters
842
913
  ----------
843
914
  server_guid : str, default = None
844
- Identity of the server to act on. If not specified, server_name must be.
845
- server_name: str, default = None
846
- Name of server to act on. If not specified, server_guid must be.
915
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
916
+ display_name: str, default = None
917
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
918
+ qualified_name: str, default = None
919
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
847
920
  integ_group_name : str, opt, default = None
848
921
  Name of the integration group to refresh. If None, all groups are refreshed.
849
922
 
@@ -859,7 +932,11 @@ class RuntimeManager(Client):
859
932
 
860
933
  """
861
934
  server_guid = self.__get_guid__(
862
- server_guid, server_name, "qualifiedName", "Integration Daemon"
935
+ server_guid,
936
+ display_name,
937
+ "qualifiedName",
938
+ qualified_name,
939
+ "Integration Daemon",
863
940
  )
864
941
  url = (
865
942
  f"{self.runtime_command_root}/integration-daemons/"
@@ -873,7 +950,8 @@ class RuntimeManager(Client):
873
950
  self,
874
951
  integ_group_name: str = None,
875
952
  server_guid: str = None,
876
- server_name: str = None,
953
+ display_name: str = None,
954
+ qualified_name: str = None,
877
955
  ) -> None:
878
956
  """Request that the integration group refresh its configuration by calling the metadata access server.
879
957
  Changes to the connector configuration will result in the affected connectors being restarted.
@@ -885,9 +963,11 @@ class RuntimeManager(Client):
885
963
  Parameters
886
964
  ----------
887
965
  server_guid : str, default = None
888
- Identity of the server to act on. If not specified, server_name must be.
889
- server_name: str, default = None
890
- Name of server to act on. If not specified, server_guid must be.
966
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
967
+ display_name: str, default = None
968
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
969
+ qualified_name: str, default = None
970
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
891
971
  integ_group_name : str, opt, default = None
892
972
  Name of the integration group to refresh. If None, all groups are refreshed.
893
973
 
@@ -905,7 +985,7 @@ class RuntimeManager(Client):
905
985
  loop = asyncio.get_event_loop()
906
986
  loop.run_until_complete(
907
987
  self._async_refresh_integ_group_config(
908
- integ_group_name, server_guid, server_name
988
+ integ_group_name, server_guid, display_name, qualified_name
909
989
  )
910
990
  )
911
991
  return
@@ -917,7 +997,8 @@ class RuntimeManager(Client):
917
997
  self,
918
998
  ol_event: dict,
919
999
  server_guid: str = None,
920
- server_name: str = None,
1000
+ display_name: str = None,
1001
+ qualified_name: str = None,
921
1002
  ) -> None:
922
1003
  """Send an Open Lineage event to the integration daemon. It will pass it on to the integration connectors that
923
1004
  have registered a listener for open lineage events. Async version.
@@ -927,9 +1008,11 @@ class RuntimeManager(Client):
927
1008
  Parameters
928
1009
  ----------
929
1010
  server_guid : str, default = None
930
- Identity of the server to act on. If not specified, server_name must be.
931
- server_name: str, default = None
932
- Name of server to act on. If not specified, server_guid must be.
1011
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
1012
+ display_name: str, default = None
1013
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
1014
+ qualified_name: str, default = None
1015
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
933
1016
  ol_event : dict
934
1017
  Dict containing the user specified Open Lineage event.
935
1018
 
@@ -944,7 +1027,12 @@ class RuntimeManager(Client):
944
1027
  UserNotAuthorizedException
945
1028
 
946
1029
  """
947
- server_guid = self.__get_guid__(server_guid, server_name, "name")
1030
+ server_guid = self.__get_guid__(
1031
+ server_guid,
1032
+ display_name,
1033
+ "name",
1034
+ qualified_name,
1035
+ )
948
1036
  url = (
949
1037
  f"{self.runtime_command_root}/integration-daemons/"
950
1038
  f"{server_guid}/integration-daemons/{server_guid}/open-lineage-events/publish"
@@ -957,7 +1045,8 @@ class RuntimeManager(Client):
957
1045
  self,
958
1046
  ol_event: dict,
959
1047
  server_guid: str = None,
960
- server_name: str = None,
1048
+ display_name: str = None,
1049
+ qualified_name: str = None,
961
1050
  ) -> None:
962
1051
  """Send an Open Lineage event to the integration daemon. It will pass it on to the integration connectors that
963
1052
  have registered a listener for open lineage events.
@@ -967,9 +1056,11 @@ class RuntimeManager(Client):
967
1056
  Parameters
968
1057
  ----------
969
1058
  server_guid : str, default = None
970
- Identity of the server to act on. If not specified, server_name must be.
971
- server_name: str, default = None
972
- Name of server to act on. If not specified, server_guid must be.
1059
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
1060
+ display_name: str, default = None
1061
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
1062
+ qualified_name: str, default = None
1063
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
973
1064
  ol_event : dict
974
1065
  Dict containing the user specified Open Lineage event.
975
1066
 
@@ -986,7 +1077,7 @@ class RuntimeManager(Client):
986
1077
  """
987
1078
  loop = asyncio.get_event_loop()
988
1079
  loop.run_until_complete(
989
- self._async_publish_open_lineage_event(ol_event, server_guid, server_name)
1080
+ self._async_publish_open_lineage_event(ol_event, server_guid, display_name)
990
1081
  )
991
1082
  return
992
1083
 
@@ -994,7 +1085,8 @@ class RuntimeManager(Client):
994
1085
  self,
995
1086
  archive_content: dict,
996
1087
  server_guid: str = None,
997
- server_name: str = None,
1088
+ display_name: str = None,
1089
+ qualified_name: str = None,
998
1090
  time_out: int = 60,
999
1091
  ) -> None:
1000
1092
  """An open metadata archive contains metadata types and instances.
@@ -1006,9 +1098,11 @@ class RuntimeManager(Client):
1006
1098
  Parameters
1007
1099
  ----------
1008
1100
  server_guid : str, default = None
1009
- Identity of the server to act on. If not specified, server_name must be.
1010
- server_name: str, default = None
1011
- Name of server to act on. If not specified, server_guid must be.
1101
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
1102
+ display_name: str, default = None
1103
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
1104
+ qualified_name: str, default = None
1105
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
1012
1106
  archive_content : dict
1013
1107
  A dict containing the content of the archive to load.
1014
1108
  time_out : int, optional, default = 60 seconds
@@ -1026,7 +1120,11 @@ class RuntimeManager(Client):
1026
1120
 
1027
1121
  """
1028
1122
  server_guid = self.__get_guid__(
1029
- server_guid, server_name, "qualifiedName", "Metadata Access Server"
1123
+ server_guid,
1124
+ display_name,
1125
+ "qualifiedName",
1126
+ qualified_name,
1127
+ "Metadata Access Server",
1030
1128
  )
1031
1129
  url = (
1032
1130
  f"{self.runtime_command_root}/metadata-access-stores/{server_guid}/instance/load/open-metadata-archives/"
@@ -1040,7 +1138,8 @@ class RuntimeManager(Client):
1040
1138
  self,
1041
1139
  archive_content: dict,
1042
1140
  server_guid: str = None,
1043
- server_name: str = None,
1141
+ display_name: str = None,
1142
+ qualified_name: str = None,
1044
1143
  time_out: int = 60,
1045
1144
  ) -> None:
1046
1145
  """An open metadata archive contains metadata types and instances.
@@ -1054,10 +1153,11 @@ class RuntimeManager(Client):
1054
1153
  archive_content : dict
1055
1154
  A dict containing the content of the archive to load.
1056
1155
  server_guid : str, default = None
1057
- Identity of the server to act on. If not specified, server_name must be.
1058
- server_name: str, default = None
1059
- Name of server to act on. If not specified, server_guid must be.
1060
-
1156
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
1157
+ display_name: str, default = None
1158
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
1159
+ qualified_name: str, default = None
1160
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
1061
1161
  time_out : int, optional, default = 60 seconds
1062
1162
  Timeout for the REST call.
1063
1163
 
@@ -1075,7 +1175,7 @@ class RuntimeManager(Client):
1075
1175
  loop = asyncio.get_event_loop()
1076
1176
  loop.run_until_complete(
1077
1177
  self._async_add_archive_content(
1078
- archive_content, server_guid, server_name, time_out=time_out
1178
+ archive_content, server_guid, display_name, qualified_name, time_out
1079
1179
  )
1080
1180
  )
1081
1181
  return
@@ -1084,7 +1184,8 @@ class RuntimeManager(Client):
1084
1184
  self,
1085
1185
  archive_file: str,
1086
1186
  server_guid: str = None,
1087
- server_name: str = None,
1187
+ display_name: str = None,
1188
+ qualified_name: str = None,
1088
1189
  time_out: int = 120,
1089
1190
  ) -> None:
1090
1191
  """Add a new open metadata archive to running OMAG Server's repository.
@@ -1099,9 +1200,11 @@ class RuntimeManager(Client):
1099
1200
  archive_file: str
1100
1201
  Open metadata archive file to load.
1101
1202
  server_guid : str, default = None
1102
- Identity of the server to act on. If not specified, server_name must be.
1103
- server_name: str, default = None
1104
- Name of server to act on. If not specified, server_guid must be.
1203
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
1204
+ display_name: str, default = None
1205
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
1206
+ qualified_name: str, default = None
1207
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
1105
1208
  time_out: int, optional
1106
1209
  Time out for the rest call.
1107
1210
 
@@ -1118,7 +1221,11 @@ class RuntimeManager(Client):
1118
1221
 
1119
1222
  """
1120
1223
  server_guid = self.__get_guid__(
1121
- server_guid, server_name, "qualifiedName", "Metadata Access Server"
1224
+ server_guid,
1225
+ display_name,
1226
+ "qualifiedName",
1227
+ qualified_name,
1228
+ "Metadata Access Server",
1122
1229
  )
1123
1230
  url = f"{self.runtime_command_root}/metadata-access-stores/{server_guid}/instance/load/open-metadata-archives/file"
1124
1231
 
@@ -1131,7 +1238,8 @@ class RuntimeManager(Client):
1131
1238
  self,
1132
1239
  archive_file: str,
1133
1240
  server_guid: str = None,
1134
- server_name: str = None,
1241
+ display_name: str = None,
1242
+ qualified_name: str = None,
1135
1243
  time_out: int = 120,
1136
1244
  ) -> None:
1137
1245
  """Add a new open metadata archive to running OMAG Server's repository.
@@ -1145,9 +1253,11 @@ class RuntimeManager(Client):
1145
1253
  archive_file: str
1146
1254
  Open metadata archive file to load.
1147
1255
  server_guid : str, default = None
1148
- Identity of the server to act on. If not specified, server_name must be.
1149
- server_name: str, default = None
1150
- Name of server to act on. If not specified, server_guid must be.
1256
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
1257
+ display_name: str, default = None
1258
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
1259
+ qualified_name: str, default = None
1260
+ Unique name of server to act on. If not specified, server_guid or server_name must be.
1151
1261
  time_out: int, optional, default = 60 seconds
1152
1262
 
1153
1263
  Returns
@@ -1166,7 +1276,7 @@ class RuntimeManager(Client):
1166
1276
  loop = asyncio.get_event_loop()
1167
1277
  loop.run_until_complete(
1168
1278
  self._async_add_archive_file(
1169
- archive_file, server_guid, server_name, time_out
1279
+ archive_file, server_guid, display_name, qualified_name, time_out
1170
1280
  )
1171
1281
  )
1172
1282
  return
@@ -1175,7 +1285,9 @@ class RuntimeManager(Client):
1175
1285
  # Server & Platform admin
1176
1286
  #
1177
1287
  async def _async_shutdown_and_unregister_server(
1178
- self, server_guid: str = None, server_name: str = None
1288
+ self,
1289
+ server_guid: str = None,
1290
+ qualified_name: str = None,
1179
1291
  ) -> None:
1180
1292
  """Shutdown the named OMAG server. The server will also be removed from any open metadata repository cohorts
1181
1293
  it has registered with. Async version.
@@ -1183,9 +1295,9 @@ class RuntimeManager(Client):
1183
1295
  Parameters
1184
1296
  ----------
1185
1297
  server_guid : str, default = None
1186
- Identity of the server to act on. If not specified, server_name must be.
1187
- server_name: str, default = None
1188
- Name of server to act on. If not specified, server_guid must be.
1298
+ Identity of the server to act on. If not specified, qualified_name must be.
1299
+ qualified_name: str, default = None
1300
+ Unique name of server to act on. If not specified, server_guid must be.
1189
1301
 
1190
1302
  Returns
1191
1303
  -------
@@ -1199,7 +1311,9 @@ class RuntimeManager(Client):
1199
1311
  UserNotAuthorizedException
1200
1312
 
1201
1313
  """
1202
- server_guid = self.__get_guid__(server_guid, server_name, "name")
1314
+ server_guid = self.__get_guid__(
1315
+ server_guid, property_name="qualifiedName", qualified_name=qualified_name
1316
+ )
1203
1317
  url = f"{self.runtime_command_root}/omag-servers/{server_guid}"
1204
1318
 
1205
1319
  await self._async_make_request("DELETE", url)
@@ -1207,7 +1321,7 @@ class RuntimeManager(Client):
1207
1321
  return
1208
1322
 
1209
1323
  def shutdown_and_unregister_server(
1210
- self, server_guid: str = None, server_name: str = None
1324
+ self, server_guid: str = None, qualified_name: str = None
1211
1325
  ) -> None:
1212
1326
  """Shutdown the named OMAG server. The server will also be removed from any open metadata repository cohorts
1213
1327
  it has registered with.
@@ -1215,10 +1329,9 @@ class RuntimeManager(Client):
1215
1329
  Parameters
1216
1330
  ----------
1217
1331
  server_guid : str, default = None
1218
- Identity of the server to act on. If not specified, server_name must be.
1219
- server_name: str, default = None
1220
- Name of server to act on. If not specified, server_guid must be.
1221
-
1332
+ Identity of the server to act on. If not specified, qualified_name must be.
1333
+ qualified_name: str, default = None
1334
+ Unique name of server to act on. If not specified, server_guid must be.
1222
1335
  Returns
1223
1336
  -------
1224
1337
  Response
@@ -1233,12 +1346,16 @@ class RuntimeManager(Client):
1233
1346
  """
1234
1347
  loop = asyncio.get_event_loop()
1235
1348
  loop.run_until_complete(
1236
- self._async_shutdown_and_unregister_server(server_guid, server_name)
1349
+ self._async_shutdown_and_unregister_server(server_guid, qualified_name)
1237
1350
  )
1238
1351
  return
1239
1352
 
1240
1353
  async def _async_activate_server_with_stored_config(
1241
- self, server_guid: str = None, server_name: str = None, timeout: int = 240
1354
+ self,
1355
+ server_guid: str = None,
1356
+ display_name: str = None,
1357
+ qualified_name: str = None,
1358
+ timeout: int = 240,
1242
1359
  ) -> None:
1243
1360
  """Activate the named OMAG server using the appropriate configuration document found in the
1244
1361
  configuration store. Async version.
@@ -1248,9 +1365,11 @@ class RuntimeManager(Client):
1248
1365
  Parameters
1249
1366
  ----------
1250
1367
  server_guid : str, default = None
1251
- Identity of the server to act on. If not specified, server_name must be.
1252
- server_name: str, default = None
1253
- Name of server to act on. If not specified, server_guid must be.
1368
+ Identity of the server to act on. If not specified, qualified_name or server_name must be.
1369
+ display_name: str, default = None
1370
+ Name of server to act on. If not specified, server_guid or qualified_name must be.
1371
+ qualified_name: str, default = None
1372
+ Unique name of server to act on. If not specified, server_guid must be.
1254
1373
  timeout: int, optional, default = 240 seconds
1255
1374
 
1256
1375
  Returns
@@ -1264,14 +1383,21 @@ class RuntimeManager(Client):
1264
1383
  UserNotAuthorizedException
1265
1384
 
1266
1385
  """
1267
- server_guid = self.__get_guid__(server_guid, server_name, "name")
1386
+ server_guid = self.__get_guid__(
1387
+ server_guid, display_name, "name", qualified_name
1388
+ )
1389
+
1268
1390
  url = f"{self.runtime_command_root}/omag-servers/{server_guid}/instance"
1269
1391
 
1270
1392
  await self._async_make_request("POST", url, time_out=timeout)
1271
1393
  return
1272
1394
 
1273
1395
  def activate_server_with_stored_config(
1274
- self, server_guid: str = None, server_name: str = None, timeout: int = 240
1396
+ self,
1397
+ server_guid: str = None,
1398
+ display_name: str = None,
1399
+ qualified_name: str = None,
1400
+ timeout: int = 240,
1275
1401
  ) -> None:
1276
1402
  """Activate the named OMAG server using the appropriate configuration document found in the
1277
1403
  configuration store.
@@ -1282,7 +1408,7 @@ class RuntimeManager(Client):
1282
1408
  ----------
1283
1409
  server_guid : str, default = None
1284
1410
  Identity of the server to act on. If not specified, server_name must be.
1285
- server_name: str, default = None
1411
+ display_name: str, default = None
1286
1412
  Name of server to act on. If not specified, server_guid must be.
1287
1413
  timeout: int, optional, default = 240 seconds
1288
1414
 
@@ -1300,22 +1426,22 @@ class RuntimeManager(Client):
1300
1426
  loop = asyncio.get_event_loop()
1301
1427
  loop.run_until_complete(
1302
1428
  self._async_activate_server_with_stored_config(
1303
- server_guid, server_name, timeout
1429
+ server_guid, display_name, timeout
1304
1430
  )
1305
1431
  )
1306
1432
  return
1307
1433
 
1308
1434
  async def _async_shutdown_server(
1309
- self, server_guid: str = None, server_name: str = None
1435
+ self, server_guid: str = None, qualified_name: str = None
1310
1436
  ) -> None:
1311
1437
  """Temporarily shutdown the named OMAG server. This server can be restarted as a later time. Async version.
1312
1438
 
1313
1439
  Parameters
1314
1440
  ----------
1315
1441
  server_guid : str, default = None
1316
- Identity of the server to act on. If not specified, server_name must be.
1317
- server_name: str, default = None
1318
- Name of server to act on. If not specified, server_guid must be.
1442
+ Identity of the server to act on. If not specified, qualified_name must be.
1443
+ qualified_name: str, default = None
1444
+ Qualified name of server to act on. If not specified, server_guid must be.
1319
1445
 
1320
1446
  Returns
1321
1447
  -------
@@ -1329,22 +1455,26 @@ class RuntimeManager(Client):
1329
1455
  UserNotAuthorizedException
1330
1456
 
1331
1457
  """
1332
- server_guid = self.__get_guid__(server_guid, server_name, "name")
1458
+ server_guid = self.__get_guid__(
1459
+ server_guid, None, "qualifiedName", qualified_name
1460
+ )
1333
1461
  url = f"{self.runtime_command_root}/omag-servers/{server_guid}/instance"
1334
1462
 
1335
1463
  await self._async_make_request("DELETE", url)
1336
1464
 
1337
1465
  return
1338
1466
 
1339
- def shutdown_server(self, server_guid: str = None, server_name: str = None) -> None:
1467
+ def shutdown_server(
1468
+ self, server_guid: str = None, qualified_name: str = None
1469
+ ) -> None:
1340
1470
  """Temporarily shutdown the named OMAG server. This server can be restarted as a later time.
1341
1471
 
1342
1472
  Parameters
1343
1473
  ----------
1344
1474
  server_guid : str, default = None
1345
- Identity of the server to act on. If not specified, server_name must be.
1346
- server_name: str, default = None
1347
- Name of server to act on. If not specified, server_guid must be.
1475
+ Identity of the server to act on. If not specified, qualified_name must be.
1476
+ qualified_name: str, default = None
1477
+ Qualified name of server to act on. If not specified, server_guid must be.
1348
1478
 
1349
1479
  Returns
1350
1480
  -------
@@ -1359,7 +1489,9 @@ class RuntimeManager(Client):
1359
1489
 
1360
1490
  """
1361
1491
  loop = asyncio.get_event_loop()
1362
- loop.run_until_complete(self._async_shutdown_server(server_guid, server_name))
1492
+ loop.run_until_complete(
1493
+ self._async_shutdown_server(server_guid, qualified_name)
1494
+ )
1363
1495
  return
1364
1496
 
1365
1497
  def get_platforms_by_name(
@@ -1731,7 +1863,7 @@ class RuntimeManager(Client):
1731
1863
  else:
1732
1864
  response = await self._async_make_request("POST", url)
1733
1865
 
1734
- return response.json().get("elements", "No platforms found")
1866
+ return response.json().get("element", "No platforms found")
1735
1867
 
1736
1868
  def get_platform_by_guid(
1737
1869
  self,
@@ -1801,7 +1933,7 @@ class RuntimeManager(Client):
1801
1933
  else:
1802
1934
  response = await self._async_make_request("POST", url)
1803
1935
 
1804
- return response.json().get("elements", "No server found")
1936
+ return response.json().get("element", "No server found")
1805
1937
 
1806
1938
  def get_server_by_guid(
1807
1939
  self,
@@ -2124,7 +2256,7 @@ class RuntimeManager(Client):
2124
2256
 
2125
2257
  """
2126
2258
  server_guid = self.__get_guid__(
2127
- server_guid, server_name, "name", tech_type="OMAG Server"
2259
+ server_guid, server_name, "name", tech_type="Integration Daemon"
2128
2260
  )
2129
2261
  url = f"{self.runtime_command_root}/omag-servers/{server_guid}/instance/report"
2130
2262