Skip to content

Commit

Permalink
Add docs to valid security policy types
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanjan90 committed Jun 20, 2023
1 parent 49dd36d commit d68b2fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/gyro/google/compute/SecurityPolicyResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d68b2fc

Please sign in to comment.