xautomata-hive 3.15.2__tar.gz → 3.15.3__tar.gz
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.
- {xautomata-hive-3.15.2/xautomata_hive.egg-info → xautomata-hive-3.15.3}/PKG-INFO +1 -1
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/api.py +4 -3
- xautomata-hive-3.15.3/hive/version.py +1 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3/xautomata_hive.egg-info}/PKG-INFO +1 -1
- xautomata-hive-3.15.2/hive/version.py +0 -1
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/LICENSE +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/README.md +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/__init__.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/__init__.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/acl_docs.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/acl_overrides.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/analytics.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/anomalies.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/calendars.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/contacts.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/cost_tagging.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/cost_tags.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/cost_views.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/customers.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/dashboards.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/dispatchers.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/downtimes.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/external_tickets.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/features.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/firmware_updates.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/google.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/groups.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/jobs.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/last_status.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/login.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/messages.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/metric_ingest.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/metric_types.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/metrics.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/microsoft.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/notification_provider_types.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/notification_providers.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/objects.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/opening_reasons.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/probe_types.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/probes.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/probes_log_ingest.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/profile_topics.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/reason_for_closure.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/retention_rules.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/schedules.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/services.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/sites.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/terms_and_conditions.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/tree_hierarchy.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_cost_azure_raw.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_cost_management.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_metric_status.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_metric_value.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_ntop_flows.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_service_status.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_service_value.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/users.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/users_notifications.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/virtual_domains.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/webhooks.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/widget_groups.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/widgets.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/decorators.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/exceptions.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/infrastrucure_keys.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/setup.cfg +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/setup.py +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/xautomata_hive.egg-info/SOURCES.txt +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/xautomata_hive.egg-info/dependency_links.txt +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/xautomata_hive.egg-info/requires.txt +0 -0
- {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/xautomata_hive.egg-info/top_level.txt +0 -0
@@ -50,6 +50,7 @@ class ApiManager:
|
|
50
50
|
_timeout_retry = 1 # di default non si fanno retry sui timeout
|
51
51
|
_timeout_sleep_time = 120 # tempo di attesa tra un retry e quello successivo in caso di timeout
|
52
52
|
_silence_warning = False # da implementare
|
53
|
+
_SSL_verify = True
|
53
54
|
|
54
55
|
def __init__(self, root, user, password):
|
55
56
|
|
@@ -69,14 +70,14 @@ class ApiManager:
|
|
69
70
|
"""
|
70
71
|
user, password = self.credentials
|
71
72
|
auth_date = {"grant_type": "password", "username": user, "password": password}
|
72
|
-
response = get_session(self._timeout, self._timeout_get_session_retry, self._timeout_get_session_backoff_factor).post(f'{self.root}/login/access-token', auth_date)
|
73
|
+
response = get_session(self._timeout, self._timeout_get_session_retry, self._timeout_get_session_backoff_factor).post(f'{self.root}/login/access-token', auth_date, verify=self._SSL_verify)
|
73
74
|
response.raise_for_status()
|
74
75
|
self.token = json.loads(response.content.decode('utf-8'))['access_token']
|
75
76
|
|
76
77
|
def openapi(self):
|
77
78
|
"""metodo che restituisce gli schema degli end point"""
|
78
79
|
response = get_session(self._timeout, self._timeout_get_session_retry, self._timeout_get_session_backoff_factor).request('GET', url=f'{self.root}/openapi.js',
|
79
|
-
headers={'Authorization': f'Bearer {self.token}'})
|
80
|
+
headers={'Authorization': f'Bearer {self.token}'}, verify=self._SSL_verify)
|
80
81
|
data = json.loads(response.content[15:].decode('utf-8'))
|
81
82
|
return data
|
82
83
|
|
@@ -156,7 +157,7 @@ class ApiManager:
|
|
156
157
|
@timeout_retry(max_tries=self._timeout_retry, sleep_time=self._timeout_sleep_time)
|
157
158
|
@ratelimiter
|
158
159
|
def run_request(_mode, _url, _headers, _payload, _params, **_kwargs):
|
159
|
-
response = get_session(self._timeout, self._timeout_get_session_retry, self._timeout_get_session_backoff_factor).request(_mode, url=_url, json=_payload, params=_params, headers=_headers, **_kwargs)
|
160
|
+
response = get_session(self._timeout, self._timeout_get_session_retry, self._timeout_get_session_backoff_factor).request(_mode, url=_url, json=_payload, params=_params, headers=_headers, verify=self._SSL_verify, **_kwargs)
|
160
161
|
if response.status_code == 401: raise UnauthorizedException
|
161
162
|
if response.status_code != 200 and response.status_code != 504: # 504 non e' gestito dalle API per cui la responce non sarebbe json serializable
|
162
163
|
print()
|
@@ -0,0 +1 @@
|
|
1
|
+
version = '3.15.3'
|
@@ -1 +0,0 @@
|
|
1
|
-
version = '3.15.2'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/notification_provider_types.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/xautomata_hive.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|