agilicus 1.296.0__py3-none-any.whl → 1.296.2__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/agilicus_api/api_client.py +1 -1
- agilicus/agilicus_api/configuration.py +1 -1
- agilicus/agilicus_api_README.md +1 -1
- agilicus/issuers.py +24 -2
- agilicus/orgs.py +14 -2
- {agilicus-1.296.0.dist-info → agilicus-1.296.2.dist-info}/METADATA +2 -2
- {agilicus-1.296.0.dist-info → agilicus-1.296.2.dist-info}/RECORD +10 -10
- {agilicus-1.296.0.dist-info → agilicus-1.296.2.dist-info}/LICENSE.txt +0 -0
- {agilicus-1.296.0.dist-info → agilicus-1.296.2.dist-info}/WHEEL +0 -0
- {agilicus-1.296.0.dist-info → agilicus-1.296.2.dist-info}/entry_points.txt +0 -0
@@ -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.296.
|
80
|
+
self.user_agent = 'OpenAPI-Generator/1.296.2/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.07.28\n"\
|
390
|
-
"SDK Package Version: 1.296.
|
390
|
+
"SDK Package Version: 1.296.2".\
|
391
391
|
format(env=sys.platform, pyversion=sys.version)
|
392
392
|
|
393
393
|
def get_host_settings(self):
|
agilicus/agilicus_api_README.md
CHANGED
@@ -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.07.28
|
7
|
-
- Package version: 1.296.
|
7
|
+
- Package version: 1.296.2
|
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/issuers.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
import agilicus
|
2
2
|
import operator
|
3
|
+
import sys
|
4
|
+
import json
|
3
5
|
|
4
6
|
from typing import List
|
5
7
|
|
@@ -106,8 +108,28 @@ def add(ctx, issuer, org_id, parent_issuer=None, upstream_redirect_uri=None, **k
|
|
106
108
|
issuer_model.parent_issuer = parent_issuer
|
107
109
|
if upstream_redirect_uri is not None:
|
108
110
|
issuer_model.upstream_redirect_uri = upstream_redirect_uri
|
109
|
-
|
110
|
-
|
111
|
+
try:
|
112
|
+
return apiclient.issuers_api.create_issuer(issuer_model).to_dict()
|
113
|
+
except agilicus.ApiException as e:
|
114
|
+
if e.status == 409:
|
115
|
+
print(f"error creating issuer reason: {e.reason}", file=sys.stderr)
|
116
|
+
iss = _get_issuer_helper(apiclient, org_id, issuer)
|
117
|
+
if not iss:
|
118
|
+
# If there's a conflict
|
119
|
+
return json.loads(e.body)
|
120
|
+
return iss
|
121
|
+
else:
|
122
|
+
raise
|
123
|
+
|
124
|
+
|
125
|
+
def _get_issuer_helper(apiclient, org_id, issuer):
|
126
|
+
params = {}
|
127
|
+
params["org_id"] = org_id
|
128
|
+
issuers = apiclient.issuers_api.list_issuers(**params)["issuer_extensions"]
|
129
|
+
for iss in issuers:
|
130
|
+
if iss.issuer == issuer:
|
131
|
+
return {"id": iss.id}
|
132
|
+
return {}
|
111
133
|
|
112
134
|
|
113
135
|
def _update_issuer(ctx, issuer_id, updater, **kwargs):
|
agilicus/orgs.py
CHANGED
@@ -240,12 +240,24 @@ def add(ctx, **kwargs):
|
|
240
240
|
except agilicus_api.ApiException as e:
|
241
241
|
if e.status == 409:
|
242
242
|
print(f"error creating org reason: {e.reason}", file=sys.stderr)
|
243
|
-
|
244
|
-
|
243
|
+
org = _get_org_by_name_helper(apiclient, kwargs.get("organisation", ""))
|
244
|
+
if not org:
|
245
|
+
return json.loads(e.body)
|
246
|
+
return org
|
245
247
|
else:
|
246
248
|
raise
|
247
249
|
|
248
250
|
|
251
|
+
def _get_org_by_name_helper(apiclient, organisation):
|
252
|
+
params = {}
|
253
|
+
params["organisation"] = organisation
|
254
|
+
orgs = apiclient.org_api.list_orgs(**params)["orgs"]
|
255
|
+
for org in orgs:
|
256
|
+
if org.organisation == organisation:
|
257
|
+
return {"id": org.id}
|
258
|
+
return {}
|
259
|
+
|
260
|
+
|
249
261
|
def add_suborg(
|
250
262
|
ctx, organisation, contact_id=None, auto_create=True, subdomain=None, org_id=None
|
251
263
|
):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: agilicus
|
3
|
-
Version: 1.296.
|
3
|
+
Version: 1.296.2
|
4
4
|
Summary: Agilicus SDK
|
5
5
|
Home-page: https://www.agilicus.com/
|
6
6
|
License: MIT
|
@@ -23,7 +23,7 @@ Requires-Dist: click (>=8.0.0,<9.0.0)
|
|
23
23
|
Requires-Dist: click-shell (>=2.1,<3.0)
|
24
24
|
Requires-Dist: colorama (>=0.4.3,<0.5.0)
|
25
25
|
Requires-Dist: cryptography (>=39.0.0)
|
26
|
-
Requires-Dist: dateparser (==1.2.
|
26
|
+
Requires-Dist: dateparser (==1.2.2)
|
27
27
|
Requires-Dist: keyring (>=23.0.0)
|
28
28
|
Requires-Dist: keyrings.alt (>=4.2,<6.0)
|
29
29
|
Requires-Dist: oauth2client (>=4.1.3,<4.2.0)
|
@@ -73,9 +73,9 @@ agilicus/agilicus_api/api/users_api.py,sha256=fqDJg9_ViIRLGfqLIG17mBw1za-dAtfwAl
|
|
73
73
|
agilicus/agilicus_api/api/users_api_mock.py,sha256=GP0l1NcvX0ynOiZhRtuArS4D7lviWYADG_5KZNSNY-s,18930
|
74
74
|
agilicus/agilicus_api/api/whoami_api.py,sha256=ljHaQGYYuuz6XWELsXPCbOCFu28ho7N5ELDNflfDbd4,7941
|
75
75
|
agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
|
76
|
-
agilicus/agilicus_api/api_client.py,sha256=
|
76
|
+
agilicus/agilicus_api/api_client.py,sha256=Fj7tO3r9l-MCUrGrXvAN-xfRT96pO9IZYBnsrTKTfA4,38845
|
77
77
|
agilicus/agilicus_api/apis/__init__.py,sha256=ijG84bKeWq8lCvqXBtmWXrEnDMfw2t5qu5nQwgAyckU,2280
|
78
|
-
agilicus/agilicus_api/configuration.py,sha256=
|
78
|
+
agilicus/agilicus_api/configuration.py,sha256=8YH9FFwD36XksAJ3oZdnumLVqWi5VLyevo4PMmTjyWI,18447
|
79
79
|
agilicus/agilicus_api/docs/APIKey.md,sha256=4cKuz4_l9HcEDnUrLwYbEnn9C2WoDayrjfrY1Ixgaf4,1747
|
80
80
|
agilicus/agilicus_api/docs/APIKeyIntrospect.md,sha256=nJ-zkuFm3JMbWFDYYN_vYyQk1snGBtBvIxtCQxamhAU,1019
|
81
81
|
agilicus/agilicus_api/docs/APIKeyIntrospectAuthorizationInfo.md,sha256=7RApOOLjvWQs5sw2jb25g7i3Kta1BiEY-s8VRXfppH8,725
|
@@ -2797,7 +2797,7 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=Brl5wKCrtt3cZmT6
|
|
2797
2797
|
agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=p3AIJK4qqp3kbOkDrh9E5DeNbK9lLTxaF-0tefvcjxA,2832
|
2798
2798
|
agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=lm1qjvnwOJbxN01TLmXKAZFmTgF0nczcJjhW7o19OTs,2846
|
2799
2799
|
agilicus/agilicus_api/test/test_xss_settings.py,sha256=yxg0br0SByreMUAWxTB-PMPqcdAd8kjkJmVoQwFQjnQ,2746
|
2800
|
-
agilicus/agilicus_api_README.md,sha256=
|
2800
|
+
agilicus/agilicus_api_README.md,sha256=DNISPI8zx6rs2IJMihjnQoPGZRiJcvQg8cUSwk4Dngs,179388
|
2801
2801
|
agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
|
2802
2802
|
agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
|
2803
2803
|
agilicus/apps.py,sha256=Mdc_pRXyfa-IvIFH7gNbx0Ob64gUHggZyeSyLUDpjMs,54048
|
@@ -2845,7 +2845,7 @@ agilicus/hash.py,sha256=5_ymnLNjVbXnxiPVhd8Mur5vQMrn6Zhfjhgg4nygmEA,260
|
|
2845
2845
|
agilicus/hosts/hosts.py,sha256=U9Z_9JWkW5b5wKO1kxULhFvEENh1J75xSd9F_KQxseA,7150
|
2846
2846
|
agilicus/hosts/hosts_main.py,sha256=Eb8qv9LdDlGHE3W4hfeu3v_wN6Yug8ATKnjl1o2fMVc,3785
|
2847
2847
|
agilicus/input_helpers.py,sha256=VZqU3PIkOqT1rSPYtXu25F_v9x59F6nBEZRAgUbnMKk,7424
|
2848
|
-
agilicus/issuers.py,sha256=
|
2848
|
+
agilicus/issuers.py,sha256=VMdn43olk-CplWYDUiI2XpSJPD2J4q8CzfBh_-5VixU,46368
|
2849
2849
|
agilicus/keyring.py,sha256=G-AsU9V7J7WPK94wSCy1Bf-Zy4CcqPise_vab3220LI,1788
|
2850
2850
|
agilicus/keyring_storage.py,sha256=tQEfDPW27xEdjPIBnjAyZOAG3wHlk3KQ2DSKYr4B5fM,2996
|
2851
2851
|
agilicus/labels/labels.py,sha256=jIUB0btVcEJphyySaqYxQF_MLbSnlTwMpUDZ4FXFUHk,9453
|
@@ -2863,7 +2863,7 @@ agilicus/messages/__init__.py,sha256=cVqfaKUndO-AYfppkdFICM5WvYFFB1hRjXihFWmiGPQ
|
|
2863
2863
|
agilicus/messages/messages.py,sha256=b2eO6BaWI9UZTLETcdy1NotyuNlKIJf6CS_TUzehuk4,9175
|
2864
2864
|
agilicus/messages/messages_main.py,sha256=A0xucYwwUZFIuUc0bAyAqVwofErakmyawq5bwhZKcOU,1598
|
2865
2865
|
agilicus/metrics.py,sha256=v4rwpvqDzeNG5GKNoZ7t34X5qUgly5IW2s-kXlS2vQM,2315
|
2866
|
-
agilicus/orgs.py,sha256=
|
2866
|
+
agilicus/orgs.py,sha256=cmGAq3nWwAec7NQwaE15RThPm6Eq4VL7iEzHQi_HnNg,16218
|
2867
2867
|
agilicus/output/__init__.py,sha256=UKZbHS4t15vazJuN46FN-3HHqkxMXU0p3df2VcsSLcY,110
|
2868
2868
|
agilicus/output/column_builder.py,sha256=TWo4t8ygaTUv7qjD_moDroD1bKzzyTIao0FmLy5gs4o,4284
|
2869
2869
|
agilicus/output/console.py,sha256=xBURxlA7H1kmQ7zIKuifs_aQJq1cvmCJ5CtQVSo3_Ns,400
|
@@ -2905,8 +2905,8 @@ agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4n
|
|
2905
2905
|
agilicus/users.py,sha256=14Q18XjNh45JUuM4uOJa8UzoVHYCi11M16oI9zPqirE,44522
|
2906
2906
|
agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
|
2907
2907
|
agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
|
2908
|
-
agilicus-1.296.
|
2909
|
-
agilicus-1.296.
|
2910
|
-
agilicus-1.296.
|
2911
|
-
agilicus-1.296.
|
2912
|
-
agilicus-1.296.
|
2908
|
+
agilicus-1.296.2.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
|
2909
|
+
agilicus-1.296.2.dist-info/METADATA,sha256=4LmonrAzNqNKsBciQacQsxqd7vEqZgpvgYCad7wpZeI,3878
|
2910
|
+
agilicus-1.296.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
2911
|
+
agilicus-1.296.2.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
|
2912
|
+
agilicus-1.296.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|