/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/enablement.go
43 строки
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 of a property type Enablement int const ( // Device default value, no intent. NOTCONFIGURED_ENABLEMENT Enablement = iota // Enables the setting on the device. ENABLED_ENABLEMENT // Disables the setting on the device. DISABLED_ENABLEMENT ) func (i Enablement) String() string { return []string{"notConfigured", "enabled", "disabled"}[i] } func ParseEnablement(v string) (any, error) { result := NOTCONFIGURED_ENABLEMENT switch v { case "notConfigured": result = NOTCONFIGURED_ENABLEMENT case "enabled": result = ENABLED_ENABLEMENT case "disabled": result = DISABLED_ENABLEMENT default: return nil, nil } return &result, nil } func SerializeEnablement(values []Enablement) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i Enablement) isMultiValue() bool { return false }