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