Skip to content

Releases: alertlogic/alertlogic-sdk-python

Use new version of alertlogic-sdk-definitions

01 Feb 01:40
7cce590
Compare
Choose a tag to compare
Merge pull request #111 from zdaniel86/fmulti

fix multiple content type issue for requestBody

Support non-json body type

31 Jan 16:23
7cce590
Compare
Choose a tag to compare
Merge pull request #111 from zdaniel86/fmulti

fix multiple content type issue for requestBody

s/m2r/m2r2 in deps

27 Jan 10:55
fedcec9
Compare
Choose a tag to compare
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)

01 Dec 14:50
2a1d68f
Compare
Choose a tag to compare
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)

29 Nov 11:38
e8d9242
Compare
Choose a tag to compare

v1.0.63: Support byte RequestBodySimpleParameter (#101)

27 Oct 13:02
8c156e9
Compare
Choose a tag to compare

v1.0.62

25 Oct 11:55
a8a08ed
Compare
Choose a tag to compare
pyyaml: pin to 5.4.1 (#102)

v1.0.61: Do full clone for the pypi release (#100)

28 Jun 16:02
14e684a
Compare
Choose a tag to compare

v1.0.60: Adjust formatting for the release history (#99)

28 Jun 15:57
3c3a004
Compare
Choose a tag to compare

v1.0.59: Add automatic rel notes (#98)

28 Jun 15:46
00acefe
Compare
Choose a tag to compare