xautomata-hive 3.17.0__py3-none-any.whl → 3.18.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.
@@ -77,7 +77,7 @@ class CostTags(ApiManager):
77
77
  def cost_tags_query(self, warm_start: bool = False,
78
78
  single_page: bool = False, page_size: int = 5000,
79
79
  kwargs: dict = None, **params) -> list:
80
- """Read Cost Tags
80
+ """Get Ts Costs Rows
81
81
 
82
82
  Args:
83
83
  warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
@@ -89,31 +89,24 @@ class CostTags(ApiManager):
89
89
  Keyword Args:
90
90
  date_start (string required): additional filter - parameter
91
91
  date_end (string required): additional filter - parameter
92
- select_operation (None required): additional filter - parameter
93
- selected_tags (string required): additional filter - parameter
92
+ uuid_view (string required): additional filter - parameter
93
+ select_operation (None optional): additional filter - parameter
94
+ selected_tags (string optional): additional filter - parameter
94
95
  unselect_operation (None optional): additional filter - parameter
95
96
  unselected_tags (string optional): additional filter - parameter
96
- sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
97
- null_fields (string optional): additional filter - parameter
98
97
  skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
99
98
  limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
100
- like (boolean optional): Se True, eventuali filtri richiesti dalla API vengono presi come porzioni di testo, se False il matching sul campo dei filtri deve essere esatto. Default to True. - parameter
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
- count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
103
99
 
104
100
  Returns: list"""
105
101
  if kwargs is None:
106
102
  kwargs = dict()
107
- official_params_list = ['date_start', 'date_end',
103
+ official_params_list = ['date_start', 'date_end', 'uuid_view',
108
104
  'select_operation', 'selected_tags', 'unselect_operation',
109
- 'unselected_tags', 'sort_by', 'null_fields', 'skip', 'limit',
110
- 'like', 'join', 'count']
105
+ 'unselected_tags', 'skip', 'limit']
111
106
  params.get('date_start'), params.get('date_end'), params.get(
112
- 'select_operation'), params.get('selected_tags'), params.get(
113
- 'unselect_operation'), params.get('unselected_tags'), params.get(
114
- 'sort_by'), params.get('null_fields'), params.get('skip'
115
- ), params.get('limit'), params.get('like'), params.get('join'
116
- ), params.get('count')
107
+ 'uuid_view'), params.get('select_operation'), params.get(
108
+ 'selected_tags'), params.get('unselect_operation'), params.get(
109
+ 'unselected_tags'), params.get('skip'), params.get('limit')
117
110
  if not self._silence_warning:
118
111
  warning_wrong_parameters(self.cost_tags_query.__name__, params,
119
112
  official_params_list)
@@ -161,14 +161,16 @@ class CostTreeNodes(ApiManager):
161
161
  Keyword Args:
162
162
  date_start (string required): additional filter - parameter
163
163
  date_end (string required): additional filter - parameter
164
+ resource_id (string optional): additional filter - parameter
164
165
 
165
166
  Returns: list"""
166
167
  if kwargs is None:
167
168
  kwargs = dict()
168
169
  kwargs, params = handling_single_page_methods(kwargs=kwargs, params
169
170
  =params)
170
- official_params_list = ['date_start', 'date_end']
171
- params.get('date_start'), params.get('date_end')
171
+ official_params_list = ['date_start', 'date_end', 'resource_id']
172
+ params.get('date_start'), params.get('date_end'), params.get(
173
+ 'resource_id')
172
174
  if not self._silence_warning:
173
175
  warning_wrong_parameters(self.cost_tree_nodes_navigate_tree.
174
176
  __name__, params, official_params_list)
@@ -193,15 +195,19 @@ class CostTreeNodes(ApiManager):
193
195
  Keyword Args:
194
196
  date_start (string required): additional filter - parameter
195
197
  date_end (string required): additional filter - parameter
198
+ resource_id (string optional): additional filter - parameter
196
199
  skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
197
200
  limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
201
+ sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
198
202
 
