/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/authentication_protocol.go
39 строк
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 AuthenticationProtocol int const ( WSFED_AUTHENTICATIONPROTOCOL AuthenticationProtocol = iota SAML_AUTHENTICATIONPROTOCOL UNKNOWNFUTUREVALUE_AUTHENTICATIONPROTOCOL ) func (i AuthenticationProtocol) String() string { return []string{"wsFed", "saml", "unknownFutureValue"}[i] } func ParseAuthenticationProtocol(v string) (any, error) { result := WSFED_AUTHENTICATIONPROTOCOL switch v { case "wsFed": result = WSFED_AUTHENTICATIONPROTOCOL case "saml": result = SAML_AUTHENTICATIONPROTOCOL case "unknownFutureValue": result = UNKNOWNFUTUREVALUE_AUTHENTICATIONPROTOCOL default: return nil, nil } return &result, nil } func SerializeAuthenticationProtocol(values []AuthenticationProtocol) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i AuthenticationProtocol) isMultiValue() bool { return false }