Skip to content

Commit

Permalink
Fix validators
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Mar 3, 2023
1 parent 92548dc commit a4ec6d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion zia/resource_zia_dlp_web_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ func resourceDlpWebRules() *schema.Resource {
},
"order": {
Type: schema.TypeInt,
Required: true,
Optional: true,
Computed: true,
Description: "The rule order of execution for the DLP policy rule with respect to other rules.",
},
"cloud_applications": {
Expand Down
7 changes: 4 additions & 3 deletions zia/resource_zia_url_filtering_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ func resourceURLFilteringRules() *schema.Resource {
},
"order": {
Type: schema.TypeInt,
Required: true,
Optional: true,
Computed: true,
Description: "Order of execution of rule with respect to other URL Filtering rules",
},
"state": {
Expand All @@ -85,8 +86,8 @@ func resourceURLFilteringRules() *schema.Resource {
Type: schema.TypeInt,
Optional: true,
Default: 7,
ValidateFunc: validation.IntBetween(1, 7),
Description: "Admin rank of the admin who creates this rule",
ValidateFunc: validation.IntBetween(0, 7),
Description: "Admin rank of the Firewall Filtering policy rule",
},
"end_user_notification_url": {
Type: schema.TypeString,
Expand Down
2 changes: 1 addition & 1 deletion zia/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func validateDLPRuleFileTypes() schema.SchemaValidateFunc {
}

var supportedDLPRuleFileTypes = []string{
"CHEMDRAW_FILES", "BITMAP", "SCT", "ASM", "COBOL", "PDF_DOCUMENT", "RES_FILES",
"ANY", "CHEMDRAW_FILES", "BITMAP", "SCT", "ASM", "COBOL", "PDF_DOCUMENT", "RES_FILES",
"POSTSCRIPT", "OAB", "BASIC_SOURCE_CODE", "JAVASCRIPT", "QLIKVIEW_FILES", "BORLAND_CPP_FILES", "JAVA_FILES", "APPLE_DOCUMENTS", "MS_MSG", "DSP", "MSC", "RUBY_FILES", "GO_FILES", "DMD", "MS_MDB", "FORM_DATA_POST", "TDSX", "MATLAB_FILES", "PYTHON", "CML", "C_FILES", "SCALA", "X1B", "TLI", "TLH", "YAML_FILES", "MS_RTF", "POD", "DELPHI", "SCZIP", "SAS", "FOR", "JAVA_APPLET", "F_FILES", "VISUAL_BASIC_SCRIPT", "TBM", "MS_EXCEL", "MS_CPP_FILES", "POWERSHELL", "TXT", "CSX", "INCLUDE_FILES", "RSP", "APPX", "INF", "JPEG", "SQL", "MM", "PNG", "COMPILED_HTML_HELP", "WINDOWS_META_FORMAT", "MS_WORD", "NATVIS", "ACCDB", "CSV", "BCP", "MAKE_FILES", "CP", "IFC", "PERL_FILES", "WINDOWS_SCRIPT_FILES", "RPY", "SHELL_SCRAP", "VISUAL_CPP_FILES", "VISUAL_BASIC_FILES", "XAML", "MS_POWERPOINT", "BASH_SCRIPTS", "SC", "VSDX", "TDS", "TIFF",
}

Expand Down

0 comments on commit a4ec6d9

Please sign in to comment.