199
203
  Returns: list"""
200
204
  if kwargs is None:
201
205
  kwargs = dict()
202
- official_params_list = ['date_start', 'date_end', 'skip', 'limit']
203
- params.get('date_start'), params.get('date_end'), params.get('skip'
204
- ), params.get('limit')
206
+ official_params_list = ['date_start', 'date_end', 'resource_id',
207
+ 'skip', 'limit', 'sort_by']
208
+ params.get('date_start'), params.get('date_end'), params.get(
209
+ 'resource_id'), params.get('skip'), params.get('limit'
210
+ ), params.get('sort_by')
205
211
  if not self._silence_warning:
206
212
  warning_wrong_parameters(self.
207
213
  cost_tree_nodes_get_node_resources.__name__, params,
@@ -211,3 +217,34 @@ class CostTreeNodes(ApiManager):
211
217
  single_page, page_size=page_size, warm_start=warm_start, params
212
218
  =params, **kwargs)
213
219
  return response
220
+
221
+ def cost_tree_nodes_previous_period(self, uuid: str,
222
+ warm_start: bool = False, kwargs: dict = None, **params) -> list:
223
+ """Get Previous Period
224
+
225
+ Args:
226
+ uuid (str, required): uuid
227
+ warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
228
+ kwargs (dict, optional): additional parameters for execute. Default to None.
229
+ **params: additional parameters for the API.
230
+
231
+ Keyword Args:
232
+ date_start (string required): additional filter - parameter
233
+ date_end (string required): additional filter - parameter
234
+ resource_id (string optional): additional filter - parameter
235
+
236
+ Returns: list"""
237
+ if kwargs is None:
238
+ kwargs = dict()
239
+ kwargs, params = handling_single_page_methods(kwargs=kwargs, params
240
+ =params)
241
+ official_params_list = ['date_start', 'date_end', 'resource_id']
242
+ params.get('date_start'), params.get('date_end'), params.get(
243
+ 'resource_id')
244
+ if not self._silence_warning:
245
+ warning_wrong_parameters(self.cost_tree_nodes_previous_period.
246
+ __name__, params, official_params_list)
247
+ response = self.execute('GET', path=
248
+ f'/cost_tree_nodes/previous_period/{uuid}', warm_start=
249
+ warm_start, params=params, **kwargs)
250
+ return response
@@ -154,3 +154,38 @@ class CostTreeResources(ApiManager):
154
154
  single_page=single_page, page_size=page_size, warm_start=
155
155
  warm_start, params=params, **kwargs)
156
156
  return response
157
+
158
+ def cost_tree_resources_unfully_assigned_resources(self, uuid_view: str,
159
+ warm_start: bool = False, kwargs: dict = None, **params) -> list:
160
+ """Get Unfully Assigned Resources
161
+
162
+ Args:
163
+ uuid_view (str, required): uuid_view
164
+ warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
165
+ kwargs (dict, optional): additional parameters for execute. Default to None.
166
+ **params: additional parameters for the API.
167
+
168
+ Keyword Args:
169
+ date_start (string required): additional filter - parameter
170
+ date_end (string required): additional filter - parameter
171
+ resource_id (string optional): additional filter - parameter
172
+ limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
173
+ sort_by (string optional): Stringa separata da virgole di campi su cui ordinare. Si indica uno o piu campi della risposta e si puo chiedere di ottenere i valori di quei campi in ordine ascendente o discendente. Esempio "Customer:Desc". Default to "". - parameter
174
+
175
+ Returns: list"""
176
+ if kwargs is None:
177
+ kwargs = dict()
178
+ kwargs, params = handling_single_page_methods(kwargs=kwargs, params
179
+ =params)
180
+ official_params_list = ['date_start', 'date_end', 'resource_id',
181
+ 'limit', 'sort_by']
182
+ params.get('date_start'), params.get('date_end'), params.get(
183
+ 'resource_id'), params.get('limit'), params.get('sort_by')
184
+ if not self._silence_warning:
185
+ warning_wrong_parameters(self.
186
+ cost_tree_resources_unfully_assigned_resources.__name__,
187
+ params, official_params_list)
188
+ response = self.execute('GET', path=
189
+ f'/cost_tree_resources/{uuid_view}/unfully_assigned_resources/',
190
+ warm_start=warm_start, params=params, **kwargs)
191
+ return response
@@ -1204,15 +1204,17 @@ class Customers(ApiManager):
1204
1204
  kwargs)
1205
1205
  return response
1206
1206
 
1207
- def customers_aws_v2_subscription_create(self, kwargs: dict = None, **
1208
- payload) -> list:
1207
+ def customers_aws_v2_subscription_create(self, params: dict = False,
1208
+ kwargs: dict = None, **payload) -> list:
1209
1209
  """Create Aws Customer Sub
