agilicus 1.278.3__py3-none-any.whl → 1.279.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.
@@ -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.278.3/python'
80
+ self.user_agent = 'OpenAPI-Generator/1.279.0/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: 2025.02.13\n"\
390
- "SDK Package Version: 1.278.3".\
390
+ "SDK Package Version: 1.279.0".\
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: 2025.02.13
7
- - Package version: 1.278.3
7
+ - Package version: 1.279.0
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
 
agilicus/main.py CHANGED
@@ -71,6 +71,8 @@ from .input_helpers import (
71
71
  get_org_from_input_or_ctx,
72
72
  )
73
73
 
74
+ from .output.console import output_formatted
75
+
74
76
  from .trusted_certs import trusted_certs_main
75
77
  from .hosts import hosts_main
76
78
  from .labels import labels_main
@@ -86,6 +88,7 @@ from .policy_config import policy_config_main
86
88
  from .version import __version__
87
89
 
88
90
  search_direction_values = ["forwards", "backwards"]
91
+ sort_order_values = ["ascending", "descending"]
89
92
 
90
93
 
91
94
  class Config:
@@ -5181,9 +5184,11 @@ def replace_api_key(ctx, api_key_id, **kwargs):
5181
5184
  @click.option("--org-id", type=str, default=None)
5182
5185
  @click.option("--org-id", type=str, default=None)
5183
5186
  @click.option("--label", type=str, default=None)
5187
+ @click.option("--limit", type=int, default=None)
5184
5188
  @click.option("--scope", multiple=True, default=None)
5185
5189
  @click.option("--valid-at", type=str, default=None)
5186
- @click.option("--next-api-key-id", type=str, default=None)
5190
+ @click.option("--sort-order", type=click.Choice(sort_order_values), default=None)
5191
+ @click.option("--next-created-date", type=str, default=None)
5187
5192
  @click.option(
5188
5193
  "--search-direction", type=click.Choice(search_direction_values), default=None
5189
5194
  )
@@ -5201,10 +5206,19 @@ def replace_api_key(ctx, api_key_id, **kwargs):
5201
5206
  )
5202
5207
  @click.pass_context
5203
5208
  def list_api_keys(ctx, scope, **kwargs):
5204
- api_keys = tokens.list_api_keys(ctx, scopes=list(scope), **kwargs)
5205
- table = tokens.format_api_keys_as_text(ctx, api_keys)
5209
+ api_keys_resp = tokens.list_api_keys(ctx, scopes=list(scope), **kwargs)
5210
+ if context.output_json(ctx):
5211
+ output_formatted(ctx, api_keys_resp.to_dict())
5212
+ return
5213
+
5214
+ table = tokens.format_api_keys_as_text(ctx, api_keys_resp.api_keys)
5206
5215
  print(table)
5207
5216
 
5217
+ if api_keys_resp.page_at_created_date is not None:
5218
+ del api_keys_resp["api_keys"]
5219
+ page_details = api_keys_resp.to_dict()
5220
+ output_entry(ctx, page_details)
5221
+
5208
5222
 
5209
5223
  @cli.command(name="show-api-key-introspection")
5210
5224
  @click.argument("email")
agilicus/tokens.py CHANGED
@@ -350,11 +350,16 @@ def get_api_key(ctx, api_key_id, **kwargs):
350
350
  return apiclient.tokens_api.get_api_key(api_key_id, **strip_none(kwargs))
351
351
 
352
352
 
353
- def list_api_keys(ctx, **kwargs):
353
+ def list_api_keys(ctx, next_created_date, **kwargs):
354
354
  apiclient = context.get_apiclient_from_ctx(ctx)
355
355
  update_org_from_input_or_ctx(kwargs, ctx, **kwargs)
356
356
  kwargs["user_id"] = get_user_id_from_input_or_ctx(ctx, **kwargs)
357
- return apiclient.tokens_api.list_api_keys(**strip_none(kwargs)).api_keys
357
+ kwargs = strip_none(kwargs)
358
+ if next_created_date is not None:
359
+ if next_created_date == "":
360
+ next_created_date = None
361
+ kwargs["page_at_created_date"] = next_created_date
362
+ return apiclient.tokens_api.list_api_keys(**kwargs)
358
363
 
359
364
 
360
365
  def get_api_key_introspect(ctx, email, api_key, include_suborgs, **kwargs):
@@ -378,6 +383,7 @@ def replace_api_key(ctx, api_key_id, expiry, **kwargs):
378
383
 
379
384
  def format_api_keys_as_text(ctx, api_keys):
