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/customers.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 Customers(ApiManager):
|
@@ -36,6 +36,19 @@ class Customers(ApiManager):
|
|
36
36
|
Returns: list"""
|
37
37
|
if kwargs is None:
|
38
38
|
kwargs = dict()
|
39
|
+
official_params_list = ['sort_by', 'null_fields', 'type', 'code',
|
40
|
+
'company_name', 'address', 'zip_code', 'city', 'country',
|
41
|
+
'notes', 'vat_id', 'currency', 'state_province', 'status',
|
42
|
+
'skip', 'limit', 'like', 'join', 'count']
|
43
|
+
params.get('sort_by'), params.get('null_fields'), params.get('type'
|
44
|
+
), params.get('code'), params.get('company_name'), params.get(
|
45
|
+
'address'), params.get('zip_code'), params.get('city'), params.get(
|
46
|
+
'country'), params.get('notes'), params.get('vat_id'), params.get(
|
47
|
+
'currency'), params.get('state_province'), params.get('status'
|
48
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
49
|
+
), params.get('join'), params.get('count')
|
50
|
+
warning_wrong_parameters(self.customers.__name__, params,
|
51
|
+
official_params_list)
|
39
52
|
response = self.execute('GET', path=f'/customers/', single_page=
|
40
53
|
single_page, page_size=page_size, warm_start=warm_start, params
|
41
54
|
=params, **kwargs)
|
@@ -48,7 +61,7 @@ class Customers(ApiManager):
|
|
48
61
|
**payload: additional parameters for the API.
|
49
62
|
Keyword Args:
|
50
63
|
type (string optional): additional filter - payload
|
51
|
-
code (string
|
64
|
+
code (string optional): additional filter - payload
|
52
65
|
company_name (string required): additional filter - payload
|
53
66
|
address (string required): additional filter - payload
|
54
67
|
zip_code (string required): additional filter - payload
|
@@ -59,9 +72,20 @@ class Customers(ApiManager):
|
|
59
72
|
currency (string optional): additional filter - payload
|
60
73
|
state_province (string optional): additional filter - payload
|
61
74
|
status (string required): additional filter - payload
|
75
|
+
profile (string optional): additional filter - payload
|
62
76
|
Returns: list"""
|
63
77
|
if kwargs is None:
|
64
78
|
kwargs = dict()
|
79
|
+
official_payload_list = ['type', 'code', 'company_name', 'address',
|
80
|
+
'zip_code', 'city', 'country', 'notes', 'vat_id', 'currency',
|
81
|
+
'state_province', 'status', 'profile']
|
82
|
+
payload.get('type'), payload.get('code'), payload.get('company_name'
|
83
|
+
), payload.get('address'), payload.get('zip_code'), payload.get(
|
84
|
+
'city'), payload.get('country'), payload.get('notes'), payload.get(
|
85
|
+
'vat_id'), payload.get('currency'), payload.get('state_province'
|
86
|
+
), payload.get('status'), payload.get('profile')
|
87
|
+
warning_wrong_parameters(self.customers_create.__name__, payload,
|
88
|
+
official_payload_list)
|
65
89
|
response = self.execute('POST', path=f'/customers/', payload=
|
66
90
|
payload, **kwargs)
|
67
91
|
return response
|
@@ -99,9 +123,20 @@ class Customers(ApiManager):
|
|
99
123
|
currency (string optional): additional filter - payload
|
100
124
|
state_province (string optional): additional filter - payload
|
101
125
|
status (string optional): additional filter - payload
|
126
|
+
profile (string optional): additional filter - payload
|
102
127
|
Returns: list"""
|
103
128
|
if kwargs is None:
|
104
129
|
kwargs = dict()
|
130
|
+
official_payload_list = ['type', 'code', 'company_name', 'address',
|
131
|
+
'zip_code', 'city', 'country', 'notes', 'vat_id', 'currency',
|
132
|
+
'state_province', 'status', 'profile']
|
133
|
+
payload.get('type'), payload.get('code'), payload.get('company_name'
|
134
|
+
), payload.get('address'), payload.get('zip_code'), payload.get(
|
135
|
+
'city'), payload.get('country'), payload.get('notes'), payload.get(
|
136
|
+
'vat_id'), payload.get('currency'), payload.get('state_province'
|
137
|
+
), payload.get('status'), payload.get('profile')
|
138
|
+
warning_wrong_parameters(self.customers_put.__name__, payload,
|
139
|
+
official_payload_list)
|
105
140
|
response = self.execute('PUT', path=f'/customers/{uuid}', payload=
|
106
141
|
payload, **kwargs)
|
107
142
|
return response
|
@@ -117,6 +152,73 @@ class Customers(ApiManager):
|
|
117
152
|
response = self.execute('DELETE', path=f'/customers/{uuid}', **kwargs)
|
118
153
|
return response
|
119
154
|
|
155
|
+
def customers_register_create(self, params: dict = False,
|
156
|
+
kwargs: dict = None, **payload) -> list:
|
157
|
+
"""Registration Form
|
158
|
+
Args:
|
159
|
+
params (dict, optional): additional parameters for the API.
|
160
|
+
kwargs (dict, optional): additional parameters for execute. Default to None.
|
161
|
+
**payload: additional parameters for the API.
|
162
|
+
Keyword Args:
|
163
|
+
app_id (string optional): additional filter - parameter
|
164
|
+
company_name (string required): additional filter - payload
|
165
|
+
address (string required): additional filter - payload
|
166
|
+
zip_code (string required): additional filter - payload
|
167
|
+
city (string required): additional filter - payload
|
168
|
+
country (string required): additional filter - payload
|
169
|
+
vat_id (string required): additional filter - payload
|
170
|
+
state_province (string optional): additional filter - payload
|
171
|
+
currency (string optional): additional filter - payload
|
172
|
+
Returns: list"""
|
173
|
+
if kwargs is None:
|
174
|
+
kwargs = dict()
|
175
|
+
official_payload_list = ['company_name', 'address', 'zip_code',
|
176
|
+
'city', 'country', 'vat_id', 'state_province', 'currency']
|
177
|
+
payload.get('company_name'), payload.get('address'), payload.get(
|
178
|
+
'zip_code'), payload.get('city'), payload.get('country'
|
179
|
+
), payload.get('vat_id'), payload.get('state_province'
|
180
|
+
), payload.get('currency')
|
181
|
+
warning_wrong_parameters(self.customers_register_create.__name__,
|
182
|
+
payload, official_payload_list)
|
183
|
+
response = self.execute('POST', path=f'/customers/register/',
|
184
|
+
params=params, payload=payload, **kwargs)
|
185
|
+
return response
|
186
|
+
|
187
|
+
def customers_relation_request_create(self, uuid_customer: str,
|
188
|
+
kwargs: dict = None, **params) -> list:
|
189
|
+
"""Create Relation Request
|
190
|
+
Args:
|
191
|
+
uuid_customer (str, required): uuid_customer
|
192
|
+
kwargs (dict, optional): additional parameters for execute. Default to None.
|
193
|
+
**params: additional parameters for the API.
|
194
|
+
Keyword Args:
|
195
|
+
app_id (string optional): additional filter - parameter
|
196
|
+
Returns: list"""
|
197
|
+
if kwargs is None:
|
198
|
+
kwargs = dict()
|
199
|
+
official_params_list = ['app_id']
|
200
|
+
params.get('app_id')
|
201
|
+
warning_wrong_parameters(self.customers_relation_request_create.
|
202
|
+
__name__, params, official_params_list)
|
203
|
+
response = self.execute('POST', path=
|
204
|
+
f'/customers/relation_request/{uuid_customer}', params=params,
|
205
|
+
**kwargs)
|
206
|
+
return response
|
207
|
+
|
208
|
+
def customers_relation_request_verify_create(self,
|
209
|
+
verification_code: str, kwargs: dict = None) -> list:
|
210
|
+
"""Verify Relation Request
|
211
|
+
Args:
|
212
|
+
verification_code (str, required): verification_code
|
213
|
+
kwargs (dict, optional): additional parameters for execute. Default to None.
|
214
|
+
Returns: list"""
|
215
|
+
if kwargs is None:
|
216
|
+
kwargs = dict()
|
217
|
+
response = self.execute('POST', path=
|
218
|
+
f'/customers/relation_request/verify/{verification_code}', **kwargs
|
219
|
+
)
|
220
|
+
return response
|
221
|
+
|
120
222
|
def customers_groups(self, uuid: str, warm_start: bool = False,
|
121
223
|
single_page: bool = False, page_size: int = 5000,
|
122
224
|
kwargs: dict = None, **params) -> list:
|
@@ -146,6 +248,17 @@ class Customers(ApiManager):
|
|
146
248
|
Returns: list"""
|
147
249
|
if kwargs is None:
|
148
250
|
kwargs = dict()
|
251
|
+
official_params_list = ['sort_by', 'null_fields', 'uuid_parent',
|
252
|
+
'uuid_site', 'uuid_virtual_domain', 'type', 'name',
|
253
|
+
'description', 'status', 'skip', 'limit', 'like', 'join', 'count']
|
254
|
+
params.get('sort_by'), params.get('null_fields'), params.get(
|
255
|
+
'uuid_parent'), params.get('uuid_site'), params.get(
|
256
|
+
'uuid_virtual_domain'), params.get('type'), params.get('name'
|
257
|
+
), params.get('description'), params.get('status'), params.get(
|
258
|
+
'skip'), params.get('limit'), params.get('like'), params.get('join'
|
259
|
+
), params.get('count')
|
260
|
+
warning_wrong_parameters(self.customers_groups.__name__, params,
|
261
|
+
official_params_list)
|
149
262
|
response = self.execute('GET', path=f'/customers/{uuid}/groups',
|
150
263
|
single_page=single_page, page_size=page_size, warm_start=
|
151
264
|
warm_start, params=params, **kwargs)
|
@@ -177,6 +290,10 @@ class Customers(ApiManager):
|
|
177
290
|
Returns: list"""
|
178
291
|
if kwargs is None:
|
179
292
|
kwargs = dict()
|
293
|
+
official_payload_list = ['image']
|
294
|
+
payload.get('image')
|
295
|
+
warning_wrong_parameters(self.customers_image_put.__name__, payload,
|
296
|
+
official_payload_list)
|
180
297
|
response = self.execute('PUT', path=f'/customers/{uuid}/image',
|
181
298
|
payload=payload, **kwargs)
|
182
299
|
return response
|
@@ -202,6 +319,12 @@ class Customers(ApiManager):
|
|
202
319
|
Returns: list"""
|
203
320
|
if kwargs is None:
|
204
321
|
kwargs = dict()
|
322
|
+
official_params_list = ['not_in', 'skip', 'limit', 'like', 'join',
|
323
|
+
'count']
|
324
|
+
params.get('not_in'), params.get('skip'), params.get('limit'
|
325
|
+
), params.get('like'), params.get('join'), params.get('count')
|
326
|
+
warning_wrong_parameters(self.customers_services.__name__, params,
|
327
|
+
official_params_list)
|
205
328
|
response = self.execute('GET', path=f'/customers/{uuid}/services',
|
206
329
|
single_page=single_page, page_size=page_size, warm_start=
|
207
330
|
warm_start, params=params, **kwargs)
|
@@ -222,6 +345,10 @@ class Customers(ApiManager):
|
|
222
345
|
kwargs = dict()
|
223
346
|
kwargs, params = handling_single_page_methods(kwargs=kwargs, params
|
224
347
|
=params)
|
348
|
+
official_params_list = ['not_in']
|
349
|
+
params.get('not_in')
|
350
|
+
warning_wrong_parameters(self.customers_service_profiles.__name__,
|
351
|
+
params, official_params_list)
|
225
352
|
response = self.execute('GET', path=
|
226
353
|
f'/customers/{uuid}/service_profiles', warm_start=warm_start,
|
227
354
|
params=params, **kwargs)
|
@@ -248,6 +375,12 @@ class Customers(ApiManager):
|
|
248
375
|
Returns: list"""
|
249
376
|
if kwargs is None:
|
250
377
|
kwargs = dict()
|
378
|
+
official_params_list = ['not_in', 'skip', 'limit', 'like', 'join',
|
379
|
+
'count']
|
380
|
+
params.get('not_in'), params.get('skip'), params.get('limit'
|
381
|
+
), params.get('like'), params.get('join'), params.get('count')
|
382
|
+
warning_wrong_parameters(self.customers_retention_rules.__name__,
|
383
|
+
params, official_params_list)
|
251
384
|
response = self.execute('GET', path=
|
252
385
|
f'/customers/{uuid}/retention_rules', single_page=single_page,
|
253
386
|
page_size=page_size, warm_start=warm_start, params=params, **kwargs
|
@@ -275,6 +408,12 @@ class Customers(ApiManager):
|
|
275
408
|
Returns: list"""
|
276
409
|
if kwargs is None:
|
277
410
|
kwargs = dict()
|
411
|
+
official_params_list = ['not_in', 'skip', 'limit', 'like', 'join',
|
412
|
+
'count']
|
413
|
+
params.get('not_in'), params.get('skip'), params.get('limit'
|
414
|
+
), params.get('like'), params.get('join'), params.get('count')
|
415
|
+
warning_wrong_parameters(self.customers_sites.__name__, params,
|
416
|
+
official_params_list)
|
278
417
|
response = self.execute('GET', path=f'/customers/{uuid}/sites',
|
279
418
|
single_page=single_page, page_size=page_size, warm_start=
|
280
419
|
warm_start, params=params, **kwargs)
|
@@ -293,6 +432,7 @@ class Customers(ApiManager):
|
|
293
432
|
**params: additional parameters for the API.
|
294
433
|
Keyword Args:
|
295
434
|
not_in (boolean optional): additional filter - parameter
|
435
|
+
name (string optional): additional filter - parameter
|
296
436
|
type (string optional): additional filter - parameter
|
297
437
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
298
438
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
@@ -302,6 +442,13 @@ class Customers(ApiManager):
|
|
302
442
|
Returns: list"""
|
303
443
|
if kwargs is None:
|
304
444
|
kwargs = dict()
|
445
|
+
official_params_list = ['not_in', 'name', 'type', 'skip', 'limit',
|
446
|
+
'like', 'join', 'count']
|
447
|
+
params.get('not_in'), params.get('name'), params.get('type'
|
448
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
449
|
+
), params.get('join'), params.get('count')
|
450
|
+
warning_wrong_parameters(self.customers_contacts.__name__, params,
|
451
|
+
official_params_list)
|
305
452
|
response = self.execute('GET', path=f'/customers/{uuid}/contacts',
|
306
453
|
single_page=single_page, page_size=page_size, warm_start=
|
307
454
|
warm_start, params=params, **kwargs)
|
@@ -320,6 +467,10 @@ class Customers(ApiManager):
|
|
320
467
|
Returns: list"""
|
321
468
|
if kwargs is None:
|
322
469
|
kwargs = dict()
|
470
|
+
official_payload_list = ['type']
|
471
|
+
payload.get('type')
|
472
|
+
warning_wrong_parameters(self.customers_contacts_put.__name__,
|
473
|
+
payload, official_payload_list)
|
323
474
|
response = self.execute('PUT', path=
|
324
475
|
f'/customers/{uuid}/contacts/{uuid_contact}', payload=payload,
|
325
476
|
**kwargs)
|
@@ -338,6 +489,10 @@ class Customers(ApiManager):
|
|
338
489
|
Returns: list"""
|
339
490
|
if kwargs is None:
|
340
491
|
kwargs = dict()
|
492
|
+
official_payload_list = ['type']
|
493
|
+
payload.get('type')
|
494
|
+
warning_wrong_parameters(self.customers_contacts_create.__name__,
|
495
|
+
payload, official_payload_list)
|
341
496
|
response = self.execute('POST', path=
|
342
497
|
f'/customers/{uuid}/contacts/{uuid_contact}', payload=payload,
|
343
498
|
**kwargs)
|
@@ -370,6 +525,7 @@ class Customers(ApiManager):
|
|
370
525
|
**params: additional parameters for the API.
|
371
526
|
Keyword Args:
|
372
527
|
not_in (boolean optional): additional filter - parameter
|
528
|
+
name (string optional): additional filter - parameter
|
373
529
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
374
530
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
375
531
|
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
|
@@ -378,6 +534,13 @@ class Customers(ApiManager):
|
|
378
534
|
Returns: list"""
|
379
535
|
if kwargs is None:
|
380
536
|
kwargs = dict()
|
537
|
+
official_params_list = ['not_in', 'name', 'skip', 'limit', 'like',
|
538
|
+
'join', 'count']
|
539
|
+
params.get('not_in'), params.get('name'), params.get('skip'
|
540
|
+
), params.get('limit'), params.get('like'), params.get('join'
|
541
|
+
), params.get('count')
|
542
|
+
warning_wrong_parameters(self.customers_users.__name__, params,
|
543
|
+
official_params_list)
|
381
544
|
response = self.execute('GET', path=f'/customers/{uuid}/users',
|
382
545
|
single_page=single_page, page_size=page_size, warm_start=
|
383
546
|
warm_start, params=params, **kwargs)
|
@@ -444,6 +607,19 @@ class Customers(ApiManager):
|
|
444
607
|
Returns: list"""
|
445
608
|
if kwargs is None:
|
446
609
|
kwargs = dict()
|
610
|
+
official_params_list = ['sort_by', 'type', 'code', 'company_name',
|
611
|
+
'address', 'zip_code', 'city', 'country', 'notes', 'vat_id',
|
612
|
+
'currency', 'state_province', 'status', 'starred', 'skip',
|
613
|
+
'limit', 'like', 'join', 'count']
|
614
|
+
params.get('sort_by'), params.get('type'), params.get('code'
|
615
|
+
), params.get('company_name'), params.get('address'), params.get(
|
616
|
+
'zip_code'), params.get('city'), params.get('country'), params.get(
|
617
|
+
'notes'), params.get('vat_id'), params.get('currency'), params.get(
|
618
|
+
'state_province'), params.get('status'), params.get('starred'
|
619
|
+
), params.get('skip'), params.get('limit'), params.get('like'
|
620
|
+
), params.get('join'), params.get('count')
|
621
|
+
warning_wrong_parameters(self.customers_with_dashboard.__name__,
|
622
|
+
params, official_params_list)
|
447
623
|
response = self.execute('GET', path=f'/customers/with_dashboard/',
|
448
624
|
single_page=single_page, page_size=page_size, warm_start=
|
449
625
|
warm_start, params=params, **kwargs)
|
@@ -473,6 +649,10 @@ class Customers(ApiManager):
|
|
473
649
|
Returns: list"""
|
474
650
|
if kwargs is None:
|
475
651
|
kwargs = dict()
|
652
|
+
official_params_list = ['join']
|
653
|
+
params.get('join')
|
654
|
+
warning_wrong_parameters(self.customers_bulk.__name__, params,
|
655
|
+
official_params_list)
|
476
656
|
response = self.execute('POST', path=f'/customers/bulk/read/',
|
477
657
|
single_page=single_page, page_size=page_size, warm_start=
|
478
658
|
warm_start, params=params, payload=payload, **kwargs)
|
@@ -523,7 +703,7 @@ class Customers(ApiManager):
|
|
523
703
|
[
|
524
704
|
{
|
525
705
|
"type": "string", optional
|
526
|
-
"code": "string",
|
706
|
+
"code": "string", optional
|
527
707
|
"company_name": "string", required
|
528
708
|
"address": "string", required
|
529
709
|
"zip_code": "string", required
|
@@ -534,11 +714,16 @@ class Customers(ApiManager):
|
|
534
714
|
"currency": "string", optional
|
535
715
|
"state_province": "string", optional
|
536
716
|
"status": "string", required
|
717
|
+
"profile": "string", optional
|
537
718
|
}
|
538
719
|
]
|
539
720
|
Returns: list"""
|
540
721
|
if kwargs is None:
|
541
722
|
kwargs = dict()
|
723
|
+
official_params_list = ['best_effort']
|
724
|
+
params.get('best_effort')
|
725
|
+
warning_wrong_parameters(self.customers_create_bulk.__name__,
|
726
|
+
params, official_params_list)
|
542
727
|
response = self.execute('POST', path=f'/customers/bulk/create/',
|
543
728
|
single_page=single_page, page_size=page_size, params=params,
|
544
729
|
payload=payload, **kwargs)
|
@@ -594,6 +779,10 @@ class Customers(ApiManager):
|
|
594
779
|
Returns: list"""
|
595
780
|
if kwargs is None:
|
596
781
|
kwargs = dict()
|
782
|
+
official_params_list = ['best_effort']
|
783
|
+
params.get('best_effort')
|
784
|
+
warning_wrong_parameters(self.customers_contacts_create_bulk.
|
785
|
+
__name__, params, official_params_list)
|
597
786
|
response = self.execute('POST', path=
|
598
787
|
f'/customers/bulk/create/contacts', single_page=single_page,
|
599
788
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -651,6 +840,10 @@ class Customers(ApiManager):
|
|
651
840
|
Returns: list"""
|
652
841
|
if kwargs is None:
|
653
842
|
kwargs = dict()
|
843
|
+
official_params_list = ['best_effort']
|
844
|
+
params.get('best_effort')
|
845
|
+
warning_wrong_parameters(self.customers_users_create_bulk.__name__,
|
846
|
+
params, official_params_list)
|
654
847
|
response = self.execute('POST', path=
|
655
848
|
f'/customers/bulk/create/users', single_page=single_page,
|
656
849
|
page_size=page_size, params=params, payload=payload, **kwargs)
|
@@ -694,6 +887,10 @@ class Customers(ApiManager):
|
|
694
887
|
Returns: list"""
|
695
888
|
if kwargs is None:
|
696
889
|
kwargs = dict()
|
890
|
+
official_payload_list = ['customer', 'azure_customer']
|
891
|
+
payload.get('customer'), payload.get('azure_customer')
|
892
|
+
warning_wrong_parameters(self.customers_azure_create.__name__,
|
893
|
+
payload, official_payload_list)
|
697
894
|
response = self.execute('POST', path=f'/customers/azure/', payload=
|
698
895
|
payload, **kwargs)
|
699
896
|
return response
|
@@ -710,6 +907,10 @@ class Customers(ApiManager):
|
|
710
907
|
Returns: list"""
|
711
908
|
if kwargs is None:
|
712
909
|
kwargs = dict()
|
910
|
+
official_payload_list = ['customer', 'azure_customer']
|
911
|
+
payload.get('customer'), payload.get('azure_customer')
|
912
|
+
warning_wrong_parameters(self.customers_azure_v2_create.__name__,
|
913
|
+
payload, official_payload_list)
|
713
914
|
response = self.execute('POST', path=f'/customers/azure/v2/',
|
714
915
|
payload=payload, **kwargs)
|
715
916
|
return response
|
@@ -726,6 +927,11 @@ class Customers(ApiManager):
|
|
726
927
|
Returns: list"""
|
727
928
|
if kwargs is None:
|
728
929
|
kwargs = dict()
|
930
|
+
official_payload_list = ['customer', 'azure_customer']
|
931
|
+
payload.get('customer'), payload.get('azure_customer')
|
932
|
+
warning_wrong_parameters(self.
|
933
|
+
customers_azure_v2_subscription_create.__name__, payload,
|
934
|
+
official_payload_list)
|
729
935
|
response = self.execute('POST', path=
|
730
936
|
f'/customers/azure/v2/subscription/', payload=payload, **kwargs)
|
731
937
|
return response
|
@@ -745,13 +951,24 @@ class Customers(ApiManager):
|
|
745
951
|
city (string optional): additional filter - payload
|
746
952
|
country (string optional): additional filter - payload
|
747
953
|
state_province (string optional): additional filter - payload
|
748
|
-
base_margin (
|
749
|
-
reserved_margin (
|
954
|
+
base_margin (number required): additional filter - payload
|
955
|
+
reserved_margin (number required): additional filter - payload
|
750
956
|
azure_customer_id (string required): additional filter - payload
|
751
957
|
virtual_domain_code (string required): additional filter - payload
|
752
958
|
Returns: list"""
|
753
959
|
if kwargs is None:
|
754
960
|
kwargs = dict()
|
961
|
+
official_payload_list = ['target_company', 'target_code', 'address',
|
962
|
+
'zip_code', 'city', 'country', 'state_province', 'base_margin',
|
963
|
+
'reserved_margin', 'azure_customer_id', 'virtual_domain_code']
|
964
|
+
payload.get('target_company'), payload.get('target_code'), payload.get(
|
965
|
+
'address'), payload.get('zip_code'), payload.get('city'
|
966
|
+
), payload.get('country'), payload.get('state_province'
|
967
|
+
), payload.get('base_margin'), payload.get('reserved_margin'
|
968
|
+
), payload.get('azure_customer_id'), payload.get(
|
969
|
+
'virtual_domain_code')
|
970
|
+
warning_wrong_parameters(self.customers_azure_v2_create.__name__,
|
971
|
+
payload, official_payload_list)
|
755
972
|
response = self.execute('POST', path=f'/customers/azure/v2/{uuid}',
|
756
973
|
payload=payload, **kwargs)
|
757
974
|
return response
|
@@ -778,6 +995,19 @@ class Customers(ApiManager):
|
|
778
995
|
Returns: list"""
|
779
996
|
if kwargs is None:
|
780
997
|
kwargs = dict()
|
998
|
+
official_payload_list = ['target_company', 'target_code', 'address',
|
999
|
+
'zip_code', 'city', 'country', 'state_province',
|
1000
|
+
'virtual_domain_code', 'uuid_probe_type', 'uuid_object',
|
1001
|
+
'subscriptions']
|
1002
|
+
payload.get('target_company'), payload.get('target_code'), payload.get(
|
1003
|
+
'address'), payload.get('zip_code'), payload.get('city'
|
1004
|
+
), payload.get('country'), payload.get('state_province'
|
1005
|
+
), payload.get('virtual_domain_code'), payload.get(
|
1006
|
+
'uuid_probe_type'), payload.get('uuid_object'), payload.get(
|
1007
|
+
'subscriptions')
|
1008
|
+
warning_wrong_parameters(self.
|
1009
|
+
customers_azure_v2_subscription_create.__name__, payload,
|
1010
|
+
official_payload_list)
|
781
1011
|
response = self.execute('POST', path=
|
782
1012
|
f'/customers/azure/v2/subscription/{uuid}', payload=payload, **
|
783
1013
|
kwargs)
|
@@ -798,14 +1028,26 @@ class Customers(ApiManager):
|
|
798
1028
|
city (string optional): additional filter - payload
|
799
1029
|
country (string optional): additional filter - payload
|
800
1030
|
state_province (string optional): additional filter - payload
|
801
|
-
base_margin (
|
802
|
-
reserved_margin (
|
1031
|
+
base_margin (number required): additional filter - payload
|
1032
|
+
reserved_margin (number required): additional filter - payload
|
803
1033
|
azure_customer_id (string required): additional filter - payload
|
804
1034
|
uuid_probe_type (string optional): additional filter - payload
|
805
1035
|
uuid_object (string optional): additional filter - payload
|
806
1036
|
Returns: list"""
|
807
1037
|
if kwargs is None:
|
808
1038
|
kwargs = dict()
|
1039
|
+
official_payload_list = ['target_company', 'target_code', 'address',
|
1040
|
+
'zip_code', 'city', 'country', 'state_province', 'base_margin',
|
1041
|
+
'reserved_margin', 'azure_customer_id', 'uuid_probe_type',
|
1042
|
+
'uuid_object']
|
1043
|
+
payload.get('target_company'), payload.get('target_code'), payload.get(
|
1044
|
+
'address'), payload.get('zip_code'), payload.get('city'
|
1045
|
+
), payload.get('country'), payload.get('state_province'
|
1046
|
+
), payload.get('base_margin'), payload.get('reserved_margin'
|
1047
|
+
), payload.get('azure_customer_id'), payload.get('uuid_probe_type'
|
1048
|
+
), payload.get('uuid_object')
|
1049
|
+
warning_wrong_parameters(self.customers_azure_create.__name__,
|
1050
|
+
payload, official_payload_list)
|
809
1051
|
response = self.execute('POST', path=f'/customers/azure/{uuid}',
|
810
1052
|
payload=payload, **kwargs)
|
811
1053
|
return response
|
@@ -822,6 +1064,10 @@ class Customers(ApiManager):
|
|
822
1064
|
Returns: list"""
|
823
1065
|
if kwargs is None:
|
824
1066
|
kwargs = dict()
|
1067
|
+
official_payload_list = ['customer', 'aws_customer']
|
1068
|
+
payload.get('customer'), payload.get('aws_customer')
|
1069
|
+
warning_wrong_parameters(self.customers_aws_v2_subscription_create.
|
1070
|
+
__name__, payload, official_payload_list)
|
825
1071
|
response = self.execute('POST', path=
|
826
1072
|
f'/customers/aws/v2/subscription/', payload=payload, **kwargs)
|
827
1073
|
return response
|
@@ -848,6 +1094,18 @@ class Customers(ApiManager):
|
|
848
1094
|
Returns: list"""
|
849
1095
|
if kwargs is None:
|
850
1096
|
kwargs = dict()
|
1097
|
+
official_payload_list = ['target_company', 'target_code', 'address',
|
1098
|
+
'zip_code', 'city', 'country', 'state_province',
|
1099
|
+
'virtual_domain_code', 'uuid_probe_type', 'uuid_object',
|
1100
|
+
'subscriptions']
|
1101
|
+
payload.get('target_company'), payload.get('target_code'), payload.get(
|
1102
|
+
'address'), payload.get('zip_code'), payload.get('city'
|
1103
|
+
), payload.get('country'), payload.get('state_province'
|
1104
|
+
), payload.get('virtual_domain_code'), payload.get(
|
1105
|
+
'uuid_probe_type'), payload.get('uuid_object'), payload.get(
|
1106
|
+
'subscriptions')
|
1107
|
+
warning_wrong_parameters(self.customers_aws_subscription_create.
|
1108
|
+
__name__, payload, official_payload_list)
|
851
1109
|
response = self.execute('POST', path=
|
852
1110
|
f'/customers/aws/subscription/{uuid}', payload=payload, **kwargs)
|
853
1111
|
return response
|
@@ -867,6 +1125,7 @@ class Customers(ApiManager):
|
|
867
1125
|
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
|
868
1126
|
null_fields (string optional): additional filter - parameter
|
869
1127
|
uuid_object (string optional): additional filter - parameter
|
1128
|
+
only_active_objects (boolean optional): additional filter - parameter
|
870
1129
|
country (string optional): additional filter - parameter
|
871
1130
|
city (string optional): additional filter - parameter
|
872
1131
|
address (string optional): additional filter - parameter
|
@@ -882,6 +1141,18 @@ class Customers(ApiManager):
|
|
882
1141
|
Returns: list"""
|
883
1142
|
if kwargs is None:
|
884
1143
|
kwargs = dict()
|
1144
|
+
official_params_list = ['sort_by', 'null_fields', 'uuid_object',
|
1145
|
+
'only_active_objects', 'country', 'city', 'address', 'zip_code',
|
1146
|
+
'status', 'description', 'name', 'skip', 'limit', 'like',
|
1147
|
+
'join', 'count']
|
1148
|
+
params.get('sort_by'), params.get('null_fields'), params.get(
|
1149
|
+
'uuid_object'), params.get('only_active_objects'), params.get(
|
1150
|
+
'country'), params.get('city'), params.get('address'), params.get(
|
1151
|
+
'zip_code'), params.get('status'), params.get('description'
|
1152
|
+
), params.get('name'), params.get('skip'), params.get('limit'
|
1153
|
+
), params.get('like'), params.get('join'), params.get('count')
|
1154
|
+
warning_wrong_parameters(self.customers_networks.__name__, params,
|
1155
|
+
official_params_list)
|
885
1156
|
response = self.execute('GET', path=
|
886
1157
|
f'/customers/networks/{uuid_customer}', single_page=single_page,
|
887
1158
|
page_size=page_size, warm_start=warm_start, params=params, **kwargs
|
@@ -902,6 +1173,7 @@ class Customers(ApiManager):
|
|
902
1173
|
Keyword Args:
|
903
1174
|
timestamp_start (string required): additional filter - parameter
|
904
1175
|
timestamp_end (string required): additional filter - parameter
|
1176
|
+
active_objects_only (boolean optional): additional filter - parameter
|
905
1177
|
skip (integer optional): numero di oggetti che si vogliono saltare nella risposta. Default to 0. - parameter
|
906
1178
|
limit (integer optional): numero di oggetti massimi che si vogliono ottenere. Default to 1_000_000. - parameter
|
907
1179
|
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
|
@@ -910,6 +1182,13 @@ class Customers(ApiManager):
|
|
910
1182
|
Returns: list"""
|
911
1183
|
if kwargs is None:
|
912
1184
|
kwargs = dict()
|
1185
|
+
official_params_list = ['timestamp_start', 'timestamp_end',
|
1186
|
+
'active_objects_only', 'skip', 'limit', 'like', 'join', 'count']
|
1187
|
+
params.get('timestamp_start'), params.get('timestamp_end'), params.get(
|
1188
|
+
'active_objects_only'), params.get('skip'), params.get('limit'
|
1189
|
+
), params.get('like'), params.get('join'), params.get('count')
|
1190
|
+
warning_wrong_parameters(self.customers_it_availability.__name__,
|
1191
|
+
params, official_params_list)
|
913
1192
|
response = self.execute('GET', path=
|
914
1193
|
f'/customers/it_availability/{uuid_customer}', single_page=
|
915
1194
|
single_page, page_size=page_size, warm_start=warm_start, params
|
@@ -938,6 +1217,13 @@ class Customers(ApiManager):
|
|
938
1217
|
Returns: list"""
|
939
1218
|
if kwargs is None:
|
940
1219
|
kwargs = dict()
|
1220
|
+
official_params_list = ['timestamp_start', 'timestamp_end', 'skip',
|
1221
|
+
'limit', 'like', 'join', 'count']
|
1222
|
+
params.get('timestamp_start'), params.get('timestamp_end'), params.get(
|
1223
|
+
'skip'), params.get('limit'), params.get('like'), params.get('join'
|
1224
|
+
), params.get('count')
|
1225
|
+
warning_wrong_parameters(self.customers_it_availability_history.
|
1226
|
+
__name__, params, official_params_list)
|
941
1227
|
response = self.execute('GET', path=
|
942
1228
|
f'/customers/it_availability_history/{uuid_customer}',
|
943
1229
|
single_page=single_page, page_size=page_size, warm_start=
|