-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Partner Security Alerts ModuleNotFoundError #519
Comments
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. 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 Investigating the reason for the invalid import path. |
Tracked here microsoftgraph/microsoft-graph-devx-api#2183 |
Thanks @shemogumbe |
Closing as issues is tracked here microsoftgraph/microsoft-graph-devx-api#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, in
from msgraph_beta.generated.models.security_alert_status import SecurityAlertStatus
ModuleNotFoundError: No module named 'msgraph_beta.generated.models.security_alert_status'
The text was updated successfully, but these errors were encountered: