add description to service accounts (#2611)

This commit is contained in:
Nathan Hayfield 2021-09-20 14:10:12 -04:00 committed by GitHub
parent 8e8178e03c
commit 1f718e4ce1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 17 deletions

View file

@ -15,7 +15,7 @@ import (
"time"
"unicode/utf8"
"google.golang.org/protobuf/types/known/anypb"
"github.com/golang/protobuf/ptypes"
)
// ensure the imports are used
@ -30,9 +30,12 @@ var (
_ = time.Duration(0)
_ = (*url.URL)(nil)
_ = (*mail.Address)(nil)
_ = anypb.Any{}
_ = ptypes.DynamicAny{}
)
// define the regex for a UUID once up-front
var _registry_uuidPattern = regexp.MustCompile("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$")
// Validate checks the field values on Service with the rules defined in the
// proto definition for this message. If any rules are violated, an error is returned.
func (m *Service) Validate() error {