380
385
  columns = [
386
+ metadata_column("created"),
381
387
  metadata_column("id"),
382
388
  spec_column("user_id"),
383
389
  spec_column("org_id"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agilicus
3
- Version: 1.278.3
3
+ Version: 1.279.0
4
4
  Summary: Agilicus SDK
5
5
  Home-page: https://www.agilicus.com/
6
6
  License: MIT
@@ -71,9 +71,9 @@ agilicus/agilicus_api/api/users_api.py,sha256=_aoUtYPEVRFqCgKlrzmyzTFPysehUlFTad
71
71
  agilicus/agilicus_api/api/users_api_mock.py,sha256=vS-a5l0p3arW8QEKjqZ4_I31XG4T-m6G6dIwyuMIA2w,16824
72
72
  agilicus/agilicus_api/api/whoami_api.py,sha256=TGP5fpJa3NRT4mW_m3ZZ13jO-a5q0x7-xFZXWbaeIsg,7941
73
73
  agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
74
- agilicus/agilicus_api/api_client.py,sha256=J5XGE8bmYtUxpFB9lb_qpfkorx_w80KUcBDERV_J4HQ,38845
74
+ agilicus/agilicus_api/api_client.py,sha256=WZV2nHuCKugr-kf_QKsnLaqos0tijhvMQNmlaf8c4Kk,38845
75
75
  agilicus/agilicus_api/apis/__init__.py,sha256=aJZD7x-umdSni6ZBr4XxzpH8pwtU9hA5LlCDxcqa1Q8,2224
76
- agilicus/agilicus_api/configuration.py,sha256=LtbvPTrC79IJfRgPIAmBBbDqOerIxAfmajwqE_7BL8g,18447
76
+ agilicus/agilicus_api/configuration.py,sha256=taXaYH3iZ8VhmcUyGo4gx2xSjot3BexJ7XU0c0NVM34,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
@@ -2595,7 +2595,7 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=jfQSxWb4vpRu8PZi
2595
2595
  agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=n-aswTMDeq6WTB8hUwFFhuEV3r6si1Mn7P-w2bA0ieU,2832
2596
2596
  agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=gjlkhjOEojH2jovSDTdWrY1sUoerYFQNql6_s-C9PBQ,2846
2597
2597
  agilicus/agilicus_api/test/test_xss_settings.py,sha256=t6B-waiHPuOcwhuoXrjvK7V7mNwRK-W918VQmXrTUBA,2746
2598
- agilicus/agilicus_api_README.md,sha256=bO6fGD87kK9pbDU5uE1XHYqZUaggeEKHPgLoMEuv4Vc,166605
2598
+ agilicus/agilicus_api_README.md,sha256=3Bbyg_be3IgOBwf5U4piSjxrP39czR3iEHM8i47me-A,166605
2599
2599
  agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
2600
2600
  agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
2601
2601
  agilicus/apps.py,sha256=ZRPqOq9ecFTqaBce5JQW7e1zekoJbhgYKDDsxyWo5BA,53212
@@ -2647,7 +2647,7 @@ agilicus/labels/labels_main.py,sha256=ptJ34mf-iVaf8ezf3RWLcpeP2O0ntezS4tqJ0ks0el
2647
2647
  agilicus/launchers.py,sha256=r4nctnVtfP-Ho_HXEfAiMaMqJI0u7pbieHSS3Vd0QBE,11361
2648
2648
  agilicus/logs.py,sha256=tS8c_sdre1Dncrl59GVGQ0L3d2jtwlVjvIMl3SHJraY,766
2649
2649
  agilicus/lookups.py,sha256=MNmNsKpP7Fq_poLAnL9xo_iptFilKM9ziGLyIe8VKaw,669
2650
- agilicus/main.py,sha256=fIYNCuZOpn3nMSh9baOQ5bb53mFfR86gbLqIjcBAbKE,280765
2650
+ agilicus/main.py,sha256=kKDOZPfZe9dn6276BqbOoQIPA6I1-bEDeuJbhpnOusY,281296
2651
2651
  agilicus/messages/__init__.py,sha256=cVqfaKUndO-AYfppkdFICM5WvYFFB1hRjXihFWmiGPQ,174
2652
2652
  agilicus/messages/messages.py,sha256=pmCfeJfsRRvNKPxRQ_BKaEJUkXW8VPw6Lw_HRwoDKpY,9169
2653
2653
  agilicus/messages/messages_main.py,sha256=A0xucYwwUZFIuUc0bAyAqVwofErakmyawq5bwhZKcOU,1598
@@ -2685,15 +2685,15 @@ agilicus/ssh.py,sha256=mVqMlDM2zAcUphehyz9djXjrRPSIxR1qJr2Ehvl3Rvw,2925
2685
2685
  agilicus/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2686
2686
  agilicus/tests/keyring_test.py,sha256=Uwp2VS2_NffYBgHAS9bXuXnIxRoK0_VOWaaYCZKv0lg,1452
2687
2687
  agilicus/tests/test_pop_utils.py,sha256=gdSMOmE0pNSDA0UgUWdbLKpFzUGwfBwkFSrk1p1JdSo,1083
2688
- agilicus/tokens.py,sha256=mwQyxWjynR3SelPJH6ZwMbqdZy7ZiqA4xVD_crlYt_E,18592
2688
+ agilicus/tokens.py,sha256=H3_hSNUmyDeidCndQ_rlxqAaliAFIpNDJ1vW-fynwhs,18828
2689
2689
  agilicus/transfers.py,sha256=PYr_fW7dyXNUXzi5Wp5mUjZOvU7MbRzoN-D8Omo-YSQ,1523
2690
2690
  agilicus/trusted_certs/trusted_certs.py,sha256=HCAvYxOA3ooaee2_KbYJd6Yt_dxDEn8hjhy1upVJUYE,7951
2691
2691
  agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4nB2wnWFTTJ8AOgXo,5155
2692
2692
  agilicus/users.py,sha256=tUEWvqQZL-TuW9TeUwxGTMCHtih1o9xtTrEp23ng4n8,38614
2693
2693
  agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
2694
2694
  agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
2695
- agilicus-1.278.3.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2696
- agilicus-1.278.3.dist-info/METADATA,sha256=MPiQEvvqkGng5SD4baQRO7z3Bgb9Wng_bkPAvgcqtW8,3909
2697
- agilicus-1.278.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2698
- agilicus-1.278.3.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2699
- agilicus-1.278.3.dist-info/RECORD,,
2695
+ agilicus-1.279.0.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2696
+ agilicus-1.279.0.dist-info/METADATA,sha256=4sgE8AwhCsR86L4oK4emPeuEJFom-Kh4xv4nLRRJDko,3909
2697
+ agilicus-1.279.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2698
+ agilicus-1.279.0.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2699
+ agilicus-1.279.0.dist-info/RECORD,,