Closed AdrianM10 closed 1 week ago
Hello @AdrianM10 thanks for using the SDK and for raising this.
There seems to be an issue with the snippet.
In your code:
from msgraph_beta.generated.models.security_alert_status import SecurityAlertStatus
from msgraph_beta.generated.models.security_alert_resolved_reason import SecurityAlertResolvedReason
Do not exist. The path to Partner alert status is and alert reasolved reason are
from msgraph_beta.generated.models.partner.security.security_alert_status import SecurityAlertStatus
from msgraph_beta.generated.models.partner.security.security_alert_resolved_reason import SecurityAlertResolvedReason
As per the path msgraph_beta/generated/models/partner/security/
Investigating the reason for the invalid import path.
Thanks @shemogumbe
Closing as issues is tracked here https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/2183
Describe the bug
I am encountering a ModuleNotFoundError when trying to import from msgraph_beta when attempting to update Partner Security Alerts.
Expected behavior
A response object should be returned as indicated in the Microsoft docs :
https://learn.microsoft.com/en-us/graph/api/partner-security-partnersecurityalert-update?view=graph-rest-beta&tabs=python
How to reproduce
SDK Version
1.5.3
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
``` Traceback (most recent call last): File "C:\Users\Developer\Partner-Center-Events\CodeSnippets\update_security_alert.py", line 3, inConfiguration
Other information
No response