agilicus 1.270.1__py3-none-any.whl → 1.270.2__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.270.1/python'
80
+ self.user_agent = 'OpenAPI-Generator/1.270.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: 2024.11.04\n"\
390
- "SDK Package Version: 1.270.1".\
390
+ "SDK Package Version: 1.270.2".\
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.11.04
7
- - Package version: 1.270.1
7
+ - Package version: 1.270.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/connectors.py CHANGED
@@ -1389,3 +1389,38 @@ def delete_connector_proxy(ctx, id, **kwargs):
1389
1389
  id,
1390
1390
  org_id=org_id,
1391
1391
  )
1392
+
1393
+
1394
+ def query_services(ctx, connector_id, **kwargs):
1395
+ token = context.get_token(ctx)
1396
+ apiclient = context.get_apiclient(ctx, token)
1397
+ org_id = get_org_from_input_or_ctx(ctx, **kwargs)
1398
+
1399
+ kwargs["org_id"] = org_id
1400
+ kwargs = strip_none(kwargs)
1401
+ return apiclient.connectors_api.list_services(connector_id, **kwargs).services
1402
+
1403
+
1404
+ def add_service(ctx, connector_id, service, **kwargs):
1405
+ token = context.get_token(ctx)
1406
+ apiclient = context.get_apiclient(ctx, token)
1407
+ org_id = get_org_from_input_or_ctx(ctx, **kwargs)
1408
+
1409
+ spec = agilicus.ConnectorServiceSpec(
1410
+ org_id=org_id,
1411
+ service=service,
1412
+ connector_id=connector_id,
1413
+ )
1414
+ connectorService = agilicus.ConnectorService(spec=spec)
1415
+ return apiclient.connectors_api.create_service(connector_id, connectorService)
1416
+
1417
+
1418
+ def delete_service(ctx, connector_id, service, **kwargs):
1419
+ token = context.get_token(ctx)
1420
+ apiclient = context.get_apiclient(ctx, token)
1421
+ org_id = get_org_from_input_or_ctx(ctx, **kwargs)
1422
+ kwargs["org_id"] = org_id
1423
+ kwargs = strip_none(kwargs)
1424
+ return apiclient.connectors_api.delete_service(
1425
+ connector_id, connector_service=service, **kwargs
1426
+ )
agilicus/main.py CHANGED
@@ -410,6 +410,10 @@ def use(ctx, org_id, organisation):
410
410
  continue
411
411
  if organisation.lower() in org.get("organisation").lower():
412
412
  org_list.append(org)
413
+ elif organisation == org.get("id"):
414
+ # using a specific org.
415
+ org_list.append(org)
416
+ break
413
417
 
414
418
  if not org_list:
415
419
  for org in get_saved_orgs():
@@ -8211,6 +8215,43 @@ def switch_org(org):
8211
8215
  context.save(ctx)
8212
8216
 
8213
8217
 
8218
+ @cli.command(name="list-connector-services")
8219
+ @click.argument("connector-id")
8220
+ @click.option("--org-id", default=None)
8221
+ @click.pass_context
8222
+ def list_connector_services(ctx, *args, **kwargs):
8223
+ results = connectors.query_services(ctx, *args, **kwargs)
8224
+ columns = make_columns(
8225
+ ctx,
8226
+ results,
8227
+ """
8228
+ - spec.org_id(newname=org_id)
8229
+ - spec.connector_id(newname=connector_id)
8230
+ - spec.service(newname=service)
8231
+ """,
8232
+ )
8233
+ print(format_table(ctx, results, columns))
8234
+
8235
+
8236
+ @cli.command(name="add-connector-service")
8237
+ @click.argument("connector-id")
8238
+ @click.argument("service")
8239
+ @click.option("--org-id", default=None)
8240
+ @click.pass_context
8241
+ def add_connector_services(ctx, *args, **kwargs):
8242
+ result = connectors.add_service(ctx, *args, **kwargs)
8243
+ output_entry(ctx, result.to_dict())
8244
+
8245
+
8246
+ @cli.command(name="delete-connector-service")
8247
+ @click.argument("connector-id")
8248
+ @click.argument("service")
8249
+ @click.option("--org-id", default=None)
8250
+ @click.pass_context
8251
+ def delete_connector_services(ctx, *args, **kwargs):
8252
+ connectors.delete_service(ctx, *args, **kwargs)
8253
+
8254
+
8214
8255
  def main():
8215
8256
  trusted_certs_main.add_commands(cli)
8216
8257
  hosts_main.add_commands(cli)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agilicus
3
- Version: 1.270.1
3
+ Version: 1.270.2
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=QwB80V2vO9F4cIG0hjlvLoV0Zb48MT3nVL
71
71
  agilicus/agilicus_api/api/users_api_mock.py,sha256=wA_xiqL3Pz3KjljKlsmf5NveLZS1FpbaKJHBp7QvarY,15411
72
72
  agilicus/agilicus_api/api/whoami_api.py,sha256=jSTEEp6DMn4BK1VFknhTM8ADkB4QjwTGZlC2egn_fsM,7941
73
73
  agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
74
- agilicus/agilicus_api/api_client.py,sha256=c8VyCw4oDdVh5TrWvGhF30D4IgFQP7DneRenXqAOPAQ,38845
74
+ agilicus/agilicus_api/api_client.py,sha256=0dWh3O2aGloF08uSAR1Oj0Aut_VyOvqOIY48duZ5uCc,38845
75
75
  agilicus/agilicus_api/apis/__init__.py,sha256=aJZD7x-umdSni6ZBr4XxzpH8pwtU9hA5LlCDxcqa1Q8,2224
