agilicus 1.236.2__py3-none-any.whl → 1.236.3__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.236.2/python'
80
+ self.user_agent = 'OpenAPI-Generator/1.236.3/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.01.09\n"\
390
- "SDK Package Version: 1.236.2".\
390
+ "SDK Package Version: 1.236.3".\
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.01.09
7
- - Package version: 1.236.2
7
+ - Package version: 1.236.3
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
@@ -450,6 +450,48 @@ def add_agent_local_bind(
450
450
  return _replace_agent(apiclient, connector_id=connector_id, connector=connector)
451
451
 
452
452
 
453
+ def delete_agent_local_bind(
454
+ ctx,
455
+ connector_id,
456
+ bind_port=None,
457
+ bind_host=None,
458
+ revocation_proxy=False,
459
+ **kwargs,
460
+ ):
461
+ apiclient = context.get_apiclient_from_ctx(ctx)
462
+
463
+ org_id = get_org_from_input_or_ctx(ctx, **kwargs)
464
+ kwargs.pop("org_id", None)
465
+ connector = apiclient.connectors_api.get_agent_connector(connector_id, org_id=org_id)
466
+
467
+ if revocation_proxy:
468
+ routing = connector.spec.revocation_proxy
469
+ if routing is None:
470
+ return connector
471
+ else:
472
+ routing = connector.spec.routing
473
+ if routing is None:
474
+ return connector
475
+
476
+ results = []
477
+ for bind in routing.local_binds:
478
+ if bind_port is not None and bind_port != bind.bind_port:
479
+ results.append(bind)
480
+ continue
481
+
482
+ if bind_host is not None and bind_host != bind.bind_host:
483
+ results.append(bind)
484
+ continue
485
+
486
+ routing.local_binds = results
487
+ if revocation_proxy:
488
+ connector.spec.revocation_proxy = routing
489
+ else:
490
+ connector.spec.routing = routing
491
+
492
+ return _replace_agent(apiclient, connector_id=connector_id, connector=connector)
493
+
494
+
453
495
  def add_agent_egress_gateway(
454
496
  ctx,
455
497
  connector_id,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agilicus
3
- Version: 1.236.2
3
+ Version: 1.236.3
4
4
  Summary: Agilicus SDK
5
5
  Home-page: https://www.agilicus.com/
6
6
  License: MIT
@@ -67,9 +67,9 @@ agilicus/agilicus_api/api/users_api.py,sha256=a1TEtRMa2EmVr8YqCRfLSewCxHC1BNZ-f1
67
67
  agilicus/agilicus_api/api/users_api_mock.py,sha256=wA_xiqL3Pz3KjljKlsmf5NveLZS1FpbaKJHBp7QvarY,15411
68
68
  agilicus/agilicus_api/api/whoami_api.py,sha256=EZNylsVokMzfszGyE9FGvHJIBqWYJsWR5enf9z-tr38,7941
69
69
  agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
70
- agilicus/agilicus_api/api_client.py,sha256=-plxMatKAsdQetMryPVC59iG7MYiu6PAZBG3LNoAhh4,38845
70
+ agilicus/agilicus_api/api_client.py,sha256=jmDwfM_QaNZe9ItyY6Ry8xbVj7UNljFQeNsGCNuwp50,38845
71
71
  agilicus/agilicus_api/apis/__init__.py,sha256=m_hg6OJsEsMp6mZ1mn9OlaTflLjrU3Jc-jvYD9gi_PA,2092
72
- agilicus/agilicus_api/configuration.py,sha256=16XpqbTti1SYHsCqtK6LyfNubOzXlV8vtLI-wro3aIg,18447
72
+ agilicus/agilicus_api/configuration.py,sha256=TLV3PuleU5X3rAif5-gWAALv6ip24KaZ21Uv3Df2CAA,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
@@ -2341,7 +2341,7 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=SFHlvNT5pks0K-b7
2341
2341
  agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=56HmpkdZQxC5jOBtRNsBJk_9XCZUvxxtSbbxFnlWxos,2832
2342
2342
  agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=LNl_jaAV-yR_vX2vcquM-hovQURwb5CjfZY24t_V-CY,2846
2343
2343
  agilicus/agilicus_api/test/test_xss_settings.py,sha256=npRmomSnjnKCz30Bknt1wzb9wb-chGmL47pS9-VrtXc,2746
2344
- agilicus/agilicus_api_README.md,sha256=9r2UhNoZHWVO35MY2u_Jqtmp51R8wTdmOZokbSQowgM,150254
2344
+ agilicus/agilicus_api_README.md,sha256=uBqQtBtpHMLIjhjPO-aJIe7JztLoBoKcnlF48-8aA14,150254
2345
2345
  agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
2346
2346
  agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
2347
2347
  agilicus/apps.py,sha256=3j7Yj82S8hr4IHw2uzYiJ1-kOq_9PT1G0-0ZbxflAQ0,48757
@@ -2353,7 +2353,7 @@ agilicus/certificate.py,sha256=iXC4iT3EGISyEezrvMgfic_lSCx2_JMSWevTLyGekR8,2739
2353
2353
  agilicus/challenges.py,sha256=HRSogUKlATul58pK-yWfsQa75K4-Nu-xIi5Vm24RsDM,6870
2354
2354
  agilicus/click_extension.py,sha256=uE57TjMqJxO9VFPBJO5-bTo9UrQiHPjIdI_iwKSaw6Q,224
2355
2355
  agilicus/client_secrets.json,sha256=eyPFVzziH48RuwWl66cfi0JE4jpmoec0Vo_F2TzYOeI,414
2356
- agilicus/connectors.py,sha256=10WQYJ8KL-XhAj4jG7XSeYuz8LIcQeEOlC4NLUqbXE0,34717
2356
+ agilicus/connectors.py,sha256=k8V2HEsil4ySfYFB3tumhQObPRq2XhcwVCdFxZOBHGw,35872
2357
2357
  agilicus/context.py,sha256=Lcti6KeYjIR-TO_1uR6MEJrF39pYf3W6kgy69LSLfrg,7353
2358
2358
  agilicus/credentials.py,sha256=F3yPAwoMcziP1OLmzeJ8jIz1W-91-HXu4zcymyMp1E4,4730
2359
2359
  agilicus/credentials_commands/credentials.py,sha256=YduI2SJR8nJgFuAloNowy16_s-rdVLZLDkuQvk_YmAg,3574
@@ -2425,8 +2425,8 @@ agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4n
2425
2425
  agilicus/users.py,sha256=lT1EoyjwKjRoc0NoU6ANGHRSetN-t8AMgkllCKZP0UM,38746
2426
2426
  agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
2427
2427
  agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
2428
- agilicus-1.236.2.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2429
- agilicus-1.236.2.dist-info/METADATA,sha256=qkWdDMLcYopsxt8iwEy6ouzLA_2nq0aeExX7Yvmf5CU,3742
2430
- agilicus-1.236.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
2431
- agilicus-1.236.2.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2432
- agilicus-1.236.2.dist-info/RECORD,,
2428
+ agilicus-1.236.3.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2429
+ agilicus-1.236.3.dist-info/METADATA,sha256=pEyOUjNbQytBugNqurJXjQtIrfo0KQoCHusLGtKsPJk,3742
2430
+ agilicus-1.236.3.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
2431
+ agilicus-1.236.3.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2432
+ agilicus-1.236.3.dist-info/RECORD,,