/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/alert_feedback.go
45 строк
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 AlertFeedback int const ( UNKNOWN_ALERTFEEDBACK AlertFeedback = iota TRUEPOSITIVE_ALERTFEEDBACK FALSEPOSITIVE_ALERTFEEDBACK BENIGNPOSITIVE_ALERTFEEDBACK UNKNOWNFUTUREVALUE_ALERTFEEDBACK ) func (i AlertFeedback) String() string { return []string{"unknown", "truePositive", "falsePositive", "benignPositive", "unknownFutureValue"}[i] } func ParseAlertFeedback(v string) (any, error) { result := UNKNOWN_ALERTFEEDBACK switch v { case "unknown": result = UNKNOWN_ALERTFEEDBACK case "truePositive": result = TRUEPOSITIVE_ALERTFEEDBACK case "falsePositive": result = FALSEPOSITIVE_ALERTFEEDBACK case "benignPositive": result = BENIGNPOSITIVE_ALERTFEEDBACK case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_ALERTFEEDBACK default: return nil, nil } return &result, nil } func SerializeAlertFeedback(values []AlertFeedback) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i AlertFeedback) isMultiValue() bool { return false }