1210
1210
 
1211
1211
  Args:
1212
+ params (dict, optional): additional parameters for the API.
1212
1213
  kwargs (dict, optional): additional parameters for execute. Default to None.
1213
1214
  **payload: additional parameters for the API.
1214
1215
 
1215
1216
  Keyword Args:
1217
+ extract_resource_id (boolean optional): additional filter - parameter
1216
1218
  customer (None required): additional filter - payload
1217
1219
  aws_customer (None required): additional filter - payload
1218
1220
 
@@ -1226,19 +1228,22 @@ class Customers(ApiManager):
1226
1228
  customers_aws_v2_subscription_create.__name__, payload,
1227
1229
  official_payload_list)
1228
1230
  response = self.execute('POST', path=
1229
- f'/customers/aws/v2/subscription/', payload=payload, **kwargs)
1231
+ f'/customers/aws/v2/subscription/', params=params, payload=
1232
+ payload, **kwargs)
1230
1233
  return response
1231
1234
 
1232
1235
  def customers_aws_v2_subscription_create_uuid(self, uuid: str,
1233
- kwargs: dict = None, **payload) -> list:
1236
+ params: dict = False, kwargs: dict = None, **payload) -> list:
1234
1237
  """Create Aws Customer From V2 Sub
1235
1238
 
1236
1239
  Args:
1240
+ params (dict, optional): additional parameters for the API.
1237
1241
  uuid (str, required): uuid
1238
1242
  kwargs (dict, optional): additional parameters for execute. Default to None.
1239
1243
  **payload: additional parameters for the API.
1240
1244
 
1241
1245
  Keyword Args:
1246
+ extract_resource_id (boolean optional): additional filter - parameter
1242
1247
  target_company (string required): additional filter - payload
1243
1248
  target_code (string required): additional filter - payload
1244
1249
  address (string optional): additional filter - payload
@@ -1270,8 +1275,8 @@ class Customers(ApiManager):
1270
1275
  customers_aws_v2_subscription_create.__name__, payload,
1271
1276
  official_payload_list)
1272
1277
  response = self.execute('POST', path=
1273
- f'/customers/aws/v2/subscription/{uuid}', payload=payload, **kwargs
1274
- )
1278
+ f'/customers/aws/v2/subscription/{uuid}', params=params,
1279
+ payload=payload, **kwargs)
1275
1280
  return response
1276
1281
 
1277
1282
  def customers_networks(self, uuid_customer: str,
@@ -618,6 +618,41 @@ class Downtimes(ApiManager):
618
618
  **kwargs)
619
619
  return response
620
620
 
621
+ def downtimes_groups_bulk(self, payload: list, warm_start: bool = False,
622
+ single_page: bool = False, page_size: int = 50, kwargs: dict = None,
623
+ **params) -> list:
624
+ """Bulk Read Groups Downtimes
625
+
626
+ Args:
627
+ payload (list[dict], optional): List dict to create.
628
+ warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
629
+ single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
630
+ page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 50.
631
+ kwargs (dict, optional): additional parameters for execute. Default to None.
632
+ **params: additional parameters for the API.
633
+
634
+ Keyword Args:
635
+ 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
636
+
637
+ Examples:
638
+ payload =
639
+ [
640
+ "uuid": "str", required
641
+ ]
642
+
643
+ Returns: list"""
644
+ if kwargs is None:
645
+ kwargs = dict()
646
+ official_params_list = ['join']
647
+ params.get('join')
648
+ if not self._silence_warning:
649
+ warning_wrong_parameters(self.downtimes_groups_bulk.__name__,
650
+ params, official_params_list)
651
+ response = self.execute('POST', path=f'/downtimes/bulk/read/groups',
652
+ single_page=single_page, page_size=page_size, warm_start=
653
+ warm_start, params=params, payload=payload, **kwargs)
654
+ return response
655
+
621
656
  def downtimes_groups_create_bulk(self, payload: list,
622
657
  single_page: bool = False, page_size: int = 50, kwargs: dict = None,
623
658
  **params) -> list:
@@ -683,6 +718,42 @@ class Downtimes(ApiManager):
683
718
  page_size=page_size, payload=payload, **kwargs)
684
719
  return response
685
720
 
721
+ def downtimes_objects_bulk(self, payload: list,
722
+ warm_start: bool = False, single_page: bool = False,
723
+ page_size: int = 50, kwargs: dict = None, **params) -> list:
724
+ """Bulk Read Objects Downtimes
725
+
726
+ Args:
727
+ payload (list[dict], optional): List dict to create.
728
+ warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
729
+ single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
730
+ page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 50.
731
+ kwargs (dict, optional): additional parameters for execute. Default to None.
732
+ **params: additional parameters for the API.
733
+
734
+ Keyword Args:
735
+ 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
736
+
737
+ Examples:
738
+ payload =
739
+ [
740
+ "uuid": "str", required
741
+ ]
742
+
743
+ Returns: list"""
744
+ if kwargs is None:
745
+ kwargs = dict()
746
+ official_params_list = ['join']
747
+ params.get('join')
748
+ if not self._silence_warning:
749
+ warning_wrong_parameters(self.downtimes_objects_bulk.__name__,
750
+ params, official_params_list)
751
+ response = self.execute('POST', path=
752
+ f'/downtimes/bulk/read/objects', single_page=single_page,
753
+ page_size=page_size, warm_start=warm_start, params=params,
754
+ payload=payload, **kwargs)
755
+ return response
756
+
686
757
  def downtimes_objects_create_bulk(self, payload: list,
687
758
  single_page: bool = False, page_size: int = 50, kwargs: dict = None,
688
759
  **params) -> list:
hive/cookbook/groups.py CHANGED
@@ -653,6 +653,45 @@ class Groups(ApiManager):
653
653
  **kwargs)
654
654
  return response
655
655
 
656
+ def groups_downtimes_bulk(self, payload: list, warm_start: bool = False,
657
+ single_page: bool = False, page_size: int = 50, kwargs: dict = None,
658
+ **params) -> list:
659
+ """Bulk Read Groups Downtimes
660
+
661
+ Args:
662
+ payload (list[dict], optional): List dict to create.
663
+ warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
664
+ single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
665
+ page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 50.
666
+ kwargs (dict, optional): additional parameters for execute. Default to None.
667
+ **params: additional parameters for the API.
668
+
669
+ Keyword Args:
670
+ active_at_timestamp (string optional): additional filter - parameter
671
+ active_after_timestamp (string optional): additional filter - parameter
672
+ 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
673
+
674
+ Examples:
675
+ payload =
676
+ [
677
+ "uuid": "str", required
678
+ ]
679
+
680
+ Returns: list"""
681
+ if kwargs is None:
682
+ kwargs = dict()
683
+ official_params_list = ['active_at_timestamp',
684
+ 'active_after_timestamp', 'join']
685
+ params.get('active_at_timestamp'), params.get('active_after_timestamp'
686
+ ), params.get('join')
687
+ if not self._silence_warning:
688
+ warning_wrong_parameters(self.groups_downtimes_bulk.__name__,
689
+ params, official_params_list)
690
+ response = self.execute('POST', path=f'/groups/bulk/read/downtimes',
691
+ single_page=single_page, page_size=page_size, warm_start=
692
+ warm_start, params=params, payload=payload, **kwargs)
693
+ return response
694
+
656
695
  def groups_downtimes_create_bulk(self, payload: list,
657
696
  single_page: bool = False, page_size: int = 50, kwargs: dict = None,
658
697
  **params) -> list:
hive/cookbook/messages.py CHANGED
@@ -256,7 +256,7 @@ class Messages(ApiManager):
256
256
  return response
257
257
 
258
258
  def messages_compile(self, uuid_metric: str, uuid: str,
259
- warm_start: bool = False, kwargs: dict = None) -> list:
259
+ warm_start: bool = False, kwargs: dict = None, **params) -> list:
260
260
  """Compile Mask
