agilicus 1.267.1__py3-none-any.whl → 1.269.0__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.267.1/python'
80
+ self.user_agent = 'OpenAPI-Generator/1.269.0/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.09.24\n"\
390
- "SDK Package Version: 1.267.1".\
390
+ "SDK Package Version: 1.269.0".\
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.09.24
7
- - Package version: 1.267.1
7
+ - Package version: 1.269.0
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
@@ -35,14 +35,17 @@ from .output.table import (
35
35
  TUNNEL_TERMINATION_TYPES = ["tcp", "inproc"]
36
36
 
37
37
 
38
- def _filter_version(connector, not_version=None):
39
- if not not_version:
38
+ def _filter_version(connector, not_version=None, only_version=None):
39
+ if not not_version and not only_version:
40
40
  return False
41
41
 
42
42
  filter_out = True
43
43
  for instance in connector["status"].get("instances", []):
44
44
  try:
45
- if _get_version(instance, "") != not_version:
45
+ v = _get_version(instance, "")
46
+ if not_version and v != not_version:
47
+ filter_out = False
48
+ if only_version and v == only_version:
46
49
  filter_out = False
47
50
  except Exception:
48
51
  pass
@@ -68,6 +71,7 @@ def do_filter(
68
71
  no_down,
69
72
  connectors,
70
73
  not_version=None,
74
+ only_version=None,
71
75
  sort_by=None,
72
76
  filter_os_version=None,
73
77
  **kwargs,
@@ -80,7 +84,7 @@ def do_filter(
80
84
  os_version_regex = re.compile(filter_os_version)
81
85
  filtered_connectors = []
82
86
  for connector in connectors:
83
- if _filter_version(connector, not_version):
87
+ if _filter_version(connector, not_version, only_version):
84
88
  continue
85
89
  if _filter_os_version(connector, os_version_regex):
86
90
  continue
@@ -95,6 +99,7 @@ def query(
95
99
  ctx,
96
100
  no_down=False,
97
101
  not_version=None,
102
+ only_version=None,
98
103
  sort_by=None,
99
104
  page_at_id=None,
100
105
  page_size=500,
@@ -122,6 +127,7 @@ def query(
122
127
  ctx,
123
128
  no_down,
124
129
  query_results,
130
+ only_version=only_version,
125
131
  not_version=not_version,
126
132
  sort_by=sort_by,
127
133
  filter_os_version=filter_os_version,
agilicus/main.py CHANGED
@@ -5203,6 +5203,11 @@ def show_api_key_introspection(ctx, email, api_key, include_suborgs=False, **kwa
5203
5203
  default=None,
5204
5204
  help="show connectors that are not running the specified version",
5205
5205
  )
5206
+ @click.option(
5207
+ "--only-version",
5208
+ default=None,
5209
+ help="show connectors that are running the specified version",
5210
+ )
5206
5211
  @click.pass_context
5207
5212
  def list_connectors(ctx, **kwargs):
5208
5213
  results = connectors.query(ctx, **kwargs)
@@ -6029,6 +6034,11 @@ def list_resource_groups(ctx, **kwargs):
6029
6034
  help="A json file that contains the resource's rule configuration.",
6030
6035
  type=click_extension.JSONFile("r"),
6031
6036
  )
6037
+ @click.option(
6038
+ "--roles-config-file",
6039
+ help="A json file that contains the resource's role configuration.",
6040
+ type=click_extension.JSONFile("r"),
6041
+ )
6032
6042
  @click.option("--published", type=click.Choice(["no", "public"]), default=None)
6033
6043
  @click.pass_context
6034
6044
  def update_resource(ctx, id, resource_member, remove_resource_member, **kwargs):
agilicus/resources.py CHANGED
@@ -216,6 +216,7 @@ def update_resource(
216
216
  name=None,
217
217
  org_id=None,
218
218
  rules_config_file=None,
219
+ roles_config_file=None,
219
220
  published=None,
220
221
  **kwargs,
221
222
  ):
@@ -240,6 +241,8 @@ def update_resource(
240
241
  resource.spec.name = name
241
242
  if rules_config_file is not None:
242
243
  resource.spec.config.rules_config = rules_config_file
244
+ if roles_config_file is not None:
245
+ resource.spec.config.roles_config = roles_config_file
243
246
  if published is not None:
244
247
  resource.spec.config.published = published
245
248
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agilicus
3
- Version: 1.267.1
3
+ Version: 1.269.0
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=sRY1Ge_aUimbaPHoulwCVT8pSB_hpjYAdw
71
71
  agilicus/agilicus_api/api/users_api_mock.py,sha256=wA_xiqL3Pz3KjljKlsmf5NveLZS1FpbaKJHBp7QvarY,15411
72
72
  agilicus/agilicus_api/api/whoami_api.py,sha256=EuL_UM7R5vey36rjwOPsF8TqNyJKyIH5RN6k05E0jAQ,7941
73
73
  agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
74
- agilicus/agilicus_api/api_client.py,sha256=EaB1E3_AiTtNoe-vJtvU3RSeJXH1-X6K_F3vYUeQsgk,38845
74
+ agilicus/agilicus_api/api_client.py,sha256=1j-i1A8Kt3SjGEIAlwgs83Ql4WOQQqiGH9wVE29FTaE,38845
75
75
  agilicus/agilicus_api/apis/__init__.py,sha256=aJZD7x-umdSni6ZBr4XxzpH8pwtU9hA5LlCDxcqa1Q8,2224
76
- agilicus/agilicus_api/configuration.py,sha256=Gf10nZH5lwrsAUHZqBmFMmcSh6p6i_hPDwMOEoUP0DM,18447
76
+ agilicus/agilicus_api/configuration.py,sha256=pm85p-0nQhkVigiYpxyu6NBTmnyRc12WalrdYo9GVPE,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
@@ -2529,7 +2529,7 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=KigehF3015P8wuGb
2529
2529
  agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=MwqrYGLWl-hTmuLtE-GZ2_LvFtoHP3Jf0Y2n8O3Q-J8,2832
2530
2530
  agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=93ATew310qaTCB9f6FjFlW3tvjaH2hi98KypBYC5gP4,2846
2531
2531
  agilicus/agilicus_api/test/test_xss_settings.py,sha256=F0VcWfvT8hXcMEWowolRCxnd7Q87mHvXOc-GeS-GpWk,2746
2532
- agilicus/agilicus_api_README.md,sha256=HxUdX-op94CYuMRO_xLWxB7Q4iuhn11jQSQ0bU-fN4I,162124
2532
+ agilicus/agilicus_api_README.md,sha256=B8ny6QzvW_zM-4FKh5XHPWamRDa7GKNJdPQUiHhbP8Q,162124
2533
2533
  agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
2534
2534
  agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
2535
2535
  agilicus/apps.py,sha256=ZRPqOq9ecFTqaBce5JQW7e1zekoJbhgYKDDsxyWo5BA,53212
@@ -2541,7 +2541,7 @@ agilicus/certificate.py,sha256=iXC4iT3EGISyEezrvMgfic_lSCx2_JMSWevTLyGekR8,2739
2541
2541
  agilicus/challenges.py,sha256=Ig9888pHGMigBxI_e8m2T_HZiqbU6TxsBXT2EKZoIUY,6968
2542
2542
  agilicus/click_extension.py,sha256=uE57TjMqJxO9VFPBJO5-bTo9UrQiHPjIdI_iwKSaw6Q,224
2543
2543
  agilicus/client_secrets.json,sha256=eyPFVzziH48RuwWl66cfi0JE4jpmoec0Vo_F2TzYOeI,414
2544
- agilicus/connectors.py,sha256=iLGqf7aZssLO-jwDe8FLWv9LZUMfDfxTSXoqr0WO_hM,42630
2544
+ agilicus/connectors.py,sha256=pChAT505Tnm3QBGJBrvivharBOlG2mNbB36Zcq5Vpck,42885
2545
2545
  agilicus/context.py,sha256=tlmtUK5B1G-gBqfmljaPKPhLKur92jgAi5xC9SA7AVs,8128
2546
2546
  agilicus/create.py,sha256=ndMbOxQasyyUY7aW4U2TU8EKGcUla72xCjAwAwfTBVA,3270
2547
2547
  agilicus/credentials.py,sha256=F3yPAwoMcziP1OLmzeJ8jIz1W-91-HXu4zcymyMp1E4,4730
@@ -2579,7 +2579,7 @@ agilicus/labels/labels_main.py,sha256=ptJ34mf-iVaf8ezf3RWLcpeP2O0ntezS4tqJ0ks0el
2579
2579
  agilicus/launchers.py,sha256=r4nctnVtfP-Ho_HXEfAiMaMqJI0u7pbieHSS3Vd0QBE,11361
2580
2580
  agilicus/logs.py,sha256=tS8c_sdre1Dncrl59GVGQ0L3d2jtwlVjvIMl3SHJraY,766
2581
2581
  agilicus/lookups.py,sha256=MNmNsKpP7Fq_poLAnL9xo_iptFilKM9ziGLyIe8VKaw,669
2582
- agilicus/main.py,sha256=PV6rx_V9TP7I_kKd-31AKahShbOF7vPfwODDWKbN-FM,272198
2582
+ agilicus/main.py,sha256=jSzeER-29yJAX1m2geiuwR5yvklrh5t-6bMGMGRFAyQ,272479
2583
2583
  agilicus/messages.py,sha256=Ydm-VhAsK23UnYdstv_HsOybBODfui5ubKc7F8R_dsw,5187
2584
2584
  agilicus/metrics.py,sha256=v4rwpvqDzeNG5GKNoZ7t34X5qUgly5IW2s-kXlS2vQM,2315
2585
2585
  agilicus/orgs.py,sha256=S9v1Hnv_qGcJ90uNC3V692srcXTPv6GIHiTF_z5YC90,15902
@@ -2604,7 +2604,7 @@ agilicus/products/products.py,sha256=he27jN3MUyXBdTdV2HRyvUYb0zD3W1TGsuC7NHLKngQ
2604
2604
  agilicus/products/products_main.py,sha256=saa2-e5oeHW6D5AWPcld99KwgQ9nBY3hoW8Jz_5nfMQ,3421
2605
2605
  agilicus/regions.py,sha256=21SzUJ9_hC8DiWLSLJ-vtSb1tWLhlcPXH9JhmXD_ypU,3343
2606
2606
  agilicus/resource_helpers.py,sha256=fyfqAxjfnIth1KlHNALlLtYYXIZzlWEJmSZNLdj2JV0,380
2607
- agilicus/resources.py,sha256=mtgCjZrEd-oHxgYA-TjbeHX3I8kT1R8DFzNBNAv9EG0,10918
2607
+ agilicus/resources.py,sha256=v5-XtzEv7SaM2snnYV89JONSyUr1Vb5QoZFWYFRFi5U,11046
2608
2608
  agilicus/response.py,sha256=tI2-dAJwhBuuDplSsouuMmCmKHSwR_Mx71af8tgsuYo,468
2609
2609
  agilicus/rules/rules.py,sha256=ixfMro-l30Pt1r_wyypWL8vhSWccdCoRv8mPJynhR2o,24991
2610
2610
  agilicus/rules/rules_main.py,sha256=kQ0g86Xjp5PXERb7AlHWZha4wZGV7pEYGWEIXggH9Kg,13639
@@ -2622,8 +2622,8 @@ agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4n
2622
2622
  agilicus/users.py,sha256=JT7TIiUOtSFXPOdxmIVFm7ygZTH1FjsIkD9j-vjLuMM,38474
2623
2623
  agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
2624
2624
  agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
2625
- agilicus-1.267.1.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2626
- agilicus-1.267.1.dist-info/METADATA,sha256=RWxeus02D0qPNLYlA5hh_T27yHke8h0drQBdDn23ZLE,3873
2627
- agilicus-1.267.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2628
- agilicus-1.267.1.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2629
- agilicus-1.267.1.dist-info/RECORD,,
2625
+ agilicus-1.269.0.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2626
+ agilicus-1.269.0.dist-info/METADATA,sha256=YdYCLxgPUtYRnDk_6d0Kv3ZQKlEIcV9H1EFZkwc3jMU,3873
2627
+ agilicus-1.269.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2628
+ agilicus-1.269.0.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2629
+ agilicus-1.269.0.dist-info/RECORD,,