microsoftgraph / msgraph-sdk-php

Microsoft Graph Library for PHP.
Other
578 stars 144 forks source link

DeviceEnrollmentType Enum missing cases #1605

Open lukasmu opened 3 weeks ago

lukasmu commented 3 weeks ago

Describe the bug

The DeviceEnrollmentType enumeration is missing a few cases: List from https://learn.microsoft.com/en-us/graph/api/resources/intune-troubleshooting-deviceenrollmenttype?view=graph-rest-1.0 contains 25 cases, the enumeration only contains 13 cases.

As a result, it is not possible to fetch any devices with other enrolment types than the ones included in the enumeration. Example error: InvalidArgumentException: Invalid enum value appleACMEBasicBYOD at vendor/microsoft/kiota-abstractions/src/Enum.php:57

Expected behavior

It should be possible to fetch devices. Either the enumeration needs to be updated, or the code should allow to fetch devices even if an unknown DeviceEnrollmentType is returned by the API.

How to reproduce

Try to fetch a device where the DeviceEnrollmentType is e.g. appleACMEBasicBYOD

SDK Version

2.17.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ``` ```

Configuration

No response

Other information

No response