/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/connection_status.go
48 строк
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 ConnectionStatus int const ( UNKNOWN_CONNECTIONSTATUS ConnectionStatus = iota ATTEMPTED_CONNECTIONSTATUS SUCCEEDED_CONNECTIONSTATUS BLOCKED_CONNECTIONSTATUS FAILED_CONNECTIONSTATUS UNKNOWNFUTUREVALUE_CONNECTIONSTATUS ) func (i ConnectionStatus) String() string { return []string{"unknown", "attempted", "succeeded", "blocked", "failed", "unknownFutureValue"}[i] } func ParseConnectionStatus(v string) (any, error) { result := UNKNOWN_CONNECTIONSTATUS switch v { case "unknown": result = UNKNOWN_CONNECTIONSTATUS case "attempted": result = ATTEMPTED_CONNECTIONSTATUS case "succeeded": result = SUCCEEDED_CONNECTIONSTATUS case "blocked": result = BLOCKED_CONNECTIONSTATUS case "failed": result = FAILED_CONNECTIONSTATUS case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_CONNECTIONSTATUS default: return nil, nil } return &result, nil } func SerializeConnectionStatus(values []ConnectionStatus) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i ConnectionStatus) isMultiValue() bool { return false }