agilicus 1.265.0__py3-none-any.whl → 1.265.1__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.265.0/python'
80
+ self.user_agent = 'OpenAPI-Generator/1.265.1/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.07.29\n"\
390
- "SDK Package Version: 1.265.0".\
390
+ "SDK Package Version: 1.265.1".\
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.07.29
7
- - Package version: 1.265.0
7
+ - Package version: 1.265.1
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/billing.py CHANGED
@@ -392,6 +392,8 @@ def run_billing_um_all_accounts(
392
392
  )
393
393
  continue
394
394
 
395
+ # get the client again, which checks if a refresh of the token is required
396
+ client = get_apiclient_from_ctx(ctx)
395
397
  base_result = client.billing_api.add_billing_usage_record(
396
398
  account.metadata.id, create_billing_usage_records=record
397
399
  )
agilicus/tokens.py CHANGED
@@ -501,6 +501,8 @@ class RefreshableAccessToken:
501
501
  if token and access.is_token_expired(token):
502
502
  token_refresh = True
503
503
  if not token or refresh or token_refresh:
504
+ if token_refresh:
505
+ refresh = True
504
506
  access_token = access.get_access_token(ctx, refresh=refresh)
505
507
  token = access_token.get()
506
508
  ctx.obj["TOKEN"] = token
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agilicus
3
- Version: 1.265.0
3
+ Version: 1.265.1
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=vwuYc0b-QQNZE6JZbDC2zihU5nGGo1KgWP
71
71
  agilicus/agilicus_api/api/users_api_mock.py,sha256=wA_xiqL3Pz3KjljKlsmf5NveLZS1FpbaKJHBp7QvarY,15411
72
72
  agilicus/agilicus_api/api/whoami_api.py,sha256=09KIhv6Up4Oey3ba2krVs3AhMVdL0GxveVD0UaA4h0M,7941
73
73
  agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
74
- agilicus/agilicus_api/api_client.py,sha256=Dr_xtKf2-2HexpLmzbtKmVkUyZqlnZcFWneyuvrBbRk,38845
74
+ agilicus/agilicus_api/api_client.py,sha256=9ExSmH3rKI9ag54Qiw-pCd6Y7VqZfjNnjTmZjanGdUc,38845
75
75
  agilicus/agilicus_api/apis/__init__.py,sha256=aJZD7x-umdSni6ZBr4XxzpH8pwtU9hA5LlCDxcqa1Q8,2224
76
- agilicus/agilicus_api/configuration.py,sha256=7tgGsCJve6ST4bzBDptOLChgHv_DefdO0Dk74984oUY,18447
76
+ agilicus/agilicus_api/configuration.py,sha256=HqPIg5ynpwAp0SYQBi151kO6jlZHUFErUDMczmQ46_k,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
@@ -2523,13 +2523,13 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=iY4-zhhFgVwaH824
2523
2523
  agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=o5mYBlIgT6LadCEV3hmJaSiPWloLJ2dKYOgYZjf5qyc,2832
2524
2524
  agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=taO6qqFdtXTU5wGH9bJjwJcBh26ip-EzWK4N5wNaJV4,2846
2525
2525
  agilicus/agilicus_api/test/test_xss_settings.py,sha256=XMi-QK9roJ5uG-odic_fZOi23fiEDkqXvlBiMKQwGvA,2746
2526
- agilicus/agilicus_api_README.md,sha256=hMWXYuf6xWqCxP8l-orHcPxNhebIfvFs0ulb9j_Ddpw,161954
2526
+ agilicus/agilicus_api_README.md,sha256=Bch47Ce9q7TLsnuGJcPDAp4Qm8C5ab938qZ49e3Hgl8,161954
2527
2527
  agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
2528
2528
  agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
2529
2529
  agilicus/apps.py,sha256=uYNUNy5rCYjx90KnR_X_aESof9xzSuLYT5w8myN_VVE,52091
2530
2530
  agilicus/audit_destinations.py,sha256=lJ1VbSt8CtOhnFYnRkgZw-WLZ_RS5K90cqOKSJvn3kA,6884
2531
2531
  agilicus/audits.py,sha256=UKE00xJPkLpx-N08CN-VyDmPYStdPmjmtofJO72bVH8,3521
2532
- agilicus/billing.py,sha256=xi4Hw-39StnTxC2tjwW8gB_VVaSwW11VyjScNqmYDJk,24966
2532
+ agilicus/billing.py,sha256=apVLDz8mRZnSlGlyXrTY06sM9MQv1sh-1re6uL0bgWo,25102
2533
2533
  agilicus/catalogues.py,sha256=K8pcc-GLXzSXxvPauNNxIBN4fBVi1jTp57eAv_XmGqA,3218
2534
2534
  agilicus/certificate.py,sha256=iXC4iT3EGISyEezrvMgfic_lSCx2_JMSWevTLyGekR8,2739
2535
2535
  agilicus/challenges.py,sha256=Ig9888pHGMigBxI_e8m2T_HZiqbU6TxsBXT2EKZoIUY,6968
@@ -2607,15 +2607,15 @@ agilicus/service_token.py,sha256=YDVFeBe9Yv0qYvfUenwnpGHuj2x1J06YUe5A_C8L6L4,716
2607
2607
  agilicus/ssh.py,sha256=mVqMlDM2zAcUphehyz9djXjrRPSIxR1qJr2Ehvl3Rvw,2925
2608
2608
  agilicus/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2609
2609
  agilicus/tests/keyring_test.py,sha256=Uwp2VS2_NffYBgHAS9bXuXnIxRoK0_VOWaaYCZKv0lg,1452
2610
- agilicus/tokens.py,sha256=bcy-j7hnR9YlMC6VljpOuloeEoDrrqi_21JZLM086HA,18531
2610
+ agilicus/tokens.py,sha256=mwQyxWjynR3SelPJH6ZwMbqdZy7ZiqA4xVD_crlYt_E,18592
2611
2611
  agilicus/transfers.py,sha256=PYr_fW7dyXNUXzi5Wp5mUjZOvU7MbRzoN-D8Omo-YSQ,1523
2612
2612
  agilicus/trusted_certs/trusted_certs.py,sha256=HCAvYxOA3ooaee2_KbYJd6Yt_dxDEn8hjhy1upVJUYE,7951
2613
2613
  agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4nB2wnWFTTJ8AOgXo,5155
2614
2614
  agilicus/users.py,sha256=JT7TIiUOtSFXPOdxmIVFm7ygZTH1FjsIkD9j-vjLuMM,38474
2615
2615
  agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
2616
2616
  agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
2617
- agilicus-1.265.0.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2618
- agilicus-1.265.0.dist-info/METADATA,sha256=WvtnF-CgE2k7JdfWXnhWh9YcxVCJOpDCQ7yIynPsXrw,3873
2619
- agilicus-1.265.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2620
- agilicus-1.265.0.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2621
- agilicus-1.265.0.dist-info/RECORD,,
2617
+ agilicus-1.265.1.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2618
+ agilicus-1.265.1.dist-info/METADATA,sha256=pMrItg7873MSco979uAdO0DY7-TL_ZVaWYMrmxCkxAQ,3873
2619
+ agilicus-1.265.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2620
+ agilicus-1.265.1.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2621
+ agilicus-1.265.1.dist-info/RECORD,,