261
261
 
262
262
  Args:
@@ -264,17 +264,28 @@ class Messages(ApiManager):
264
264
  uuid (str, required): uuid
265
265
  warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
266
266
  kwargs (dict, optional): additional parameters for execute. Default to None.
267
+ **params: additional parameters for the API.
268
+
269
+ Keyword Args:
270
+ service_profile (string optional): additional filter - parameter
267
271
 
268
272
  Returns: list"""
269
273
  if kwargs is None:
270
274
  kwargs = dict()
275
+ kwargs, params = handling_single_page_methods(kwargs=kwargs, params
276
+ =params)
277
+ official_params_list = ['service_profile']
278
+ params.get('service_profile')
279
+ if not self._silence_warning:
280
+ warning_wrong_parameters(self.messages_compile.__name__, params,
281
+ official_params_list)
271
282
  response = self.execute('GET', path=
272
283
  f'/messages/{uuid_metric}/compile/{uuid}', warm_start=
273
- warm_start, **kwargs)
284
+ warm_start, params=params, **kwargs)
274
285
  return response
275
286
 
276
287
  def messages_compile_additional(self, uuid_metric: str, uuid: str,
277
- warm_start: bool = False, kwargs: dict = None) -> list:
288
+ warm_start: bool = False, kwargs: dict = None, **params) -> list:
278
289
  """Compile Additional Mask
