xautomata-hive 3.16.4__py3-none-any.whl → 3.16.5__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.
@@ -227,12 +227,13 @@ class Customers(ApiManager):
227
227
 
228
228
  Keyword Args:
229
229
  app_id (string optional): additional filter - parameter
230
+ refresh (string optional): additional filter - parameter
230
231
 
231
232
  Returns: list"""
232
233
  if kwargs is None:
233
234
  kwargs = dict()
234
- official_params_list = ['app_id']
235
- params.get('app_id')
235
+ official_params_list = ['app_id', 'refresh']
236
+ params.get('app_id'), params.get('refresh')
236
237
  if not self._silence_warning:
237
238
  warning_wrong_parameters(self.customers_relation_request_create
238
239
  .__name__, params, official_params_list)
@@ -499,6 +499,71 @@ class Dashboards(ApiManager):
499
499
  **kwargs)
500
500
  return response
501
501
 
502
+ def dashboards_users_create_bulk(self, payload: list,
503
+ single_page: bool = False, page_size: int = 50, kwargs: dict = None,
504
+ **params) -> list:
505
+ """Bulk Link Users
506
+
507
+ Args:
508
+ payload (list[dict], optional): List dict to create.
509
+ single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
510
+ page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 50.
511
+ kwargs (dict, optional): additional parameters for execute. Default to None.
512
+ **params: additional parameters for the API.
513
+
514
+ Keyword Args:
515
+ best_effort (boolean optional): additional filter - parameter
516
+
517
+ Examples:
518
+ payload =
519
+ [
520
+ {
521
+ "username": "string", required
522
+ "uuid_dashboard": "string", required
523
+ }
524
+ ]
525
+
526
+ Returns: list"""
527
+ if kwargs is None:
528
+ kwargs = dict()
529
+ official_params_list = ['best_effort']
530
+ params.get('best_effort')
531
+ if not self._silence_warning:
532
+ warning_wrong_parameters(self.dashboards_users_create_bulk.
533
+ __name__, params, official_params_list)
534
+ response = self.execute('POST', path=
535
+ f'/dashboards/bulk/create/users', single_page=single_page,
536
+ page_size=page_size, params=params, payload=payload, **kwargs)
537
+ return response
538
+
539
+ def dashboards_users_delete_bulk(self, payload: list,
540
+ single_page: bool = False, page_size: int = 50, kwargs: dict = None
541
+ ) -> list:
542
+ """Bulk Unlink Users
543
+
544
+ Args:
545
+ payload (list[dict], optional): List dict to create.
546
+ single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
547
+ page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 50.
548
+ kwargs (dict, optional): additional parameters for execute. Default to None.
549
+
550
+ Examples:
551
+ payload =
552
+ [
553
+ {
554
+ "username": "string", required
555
+ "uuid_dashboard": "string", required
556
+ }
557
+ ]
558
+
559
+ Returns: list"""
560
+ if kwargs is None:
561
+ kwargs = dict()
562
+ response = self.execute('POST', path=
563
+ f'/dashboards/bulk/delete/users', single_page=single_page,
564
+ page_size=page_size, payload=payload, **kwargs)
565
+ return response
566
+
502
567
  def dashboards_widgets_create_bulk(self, payload: list,
503
568
  single_page: bool = False, page_size: int = 50, kwargs: dict = None,
504
569
  **params) -> list:
hive/cookbook/probes.py CHANGED
@@ -99,14 +99,15 @@ class Probes(ApiManager):
99
99
 
100
100
  Keyword Args:
101
101
  join (boolean optional): Se join = true, ogni riga restituita conterra' chiavi aggiuntive che fanno riferimento ad altre entita', con cui la riga ha relazioni 1:1. Default to False - parameter
102
+ extract_severity (boolean optional): Se True nella risposta e' anche presente la severita, Default to False. - parameter
102
103
 
103
104
  Returns: list"""
104
105
  if kwargs is None:
105
106
  kwargs = dict()
106
107
  kwargs, params = handling_single_page_methods(kwargs=kwargs, params
107
108
  =params)
