agilicus 1.258.4__py3-none-any.whl → 1.258.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.
agilicus/admin.py CHANGED
@@ -129,7 +129,7 @@ def _show_usage(ctx, **kwargs):
129
129
 
130
130
 
131
131
  def _get_last_auth(ctx, kwargs):
132
- dt_from = "-90d"
132
+ dt_from = "-45d"
133
133
  token = context.get_token(ctx)
134
134
  apiclient = context.get_apiclient(ctx, token)
135
135
 
@@ -138,7 +138,7 @@ def _get_last_auth(ctx, kwargs):
138
138
  org_id=kwargs["org_id"],
139
139
  event="Success",
140
140
  result="Success",
141
- event_name="Authentication Request",
141
+ stage="Authentication Request",
142
142
  limit=100,
143
143
  )
144
144
  for rx in query_results.auth_audits:
@@ -149,20 +149,22 @@ def _get_last_auth(ctx, kwargs):
149
149
 
150
150
  def _show_auth(ctx, **kwargs):
151
151
  """Sign-in usage."""
152
- dt_from = "-30d"
152
+ dt_from = "-45d"
153
153
  token = context.get_token(ctx)
154
154
  apiclient = context.get_apiclient(ctx, token)
155
155
 
156
156
  query_results = apiclient.audits_api.list_auth_records(
157
157
  dt_from=dt_from,
158
158
  org_id=kwargs["org_id"],
159
- event_name="Authentication Request",
159
+ stage="Authentication Request",
160
160
  limit=500,
161
161
  )
162
162
  odate = None
163
163
  pids = {}
164
164
  for rx in query_results.auth_audits:
165
- if odate is None or rx.time > odate:
165
+ if (odate is None or rx.time > odate) and (
166
+ rx.event == "Success" and rx.result == "Success"
167
+ ):
166
168
  odate = rx.time
167
169
  if rx.event == "Success" and rx.result == "Success":
168
170
  pids[rx.client_id] = pids.get(rx.client_id, 0) + 1
@@ -182,7 +184,7 @@ def _show_auth(ctx, **kwargs):
182
184
  else:
183
185
  print("NO AUTHENTICATION ACTIONS")
184
186
  if odate is None:
185
- print("\nNO AUTHENTICATION AUDIT IN TRAILING 30d")
187
+ print("\nNO AUTHENTICATION AUDIT IN TRAILING 45d")
186
188
  else:
187
189
  print(f"\nNEWEST AUTH RECORD: {odate.isoformat()}")
188
190
 
@@ -77,7 +77,7 @@ class ApiClient(object):
77
77
  self.default_headers[header_name] = header_value
78
78
  self.cookie = cookie
79
79
  # Set default User-Agent.
80
- self.user_agent = 'OpenAPI-Generator/1.258.4/python'
80
+ self.user_agent = 'OpenAPI-Generator/1.258.5/python'
81
81
 
82
82
  def __enter__(self):
83
83
  return self
@@ -387,7 +387,7 @@ class Configuration(object):
387
387
  "OS: {env}\n"\
388
388
  "Python Version: {pyversion}\n"\
389
389
  "Version of the API: 2024.05.30\n"\
390
- "SDK Package Version: 1.258.4".\
390
+ "SDK Package Version: 1.258.5".\
391
391
  format(env=sys.platform, pyversion=sys.version)
392
392
 
393
393
  def get_host_settings(self):
@@ -4,7 +4,7 @@ Agilicus is API-first. Modern software is controlled by other software, is open,
4
4
  The `agilicus_api` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
5
 
6
6
  - API version: 2024.05.30
