Skip to content

Commit

Permalink
Add log_level, plural event_notification_configs to IoT registry
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
emilymye authored and modular-magician committed Aug 19, 2019
1 parent 9f3e2cf commit 1a30902
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions google/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,6 @@ func validateIpCidrRange(v interface{}, k string) (warnings []string, errors []e
return
}

func validateCloudIoTID(v interface{}, k string) (warnings []string, errors []error) {
value := v.(string)
if strings.HasPrefix(value, "goog") {
errors = append(errors, fmt.Errorf(
"%q (%q) can not start with \"goog\"", k, value))
}
if !regexp.MustCompile(CloudIoTIdRegex).MatchString(value) {
errors = append(errors, fmt.Errorf(
"%q (%q) doesn't match regexp %q", k, value, CloudIoTIdRegex))
}
return
}

func validateIAMCustomRoleID(v interface{}, k string) (warnings []string, errors []error) {
value := v.(string)
if !regexp.MustCompile(IAMCustomRoleIDRegex).MatchString(value) {
Expand Down

0 comments on commit 1a30902

Please sign in to comment.