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