108
- official_params_list = ['join']
109
- params.get('join')
109
+ official_params_list = ['join', 'extract_severity']
110
+ params.get('join'), params.get('extract_severity')
110
111
  if not self._silence_warning:
111
112
  warning_wrong_parameters(self.probe.__name__, params,
112
113
  official_params_list)
hive/cookbook/users.py CHANGED
@@ -905,6 +905,71 @@ class Users(ApiManager):
905
905
  **kwargs)
906
906
  return response
907
907
 
908
+ def users_dashboards_create_bulk(self, payload: list,
909
+ single_page: bool = False, page_size: int = 50, kwargs: dict = None,
910
+ **params) -> list:
911
+ """Bulk Link Dashboards
912
+
913
+ Args:
914
+ payload (list[dict], optional): List dict to create.
915
+ single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
916
+ page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 50.
917
+ kwargs (dict, optional): additional parameters for execute. Default to None.
918
+ **params: additional parameters for the API.
919
+
920
+ Keyword Args:
921
+ best_effort (boolean optional): additional filter - parameter
922
+
923
+ Examples:
924
+ payload =
925
+ [
926
+ {
927
+ "username": "string", required
928
+ "uuid_dashboard": "string", required
929
+ }
930
+ ]
931
+
932
+ Returns: list"""
933
+ if kwargs is None:
934
+ kwargs = dict()
935
+ official_params_list = ['best_effort']
936
+ params.get('best_effort')
937
+ if not self._silence_warning:
938
+ warning_wrong_parameters(self.users_dashboards_create_bulk.
939
+ __name__, params, official_params_list)
940
+ response = self.execute('POST', path=
941
+ f'/users/bulk/create/dashboards', single_page=single_page,
942
+ page_size=page_size, params=params, payload=payload, **kwargs)
943
+ return response
944
+
945
+ def users_dashboards_delete_bulk(self, payload: list,
946
+ single_page: bool = False, page_size: int = 50, kwargs: dict = None
947
+ ) -> list:
948
+ """Bulk Unlink Dashboards
949
+
950
+ Args:
951
+ payload (list[dict], optional): List dict to create.
952
+ single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
953
+ page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 50.
954
+ kwargs (dict, optional): additional parameters for execute. Default to None.
955
+
956
+ Examples:
957
+ payload =
958
+ [
959
+ {
960
+ "username": "string", required
961
+ "uuid_dashboard": "string", required
962
+ }
963
+ ]
964
+
965
+ Returns: list"""
966
+ if kwargs is None:
967
+ kwargs = dict()
968
+ response = self.execute('POST', path=
969
+ f'/users/bulk/delete/dashboards', single_page=single_page,
970
+ page_size=page_size, payload=payload, **kwargs)
971
+ return response
972
+
908
973
  def users_virtual_domains_create_bulk(self, payload: list,
909
974
  single_page: bool = False, page_size: int = 50, kwargs: dict = None,
910
975
  **params) -> list:
@@ -984,14 +1049,16 @@ class Users(ApiManager):
984
1049
  recipients (array required): additional filter - payload
985
1050
  attachments (array optional): additional filter - payload
986
1051
  template_parameters (object optional): additional filter - payload
1052
+ domain (string required): additional filter - payload
987
1053
 
