agilicus 1.288.0__py3-none-any.whl → 1.289.1__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.288.0/python'
80
+ self.user_agent = 'OpenAPI-Generator/1.289.1/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: 2025.05.01\n"\
390
- "SDK Package Version: 1.288.0".\
390
+ "SDK Package Version: 1.289.1".\
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: 2025.05.01
7
- - Package version: 1.288.0
7
+ - Package version: 1.289.1
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
 
@@ -1,6 +1,7 @@
1
1
  import io
2
2
  from .. import context
3
3
  from ..input_helpers import (
4
+ get_user_id_from_input_or_ctx,
4
5
  get_org_from_input_or_ctx,
5
6
  strip_none,
6
7
  update_attrs_if_not_none,
@@ -156,6 +157,7 @@ def render_file_template(
156
157
  resource_id=None,
157
158
  as_attachment=False,
158
159
  org_id=None,
160
+ user_id=None,
159
161
  ) -> io.BufferedReader:
160
162
  token = context.get_token(ctx)
161
163
  apiclient = context.get_apiclient(ctx, token)
@@ -166,7 +168,7 @@ def render_file_template(
166
168
  as_attachment=as_attachment,
167
169
  )
168
170
  if include_user:
169
- user_id = context.get_user_id(ctx)
171
+ user_id = get_user_id_from_input_or_ctx(ctx, user_id)
170
172
  user = get_user(ctx, user_id, org_id=org_id)
171
173
  request._check_type = False
172
174
  request.user_information = user
@@ -1,6 +1,8 @@
1
+ import os.path
1
2
  import sys
2
3
  import click
3
4
  import shutil
5
+ import zipfile
4
6
 
5
7
  from . import file_templates
6
8
  from . import public_file_org_links
@@ -150,6 +152,7 @@ def cli_command_delete_file_template(ctx, **kwargs):
150
152
  @click.command(name="render-file-template")
151
153
  @click.option("--file-template-id", required=True)
152
154
  @click.option("--include-user", is_flag=True)
155
+ @click.option("--user-id")
153
156
  @click.option("--resource-id")
154
157
  @click.option(
155
158
  "--template-argument", multiple=True, type=click.Tuple([str, str]), default=None
@@ -158,13 +161,21 @@ def cli_command_delete_file_template(ctx, **kwargs):
158
161
  "--outfile", type=click.File("wb"), default=None, help="defaults to stdout"
159
162
  )
160
163
  @click.option("--org-id")
164
+ @click.option("--compressed", is_flag=True)
161
165
  @click.pass_context
162
- def cli_command_render_file_template(ctx, template_argument, outfile, **kwargs):
166
+ def cli_command_render_file_template(
167
+ ctx, template_argument, outfile, compressed, **kwargs
168
+ ):
163
169
  result = file_templates.render_file_template(
164
170
  ctx, template_arguments=template_argument, **kwargs
165
171
  )
166
172
  if outfile is None:
167
173
  outfile = sys.stdout.buffer
174
+ if compressed:
175
+ outfile = zipfile.ZipFile(outfile, "w", zipfile.ZIP_DEFLATED)
176
+ outfile.writestr(os.path.basename(result.name), result.read())
177
+ outfile.close()
178
+ return
168
179
 
169
180
  shutil.copyfileobj(result, outfile)
170
181
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agilicus
3
- Version: 1.288.0
3
+ Version: 1.289.1
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=pF24FyUKUqoD4JvrMXmmco5Dwe9mPKR-Jo
71
71
  agilicus/agilicus_api/api/users_api_mock.py,sha256=aMSUc12JQAo1O9rp2YnyQldANFGlfi57fMnQyCIrJuE,17209
72
72
  agilicus/agilicus_api/api/whoami_api.py,sha256=fn61WBymSYKUxZ4n91tmmy35GTQnBtqpTutV04ZS9d0,7941
73
73
  agilicus/agilicus_api/api/whoami_api_mock.py,sha256=rlvZoWnMCqORMZBg7SOv6d3xp52kELdh6wXcCaIZ93w,346
74
- agilicus/agilicus_api/api_client.py,sha256=2ZDCKEKKNoZFTR3XSHMOkUKOhsOrUcPJo2UQzbSTg4M,38845
74
+ agilicus/agilicus_api/api_client.py,sha256=FkqZTXCwpfnw_MUfZrM5rRmpAsSXly0PCbkOCYs-ADs,38845
75
75
  agilicus/agilicus_api/apis/__init__.py,sha256=aJZD7x-umdSni6ZBr4XxzpH8pwtU9hA5LlCDxcqa1Q8,2224
76
- agilicus/agilicus_api/configuration.py,sha256=muWJlnpFwxiqzzzaIDte2Y9b4r_JkcfALQXxK_efd7c,18447
76
+ agilicus/agilicus_api/configuration.py,sha256=skbjBhNGk_RxuplJ_uQwks-fCp3F9zHz38Z0o9onimM,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
@@ -2703,7 +2703,7 @@ agilicus/agilicus_api/test/test_x509_root_certificate.py,sha256=lF49UVoc0xACy1Fw
2703
2703
  agilicus/agilicus_api/test/test_x509_root_certificate_spec.py,sha256=OvaFudK1yc1KOwf5nztHQd69Fd68gBkMJqqLHBShySw,2832
2704
2704
  agilicus/agilicus_api/test/test_x509_root_certificate_status.py,sha256=X1Cur2q2jPyfAZQfJdBOeejbrSzQDMfJxA1r7NkIaik,2846
2705
2705
  agilicus/agilicus_api/test/test_xss_settings.py,sha256=CbAvHRh9LIl15O3bmg9fvRBQtQT7aznwB8dM8UAJhDQ,2746
2706
- agilicus/agilicus_api_README.md,sha256=MxxkhmN_qhuOi5acV5LB5tUDxdYOjg16_XodFcWkRwU,173709
2706
+ agilicus/agilicus_api_README.md,sha256=95z66JjpdTj_oiH99G5_DoORL9y__GO7QQD2RYKy44c,173709
2707
2707
  agilicus/aliases.ini,sha256=MxqiVo2f2xdUDVF1YDkNW36AIqN8hrYjlTVfraEUZXY,455
2708
2708
  agilicus/amq.py,sha256=yxi-YTbJPVl10s78Hlr1dmrQR63iaSIoROGVILzFPmE,1775
2709
2709
  agilicus/apps.py,sha256=Mdc_pRXyfa-IvIFH7gNbx0Ob64gUHggZyeSyLUDpjMs,54048
@@ -2740,8 +2740,8 @@ agilicus/features/features.py,sha256=nqxAo69Bn1zafBB2VbiCXixa17jWMrxN6V0u3iyqs0c
2740
2740
  agilicus/features/features_main.py,sha256=InvXz-Eka6ySQAUM-u6KBkRPEY5lviHuZXeow5uqLto,3779
2741
2741
  agilicus/file_shares.py,sha256=ZwO3OwfRsDTZu6VwDcvqyC5OeHWnoA9hQ8vzygXGeE8,4326
2742
2742
  agilicus/files.py,sha256=JiVDiPHTpOE-4pPaqhP2Kj_S5KjxafEQESDlT_t1xkk,7271
2743
- agilicus/files_pkg/file_templates.py,sha256=X6kpNxoZUhnwPvEuSKPlBVK9SQ1bCinsTjHzxXZmb1g,7193
2744
- agilicus/files_pkg/files_main.py,sha256=tnwzrk2lWlsRD-L4yRXhdA4qvYH1sz6GYPcsOPxR4LU,5852
2743
+ agilicus/files_pkg/file_templates.py,sha256=5YmbTCRBijmH3Q9Yqm8g2sfRLyTnZyksLQoT-bdTbZQ,7265
2744
+ agilicus/files_pkg/files_main.py,sha256=l7qM4rsbyPgSiQzdywzs1QJ0wsZjD50fcJ5RjPoJn-o,6170
2745
2745
  agilicus/files_pkg/public_file_org_links.py,sha256=YFtf6a5dKwmn20Sk6QEP0lLXI2d8G1KoJNHYAIRgkAI,1810
2746
2746
  agilicus/forwarders.py,sha256=vbcNGHcICGEP3glhNCZgOmH4BKM2JAMJoATYryhwMCk,2882
2747
2747
  agilicus/garbage_collection.py,sha256=jE-BwFvyaa1FvUvhOGyhnONFLKv9fc_t3DJCsImq8HU,7090
@@ -2806,8 +2806,8 @@ agilicus/trusted_certs/trusted_certs_main.py,sha256=6dHHWXvNIcUa_nA9ptigL4Vibe4n
2806
2806
  agilicus/users.py,sha256=bUFtVlTjUeEoQlzsQcfS8ChN0X9mbHs8v0xbkK-cldQ,41772
2807
2807
  agilicus/version.py,sha256=G9OFdL1v_4dLDfk6I6taDNypM5bbO-JHAwilsu9LYgg,23
2808
2808
  agilicus/whoami.py,sha256=kqghtWMgZOd2rhKmfguDwCTm6A3gNS8Kj-S2IBxBtl0,206
2809
- agilicus-1.288.0.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2810
- agilicus-1.288.0.dist-info/METADATA,sha256=xUbg6GVq5l7iuINnn4pHJyKSYkSw4pi3KZoI946oLsA,3878
2811
- agilicus-1.288.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2812
- agilicus-1.288.0.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2813
- agilicus-1.288.0.dist-info/RECORD,,
2809
+ agilicus-1.289.1.dist-info/LICENSE.txt,sha256=Zq4tqiCroC2CVrBB_PWjapRdvpae23nljdiaSkOzUho,1061
2810
+ agilicus-1.289.1.dist-info/METADATA,sha256=5ejd5xwsgXZGMvPA3_uRb70FcZrLQ6702Q0sRbJShcY,3878
2811
+ agilicus-1.289.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
2812
+ agilicus-1.289.1.dist-info/entry_points.txt,sha256=a66hGozzLkHu0IewFzIMbSAhMTNTddUaA2T3_16Gb_s,51
2813
+ agilicus-1.289.1.dist-info/RECORD,,