xautomata-hive 3.0.3__py3-none-any.whl → 3.2.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.
- hive/api.py +124 -43
- hive/cookbook/acl_docs.py +1 -1
- hive/cookbook/acl_overrides.py +22 -1
- hive/cookbook/analytics.py +11 -1
- hive/cookbook/anomalies.py +30 -1
- hive/cookbook/calendars.py +95 -1
- hive/cookbook/contacts.py +114 -1
- hive/cookbook/customers.py +293 -7
- hive/cookbook/dashboards.py +82 -1
- hive/cookbook/dispatchers.py +117 -1
- hive/cookbook/downtimes.py +100 -1
- hive/cookbook/external_tickets.py +117 -1
- hive/cookbook/firmware_updates.py +20 -1
- hive/cookbook/groups.py +88 -1
- hive/cookbook/last_status.py +48 -2
- hive/cookbook/login.py +163 -1
- hive/cookbook/messages.py +35 -1
- hive/cookbook/metric_ingest.py +1 -1
- hive/cookbook/metric_types.py +71 -1
- hive/cookbook/metrics.py +77 -1
- hive/cookbook/notification_provider_types.py +32 -1
- hive/cookbook/notification_providers.py +28 -1
- hive/cookbook/objects.py +95 -1
- hive/cookbook/opening_reasons.py +33 -1
- hive/cookbook/probe_types.py +31 -1
- hive/cookbook/probes.py +70 -1
- hive/cookbook/probes_log_ingest.py +5 -1
- hive/cookbook/profile_topics.py +24 -1
- hive/cookbook/reason_for_closure.py +36 -6
- hive/cookbook/retention_rules.py +30 -1
- hive/cookbook/schedules.py +20 -1
- hive/cookbook/services.py +114 -2
- hive/cookbook/sites.py +93 -1
- hive/cookbook/tree_hierarchy.py +89 -1
- hive/cookbook/ts_cost_azure_raw.py +154 -1
- hive/cookbook/ts_cost_management.py +136 -114
- hive/cookbook/ts_metric_status.py +20 -1
- hive/cookbook/ts_metric_value.py +19 -1
- hive/cookbook/ts_ntop_flows.py +25 -1
- hive/cookbook/ts_service_status.py +48 -2
- hive/cookbook/ts_service_value.py +43 -1
- hive/cookbook/users.py +174 -3
- hive/cookbook/users_notifications.py +109 -0
- hive/cookbook/virtual_domains.py +47 -1
- hive/cookbook/webhooks.py +21 -1
- hive/cookbook/widget_groups.py +39 -1
- hive/cookbook/widgets.py +60 -1
- hive/version.py +1 -1
- {xautomata_hive-3.0.3.dist-info → xautomata_hive-3.2.0.dist-info}/METADATA +1 -1
- xautomata_hive-3.2.0.dist-info/RECORD +58 -0
- {xautomata_hive-3.0.3.dist-info → xautomata_hive-3.2.0.dist-info}/WHEEL +1 -1
- xautomata_hive-3.0.3.dist-info/RECORD +0 -57
- {xautomata_hive-3.0.3.dist-info → xautomata_hive-3.2.0.dist-info}/LICENSE +0 -0
- {xautomata_hive-3.0.3.dist-info → xautomata_hive-3.2.0.dist-info}/top_level.txt +0 -0
hive/cookbook/contacts.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
from hive.api import ApiManager, handling_single_page_methods
|
1
|
+
from hive.api import ApiManager, handling_single_page_methods, warning_wrong_parameters
|
2
2
|
|
3
3
|
|
4
4
|
class Contacts(ApiManager):
|
@@ -37,6 +37,22 @@ class Contacts(ApiManager):
|
|
37
37
|
Returns: list"""
|
38
38
|
if kwargs is None:
|
39
39
|
kwargs = dict()
|
40
|
+
official_params_list = ['sort_by', 'null_fields', 'type', 'name',
|
41
|
+
'surname', 'qualification', 'company', 'department',
|
42
|
+
'principal_email', 'secondary_email', 'principal_mobile_number',
|
43
|
+
'secondary_mobile_number', 'phone_number', 'birthday', 'notes',
|
44
|
+
'skip', 'limit', 'like', 'join', 'count']
|
45
|
+
params.get('sort_by'), params.get('null_fields'), params.get('type'
|
46
|
+
), params.get('name'), params.get('surname'), params.get(
|
47
|
+
'qualification'), params.get('company'), params.get('department'
|
48
|
+
), params.get('principal_email'), params.get('secondary_email'
|
49
|
+
), params.get('principal_mobile_number'), params.get(
|
50
|
+
'secondary_mobile_number'), params.get('phone_number'), params.get(
|
51
|
+
'birthday'), params.get('notes'), params.get('skip'), params.get(
|
52
|
+
'limit'), params.get('like'), params.get('join'), params.get(
|
53
|
+
'count')
|
54
|
+
warning_wrong_parameters(self.contacts.__name__, params,
|
55
|
+
official_params_list)
|
40
56
|
response = self.execute('GET', path=f'/contacts/', single_page=
|
41
57
|
single_page, page_size=page_size, warm_start=warm_start, params
|
42
58
|
=params, **kwargs)
|
@@ -64,6 +80,19 @@ class Contacts(ApiManager):
|
|
64
80
|
Returns: list"""
|
65
81
|
if kwargs is None:
|
66
82
|
kwargs = dict()
|
83
|
+
official_payload_list = ['type', 'name', 'surname', 'qualification',
|
84
|
+
'company', 'department', 'principal_email', 'secondary_email',
|
85
|
+
'principal_mobile_number', 'secondary_mobile_number',
|
86
|
+
'phone_number', 'birthday', 'notes']
|
87
|
+
payload.get('type'), payload.get('name'), payload.get('surname'
|
88
|
+
), payload.get('qualification'), payload.get('company'
|
89
|
+
), payload.get('department'), payload.get('principal_email'
|
90
|
+
), payload.get('secondary_email'), payload.get(
|
91
|
+
'principal_mobile_number'), payload.get('secondary_mobile_number'
|
92
|
+
), payload.get('phone_number'), payload.get('birthday'
|
93
|
+
), payload.get('notes')
|
94
|
+
warning_wrong_parameters(self.contacts_create.__name__, payload,
|
95
|
+
official_payload_list)
|
67
96
|
response = self.execute('POST', path=f'/contacts/', payload=payload,
|
68
97
|
**kwargs)
|
69
98
|
return response
|
@@ -105,6 +134,19 @@ class Contacts(ApiManager):
|
|
105
134
|
Returns: list"""
|
106
135
|
if kwargs is None:
|
107
136
|
kwargs = dict()
|
137
|
+
official_payload_list = ['type', 'name', 'surname', 'qualification',
|
138
|
+
'company', 'department', 'principal_email', 'secondary_email',
|
139
|
+
'principal_mobile_number', 'secondary_mobile_number',
|
140
|
+
'phone_number', 'birthday', 'notes']
|
141
|
+
payload.get('type'), payload.get('name'), payload.get('surname'
|
142
|
+
), payload.get('qualification'), payload.get('company'
|
143
|
+
), payload.get('department'), payload.get('principal_email'
|
144
|
+
), payload.get('secondary_email'), payload.get(
|
145
|
+
'principal_mobile_number'), payload.get('secondary_mobile_number'
|
146
|
+
), payload.get('phone_number'), payload.get('birthday'
|
147
|
+
), payload.get('notes')
|
148
|
+
warning_wrong_parameters(self.contacts_put.__name__, payload,
|
149
|
+
official_payload_list)
|
108
150
|
response = self.execute('PUT', path=f'/contacts/{uuid}', payload=
|
109
151
|
payload, **kwargs)
|
110
152
|
return response
|
@@ -142,6 +184,13 @@ class Contacts(ApiManager):
|
|
142
184
|
Returns: list"""
|
143
185
|
if kwargs is None:
|
144
186
|
kwargs = dict()
|
187
|
+
official_params_list = ['not_in', 'type', 'skip', 'limit', 'like',
|
188
|
+
'join', 'count']
|
189
|
+
params.get('not_in'), params.get('type'), params.get('skip'
|
190
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
191
|
+
), params.get('count')
|
192
|
+
warning_wrong_parameters(self.contacts_sites.__name__, params,
|
193
|
+
official_params_list)
|
145
194
|
response = self.execute('GET', path=f'/contacts/{uuid}/sites',
|
146
195
|
single_page=single_page, page_size=page_size, warm_start=
|
147
196
|
warm_start, params=params, **kwargs)
|
@@ -160,6 +209,10 @@ class Contacts(ApiManager):
|
|
160
209
|
Returns: list"""
|
161
210
|
if kwargs is None:
|
162
211
|
kwargs = dict()
|
212
|
+
official_payload_list = ['type']
|
213
|
+
payload.get('type')
|
214
|
+
warning_wrong_parameters(self.contacts_sites_put.__name__, payload,
|
215
|
+
official_payload_list)
|
163
216
|
response = self.execute('PUT', path=
|
164
217
|
f'/contacts/{uuid}/sites/{uuid_site}', payload=payload, **kwargs)
|
165
218
|
return response
|
@@ -177,6 +230,10 @@ class Contacts(ApiManager):
|
|
177
230
|
Returns: list"""
|
178
231
|
if kwargs is None:
|
179
232
|
kwargs = dict()
|
233
|
+
official_payload_list = ['type']
|
234
|
+
payload.get('type')
|
235
|
+
warning_wrong_parameters(self.contacts_sites_create.__name__,
|
236
|
+
payload, official_payload_list)
|
180
237
|
response = self.execute('POST', path=
|
181
238
|
f'/contacts/{uuid}/sites/{uuid_site}', payload=payload, **kwargs)
|
182
239
|
return response
|
@@ -217,6 +274,13 @@ class Contacts(ApiManager):
|
|
217
274
|
Returns: list"""
|
218
275
|
if kwargs is None:
|
219
276
|
kwargs = dict()
|
277
|
+
official_params_list = ['not_in', 'type', 'skip', 'limit', 'like',
|
278
|
+
'join', 'count']
|
279
|
+
params.get('not_in'), params.get('type'), params.get('skip'
|
280
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
281
|
+
), params.get('count')
|
282
|
+
warning_wrong_parameters(self.contacts_customers.__name__, params,
|
283
|
+
official_params_list)
|
220
284
|
response = self.execute('GET', path=f'/contacts/{uuid}/customers',
|
221
285
|
single_page=single_page, page_size=page_size, warm_start=
|
222
286
|
warm_start, params=params, **kwargs)
|
@@ -235,6 +299,10 @@ class Contacts(ApiManager):
|
|
235
299
|
Returns: list"""
|
236
300
|
if kwargs is None:
|
237
301
|
kwargs = dict()
|
302
|
+
official_payload_list = ['type']
|
303
|
+
payload.get('type')
|
304
|
+
warning_wrong_parameters(self.contacts_customers_put.__name__,
|
305
|
+
payload, official_payload_list)
|
238
306
|
response = self.execute('PUT', path=
|
239
307
|
f'/contacts/{uuid}/customers/{uuid_customer}', payload=payload,
|
240
308
|
**kwargs)
|
@@ -253,6 +321,10 @@ class Contacts(ApiManager):
|
|
253
321
|
Returns: list"""
|
254
322
|
if kwargs is None:
|
255
323
|
kwargs = dict()
|
324
|
+
official_payload_list = ['type']
|
325
|
+
payload.get('type')
|
326
|
+
warning_wrong_parameters(self.contacts_customers_create.__name__,
|
327
|
+
payload, official_payload_list)
|
256
328
|
response = self.execute('POST', path=
|
257
329
|
f'/contacts/{uuid}/customers/{uuid_customer}', payload=payload,
|
258
330
|
**kwargs)
|
@@ -297,6 +369,15 @@ class Contacts(ApiManager):
|
|
297
369
|
Returns: list"""
|
298
370
|
if kwargs is None:
|
299
371
|
kwargs = dict()
|
372
|
+
official_params_list = ['not_in', 'send_email', 'role_email',
|
373
|
+
'send_sms', 'active_at_timestamp', 'skip', 'limit', 'like',
|
374
|
+
'join', 'count']
|
375
|
+
params.get('not_in'), params.get('send_email'), params.get('role_email'
|
376
|
+
), params.get('send_sms'), params.get('active_at_timestamp'
|
377
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
378
|
+
), params.get('join'), params.get('count')
|
379
|
+
warning_wrong_parameters(self.contacts_dispatchers.__name__, params,
|
380
|
+
official_params_list)
|
300
381
|
response = self.execute('GET', path=f'/contacts/{uuid}/dispatchers',
|
301
382
|
single_page=single_page, page_size=page_size, warm_start=
|
302
383
|
warm_start, params=params, **kwargs)
|
@@ -318,6 +399,12 @@ class Contacts(ApiManager):
|
|
318
399
|
Returns: list"""
|
319
400
|
if kwargs is None:
|
320
401
|
kwargs = dict()
|
402
|
+
official_payload_list = ['send_email', 'role_email', 'send_sms',
|
403
|
+
'endpoint']
|
404
|
+
payload.get('send_email'), payload.get('role_email'), payload.get(
|
405
|
+
'send_sms'), payload.get('endpoint')
|
406
|
+
warning_wrong_parameters(self.contacts_dispatchers_put.__name__,
|
407
|
+
payload, official_payload_list)
|
321
408
|
response = self.execute('PUT', path=
|
322
409
|
f'/contacts/{uuid}/dispatchers/{uuid_dispatcher}', payload=
|
323
410
|
payload, **kwargs)
|
@@ -339,6 +426,12 @@ class Contacts(ApiManager):
|
|
339
426
|
Returns: list"""
|
340
427
|
if kwargs is None:
|
341
428
|
kwargs = dict()
|
429
|
+
official_payload_list = ['send_email', 'role_email', 'send_sms',
|
430
|
+
'endpoint']
|
431
|
+
payload.get('send_email'), payload.get('role_email'), payload.get(
|
432
|
+
'send_sms'), payload.get('endpoint')
|
433
|
+
warning_wrong_parameters(self.contacts_dispatchers_create.__name__,
|
434
|
+
payload, official_payload_list)
|
342
435
|
response = self.execute('POST', path=
|
343
436
|
f'/contacts/{uuid}/dispatchers/{uuid_dispatcher}', payload=
|
344
437
|
payload, **kwargs)
|
@@ -382,6 +475,10 @@ class Contacts(ApiManager):
|
|
382
475
|
Returns: list"""
|
383
476
|
if kwargs is None:
|
384
477
|
kwargs = dict()
|
478
|
+
official_params_list = ['join']
|
479
|
+
params.get('join')
|
480
|
+
warning_wrong_parameters(self.contacts_bulk.__name__, params,
|
481
|
+
official_params_list)
|
385
482
|
response = self.execute('POST', path=f'/contacts/bulk/read/',
|
386
483
|
single_page=single_page, page_size=page_size, warm_start=
|
387
484
|
warm_start, params=params, payload=payload, **kwargs)
|
@@ -422,6 +519,10 @@ class Contacts(ApiManager):
|
|
422
519
|
Returns: list"""
|
423
520
|
if kwargs is None:
|
424
521
|
kwargs = dict()
|
522
|
+
official_params_list = ['best_effort']
|
523
|
+
params.get('best_effort')
|
524
|
+
warning_wrong_parameters(self.contacts_create_bulk.__name__, params,
|
525
|
+
official_params_list)
|
425
526
|
response = self.execute('POST', path=f'/contacts/bulk/create/',
|
426
527
|
single_page=single_page, page_size=page_size, params=params,
|
427
528
|
payload=payload, **kwargs)
|
@@ -476,6 +577,10 @@ class Contacts(ApiManager):
|
|
476
577
|
Returns: list"""
|
477
578
|
if kwargs is None:
|
478
579
|
kwargs = dict()
|
580
|
+
official_params_list = ['best_effort']
|
581
|
+
params.get('best_effort')
|
582
|
+
warning_wrong_parameters(self.contacts_customers_create_bulk.
|
583
|
+
__name__, params, official_params_list)
|
479
584
|
response = self.execute('POST', path=
|
480
585
|
f'/contacts/bulk/create/customers', single_page=single_page,
|
481
586
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -537,6 +642,10 @@ class Contacts(ApiManager):
|
|
537
642
|
Returns: list"""
|
538
643
|
if kwargs is None:
|
539
644
|
kwargs = dict()
|
645
|
+
official_params_list = ['best_effort']
|
646
|
+
params.get('best_effort')
|
647
|
+
warning_wrong_parameters(self.contacts_dispatchers_create_bulk.
|
648
|
+
__name__, params, official_params_list)
|
540
649
|
response = self.execute('POST', path=
|
541
650
|
f'/contacts/bulk/create/dispatchers', single_page=single_page,
|
542
651
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -595,6 +704,10 @@ class Contacts(ApiManager):
|
|
595
704
|
Returns: list"""
|
596
705
|
if kwargs is None:
|
597
706
|
kwargs = dict()
|
707
|
+
official_params_list = ['best_effort']
|
708
|
+
params.get('best_effort')
|
709
|
+
warning_wrong_parameters(self.contacts_sites_create_bulk.__name__,
|
710
|
+
params, official_params_list)
|
598
711
|
response = self.execute('POST', path=f'/contacts/bulk/create/sites',
|
599
712
|
single_page=single_page, page_size=page_size, params=params,
|
600
713
|
payload=payload, **kwargs)
|