279
290
 
280
291
  Args:
@@ -282,11 +293,22 @@ class Messages(ApiManager):
282
293
  uuid (str, required): uuid
283
294
  warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
284
295
  kwargs (dict, optional): additional parameters for execute. Default to None.
296
+ **params: additional parameters for the API.
297
+
298
+ Keyword Args:
299
+ service_profile (string optional): additional filter - parameter
285
300
 
286
301
  Returns: list"""
287
302
  if kwargs is None:
288
303
  kwargs = dict()
304
+ kwargs, params = handling_single_page_methods(kwargs=kwargs, params
305
+ =params)
306
+ official_params_list = ['service_profile']
307
+ params.get('service_profile')
308
+ if not self._silence_warning:
309
+ warning_wrong_parameters(self.messages_compile_additional.
310
+ __name__, params, official_params_list)
289
311
  response = self.execute('GET', path=
290
312
  f'/messages/{uuid_metric}/compile_additional/{uuid}',
291
- warm_start=warm_start, **kwargs)
313
+ warm_start=warm_start, params=params, **kwargs)
292
314
  return response
hive/cookbook/objects.py CHANGED
@@ -704,6 +704,54 @@ class Objects(ApiManager):
704
704
  **kwargs)
705
705
  return response
706
706
 
707
+ def objects_downtimes_bulk(self, payload: list,
708
+ warm_start: bool = False, single_page: bool = False,
709
+ page_size: int = 50, kwargs: dict = None, **params) -> list:
710
+ """Bulk Read Downtimes
711
+
712
+ Args:
713
+ payload (list[dict], optional): List dict to create.
714
+ warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
715
+ single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
716
+ page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 50.
717
+ kwargs (dict, optional): additional parameters for execute. Default to None.
718
+ **params: additional parameters for the API.
719
+
720
+ Keyword Args:
721
+ code (string optional): additional filter - parameter
722
+ status (string optional): additional filter - parameter
723
+ active_at_timestamp (string optional): additional filter - parameter
724
+ active_after_timestamp (string optional): additional filter - parameter
725
+ skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
726
+ limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
727
+ like (boolean optional): Se True, eventuali filtri richiesti dalla API vengono presi come porzioni di testo, se False il matching sul campo dei filtri deve essere esatto. Default to True. - parameter
728
+ 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
729
+ count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
730
+
731
+ Examples:
732
+ payload =
733
+ [
734
+ "uuid": "str", required
735
+ ]
736
+
737
+ Returns: list"""
738
+ if kwargs is None:
739
+ kwargs = dict()
740
+ official_params_list = ['code', 'status', 'active_at_timestamp',
741
+ 'active_after_timestamp', 'skip', 'limit', 'like', 'join', 'count']
742
+ params.get('code'), params.get('status'), params.get(
743
+ 'active_at_timestamp'), params.get('active_after_timestamp'
744
+ ), params.get('skip'), params.get('limit'), params.get('like'
745
+ ), params.get('join'), params.get('count')
746
+ if not self._silence_warning:
747
+ warning_wrong_parameters(self.objects_downtimes_bulk.__name__,
748
+ params, official_params_list)
749
+ response = self.execute('POST', path=
750
+ f'/objects/bulk/read/downtimes/', single_page=single_page,
751
+ page_size=page_size, warm_start=warm_start, params=params,
752
+ payload=payload, **kwargs)
753
+ return response
754
+
707
755
  def objects_downtimes_create_bulk(self, payload: list,
708
756
  single_page: bool = False, page_size: int = 50, kwargs: dict = None,
709
757
  **params) -> list:
@@ -769,54 +817,6 @@ class Objects(ApiManager):
769
817
  page_size=page_size, payload=payload, **kwargs)
770
818
  return response
771
819
 
772
- def objects_downtimes_bulk(self, payload: list,
773
- warm_start: bool = False, single_page: bool = False,
774
- page_size: int = 50, kwargs: dict = None, **params) -> list:
775
- """Bulk Read Downtimes
776
-
777
- Args:
778
- payload (list[dict], optional): List dict to create.
779
- warm_start (bool, optional): salva la risposta in un file e se viene richiamata la stessa funzione con gli stessi argomenti restituisce il contenuto del file. Default to False.
780
- single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
781
- page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 50.
782
- kwargs (dict, optional): additional parameters for execute. Default to None.
783
- **params: additional parameters for the API.
784
-
785
- Keyword Args:
786
- code (string optional): additional filter - parameter
787
- status (string optional): additional filter - parameter
788
- active_at_timestamp (string optional): additional filter - parameter
789
- active_after_timestamp (string optional): additional filter - parameter
790
- skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
791
- limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
792
- like (boolean optional): Se True, eventuali filtri richiesti dalla API vengono presi come porzioni di testo, se False il matching sul campo dei filtri deve essere esatto. Default to True. - parameter
793
- 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
794
- count (boolean optional): Se True nel header della risposta e' presente la dimensione massima a db della chiamata fatta, sconsigliabile perche raddoppia il tempo per chiamata. Default to False. - parameter
795
-
796
- Examples:
797
- payload =
798
- [
799
- "uuid": "str", required
800
- ]
801
-
802
- Returns: list"""
803
- if kwargs is None:
804
- kwargs = dict()
805
- official_params_list = ['code', 'status', 'active_at_timestamp',
806
- 'active_after_timestamp', 'skip', 'limit', 'like', 'join', 'count']
807
- params.get('code'), params.get('status'), params.get(
808
- 'active_at_timestamp'), params.get('active_after_timestamp'
809
- ), params.get('skip'), params.get('limit'), params.get('like'
810
- ), params.get('join'), params.get('count')
811
- if not self._silence_warning:
812
- warning_wrong_parameters(self.objects_downtimes_bulk.__name__,
813
- params, official_params_list)
814
- response = self.execute('POST', path=
815
- f'/objects/bulk/read/downtimes/', single_page=single_page,
816
- page_size=page_size, warm_start=warm_start, params=params,
817
- payload=payload, **kwargs)
818
- return response
819
-
820
820
  def objects_probes_create_bulk(self, payload: list,
821
821
  single_page: bool = False, page_size: int = 50, kwargs: dict = None,
822
822
  **params) -> list:
hive/version.py CHANGED
@@ -1 +1 @@
1
- version = '3.17.0'
1
+ version = '3.18.0'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xautomata-hive
3
- Version: 3.17.0
3
+ Version: 3.18.0
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=5U3VvtRy4SBz3Wof_LiAwW78fFNvlhHjIN32OE4Jb3Y,18
7
+ hive/version.py,sha256=6IE91x-eBrJFrvGOSaz-AsR_zehRNCzrk78ya-9bYn8,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
@@ -13,30 +13,30 @@ hive/cookbook/anomalies.py,sha256=VnuIWGH0om2XuFiz9jlFjQWWWcIdbr3fmUECfiqvM0A,11
13
13
  hive/cookbook/calendars.py,sha256=hLjerNUJETT6xOa6-zhRFR2GTzUxruQCABcM-mJKACs,22663
14
14
  hive/cookbook/contacts.py,sha256=vhkBjaxFoQA5P-GSGLsgtcvo3rbAPfHOCiB87tXtQsM,39183
15
15
  hive/cookbook/cost_tagging.py,sha256=wwLgo3YaDI4Xm7QcQVlf4kXxz8kPP7J7Qh4ddzuaDro,7779
16
- hive/cookbook/cost_tags.py,sha256=6n67tSQPnG78HXjQ3BI1py2NI_gupJtlgrQ8U08skXo,11025
17
- hive/cookbook/cost_tree_nodes.py,sha256=BdlnmlpdEkPqWpmiNe4QZCqu4DAobXKujbi5vK9vSTg,11224
18
- hive/cookbook/cost_tree_resources.py,sha256=fV7H9W6YfyvZoB7eqYDXLdvf-_1DtPb9C_629keIZxQ,10338
16
+ hive/cookbook/cost_tags.py,sha256=NNkorPicrmyslWy-uNFYBqCUzSkm0Ad-GR-dNmZ2BuE,9954
17
+ hive/cookbook/cost_tree_nodes.py,sha256=rQht_xSxNZ4oL-Q5YNJIYGSX7tmRBDyIdOBYbsGtK1A,13294
18
+ hive/cookbook/cost_tree_resources.py,sha256=UpoYTvJrmCHbuo8WsN8r3wMV8wwpEL976LvB7qTfbDM,12398
19
19
  hive/cookbook/cost_views.py,sha256=D2DMB3YPkfEbdUZ3_WsAvJohBgmgDvyScSJ9bzpCpKM,10760
20
- hive/cookbook/customers.py,sha256=2zh6n8igVY7R-JXkjUkvRBtZnHFMwjQ106ybaWnxmf8,77912
20
+ hive/cookbook/customers.py,sha256=tFVMoHDiy-m02DVhZGrZYlOjmLv9060oMQh1xx9FZkE,78305
21
21
  hive/cookbook/dashboards.py,sha256=9WC2Kb-okU2BUydH3_DzOhOmMJAdE_xCHJr8N6LieKQ,33358
22
22
  hive/cookbook/dispatchers.py,sha256=Mk-u6xhBYdvU_av9ac9a1yejLiukUB30Ey9mIme-V5w,43301
23
- hive/cookbook/downtimes.py,sha256=ylhT8TPm87LRjSVwoZgeKwUqnJ2IPva0jqcudbhS0cI,45001
23
+ hive/cookbook/downtimes.py,sha256=NHA_W64tJk1YO9GmshyNstROzPHYJHAAwZnIFfjZh_I,48511
24
24
  hive/cookbook/external_tickets.py,sha256=Lv30Mu6Hu4L8zWdduR_2OUCC_QTy8rvdWv-9gmWCljo,29510
25
25
  hive/cookbook/features.py,sha256=D_N27mifwGbmR9I7-4aHQKmBLyn4LENDqq9Yd9yp6Po,799
26
26
  hive/cookbook/firmware_updates.py,sha256=2N4dwLWWOq6it0f3SbLYixzAkATZ0O9v5lX-6gQwMZE,5996
27
27
  hive/cookbook/google.py,sha256=fxequ6Vsd7kzWyP2VV2xs8JmLUJCiw_8P7gsuYZDoM0,1430
28
- hive/cookbook/groups.py,sha256=n6I0I1ERGssD8il1rFn3IdV8Z4RHdrlKW-t5wBnIKFg,38371
28
+ hive/cookbook/groups.py,sha256=5NLqs8YSDrv3XP_PHUbDUbH56qsUAhjZNscAA0TWT-o,40430
29
29
  hive/cookbook/jobs.py,sha256=VlmqbBNMx-dBMsaolHIlxJcuFTGIbPfoNOOBYhFOsnQ,4105
30
30
  hive/cookbook/last_status.py,sha256=ewv8gKdDmxohf-btM6DNxVdywY8v_4kep9D37sfRa98,13163
31
31
  hive/cookbook/login.py,sha256=ZxJmc5bh8TodbEGBdpIQgsVYnIVLmWbkmc25-6pYTr8,21677
32
- hive/cookbook/messages.py,sha256=OHaasxVPZoxY1Ouzc-kILARKb-QT7JFrv-1n1-OT-xA,14231
32
+ hive/cookbook/messages.py,sha256=dD9QQlqR9Zyu8Kg8yJev-EZQOo0poQTsFwLEIvmyNbo,15285
33
33
  hive/cookbook/metric_ingest.py,sha256=w5Ej4N4W8unyj6SjsUVmTr5fKkjkfYEYxz7TSHPWv-M,2519
34
34
  hive/cookbook/metric_types.py,sha256=CaQhOFxGVYaWcxmHfygovyheGW3up_4PQMl9Wsbehwg,28255
35
35
  hive/cookbook/metrics.py,sha256=KjS9SwnI0ZCc0Rkfho8axVTbS0bvflsO9Qx7nF0t6Kk,37824
36
36
  hive/cookbook/microsoft.py,sha256=X8Q9FGw7WbnsMyTdWUuB8R5cAk-AJ8AZVLDpC0vGrt4,1453
37
37
  hive/cookbook/notification_provider_types.py,sha256=tpSeAoluy6QQSnR4JtJQfH3O_qwcSE-lF04dWFle9yo,13463
38
38
  hive/cookbook/notification_providers.py,sha256=6dKi_wDv99HzIybTi6isLjnNNKGNpb4rnhiJzhRRYH8,11095
39
- hive/cookbook/objects.py,sha256=z_s03wXuHEfPJ0DHathhvb6OHE0Jdp4oCl5Kti0Irjw,45151
39
+ hive/cookbook/objects.py,sha256=BxpYFmZr_e8MQoA28pdl1H0BimvujajcW9MkPDymRs4,45151
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
42
  hive/cookbook/probes.py,sha256=rIRDIrJljnM9HWCEvPkEWsehDt2nLUOdC9mwSjnaTWY,23286
@@ -62,8 +62,8 @@ hive/cookbook/virtual_domains.py,sha256=-i666Jyi3j_EwRUzlymh2-q3bCxAz6TA3Q_lPVDC
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.17.0.dist-info/LICENSE,sha256=CFT1oIPm4kciOjwep2r1LQnpATugddSy3D839fsmgFs,1065
66
- xautomata_hive-3.17.0.dist-info/METADATA,sha256=DBf5h3ZU4ZXiT8nKbpdPzczJjX4VH50Kid01pMvkeRk,10750
67
- xautomata_hive-3.17.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
68
- xautomata_hive-3.17.0.dist-info/top_level.txt,sha256=pLpVAuviHGk3pzaFXU-4GKttxGTGAbFoWK8JvUl1jHQ,5
69
- xautomata_hive-3.17.0.dist-info/RECORD,,
65
+ xautomata_hive-3.18.0.dist-info/LICENSE,sha256=CFT1oIPm4kciOjwep2r1LQnpATugddSy3D839fsmgFs,1065
66
+ xautomata_hive-3.18.0.dist-info/METADATA,sha256=aO0daRP4LC9jAhjiepqJ8rt8hTK3JdenaguIKzudpew,10750
67
+ xautomata_hive-3.18.0.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
68
+ xautomata_hive-3.18.0.dist-info/top_level.txt,sha256=pLpVAuviHGk3pzaFXU-4GKttxGTGAbFoWK8JvUl1jHQ,5
69
+ xautomata_hive-3.18.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5