7
- - Package version: 1.258.4
7
+ - Package version: 1.258.5
8
8
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
9
9
  For more information, please visit [https://www.agilicus.com/api](https://www.agilicus.com/api)
10
10
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agilicus
3
- Version: 1.258.4
3
+ Version: 1.258.5
4
4
  Summary: Agilicus SDK
5
5
  Home-page: https://www.agilicus.com/
6
6
  License: MIT
@@ -4,7 +4,7 @@ agilicus/.openapi-generator/VERSION,sha256=LXsIFraL1muXBEww1sZWaewc9ji87Ih3gIa04
4
4
  agilicus/.openapi-generator-ignore,sha256=pu2PTide7pJtJ-DFLzDy0cTYQJRlrB-8RRH3zGLeUds,1040
5
5
  agilicus/__init__.py,sha256=AqC7DwkeKW_DniiaZfh5nbDeDQ4E_lW3frheyfmH8Mc,3207
6
6
  agilicus/access.py,sha256=UEHHhE3cCaCjxXQDjhKxQAoUEMWandygN0d-yEIIf8A,5457
7
- agilicus/admin.py,sha256=oQNL_k0dyI_y4oxWtmHsEnavpesiLP0EL_cKC4ABN_4,9922
7
+ agilicus/admin.py,sha256=rPXaddSiGpq3MBMQyFagy2RAHPhZkKN8ZGkMuN-MZqg,9991
8
8
  agilicus/agilicus_api/__init__.py,sha256=dX07sBM3TMnDxKNr24_LPHFNUmO3i67T2XYUE1plgGU,63652
9
9
  agilicus/agilicus_api/api/__init__.py,sha256=wX02QuCPW9YclBXGwbfv5NVh213HdW_jWBUyZg6ouHo,228
10
10
  agilicus/agilicus_api/api/application_services_api.py,sha256=fL30u5cvyQdZDmhR7xcWKz8cwztoWGpTrYjcLc-lwCQ,177624
@@ -71,9 +71,9 @@ agilicus/agilicus_api/api/users_api.py,sha256=yrTsEJBG2O7jMorv14TIS5H8Zg4nfQgP-x
71
71
  agilicus/agilicus_api/api/users_api_mock.py,sha256=wA_xiqL3Pz3KjljKlsmf5NveLZS1FpbaKJHBp7QvarY,15411
72
72
  agilicus/agilicus_api/api/whoami_api.py,sha256=vHF2npgaH1lx-0uYJ6aizfNQvNUDGq8rtnDrUfse9BI,7941
73
73
  agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
74
- agilicus/agilicus_api/api_client.py,sha256=UNm_YI4Rb9PeNXWcAQukiVKrkzIYgOv-bpPigsP1zvo,38845
74
+ agilicus/agilicus_api/api_client.py,sha256=JEVC7cmw1luUYv_APtgy8tBJG6qAgBltPl_2-bNfVAQ,38845
75
75
  agilicus/agilicus_api/apis/__init__.py,sha256=aJZD7x-umdSni6ZBr4XxzpH8pwtU9hA5LlCDxcqa1Q8,2224
76
- agilicus/agilicus_api/configuration.py,sha256=tOy8BU9HAC3TrUFZQXIvfg9iKZEwnuF_PvfGjDABd6U,18447
76
+ agilicus/agilicus_api/configuration.py,sha256=IlfWNtOTjxV50Ii_1o-SZ7A5pPn8PjkavOiF3Jb6OmQ,18447
77
77
  agilicus/agilicus_api/docs/APIKey.md,sha256=4cKuz4_l9HcEDnUrLwYbEnn9C2WoDayrjfrY1Ixgaf4,1747
78
78
  agilicus/agilicus_api/docs/APIKeyIntrospect.md,sha256=nJ-zkuFm3JMbWFDYYN_vYyQk1snGBtBvIxtCQxamhAU,1019
79
79
  agilicus/agilicus_api/docs/APIKeyIntrospectAuthorizationInfo.md,sha256=7RApOOLjvWQs5sw2jb25g7i3Kta1BiEY-s8VRXfppH8,725
@@ -2499,7 +2499,7 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=aySlYbB1myr7yAwn
2499
2499
  agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=xZeDXZTC0YP1bU2xXWaQJBFpgEFhhiMXb87GMbEByEg,2832
2500
2500
  agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=9jrAZQz3mSMR_nIq_MuITl288G7wGpDPwLD-3U3jh-I,2846
2501
2501
  agilicus/agilicus_api/test/test_xss_settings.py,sha256=2EgfxCMzOjxM2uLkTivauBeMLCNtPTpMBGTEJj0EH7Y,2746
2502
- agilicus/agilicus_api_README.md,sha256=L_vTsWemerUEbbTufhxtqghM9mJEM45ohUSOccwLq0w,160424
2502
+ agilicus/agilicus_api_README.md,sha256=ShF94PbHy92mKfmv0ItBrMd8scJcEjpGPrj3Wpz4jMc,160424
2503
2503
  agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
2504
2504
  agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
2505
2505
  agilicus/apps.py,sha256=QMiV9ThED6lqS2l7Jr5Mei7fNBo8FEvPEtCae1NK3Pk,51814
@@ -2590,8 +2590,8 @@ agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4n
2590
2590
  agilicus/users.py,sha256=JT7TIiUOtSFXPOdxmIVFm7ygZTH1FjsIkD9j-vjLuMM,38474
2591
2591
  agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
2592
2592
  agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
2593
- agilicus-1.258.4.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2594
- agilicus-1.258.4.dist-info/METADATA,sha256=am1voMpC2A8d_NBELWtL2hk6pxR1M6LvkQ-i0fW1OSY,3822
2595
- agilicus-1.258.4.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
2596
- agilicus-1.258.4.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2597
- agilicus-1.258.4.dist-info/RECORD,,
2593
+ agilicus-1.258.5.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2594
+ agilicus-1.258.5.dist-info/METADATA,sha256=54DUnEcr2p-5co8zMqbCj8N5EzqgmjmbuvQ0wssmJ6g,3822
2595
+ agilicus-1.258.5.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
2596
+ agilicus-1.258.5.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2597
+ agilicus-1.258.5.dist-info/RECORD,,