/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/sensitivity.go
42 строки
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 type Sensitivity int const ( NORMAL_SENSITIVITY Sensitivity = iota PERSONAL_SENSITIVITY PRIVATE_SENSITIVITY CONFIDENTIAL_SENSITIVITY ) func (i Sensitivity) String() string { return []string{"normal", "personal", "private", "confidential"}[i] } func ParseSensitivity(v string) (any, error) { result := NORMAL_SENSITIVITY switch v { case "normal": result = NORMAL_SENSITIVITY case "personal": result = PERSONAL_SENSITIVITY case "private": result = PRIVATE_SENSITIVITY case "confidential": result = CONFIDENTIAL_SENSITIVITY default: return nil, nil } return &result, nil } func SerializeSensitivity(values []Sensitivity) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i Sensitivity) isMultiValue() bool { return false }