// Code generated by Microsoft Kiota - DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

package models
// Partner App Type.
type DeviceManagementPartnerAppType int

const (
    // Partner App type is unknown.
    UNKNOWN_DEVICEMANAGEMENTPARTNERAPPTYPE DeviceManagementPartnerAppType = iota
    // Partner App is Single tenant in AAD.
    SINGLETENANTAPP_DEVICEMANAGEMENTPARTNERAPPTYPE
    // Partner App is Multi tenant in AAD.
    MULTITENANTAPP_DEVICEMANAGEMENTPARTNERAPPTYPE
)

func (i DeviceManagementPartnerAppType) String() string {
    return []string{"unknown", "singleTenantApp", "multiTenantApp"}[i]
}
func ParseDeviceManagementPartnerAppType(v string) (any, error) {
    result := UNKNOWN_DEVICEMANAGEMENTPARTNERAPPTYPE
    switch v {
        case "unknown":
            result = UNKNOWN_DEVICEMANAGEMENTPARTNERAPPTYPE
        case "singleTenantApp":
            result = SINGLETENANTAPP_DEVICEMANAGEMENTPARTNERAPPTYPE
        case "multiTenantApp":
            result = MULTITENANTAPP_DEVICEMANAGEMENTPARTNERAPPTYPE
        default:
            return nil, nil
    }
    return &result, nil
}
func SerializeDeviceManagementPartnerAppType(values []DeviceManagementPartnerAppType) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
func (i DeviceManagementPartnerAppType) isMultiValue() bool {
    return false
}
