/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/visibility_setting.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 // Generic visibility state. type VisibilitySetting int const ( // Not configured. NOTCONFIGURED_VISIBILITYSETTING VisibilitySetting = iota // Hide. HIDE_VISIBILITYSETTING // Show. SHOW_VISIBILITYSETTING ) func (i VisibilitySetting) String() string { return []string{"notConfigured", "hide", "show"}[i] } func ParseVisibilitySetting(v string) (any, error) { result := NOTCONFIGURED_VISIBILITYSETTING switch v { case "notConfigured": result = NOTCONFIGURED_VISIBILITYSETTING case "hide": result = HIDE_VISIBILITYSETTING case "show": result = SHOW_VISIBILITYSETTING default: return nil, nil } return &result, nil } func SerializeVisibilitySetting(values []VisibilitySetting) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i VisibilitySetting) isMultiValue() bool { return false }