/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/install_intent.go
47 строк
1 KB
Justin Pierce
Add compat_otp package with openshift-tests-private (OTP) util implementations
11 авг 2025, 18:00
11 авг 2025, 18:00
80ac5c1
Код
Авторство
О чём код?
// Code generated by Microsoft Kiota - DO NOT EDIT. // Changes may cause incorrect behavior and will be lost if the code is regenerated. package models // Possible values for the install intent chosen by the admin. type InstallIntent int const ( // Available install intent. AVAILABLE_INSTALLINTENT InstallIntent = iota // Required install intent. REQUIRED_INSTALLINTENT // Uninstall install intent. UNINSTALL_INSTALLINTENT // Available without enrollment install intent. AVAILABLEWITHOUTENROLLMENT_INSTALLINTENT ) func (i InstallIntent) String() string { return []string{"available", "required", "uninstall", "availableWithoutEnrollment"}[i] } func ParseInstallIntent(v string) (any, error) { result := AVAILABLE_INSTALLINTENT switch v { case "available": result = AVAILABLE_INSTALLINTENT case "required": result = REQUIRED_INSTALLINTENT case "uninstall": result = UNINSTALL_INSTALLINTENT case "availableWithoutEnrollment": result = AVAILABLEWITHOUTENROLLMENT_INSTALLINTENT default: return nil, nil } return &result, nil } func SerializeInstallIntent(values []InstallIntent) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i InstallIntent) isMultiValue() bool { return false }