988
1054
  Returns: list"""
989
1055
  if kwargs is None:
990
1056
  kwargs = dict()
991
1057
  official_payload_list = ['subject', 'recipients', 'attachments',
992
- 'template_parameters']
1058
+ 'template_parameters', 'domain']
993
1059
  payload.get('subject'), payload.get('recipients'), payload.get(
994
- 'attachments'), payload.get('template_parameters')
1060
+ 'attachments'), payload.get('template_parameters'), payload.get(
1061
+ 'domain')
995
1062
  if not self._silence_warning:
996
1063
  warning_wrong_parameters(self.users_send_email_template_create.
997
1064
  __name__, payload, official_payload_list)
hive/version.py CHANGED
@@ -1 +1 @@
1
- version = '3.16.4'
1
+ version = '3.16.5'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xautomata-hive
3
- Version: 3.16.4
3
+ Version: 3.16.5
4
4
  Home-page: https://github.com/sherlogic/xautomata-hive.git
5
5
  Author: Enrico Ferro - Andrea Jacassi
6
6
  Author-email:
@@ -4,7 +4,7 @@ hive/decorators.py,sha256=tId1zEXXKgegU_F9g2nbjFosB-9NNWQWueMu60w60Cc,9947
4
4
  hive/exceptions.py,sha256=kTJSPMViU2ZhF_ENbL_i-skU3YEv_ViJH2PpUQ6ums8,136
5
5
  hive/infrastrucure_keys.py,sha256=UzgXex6tQsglowhKeb45e7vw4u7kh2wM0YscQPorodU,4095
6
6
  hive/tools.py,sha256=Oi_d6wphtAS4f1wOhFzdXZj8Au1nwZ-UrRvIJDBQLMo,1371
7
- hive/version.py,sha256=uHe40Bm_Y73dwvAXfBu55NV9vT11bEiPBut88ZW-NGE,18
7
+ hive/version.py,sha256=ncvXS2KmaHrP7Xikx0M8s7CZPBt-iJUU8Nf5DlATyvY,18
8
8
  hive/cookbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  hive/cookbook/acl_docs.py,sha256=0xr7Vb9121vhsiZjQaKvuAt4gKlXOO4aUJM472HeARw,786
10
10
  hive/cookbook/acl_overrides.py,sha256=l3xyJmGeQysP1M2Sa6kVhDn8n6ttCKUzJ0jTcPjyo78,9690
@@ -17,8 +17,8 @@ hive/cookbook/cost_tags.py,sha256=G4iI97oasXQnke9R4_chNmWFr1yxpysTKFp-CnnE6aI,74
17
17
  hive/cookbook/cost_tree_nodes.py,sha256=A0WdbZ2g9aqpSqLYSbrV-e4WCOXqILg2Ns8YrZjwzd4,11212
18
18
  hive/cookbook/cost_tree_resources.py,sha256=fV7H9W6YfyvZoB7eqYDXLdvf-_1DtPb9C_629keIZxQ,10338
19
19
  hive/cookbook/cost_views.py,sha256=D2DMB3YPkfEbdUZ3_WsAvJohBgmgDvyScSJ9bzpCpKM,10760
20
- hive/cookbook/customers.py,sha256=hTdJjjnj2Lp1z23aJz4a_LZbA4tvjc_vt2p9NHvWaTc,74241
21
- hive/cookbook/dashboards.py,sha256=oAgx4XbIu26hLoXjS8sEhI-gg9lIpeGRoG1MT5UKxJM,27647
20
+ hive/cookbook/customers.py,sha256=hElh0E7MpBimf4jMVu0pgcCxqRforatYfKjlrqHmx10,74344
21
+ hive/cookbook/dashboards.py,sha256=TJeUCoL-zPtk4toqX-uVpRhjFVJrF_cQQrJ6seYTq44,30184
22
22
  hive/cookbook/dispatchers.py,sha256=Mk-u6xhBYdvU_av9ac9a1yejLiukUB30Ey9mIme-V5w,43301
23
23
  hive/cookbook/downtimes.py,sha256=ylhT8TPm87LRjSVwoZgeKwUqnJ2IPva0jqcudbhS0cI,45001
24
24
  hive/cookbook/external_tickets.py,sha256=Lv30Mu6Hu4L8zWdduR_2OUCC_QTy8rvdWv-9gmWCljo,29510
@@ -39,7 +39,7 @@ hive/cookbook/notification_providers.py,sha256=6dKi_wDv99HzIybTi6isLjnNNKGNpb4rn
39
39
  hive/cookbook/objects.py,sha256=58JtpT-8Hd2TFJtBUcSusXYDFO5ZH1_Iy5DQQzRETd0,42072
40
40
  hive/cookbook/opening_reasons.py,sha256=fwq0E51Qs-hnyUMY242GYf8Vr5YtcJZy2SZtjZVXTE8,11928
41
41
  hive/cookbook/probe_types.py,sha256=isKPKbMr19_DVtI_0Erk4i3g6Hh_yWxOo6RbTCOkCxw,12992
42
- hive/cookbook/probes.py,sha256=AxtUXOqe_B87U4rJcG6H-_5VFrpIAaW3WhwHV5W9A8E,23101
42
+ hive/cookbook/probes.py,sha256=rIRDIrJljnM9HWCEvPkEWsehDt2nLUOdC9mwSjnaTWY,23286
43
43
  hive/cookbook/probes_log_ingest.py,sha256=0D5szbqHOujPbGQ_nyZZZpob4damvWjo1FSw9iDf0fM,1661
44
44
  hive/cookbook/profile_topics.py,sha256=Wp209fmSsrEZ3jnn6AYHjX7jJ12zfFDV-T9liGUHuXI,10253
45
45
  hive/cookbook/reason_for_closure.py,sha256=PqDleTYc6RJmhPrJ7q-A9RgCc6GEC05x_hU9R2sXIFE,11012
@@ -56,14 +56,14 @@ hive/cookbook/ts_metric_value.py,sha256=ehkjUMsAcZaA9HC0sN39gYKtXEG2xArdPsmhXWKS
56
56
  hive/cookbook/ts_ntop_flows.py,sha256=Obmn86YlFvymWMzSkQ9Lrq7OuznLf2m4T_JiC8X_qpY,17197
57
57
  hive/cookbook/ts_service_status.py,sha256=hr0heuEkEWmjvVsYVMQJpcve0hrQiY3a8w-OdfBchT8,15143
58
58
  hive/cookbook/ts_service_value.py,sha256=oJ0fOAyAr2OuBerwDZRHeFtATkkdED4e_X6mmv7WTzo,14430
59
- hive/cookbook/users.py,sha256=XRTFgZEvHqYUr2ieRkI_RXF3VIg4WEOgzxlskj-8-_s,49356
59
+ hive/cookbook/users.py,sha256=rwcBKb_xTehMqBepur8KbH4xv0jgGnMdgubnSoY-3Sk,52015
60
60
  hive/cookbook/users_notifications.py,sha256=klrqR3awrwKHx6o0wpg2oLFdU0PWA2MSa41KtJQhNjw,8165
61
61
  hive/cookbook/virtual_domains.py,sha256=-i666Jyi3j_EwRUzlymh2-q3bCxAz6TA3Q_lPVDCAY8,22725
62
62
  hive/cookbook/webhooks.py,sha256=xQp7gW4FQP6717d4MCOuQN2Py7nw7TFy4pl9RmkqMKs,6705
63
63
  hive/cookbook/widget_groups.py,sha256=Sd8u_eNr7GYLyN0-wC-k9lsHfNOEmU3HkAvWrwWoZtE,15917
64
64
  hive/cookbook/widgets.py,sha256=d7-DXC-ODNpdt4KjCAzFW0T3HWf0ThOO9yL17jJigdc,23396
65
- xautomata_hive-3.16.4.dist-info/LICENSE,sha256=CFT1oIPm4kciOjwep2r1LQnpATugddSy3D839fsmgFs,1065
66
- xautomata_hive-3.16.4.dist-info/METADATA,sha256=RI8wV8jRfwXeLh_--9nx9Df6TK4z8ggQQ6Ty4kRjZ38,10750
67
- xautomata_hive-3.16.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
68
- xautomata_hive-3.16.4.dist-info/top_level.txt,sha256=pLpVAuviHGk3pzaFXU-4GKttxGTGAbFoWK8JvUl1jHQ,5
69
- xautomata_hive-3.16.4.dist-info/RECORD,,
65
+ xautomata_hive-3.16.5.dist-info/LICENSE,sha256=CFT1oIPm4kciOjwep2r1LQnpATugddSy3D839fsmgFs,1065
66
+ xautomata_hive-3.16.5.dist-info/METADATA,sha256=hhQNA34zsuZH42JeaHyGUH3oJkOnkS-AjgO7Q4wSY_I,10750
67
+ xautomata_hive-3.16.5.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
68
+ xautomata_hive-3.16.5.dist-info/top_level.txt,sha256=pLpVAuviHGk3pzaFXU-4GKttxGTGAbFoWK8JvUl1jHQ,5
69
+ xautomata_hive-3.16.5.dist-info/RECORD,,