/
githubmirror
/
origin
Обзор
Документация
Войти
/
githubmirror
/
origin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
vendor/github.com/microsoftgraph/msgraph-sdk-go/models/mutability.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 Mutability int const ( READWRITE_MUTABILITY Mutability = iota READONLY_MUTABILITY IMMUTABLE_MUTABILITY WRITEONLY_MUTABILITY ) func (i Mutability) String() string { return []string{"ReadWrite", "ReadOnly", "Immutable", "WriteOnly"}[i] } func ParseMutability(v string) (any, error) { result := READWRITE_MUTABILITY switch v { case "ReadWrite": result = READWRITE_MUTABILITY case "ReadOnly": result = READONLY_MUTABILITY case "Immutable": result = IMMUTABLE_MUTABILITY case "WriteOnly": result = WRITEONLY_MUTABILITY default: return nil, nil } return &result, nil } func SerializeMutability(values []Mutability) []string { result := make([]string, len(values)) for i, v := range values { result[i] = v.String() } return result } func (i Mutability) isMultiValue() bool { return false }