Releases: alertlogic/alertlogic-sdk-python
Releases · alertlogic/alertlogic-sdk-python
Use new version of alertlogic-sdk-definitions
Merge pull request #111 from zdaniel86/fmulti fix multiple content type issue for requestBody
Support non-json body type
Merge pull request #111 from zdaniel86/fmulti fix multiple content type issue for requestBody
s/m2r/m2r2 in deps
Merge pull request #110 from ivanu-at-AL/m2r2 Use current m2r2 instead of old, broken m2r==0.2.1
v1.0.65: Use AlmdrlibValueError instead of Exception (#108)
Printing of Exceptions is not safe and AlmdrlibValueError should have been used in the first place. ``` alcli --profile integration aetuner update_tagset --account_id 134249387 --path tuning/ngx/ConfigChange/AttackerKeyAccountNameWhitelist --xtuning '[{"type":"test","operation":"delete","path":"tuning/ngx/ConfigChange/AttackerKeyAccountNameWhitelist","key":"config_change"]}]' --reason "wrong type" --dry_run=true ERROR:root:Expecting ',' delimiter: line 1 column 124 (char 123) ERROR:alcli.almdr_cli:An exception of type Exception occurred. Arguments: ('<aetuner.update_tagset: POST /v1/{account_id}/tagsets> failed Validation Error: \'[{"type":"test","operation":"delete","path":"tuning/ngx/ConfigChange/AttackerKeyAccountNameWhitelist","key":"config_change"]}]\' is not of type \'array\'',) Traceback (most recent call last): File "/Users/acockfield/Library/Python/3.9/lib/python/site-packages/almdrlib/client.py", line 694, in __call__ return self._call(*args, **kwargs) File "/Users/acockfield/Library/Python/3.9/lib/python/site-packages/almdrlib/client.py", line 670, in f self._body.serialize(headers, kwargs) File "/Users/acockfield/Library/Python/3.9/lib/python/site-packages/almdrlib/client.py", line 314, in serialize payload_body_param.serialize(kwargs, headers) File "/Users/acockfield/Library/Python/3.9/lib/python/site-packages/almdrlib/client.py", line 227, in serialize self.validate(result) File "/Users/acockfield/Library/Python/3.9/lib/python/site-packages/almdrlib/client.py", line 127, in validate raise AlmdrlibValueError(f"Validation Error: {e.message}") from None almdrlib.exceptions.AlmdrlibValueError: Validation Error: '[{"type":"test","operation":"delete","path":"tuning/ngx/ConfigChange/AttackerKeyAccountNameWhitelist","key":"config_change"]}]' is not of type 'array' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/acockfield/Library/Python/3.9/lib/python/site-packages/alcli/alertlogic_cli.py", line 116, in main return services[parsed_args.service](remaining, parsed_args) File "/Users/acockfield/Library/Python/3.9/lib/python/site-packages/alcli/alertlogic_cli.py", line 199, in __call__ res = operation(**op_args) File "/Users/acockfield/Library/Python/3.9/lib/python/site-packages/almdrlib/client.py", line 696, in __call__ raise Exception(f"{self} failed {e}") Exception: <aetuner.update_tagset: POST /v1/{account_id}/tagsets> failed Validation Error: '[{"type":"test","operation":"delete","path":"tuning/ngx/ConfigChange/AttackerKeyAccountNameWhitelist","key":"config_change"]}]' is not of type 'array ```
v1.0.64: Make opeanapi schema validation errors human readable (#107)
Improved schema validation error reporting
v1.0.63: Support byte RequestBodySimpleParameter (#101)
Co-authored-by: Hugues Martel <[email protected]>
v1.0.62
v1.0.61: Do full clone for the pypi release (#100)
Co-authored-by: Anton Benkevich <[email protected]>
v1.0.60: Adjust formatting for the release history (#99)
Co-authored-by: Anton Benkevich <[email protected]>
v1.0.59: Add automatic rel notes (#98)
Co-authored-by: Anton Benkevich <[email protected]>