Detection rule response action identifiers always return an empty list #706
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
When calling a List or Get for detection rules, e.g.
await self.graph_client.security.rules.detection_rules.get()
, you get aDetectionRuleCollectionResponse
.This response contains a field
detection_action.response_actions
which is a list of typeResponseAction
.For a specific response action, e.g.
IsolateDeviceResponseAction
, the identifier field is always[]
instead of the Enum it should be, e.g.identifier=<DeviceIdEntityIdentifier.DeviceId: 'deviceId'>
.I believe this is due to this code in the
get_field_deserializers
:I suspect the
get_collection_of_enum_values
should be replaced withget_enum_value
. Since I presume that this code is all generated, the root cause of this problem is probably somewhere else.Expected behavior
Return the correct enum for all
ResponseAction
identifiers.How to reproduce
Call
await self.graph_client.security.rules.detection_rules.get()
on a detection rule with a response action.SDK Version
1.16.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
No response
Configuration
Other information
No response
The text was updated successfully, but these errors were encountered: