Skip to content

Commit ff2a3d0

Browse files
committed
NSOF-8280 provider: remove deprecated ufr catalog_app_risk field
1 parent f8eefb1 commit ff2a3d0

File tree

6 files changed

+2
-18
lines changed

6 files changed

+2
-18
lines changed

docs/data-sources/url_filtering_rule.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ This action determines what must be done according to this URL filtering rule if
3737
- `apply_to_org` (Boolean) indicates whether this URL filtering rule applies to the org.
3838
- `catalog_app_categories` (List of String) ENUM: `Instant Messaging`, `eCommerce`, `Content Management`, `Software Development`, `Project Management`, `Marketing`, `CRM`, `Telecommunications`, `Social and Communication`, `Productivity`, `Collaboration`, `Business and Finance`, `Utilities`, `IT Service Management`, `Social Networking`, `Office Document and Productivity`, `Cloud File Sharing`, `Web Meetings`, `Identity and Access Management`, `IT Services and Hosting`, `Webmail`, `Website Builder`, `Human Capital Management`, `Sales and CRM`, `E-commerce and Accounting`, `Streaming Media`, `Cloud Storage`, `Operations Management`, `Online Meeting`, `Supply Chain`, `Security and Compliance`, `Entertainment and Lifestyle`, `System and Network`, `Retail and Consumer Services`, `Health and Benefits`, `Data and Analytics`, `Education and References`, `Personal instant messaging`, `Legal`, `Other`, `Hosting Services`, `News and Media`, `Sales`, `Enterprise Resource Planning`, `Advertising`, `Travel and Transportation`, `Property Management`, `Government Services`, `Games`, `Code Hosting`.
3939
List of catalog app categories that the URL filtering rule must restrict.
40-
- `catalog_app_risk` (Number) Risk threshold to be used to restrict all catalog apps which has that risk or higher.
4140
- `cloud_apps` (List of String) List of [cloud app](https://registry.terraform.io/providers/nsofnetworks/pfptmeta/latest/docs/resources/cloud_app) IDs which the URL filtering rule should restrict.
4241
- `countries` (List of String) A list of countries in which this rule should be applied. Each country should be represented by a Alpha-2 code (ISO-3166). Enum: `AD`,`AE`,`AF`,`AG`,`AI`,`AL`,`AM`,`AO`,`AQ`,`AR`,`AS`,`AT`,`AU`,`AW`,`AX`,`AZ`,`BA`,`BB`,`BD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TL`,`TM`,`TN`,`TO`,`TR`,`TT`,`TV`,`TW`,`TZ`,`UA`,`UG`,`UM`,`US`,`UY`,`UZ`,`VA`,`VC`,`VE`,`VG`,`VI`,`VN`,`VU`,`WF`,`WS`,`YE`,`YT`,`ZA`,`ZM`,`ZW`
4342
- `description` (String)

docs/resources/url_filtering_rule.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ This action determines what must be done according to this URL filtering rule if
229229
- `apply_to_org` (Boolean) indicates whether this URL filtering rule applies to the org.
230230
- `catalog_app_categories` (List of String) ENUM: `Instant Messaging`, `eCommerce`, `Content Management`, `Software Development`, `Project Management`, `Marketing`, `CRM`, `Telecommunications`, `Social and Communication`, `Productivity`, `Collaboration`, `Business and Finance`, `Utilities`, `IT Service Management`, `Social Networking`, `Office Document and Productivity`, `Cloud File Sharing`, `Web Meetings`, `Identity and Access Management`, `IT Services and Hosting`, `Webmail`, `Website Builder`, `Human Capital Management`, `Sales and CRM`, `E-commerce and Accounting`, `Streaming Media`, `Cloud Storage`, `Operations Management`, `Online Meeting`, `Supply Chain`, `Security and Compliance`, `Entertainment and Lifestyle`, `System and Network`, `Retail and Consumer Services`, `Health and Benefits`, `Data and Analytics`, `Education and References`, `Personal instant messaging`, `Legal`, `Other`, `Hosting Services`, `News and Media`, `Sales`, `Enterprise Resource Planning`, `Advertising`, `Travel and Transportation`, `Property Management`, `Government Services`, `Games`, `Code Hosting`.
231231
List of catalog app categories that the URL filtering rule must restrict.
232-
- `catalog_app_risk` (Number) Risk threshold to be used to restrict all catalog apps which has that risk or higher.
233232
- `cloud_apps` (List of String) List of [cloud app](https://registry.terraform.io/providers/nsofnetworks/pfptmeta/latest/docs/resources/cloud_app) IDs which the URL filtering rule should restrict.
234233
- `countries` (List of String) A list of countries in which this rule should be applied. Each country should be represented by a Alpha-2 code (ISO-3166). Enum: `AD`,`AE`,`AF`,`AG`,`AI`,`AL`,`AM`,`AO`,`AQ`,`AR`,`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`SZ`,`TC`,`TD`,`TF`,`TG`,`TH`,`TJ`,`TK`,`TL`,`TM`,`TN`,`TO`,`TR`,`TT`,`TV`,`TW`,`TZ`,`UA`,`UG`,`UM`,`US`,`UY`,`UZ`,`VA`,`VC`,`VE`,`VG`,`VI`,`VN`,`VU`,`WF`,`WS`,`YE`,`YT`,`ZA`,`ZM`,`ZW`
235234
- `description` (String)

internal/client/url_filtering_rule.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ type UrlFilteringRule struct {
2121
ExemptSources []string `json:"exempt_sources,omitempty"`
2222
AdvancedThreatProtection bool `json:"advanced_threat_protection"`
2323
CatalogAppCategories []string `json:"catalog_app_categories"`
24-
CatalogAppRisk int `json:"catalog_app_risk,omitempty"`
2524
CloudApps []string `json:"cloud_apps"`
2625
Countries []string `json:"countries,omitempty"`
2726
ExpiresAt string `json:"expires_at,omitempty"`
@@ -48,7 +47,6 @@ func NewUrlFilteringRule(d *schema.ResourceData) *UrlFilteringRule {
4847
res.ExemptSources = ConfigToStringSlice("exempt_sources", d)
4948
res.AdvancedThreatProtection = d.Get("advanced_threat_protection").(bool)
5049
res.CatalogAppCategories = ConfigToStringSlice("catalog_app_categories", d)
51-
res.CatalogAppRisk = d.Get("catalog_app_risk").(int)
5250
res.CloudApps = ConfigToStringSlice("cloud_apps", d)
5351
res.Countries = ConfigToStringSlice("countries", d)
5452
res.ExpiresAt = d.Get("expires_at").(string)

internal/provider/url_filtering_rule/common.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ With these measures, you can enforce company security policies and filter malici
3131
"`News and Media`, `Sales`, `Enterprise Resource Planning`, `Advertising`, `Travel and Transportation`, " +
3232
"`Property Management`, `Government Services`, `Games`, `Code Hosting`.\n" +
3333
"List of catalog app categories that the URL filtering rule must restrict."
34-
catalogAppRiskDesc = "Risk threshold to be used to restrict all catalog apps which has that risk or higher."
35-
cloudAppsDesc = "List of [cloud app](https://registry.terraform.io/providers/nsofnetworks/pfptmeta/latest/docs/resources/cloud_app) IDs which the URL filtering rule should restrict. "
36-
countriesDesc = "A list of countries in which this rule should be applied. Each country should be represented by a Alpha-2 code (ISO-3166). " +
34+
cloudAppsDesc = "List of [cloud app](https://registry.terraform.io/providers/nsofnetworks/pfptmeta/latest/docs/resources/cloud_app) IDs which the URL filtering rule should restrict. "
35+
countriesDesc = "A list of countries in which this rule should be applied. Each country should be represented by a Alpha-2 code (ISO-3166). " +
3736
"Enum: " + common.CountriesDoc
3837
expiresAtDesc = "Defines the rule expiration time. " +
3938
"This can be useful when creating exceptions for users who need them for a limited period of time as an alternative for full disconnection from the proxy. " +

internal/provider/url_filtering_rule/data_source.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ func DataSource() *schema.Resource {
6161
Elem: &schema.Schema{Type: schema.TypeString},
6262
Computed: true,
6363
},
64-
"catalog_app_risk": {
65-
Description: catalogAppRiskDesc,
66-
Type: schema.TypeInt,
67-
Computed: true,
68-
},
6964
"cloud_apps": {
7065
Description: cloudAppsDesc,
7166
Type: schema.TypeList,

internal/provider/url_filtering_rule/resource.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,6 @@ func Resource() *schema.Resource {
9797
},
9898
Optional: true,
9999
},
100-
"catalog_app_risk": {
101-
Description: catalogAppRiskDesc,
102-
Type: schema.TypeInt,
103-
ValidateDiagFunc: common.ValidateIntRange(1, 8),
104-
Optional: true,
105-
},
106100
"cloud_apps": {
107101
Description: cloudAppsDesc,
108102
Type: schema.TypeList,

0 commit comments

Comments
 (0)