From d68b2fc4228a6c2af9cf307169d0316a57c8d043 Mon Sep 17 00:00:00 2001 From: Deepanjan Bhattacharyya Date: Tue, 20 Jun 2023 14:52:14 -0700 Subject: [PATCH] Add docs to valid security policy types --- src/main/java/gyro/google/compute/SecurityPolicyResource.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/gyro/google/compute/SecurityPolicyResource.java b/src/main/java/gyro/google/compute/SecurityPolicyResource.java index 0651500f..57af6f2a 100644 --- a/src/main/java/gyro/google/compute/SecurityPolicyResource.java +++ b/src/main/java/gyro/google/compute/SecurityPolicyResource.java @@ -37,6 +37,7 @@ import gyro.core.scope.State; import gyro.core.validation.Regex; import gyro.core.validation.Required; +import gyro.core.validation.ValidStrings; import gyro.core.validation.ValidationError; import gyro.google.Copyable; @@ -341,6 +342,7 @@ public void setDefaultRule(SecurityPolicyRule defaultRule) { /** * The type of the security policy. */ + @ValidStrings({"CLOUD_ARMOR", "CLOUD_ARMOR_EDGE", "CLOUD_ARMOR_INTERNAL_SERVICE", "CLOUD_ARMOR_NETWORK"}) @Required public String getSecurityPolicyType() { return securityPolicyType;