feat: all-access and operator token from CLI (#285)

* chore: include enum values in openapi generated code

* chore: add enum template to list of template overrides

* chore: update template and generated code

* feat: generate permissions list from openapi spec

* feat: all-access and operator token from CLI

Closes #22510

* fix: cloud fixed the resources endpoint

* fix: all access and operator permissions cannot be composed

* fix: review comments from dan-moran
This commit is contained in:
Sam Arnold
2021-10-05 14:33:02 -04:00
committed by GitHub
parent ade82cc4fe
commit 714a73d9eb
25 changed files with 1144 additions and 190 deletions

View File

@ -28,6 +28,10 @@ const (
LINEPROTOCOLERRORCODE_UNAVAILABLE LineProtocolErrorCode = "unavailable"
)
func LineProtocolErrorCodeValues() []LineProtocolErrorCode {
return []LineProtocolErrorCode{"internal error", "not found", "conflict", "invalid", "empty value", "unavailable"}
}
func (v *LineProtocolErrorCode) UnmarshalJSON(src []byte) error {
var value string
err := json.Unmarshal(src, &value)