76
- agilicus/agilicus_api/configuration.py,sha256=v06QlTuGNLPxK6UJfAFOR4QV756UWRykW_1X30WiXfM,18447
76
+ agilicus/agilicus_api/configuration.py,sha256=mW5jVza9z9YoSSsQtUcKEqHpfhZXbFPcNj8kKSmd2C8,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
@@ -2550,7 +2550,7 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=mQHF8imBqqLkXtbG
2550
2550
  agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=ZTjyP2EAbOJnbzop_unuXhuEFaI9DGERImJM4fV98Ig,2832
2551
2551
  agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=mpG_AWd6ByMGXmRzfXmZghmK2jhBr9uzrV1jgo5xo4o,2846
2552
2552
  agilicus/agilicus_api/test/test_xss_settings.py,sha256=KG0Z-GRLVOSwgX1-uvmUEuDxEjyfZXLzZb5rni94q9U,2746
2553
- agilicus/agilicus_api_README.md,sha256=YSO1FW3tE51Sf-15sT7RJ0BfjjkhVpDX5sURSuasKXg,163563
2553
+ agilicus/agilicus_api_README.md,sha256=aLELOdTyiMqBqeoFjw60SO04vOlhxRiwZAVg9fg6nwQ,163563
2554
2554
  agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
2555
2555
  agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
2556
2556
  agilicus/apps.py,sha256=ZRPqOq9ecFTqaBce5JQW7e1zekoJbhgYKDDsxyWo5BA,53212
@@ -2562,7 +2562,7 @@ agilicus/certificate.py,sha256=iXC4iT3EGISyEezrvMgfic_lSCx2_JMSWevTLyGekR8,2739
2562
2562
  agilicus/challenges.py,sha256=Ig9888pHGMigBxI_e8m2T_HZiqbU6TxsBXT2EKZoIUY,6968
2563
2563
  agilicus/click_extension.py,sha256=uE57TjMqJxO9VFPBJO5-bTo9UrQiHPjIdI_iwKSaw6Q,224
2564
2564
  agilicus/client_secrets.json,sha256=eyPFVzziH48RuwWl66cfi0JE4jpmoec0Vo_F2TzYOeI,414
2565
- agilicus/connectors.py,sha256=pChAT505Tnm3QBGJBrvivharBOlG2mNbB36Zcq5Vpck,42885
2565
+ agilicus/connectors.py,sha256=Y0ofSRmM27Ey24HjF3Fj5Ek3uCxKTsTgfLrkYWYDZ5A,44069
2566
2566
  agilicus/context.py,sha256=tlmtUK5B1G-gBqfmljaPKPhLKur92jgAi5xC9SA7AVs,8128
2567
2567
  agilicus/create.py,sha256=ndMbOxQasyyUY7aW4U2TU8EKGcUla72xCjAwAwfTBVA,3270
2568
2568
  agilicus/credentials.py,sha256=F3yPAwoMcziP1OLmzeJ8jIz1W-91-HXu4zcymyMp1E4,4730
@@ -2600,7 +2600,7 @@ agilicus/labels/labels_main.py,sha256=ptJ34mf-iVaf8ezf3RWLcpeP2O0ntezS4tqJ0ks0el
2600
2600
  agilicus/launchers.py,sha256=r4nctnVtfP-Ho_HXEfAiMaMqJI0u7pbieHSS3Vd0QBE,11361
2601
2601
  agilicus/logs.py,sha256=tS8c_sdre1Dncrl59GVGQ0L3d2jtwlVjvIMl3SHJraY,766
2602
2602
  agilicus/lookups.py,sha256=MNmNsKpP7Fq_poLAnL9xo_iptFilKM9ziGLyIe8VKaw,669
2603
- agilicus/main.py,sha256=a5oJ4haGEr87haCOQqzqW6zDD10fp7Kg1RGOAkok4us,273397
2603
+ agilicus/main.py,sha256=SY2Lb56iWCSicQy5DHptjty0fr563umwDWbbH1Bg0LQ,274634
2604
2604
  agilicus/messages.py,sha256=Ydm-VhAsK23UnYdstv_HsOybBODfui5ubKc7F8R_dsw,5187
2605
2605
  agilicus/metrics.py,sha256=v4rwpvqDzeNG5GKNoZ7t34X5qUgly5IW2s-kXlS2vQM,2315
2606
2606
  agilicus/orgs.py,sha256=S9v1Hnv_qGcJ90uNC3V692srcXTPv6GIHiTF_z5YC90,15902
@@ -2643,8 +2643,8 @@ agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4n
2643
2643
  agilicus/users.py,sha256=JT7TIiUOtSFXPOdxmIVFm7ygZTH1FjsIkD9j-vjLuMM,38474
2644
2644
  agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
2645
2645
  agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
2646
- agilicus-1.270.1.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2647
- agilicus-1.270.1.dist-info/METADATA,sha256=RVZHNqnIRVqDtF49skcIzji5PSTb0h3V3agFE4LZvUY,3873
2648
- agilicus-1.270.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2649
- agilicus-1.270.1.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2650
- agilicus-1.270.1.dist-info/RECORD,,
2646
+ agilicus-1.270.2.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2647
+ agilicus-1.270.2.dist-info/METADATA,sha256=0O-PX0Qpt6upUNkiJGxKTGyZB5JjajXmukT29RRBrjQ,3873
2648
+ agilicus-1.270.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2649
+ agilicus-1.270.2.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2650
+ agilicus-1.270.2.dist-info/RECORD,,