agilicus 1.191.3__py3-none-any.whl → 1.192.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.191.3/python'
80
+ self.user_agent = 'OpenAPI-Generator/1.192.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: 2023.03.15\n"\
390
- "SDK Package Version: 1.191.3".\
390
+ "SDK Package Version: 1.192.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: 2023.03.15
7
- - Package version: 1.191.3
7
+ - Package version: 1.192.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/billing.py CHANGED
@@ -373,26 +373,44 @@ def create_usage_record(
373
373
 
374
374
  def list_products(ctx, **kwargs):
375
375
  client = get_apiclient_from_ctx(ctx)
376
- return client.billing_api.list_products(**kwargs)
376
+ products = client.billing_api.list_products(**kwargs)
377
+ products.products = sorted(products.products, key=lambda d: d["spec"]["label"])
378
+ return products
377
379
 
378
380
 
379
381
  def format_products(ctx, products_obj):
380
382
  products = products_obj.to_dict()
381
383
 
382
384
  def get_product_name(record, key):
383
- return record["product"]["name"]
385
+ return "{0: <20}".format(record["product"]["name"])
386
+
387
+ def get_product_nickname(record, key):
388
+ return "{0: <28}".format(record["nickname"])
389
+
390
+ def get_product_metric(record, key):
391
+ if "metric" in record["product"]["metadata"]:
392
+ return "{0: <20}".format(record["product"]["metadata"]["metric"])
393
+ else:
394
+ return "{0: <20}".format("")
395
+
396
+ def get_unit_amount(record, key):
397
+ if record["unit_amount"]:
398
+ return "{:,.2f}".format(record["unit_amount"] / 100)
399
+ return ""
384
400
 
385
401
  product_price_column = [
386
402
  column("id", optional=True),
387
403
  column("product name", getter=get_product_name, optional=True),
388
- column("unit_amount", optional=True),
404
+ column("nickname", getter=get_product_nickname, optional=True),
405
+ column("metric", getter=get_product_metric, optional=True),
406
+ column("unit_amount", getter=get_unit_amount, optional=True),
389
407
  ]
390
408
  columns = [
391
409
  metadata_column("id"),
392
410
  spec_column("name"),
393
411
  spec_column("label", optional=True),
394
412
  spec_column("description", optional=True),
395
- spec_column("dev_mode", optional=True),
413
+ # spec_column("dev_mode", optional=True),
396
414
  subtable(
397
415
  ctx,
398
416
  "billing_product_prices",
agilicus/main.py CHANGED
@@ -6511,6 +6511,7 @@ def create_billing_account_account_usage_record(ctx, **kwargs):
6511
6511
 
6512
6512
  @cli.command(name="list-products")
6513
6513
  @click.option("--limit", default=500)
6514
+ @click.option("--get-subscription-data", is_flag=True, default=False)
6514
6515
  @click.pass_context
6515
6516
  def list_products(ctx, **kwargs):
6516
6517
  products = billing.list_products(ctx, **kwargs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agilicus
3
- Version: 1.191.3
3
+ Version: 1.192.0
4
4
  Summary: Agilicus SDK
5
5
  Home-page: https://www.agilicus.com/
6
6
  License: MIT
@@ -56,9 +56,9 @@ agilicus/agilicus_api/api/users_api.py,sha256=f-4ICNidHTE2pC7Iimgkl4WNPMP8R0TB7b
56
56
  agilicus/agilicus_api/api/users_api_mock.py,sha256=wA_xiqL3Pz3KjljKlsmf5NveLZS1FpbaKJHBp7QvarY,15411
57
57
  agilicus/agilicus_api/api/whoami_api.py,sha256=y5hb-7gPUwYHlClVot3pWSdbEW3hvzP2KfwgxjvJB1A,7941
58
58
  agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
59
- agilicus/agilicus_api/api_client.py,sha256=B9f5oay-zNKO2rPknQc9ueoJGjI5Ke16vh-pUd3MqRI,38845
59
+ agilicus/agilicus_api/api_client.py,sha256=aiHE6uW7umyDTWAUzevJJN3GFZQIJiZprlNelZFaZzo,38845
60
60
  agilicus/agilicus_api/apis/__init__.py,sha256=RgE6ZpAhdJQlmXXP-1vt7yX_BF3wQ6M_GoYYIriEjeQ,1823
61
- agilicus/agilicus_api/configuration.py,sha256=qgm07LZ3DTnJONuRg6FKOHklcpeuJZp6kPyip2rFllE,18447
61
+ agilicus/agilicus_api/configuration.py,sha256=nIqYLQK_kl96XvkM6RlDG67Xxnq-qo2iUEKlKalxZMU,18447
62
62
  agilicus/agilicus_api/docs/APIKey.md,sha256=4cKuz4_l9HcEDnUrLwYbEnn9C2WoDayrjfrY1Ixgaf4,1747
63
63
  agilicus/agilicus_api/docs/APIKeyIntrospect.md,sha256=nJ-zkuFm3JMbWFDYYN_vYyQk1snGBtBvIxtCQxamhAU,1019
64
64
  agilicus/agilicus_api/docs/APIKeyIntrospectAuthorizationInfo.md,sha256=7RApOOLjvWQs5sw2jb25g7i3Kta1BiEY-s8VRXfppH8,725
@@ -1918,13 +1918,13 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=nXqB6WtbWo5Ng7BJ
1918
1918
  agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=lhxnNesGwf_KQdWNya71NRP5lrOTWIBXV_f5XHiZD9c,2832
1919
1919
  agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=rqp6ML50e9-TSiShE-7CGEnzobt8Zs-cxuLZEUwmOYA,2846
1920
1920
  agilicus/agilicus_api/test/test_xss_settings.py,sha256=Fmk0HiKWc6lQHZvqWuBAOtcv8O-BSD1LcCE8dfrlhvE,2746
1921
- agilicus/agilicus_api_README.md,sha256=SdszWVa5odkXiS9Q0aFWMTnF_nozwGlKWGyE5wJ3Bj4,124106
1921
+ agilicus/agilicus_api_README.md,sha256=9grn9M2xlhxE8uofyGJhMacILuLaLOiRvatPSvzDupM,124106
1922
1922
  agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
1923
1923
  agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
1924
1924
  agilicus/apps.py,sha256=PDB3IiAKH9uAbCsYB_NE2SUKnr5jHgZlQYqPK942HWE,47385
1925
1925
  agilicus/audit_destinations.py,sha256=lJ1VbSt8CtOhnFYnRkgZw-WLZ_RS5K90cqOKSJvn3kA,6884
1926
1926
  agilicus/audits.py,sha256=UKE00xJPkLpx-N08CN-VyDmPYStdPmjmtofJO72bVH8,3521
1927
- agilicus/billing.py,sha256=uoerIuj5GlkEcbkgSlEjBwKESTV9cc-zSLpNJ7gVAO8,18001
1927
+ agilicus/billing.py,sha256=yOHHZOnPO6dz05jY-RBSJOiVVj4sNXsDqoTDeMv1OmM,18783
1928
1928
  agilicus/catalogues.py,sha256=K8pcc-GLXzSXxvPauNNxIBN4fBVi1jTp57eAv_XmGqA,3218
1929
1929
  agilicus/certificate.py,sha256=iXC4iT3EGISyEezrvMgfic_lSCx2_JMSWevTLyGekR8,2739
1930
1930
  agilicus/challenges.py,sha256=v4r_JrBpxJGRgZvk3pJvMNxhWKvpZajgphIWOC45hE8,6453
@@ -1955,7 +1955,7 @@ agilicus/keyring_storage.py,sha256=tQEfDPW27xEdjPIBnjAyZOAG3wHlk3KQ2DSKYr4B5fM,2
1955
1955
  agilicus/launchers.py,sha256=ji3uhu-xPVlnWnkwhZVw19HntQVE7Up5IMiaLfNpvJg,9223
1956
1956
  agilicus/logs.py,sha256=tS8c_sdre1Dncrl59GVGQ0L3d2jtwlVjvIMl3SHJraY,766
1957
1957
  agilicus/lookups.py,sha256=MNmNsKpP7Fq_poLAnL9xo_iptFilKM9ziGLyIe8VKaw,669
1958
- agilicus/main.py,sha256=zTqRkc6aMtUvnkZDeQfQGP3axa5mlb_kvsgvqn_h8dM,240389
1958
+ agilicus/main.py,sha256=wHjKNZhKB1yOEu68UjKTr1Fn9t_haazd7KNukfvIHl8,240459
1959
1959
  agilicus/messages.py,sha256=WflrK1dPJaYP15WGnVk4XGnlDw2q-EFnUXNOSWAnziE,4490
1960
1960
  agilicus/metrics.py,sha256=9l0T7ea4Gvcj7A1C4uC4mv6v26_S8HKnmIuxJjq3mQw,1424
1961
1961
  agilicus/orgs.py,sha256=S6yix0QfiU27w1X7CRURCkDG4ZftMDvw4H_Uy4DAT4s,11938
@@ -1980,8 +1980,8 @@ agilicus/transfers.py,sha256=PYr_fW7dyXNUXzi5Wp5mUjZOvU7MbRzoN-D8Omo-YSQ,1523
1980
1980
  agilicus/users.py,sha256=hesoqAgoFDZNEL-6NzGM3O-Dzr7PhyxHEcMEA3S0nJU,37955
1981
1981
  agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
1982
1982
  agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
1983
- agilicus-1.191.3.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
1984
- agilicus-1.191.3.dist-info/METADATA,sha256=W7y-ZW25bT1_AA3ApF-zlLG3Ft3JlRDofkid58JgM98,3714
1985
- agilicus-1.191.3.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
1986
- agilicus-1.191.3.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
1987
- agilicus-1.191.3.dist-info/RECORD,,
1983
+ agilicus-1.192.0.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
1984
+ agilicus-1.192.0.dist-info/METADATA,sha256=50OI8-vF53GCswYegf6nFw9t4X150STFzjXQUGQePTE,3714
1985
+ agilicus-1.192.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
1986
+ agilicus-1.192.0.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
1987
+ agilicus-1.192.0.dist-info/RECORD,,