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.
Files changed (72) hide show
  1. {xautomata-hive-3.15.2/xautomata_hive.egg-info → xautomata-hive-3.15.3}/PKG-INFO +1 -1
  2. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/api.py +4 -3
  3. xautomata-hive-3.15.3/hive/version.py +1 -0
  4. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3/xautomata_hive.egg-info}/PKG-INFO +1 -1
  5. xautomata-hive-3.15.2/hive/version.py +0 -1
  6. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/LICENSE +0 -0
  7. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/README.md +0 -0
  8. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/__init__.py +0 -0
  9. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/__init__.py +0 -0
  10. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/acl_docs.py +0 -0
  11. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/acl_overrides.py +0 -0
  12. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/analytics.py +0 -0
  13. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/anomalies.py +0 -0
  14. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/calendars.py +0 -0
  15. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/contacts.py +0 -0
  16. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/cost_tagging.py +0 -0
  17. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/cost_tags.py +0 -0
  18. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/cost_views.py +0 -0
  19. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/customers.py +0 -0
  20. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/dashboards.py +0 -0
  21. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/dispatchers.py +0 -0
  22. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/downtimes.py +0 -0
  23. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/external_tickets.py +0 -0
  24. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/features.py +0 -0
  25. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/firmware_updates.py +0 -0
  26. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/google.py +0 -0
  27. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/groups.py +0 -0
  28. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/jobs.py +0 -0
  29. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/last_status.py +0 -0
  30. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/login.py +0 -0
  31. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/messages.py +0 -0
  32. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/metric_ingest.py +0 -0
  33. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/metric_types.py +0 -0
  34. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/metrics.py +0 -0
  35. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/microsoft.py +0 -0
  36. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/notification_provider_types.py +0 -0
  37. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/notification_providers.py +0 -0
  38. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/objects.py +0 -0
  39. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/opening_reasons.py +0 -0
  40. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/probe_types.py +0 -0
  41. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/probes.py +0 -0
  42. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/probes_log_ingest.py +0 -0
  43. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/profile_topics.py +0 -0
  44. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/reason_for_closure.py +0 -0
  45. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/retention_rules.py +0 -0
  46. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/schedules.py +0 -0
  47. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/services.py +0 -0
  48. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/sites.py +0 -0
  49. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/terms_and_conditions.py +0 -0
  50. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/tree_hierarchy.py +0 -0
  51. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_cost_azure_raw.py +0 -0
  52. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_cost_management.py +0 -0
  53. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_metric_status.py +0 -0
  54. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_metric_value.py +0 -0
  55. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_ntop_flows.py +0 -0
  56. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_service_status.py +0 -0
  57. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/ts_service_value.py +0 -0
  58. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/users.py +0 -0
  59. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/users_notifications.py +0 -0
  60. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/virtual_domains.py +0 -0
  61. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/webhooks.py +0 -0
  62. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/widget_groups.py +0 -0
  63. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/cookbook/widgets.py +0 -0
  64. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/decorators.py +0 -0
  65. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/exceptions.py +0 -0
  66. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/hive/infrastrucure_keys.py +0 -0
  67. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/setup.cfg +0 -0
  68. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/setup.py +0 -0
  69. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/xautomata_hive.egg-info/SOURCES.txt +0 -0
  70. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/xautomata_hive.egg-info/dependency_links.txt +0 -0
  71. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/xautomata_hive.egg-info/requires.txt +0 -0
  72. {xautomata-hive-3.15.2 → xautomata-hive-3.15.3}/xautomata_hive.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xautomata-hive
3
- Version: 3.15.2
3
+ Version: 3.15.3
4
4
  Home-page: https://github.com/sherlogic/xautomata-hive.git
5
5
  Author: Enrico Ferro - Andrea Jacassi
6
6
  Author-email:
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xautomata-hive
3
- Version: 3.15.2
3
+ Version: 3.15.3
4
4
  Home-page: https://github.com/sherlogic/xautomata-hive.git
5
5
  Author: Enrico Ferro - Andrea Jacassi
6
6
  Author-email:
@@ -1 +0,0 @@
1
- version = '3.15.2'
File without changes