xautomata-hive 3.16.3__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.
- hive/cookbook/customers.py +6 -6
- hive/cookbook/dashboards.py +65 -0
- hive/cookbook/probes.py +3 -2
- hive/cookbook/ts_cost_management.py +99 -46
- hive/cookbook/users.py +69 -2
- hive/version.py +1 -1
- {xautomata_hive-3.16.3.dist-info → xautomata_hive-3.16.5.dist-info}/METADATA +1 -1
- {xautomata_hive-3.16.3.dist-info → xautomata_hive-3.16.5.dist-info}/RECORD +11 -11
- {xautomata_hive-3.16.3.dist-info → xautomata_hive-3.16.5.dist-info}/LICENSE +0 -0
- {xautomata_hive-3.16.3.dist-info → xautomata_hive-3.16.5.dist-info}/WHEEL +0 -0
- {xautomata_hive-3.16.3.dist-info → xautomata_hive-3.16.5.dist-info}/top_level.txt +0 -0
hive/cookbook/customers.py
CHANGED
@@ -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)
|
@@ -1376,14 +1377,13 @@ class Customers(ApiManager):
|
|
1376
1377
|
**payload: additional parameters for the API.
|
1377
1378
|
|
1378
1379
|
Keyword Args:
|
1379
|
-
|
1380
|
-
message (string required): additional filter - payload
|
1380
|
+
uuid (str required): additional filter - payload
|
1381
1381
|
|
1382
1382
|
Returns: list"""
|
1383
1383
|
if kwargs is None:
|
1384
1384
|
kwargs = dict()
|
1385
|
-
official_payload_list = ['
|
1386
|
-
payload.get('
|
1385
|
+
official_payload_list = ['uuid']
|
1386
|
+
payload.get('uuid')
|
1387
1387
|
if not self._silence_warning:
|
1388
1388
|
warning_wrong_parameters(self.customers_acknowledged_create.
|
1389
1389
|
__name__, payload, official_payload_list)
|
hive/cookbook/dashboards.py
CHANGED
@@ -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)
|
@@ -221,192 +221,245 @@ class TsCostManagement(ApiManager):
|
|
221
221
|
return response
|
222
222
|
|
223
223
|
def ts_cost_management_ccm_by_date(self, uuid_customer: str,
|
224
|
-
warm_start: bool = False,
|
224
|
+
warm_start: bool = False, single_page: bool = False,
|
225
|
+
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
225
226
|
"""Query Group By Cloud Provider Subscription Type Resource Group
|
226
227
|
|
227
228
|
Args:
|
228
229
|
uuid_customer (str, required): uuid_customer
|
229
230
|
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.
|
231
|
+
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
232
|
+
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
230
233
|
kwargs (dict, optional): additional parameters for execute. Default to None.
|
231
234
|
**params: additional parameters for the API.
|
232
235
|
|
233
236
|
Keyword Args:
|
234
|
-
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
|
235
237
|
date_start (string optional): additional filter - parameter
|
236
238
|
date_end (string optional): additional filter - parameter
|
237
239
|
interval (None optional): additional filter - parameter
|
240
|
+
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
241
|
+
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
242
|
+
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
|
243
|
+
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
|
244
|
+
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
|
238
245
|
|
239
246
|
Returns: list"""
|
240
247
|
if kwargs is None:
|
241
248
|
kwargs = dict()
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
), params.get('
|
249
|
+
official_params_list = ['date_start', 'date_end', 'interval',
|
250
|
+
'skip', 'limit', 'like', 'join', 'count']
|
251
|
+
params.get('date_start'), params.get('date_end'), params.get('interval'
|
252
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
253
|
+
), params.get('join'), params.get('count')
|
247
254
|
if not self._silence_warning:
|
248
255
|
warning_wrong_parameters(self.ts_cost_management_ccm_by_date.
|
249
256
|
__name__, params, official_params_list)
|
250
257
|
response = self.execute('GET', path=
|
251
|
-
f'/ts_cost_management/ccm_by_date/{uuid_customer}',
|
252
|
-
|
258
|
+
f'/ts_cost_management/ccm_by_date/{uuid_customer}', single_page
|
259
|
+
=single_page, page_size=page_size, warm_start=warm_start,
|
260
|
+
params=params, **kwargs)
|
253
261
|
return response
|
254
262
|
|
255
263
|
def ts_cost_management_ccm_by_subscription_type(self,
|
256
|
-
uuid_customer: str, warm_start: bool = False,
|
257
|
-
|
264
|
+
uuid_customer: str, warm_start: bool = False,
|
265
|
+
single_page: bool = False, page_size: int = 5000,
|
266
|
+
kwargs: dict = None, **params) -> list:
|
258
267
|
"""Query Group By Cloud Provider Subscription Type
|
259
268
|
|
260
269
|
Args:
|
261
270
|
uuid_customer (str, required): uuid_customer
|
262
271
|
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.
|
272
|
+
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
273
|
+
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
263
274
|
kwargs (dict, optional): additional parameters for execute. Default to None.
|
264
275
|
**params: additional parameters for the API.
|
265
276
|
|
266
277
|
Keyword Args:
|
267
|
-
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
|
268
278
|
date_start (string optional): additional filter - parameter
|
269
279
|
date_end (string optional): additional filter - parameter
|
280
|
+
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
281
|
+
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
282
|
+
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
|
283
|
+
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
|
284
|
+
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
|
270
285
|
|
271
286
|
Returns: list"""
|
272
287
|
if kwargs is None:
|
273
288
|
kwargs = dict()
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
289
|
+
official_params_list = ['date_start', 'date_end', 'skip', 'limit',
|
290
|
+
'like', 'join', 'count']
|
291
|
+
params.get('date_start'), params.get('date_end'), params.get('skip'
|
292
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
293
|
+
), params.get('count')
|
278
294
|
if not self._silence_warning:
|
279
295
|
warning_wrong_parameters(self.
|
280
296
|
ts_cost_management_ccm_by_subscription_type.__name__,
|
281
297
|
params, official_params_list)
|
282
298
|
response = self.execute('GET', path=
|
283
299
|
f'/ts_cost_management/ccm_by_subscription_type/{uuid_customer}',
|
284
|
-
|
300
|
+
single_page=single_page, page_size=page_size, warm_start=
|
301
|
+
warm_start, params=params, **kwargs)
|
285
302
|
return response
|
286
303
|
|
287
304
|
def ts_cost_management_ccm_by_category(self, uuid_customer: str,
|
288
|
-
warm_start: bool = False,
|
305
|
+
warm_start: bool = False, single_page: bool = False,
|
306
|
+
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
289
307
|
"""Query Group By Category
|
290
308
|
|
291
309
|
Args:
|
292
310
|
uuid_customer (str, required): uuid_customer
|
293
311
|
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.
|
312
|
+
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
313
|
+
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
294
314
|
kwargs (dict, optional): additional parameters for execute. Default to None.
|
295
315
|
**params: additional parameters for the API.
|
296
316
|
|
297
317
|
Keyword Args:
|
298
|
-
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
|
299
318
|
date_start (string optional): additional filter - parameter
|
300
319
|
date_end (string optional): additional filter - parameter
|
320
|
+
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
321
|
+
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
322
|
+
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
|
323
|
+
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
|
324
|
+
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
|
301
325
|
|
302
326
|
Returns: list"""
|
303
327
|
if kwargs is None:
|
304
328
|
kwargs = dict()
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
329
|
+
official_params_list = ['date_start', 'date_end', 'skip', 'limit',
|
330
|
+
'like', 'join', 'count']
|
331
|
+
params.get('date_start'), params.get('date_end'), params.get('skip'
|
332
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
333
|
+
), params.get('count')
|
309
334
|
if not self._silence_warning:
|
310
335
|
warning_wrong_parameters(self.
|
311
336
|
ts_cost_management_ccm_by_category.__name__, params,
|
312
337
|
official_params_list)
|
313
338
|
response = self.execute('GET', path=
|
314
339
|
f'/ts_cost_management/ccm_by_category/{uuid_customer}',
|
315
|
-
|
340
|
+
single_page=single_page, page_size=page_size, warm_start=
|
341
|
+
warm_start, params=params, **kwargs)
|
316
342
|
return response
|
317
343
|
|
318
344
|
def ts_cost_management_ccm_by_resource_location(self,
|
319
|
-
uuid_customer: str, warm_start: bool = False,
|
320
|
-
|
345
|
+
uuid_customer: str, warm_start: bool = False,
|
346
|
+
single_page: bool = False, page_size: int = 5000,
|
347
|
+
kwargs: dict = None, **params) -> list:
|
321
348
|
"""Query Group By Resource Location
|
322
349
|
|
323
350
|
Args:
|
324
351
|
uuid_customer (str, required): uuid_customer
|
325
352
|
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.
|
353
|
+
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
354
|
+
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
326
355
|
kwargs (dict, optional): additional parameters for execute. Default to None.
|
327
356
|
**params: additional parameters for the API.
|
328
357
|
|
329
358
|
Keyword Args:
|
330
|
-
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
|
331
359
|
date_start (string optional): additional filter - parameter
|
332
360
|
date_end (string optional): additional filter - parameter
|
361
|
+
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
362
|
+
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
363
|
+
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
|
364
|
+
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
|
365
|
+
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
|
333
366
|
|
334
367
|
Returns: list"""
|
335
368
|
if kwargs is None:
|
336
369
|
kwargs = dict()
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
370
|
+
official_params_list = ['date_start', 'date_end', 'skip', 'limit',
|
371
|
+
'like', 'join', 'count']
|
372
|
+
params.get('date_start'), params.get('date_end'), params.get('skip'
|
373
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
374
|
+
), params.get('count')
|
341
375
|
if not self._silence_warning:
|
342
376
|
warning_wrong_parameters(self.
|
343
377
|
ts_cost_management_ccm_by_resource_location.__name__,
|
344
378
|
params, official_params_list)
|
345
379
|
response = self.execute('GET', path=
|
346
380
|
f'/ts_cost_management/ccm_by_resource_location/{uuid_customer}',
|
347
|
-
|
381
|
+
single_page=single_page, page_size=page_size, warm_start=
|
382
|
+
warm_start, params=params, **kwargs)
|
348
383
|
return response
|
349
384
|
|
350
385
|
def ts_cost_management_ccm_by_resource_group(self, uuid_customer: str,
|
351
|
-
warm_start: bool = False,
|
386
|
+
warm_start: bool = False, single_page: bool = False,
|
387
|
+
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
352
388
|
"""Query Group By Resource Group
|
353
389
|
|
354
390
|
Args:
|
355
391
|
uuid_customer (str, required): uuid_customer
|
356
392
|
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.
|
393
|
+
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
394
|
+
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
357
395
|
kwargs (dict, optional): additional parameters for execute. Default to None.
|
358
396
|
**params: additional parameters for the API.
|
359
397
|
|
360
398
|
Keyword Args:
|
361
|
-
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
|
362
399
|
date_start (string optional): additional filter - parameter
|
363
400
|
date_end (string optional): additional filter - parameter
|
401
|
+
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
402
|
+
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
403
|
+
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
|
404
|
+
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
|
405
|
+
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
|
364
406
|
|
365
407
|
Returns: list"""
|
366
408
|
if kwargs is None:
|
367
409
|
kwargs = dict()
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
410
|
+
official_params_list = ['date_start', 'date_end', 'skip', 'limit',
|
411
|
+
'like', 'join', 'count']
|
412
|
+
params.get('date_start'), params.get('date_end'), params.get('skip'
|
413
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
414
|
+
), params.get('count')
|
372
415
|
if not self._silence_warning:
|
373
416
|
warning_wrong_parameters(self.
|
374
417
|
ts_cost_management_ccm_by_resource_group.__name__, params,
|
375
418
|
official_params_list)
|
376
419
|
response = self.execute('GET', path=
|
377
420
|
f'/ts_cost_management/ccm_by_resource_group/{uuid_customer}',
|
378
|
-
|
421
|
+
single_page=single_page, page_size=page_size, warm_start=
|
422
|
+
warm_start, params=params, **kwargs)
|
379
423
|
return response
|
380
424
|
|
381
425
|
def ts_cost_management_ccm_by_subscription(self, uuid_customer: str,
|
382
|
-
warm_start: bool = False,
|
426
|
+
warm_start: bool = False, single_page: bool = False,
|
427
|
+
page_size: int = 5000, kwargs: dict = None, **params) -> list:
|
383
428
|
"""Query Group By Subscription
|
384
429
|
|
385
430
|
Args:
|
386
431
|
uuid_customer (str, required): uuid_customer
|
387
432
|
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.
|
433
|
+
single_page (bool, optional): se False la risposta viene ottenuta a step per non appesantire le API. Default to False.
|
434
|
+
page_size (int, optional): Numero di oggetti per pagina se single_page == False. Default to 5000.
|
388
435
|
kwargs (dict, optional): additional parameters for execute. Default to None.
|
389
436
|
**params: additional parameters for the API.
|
390
437
|
|
391
438
|
Keyword Args:
|
392
|
-
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
|
393
439
|
date_start (string optional): additional filter - parameter
|
394
440
|
date_end (string optional): additional filter - parameter
|
441
|
+
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
442
|
+
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
443
|
+
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
|
444
|
+
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
|
445
|
+
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
|
395
446
|
|
396
447
|
Returns: list"""
|
397
448
|
if kwargs is None:
|
398
449
|
kwargs = dict()
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
450
|
+
official_params_list = ['date_start', 'date_end', 'skip', 'limit',
|
451
|
+
'like', 'join', 'count']
|
452
|
+
params.get('date_start'), params.get('date_end'), params.get('skip'
|
453
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
454
|
+
), params.get('count')
|
403
455
|
if not self._silence_warning:
|
404
456
|
warning_wrong_parameters(self.
|
405
457
|
ts_cost_management_ccm_by_subscription.__name__, params,
|
406
458
|
official_params_list)
|
407
459
|
response = self.execute('GET', path=
|
408
460
|
f'/ts_cost_management/ccm_by_subscription/{uuid_customer}',
|
409
|
-
|
461
|
+
single_page=single_page, page_size=page_size, warm_start=
|
462
|
+
warm_start, params=params, **kwargs)
|
410
463
|
return response
|
411
464
|
|
412
465
|
def ts_cost_management_anomalies(self, warm_start: bool = False,
|
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.
|
1
|
+
version = '3.16.5'
|
@@ -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=
|
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=
|
21
|
-
hive/cookbook/dashboards.py,sha256=
|
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=
|
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
|
@@ -50,20 +50,20 @@ hive/cookbook/sites.py,sha256=1mMfi1vsF0zAfcrCQy8G-joF3JmbJfKvhZExI48Avsg,33138
|
|
50
50
|
hive/cookbook/terms_and_conditions.py,sha256=cc01N2N41yAbFa5HCvY2Ur4nujSQb1VnEbsrWVq1znY,4669
|
51
51
|
hive/cookbook/tree_hierarchy.py,sha256=ldJ1hMFQcghA6P2gRHheLjG74X8B6Z1JaupeAW9vg9s,23749
|
52
52
|
hive/cookbook/ts_cost_azure_raw.py,sha256=e4-bsmjOEu14dQljyNzZpEkG7-iSu1LaP9w3zbB1FHE,34075
|
53
|
-
hive/cookbook/ts_cost_management.py,sha256=
|
53
|
+
hive/cookbook/ts_cost_management.py,sha256=CDDR73o67aMJ1G9JmrF8UruGZp9jfxw2FhsCHqDbLC8,41506
|
54
54
|
hive/cookbook/ts_metric_status.py,sha256=hnWhpqBNYawEsMwOd1G5Vgg6JUPk7lT1NBfnxg9TbCw,6370
|
55
55
|
hive/cookbook/ts_metric_value.py,sha256=ehkjUMsAcZaA9HC0sN39gYKtXEG2xArdPsmhXWKSBIA,6103
|
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=
|
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.
|
66
|
-
xautomata_hive-3.16.
|
67
|
-
xautomata_hive-3.16.
|
68
|
-
xautomata_hive-3.16.
|
69
|
-
xautomata_hive-3.16.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|