agilicus 1.230.5__py3-none-any.whl → 1.230.7__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- agilicus/agilicus_api/api_client.py +1 -1
- agilicus/agilicus_api/configuration.py +1 -1
- agilicus/agilicus_api_README.md +1 -1
- agilicus/connectors.py +9 -4
- agilicus/credentials_commands/credentials.py +24 -0
- agilicus/credentials_commands/credentials_main.py +13 -0
- {agilicus-1.230.5.dist-info → agilicus-1.230.7.dist-info}/METADATA +1 -1
- {agilicus-1.230.5.dist-info → agilicus-1.230.7.dist-info}/RECORD +11 -11
- {agilicus-1.230.5.dist-info → agilicus-1.230.7.dist-info}/LICENSE.txt +0 -0
- {agilicus-1.230.5.dist-info → agilicus-1.230.7.dist-info}/WHEEL +0 -0
- {agilicus-1.230.5.dist-info → agilicus-1.230.7.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.230.
|
80
|
+
self.user_agent = 'OpenAPI-Generator/1.230.7/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: 2023.11.20\n"\
|
390
|
-
"SDK Package Version: 1.230.
|
390
|
+
"SDK Package Version: 1.230.7".\
|
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: 2023.11.20
|
7
|
-
- Package version: 1.230.
|
7
|
+
- Package version: 1.230.7
|
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/connectors.py
CHANGED
@@ -815,7 +815,10 @@ def add_or_update_ipsec_connection(
|
|
815
815
|
if remote_ipv4_block:
|
816
816
|
remote_ipv4_ranges = []
|
817
817
|
for block in remote_ipv4_block:
|
818
|
-
|
818
|
+
print(block)
|
819
|
+
remote_ipv4_ranges.append(
|
820
|
+
agilicus.IpsecConnectionIpv4Block(ipv4_address_block=block)
|
821
|
+
)
|
819
822
|
kwargs["remote_ipv4_ranges"] = remote_ipv4_ranges
|
820
823
|
|
821
824
|
connector = get_ipsec(ctx, connector_id, org_id=org_id)
|
@@ -840,10 +843,12 @@ def add_or_update_ipsec_connection(
|
|
840
843
|
new_connections.append(_connection)
|
841
844
|
connector.spec.connections = new_connections
|
842
845
|
else:
|
843
|
-
connection_spec =
|
844
|
-
|
845
|
-
name, inherit_from=inherit_from, spec=connection_spec
|
846
|
+
connection_spec = input_helpers.model_from_dict(
|
847
|
+
agilicus.IpsecConnectionSpec, kwargs
|
846
848
|
)
|
849
|
+
connection = agilicus.IpsecConnection(name, spec=connection_spec)
|
850
|
+
if inherit_from:
|
851
|
+
connection.inherit_from = inherit_from
|
847
852
|
connector.spec.connections.append(connection)
|
848
853
|
|
849
854
|
return apiclient.connectors_api.replace_ipsec_connector(
|
@@ -5,6 +5,7 @@ from ..input_helpers import (
|
|
5
5
|
)
|
6
6
|
import agilicus
|
7
7
|
from ..output.table import (
|
8
|
+
column,
|
8
9
|
spec_column,
|
9
10
|
format_table,
|
10
11
|
metadata_column,
|
@@ -93,3 +94,26 @@ def format_object_credentials(ctx, labels):
|
|
93
94
|
]
|
94
95
|
|
95
96
|
return format_table(ctx, labels, columns)
|
97
|
+
|
98
|
+
|
99
|
+
def list_existence_info(ctx, **kwargs):
|
100
|
+
token = context.get_token(ctx)
|
101
|
+
apiclient = context.get_apiclient(ctx, token)
|
102
|
+
kwargs["org_id"] = get_org_from_input_or_ctx(ctx, **kwargs)
|
103
|
+
kwargs = strip_none(kwargs)
|
104
|
+
|
105
|
+
return apiclient.credentials_api.list_object_credential_existence_info(
|
106
|
+
**kwargs
|
107
|
+
).object_credential_existence_info
|
108
|
+
|
109
|
+
|
110
|
+
def format_object_credential_existence_info(ctx, labels):
|
111
|
+
columns = [
|
112
|
+
column("credential_id"),
|
113
|
+
column("org_id"),
|
114
|
+
column("object_type"),
|
115
|
+
column("object_id"),
|
116
|
+
column("purpose"),
|
117
|
+
]
|
118
|
+
|
119
|
+
return format_table(ctx, labels, columns)
|
@@ -59,6 +59,19 @@ def cli_command_list_object_credential(ctx, **kwargs):
|
|
59
59
|
print(credentials.format_object_credentials(ctx, creds))
|
60
60
|
|
61
61
|
|
62
|
+
@click.command(name="list-object-credentials-existence-info")
|
63
|
+
@click.option("--org-id", default=None)
|
64
|
+
@click.option("--purpose", default=None)
|
65
|
+
@click.option("--object-type", default=None)
|
66
|
+
@click.option("--object-types", multiple=True, default=None)
|
67
|
+
@click.option("--object-id", default=None)
|
68
|
+
@click.option("--object-ids", multiple=True, default=None)
|
69
|
+
@click.pass_context
|
70
|
+
def cli_command_list_object_credentials_existence_info(ctx, **kwargs):
|
71
|
+
creds = credentials.list_existence_info(ctx, **kwargs)
|
72
|
+
print(credentials.format_object_credential_existence_info(ctx, creds))
|
73
|
+
|
74
|
+
|
62
75
|
all_funcs = [func for func in dir() if "cli_command_" in func]
|
63
76
|
|
64
77
|
|
@@ -67,9 +67,9 @@ agilicus/agilicus_api/api/users_api.py,sha256=WRK8WGsPlEpH4nqZ_QqmlyNR7gQf0lTELk
|
|
67
67
|
agilicus/agilicus_api/api/users_api_mock.py,sha256=wA_xiqL3Pz3KjljKlsmf5NveLZS1FpbaKJHBp7QvarY,15411
|
68
68
|
agilicus/agilicus_api/api/whoami_api.py,sha256=lH6Vn-iist2hBcoY653_Q4oM3IjQszr3IfR3PK896yA,7941
|
69
69
|
agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
|
70
|
-
agilicus/agilicus_api/api_client.py,sha256=
|
70
|
+
agilicus/agilicus_api/api_client.py,sha256=JrOGQ8ONa3xBnx6SqLbvCkk6O_6Ibysy1vArUWlWDic,38845
|
71
71
|
agilicus/agilicus_api/apis/__init__.py,sha256=m_hg6OJsEsMp6mZ1mn9OlaTflLjrU3Jc-jvYD9gi_PA,2092
|
72
|
-
agilicus/agilicus_api/configuration.py,sha256=
|
72
|
+
agilicus/agilicus_api/configuration.py,sha256=j3gfyFJHETBfMNyjxhXHzr6QIS1dunNkm9wQ0RCrZ5g,18447
|
73
73
|
agilicus/agilicus_api/docs/APIKey.md,sha256=4cKuz4_l9HcEDnUrLwYbEnn9C2WoDayrjfrY1Ixgaf4,1747
|
74
74
|
agilicus/agilicus_api/docs/APIKeyIntrospect.md,sha256=nJ-zkuFm3JMbWFDYYN_vYyQk1snGBtBvIxtCQxamhAU,1019
|
75
75
|
agilicus/agilicus_api/docs/APIKeyIntrospectAuthorizationInfo.md,sha256=7RApOOLjvWQs5sw2jb25g7i3Kta1BiEY-s8VRXfppH8,725
|
@@ -2299,7 +2299,7 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=Dq-pM-ilcwbcpekE
|
|
2299
2299
|
agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=JNhS_EE5kcjI3rf1qEhmK9vhCWN776GiXaQ1knz9lGA,2832
|
2300
2300
|
agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=BQ2trTwSyyIVWW9qxh7kVXbC_kBuPMOWciAUW3U_Mmk,2846
|
2301
2301
|
agilicus/agilicus_api/test/test_xss_settings.py,sha256=pKg96UprF2XOt3avGhloPwxlCK9hC1h2_Bmfvsd2YfE,2746
|
2302
|
-
agilicus/agilicus_api_README.md,sha256=
|
2302
|
+
agilicus/agilicus_api_README.md,sha256=sT9l3bGLhqN6XiXFwzZHsfh-nZ-Tn8VGNaCQAlcr-CU,146920
|
2303
2303
|
agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
|
2304
2304
|
agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
|
2305
2305
|
agilicus/apps.py,sha256=ZWGY08VcsPkQzMR0LJXfCtQM4IOQy4S5X45PXtopcSo,48770
|
@@ -2311,11 +2311,11 @@ agilicus/certificate.py,sha256=iXC4iT3EGISyEezrvMgfic_lSCx2_JMSWevTLyGekR8,2739
|
|
2311
2311
|
agilicus/challenges.py,sha256=HRSogUKlATul58pK-yWfsQa75K4-Nu-xIi5Vm24RsDM,6870
|
2312
2312
|
agilicus/click_extension.py,sha256=uE57TjMqJxO9VFPBJO5-bTo9UrQiHPjIdI_iwKSaw6Q,224
|
2313
2313
|
agilicus/client_secrets.json,sha256=eyPFVzziH48RuwWl66cfi0JE4jpmoec0Vo_F2TzYOeI,414
|
2314
|
-
agilicus/connectors.py,sha256=
|
2314
|
+
agilicus/connectors.py,sha256=RmQGusT-cTT5YCcsMcttteg3NAXrWklJbdJqTKza6Cs,34275
|
2315
2315
|
agilicus/context.py,sha256=Lcti6KeYjIR-TO_1uR6MEJrF39pYf3W6kgy69LSLfrg,7353
|
2316
2316
|
agilicus/credentials.py,sha256=F3yPAwoMcziP1OLmzeJ8jIz1W-91-HXu4zcymyMp1E4,4730
|
2317
|
-
agilicus/credentials_commands/credentials.py,sha256=
|
2318
|
-
agilicus/credentials_commands/credentials_main.py,sha256=
|
2317
|
+
agilicus/credentials_commands/credentials.py,sha256=YduI2SJR8nJgFuAloNowy16_s-rdVLZLDkuQvk_YmAg,3574
|
2318
|
+
agilicus/credentials_commands/credentials_main.py,sha256=V8Nm-WptM_3BuIcS5AGg62x0ffi_FoiKBTWzBlKooTc,2961
|
2319
2319
|
agilicus/csr.py,sha256=0vXx4-adVoSVqbclil93RuoV-3GbZt8r9yjVxdRacSY,3808
|
2320
2320
|
agilicus/csv_rules.py,sha256=YUgMXptWvaITWFMb5qUp0RRf0TNSZVevK4FesvPQ1VY,2174
|
2321
2321
|
agilicus/custom_types.py,sha256=wAafgpLZofaGsjmssYSILHxdwITBPcN4lHbdkYs-GvY,1699
|
@@ -2373,8 +2373,8 @@ agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4n
|
|
2373
2373
|
agilicus/users.py,sha256=pPY_mjSScCOyP-fBpS-fMHWl6GE-LE4lOvjzcDzJMIQ,38184
|
2374
2374
|
agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
|
2375
2375
|
agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
|
2376
|
-
agilicus-1.230.
|
2377
|
-
agilicus-1.230.
|
2378
|
-
agilicus-1.230.
|
2379
|
-
agilicus-1.230.
|
2380
|
-
agilicus-1.230.
|
2376
|
+
agilicus-1.230.7.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
|
2377
|
+
agilicus-1.230.7.dist-info/METADATA,sha256=dUrqy0y_1XVYBZLX9_y3LSAG6r7vmXbflfiuBVd73_M,3703
|
2378
|
+
agilicus-1.230.7.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
2379
|
+
agilicus-1.230.7.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
|
2380
|
+
agilicus-1.230.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|