Skip to content

Commit

Permalink
Regenerate files
Browse files Browse the repository at this point in the history
  • Loading branch information
seconroy committed Sep 7, 2024
1 parent c979983 commit 7f4deae
Show file tree
Hide file tree
Showing 16 changed files with 75 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_application_priority_traffic_policy_policy Data Source - terraform-provider-sdwan"
subcategory: "Policy"
subcategory: "Policies"
description: |-
This data source can read the Application Priority Traffic Policy Policy.
---
Expand All @@ -10,7 +10,14 @@ description: |-

This data source can read the Application Priority Traffic Policy Policy.

## Example Usage

```terraform
data "sdwan_application_priority_traffic_policy_policy" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down
44 changes: 42 additions & 2 deletions docs/resources/application_priority_traffic_policy_policy.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_application_priority_traffic_policy_policy Resource - terraform-provider-sdwan"
subcategory: "Policy"
subcategory: "Policies"
description: |-
This resource can manage a Application Priority Traffic Policy Policy.
Minimum SD-WAN Manager version: 20.12.0
Expand All @@ -12,7 +12,39 @@ description: |-
This resource can manage a Application Priority Traffic Policy Policy.
- Minimum SD-WAN Manager version: `20.12.0`


## Example Usage

```terraform
resource "sdwan_application_priority_traffic_policy_policy" "example" {
name = "Example"
description = "My Example"
feature_profile_id = "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
default_action = "accept"
vpn = ["edge_basic_vpn1"]
direction = "all"
sequences = [
{
sequence_id = 1
sequence_name = "traffic"
base_action = "accept"
protocol = "ipv4"
matches = [
{
dscp = 1
}
]
actions = [
{
sets = [
{
}
]
}
]
}
]
}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -165,3 +197,11 @@ Optional:
- Choices: `gold-voip-telephony`, `gold-broadcast-video`, `gold-real-time-interactive`, `gold-multimedia-conferencing`, `gold-multimedia-streaming`, `gold-network-control`, `gold-signaling`, `gold-ops-admin-mgmt`, `gold-transactional-data`, `gold-bulk-data`, `silver`, `bronze`
- `traffic_to` (String) Traffic to
- Choices: `core`, `service`, `access`

## Import

Import is supported using the following syntax:

```shell
terraform import sdwan_application_priority_traffic_policy_policy.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
```
2 changes: 1 addition & 1 deletion docs/resources/traffic_data_policy_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This resource can manage a Traffic Data Policy Definition .
resource "sdwan_traffic_data_policy_definition" "example" {
name = "Example"
description = "My description"
default_action = "accept"
default_action = "drop"
sequences = [
{
id = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "sdwan_traffic_data_policy_definition" "example" {
name = "Example"
description = "My description"
default_action = "accept"
default_action = "drop"
sequences = [
{
id = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ attributes:
type: String
enum_values: [accept, drop]
description: Default action, either `accept` or `drop`
example: accept
example: drop
- model_name: sequences
tf_name: sequences
type: List
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,17 +477,20 @@ attributes:
# example: zScaler

test_prerequisites: |
variable "policy_object_feature_template_id" {}
resource "sdwan_policy_object_feature_profile" "test" {
name = "TF_TEST_POLICY_OBJECT"
description = "My policy object feature profile 1"
}
resource "sdwan_application_priority_feature_profile" "test" {
name = "TF_TEST"
description = "Terraform test"
}
resource "sdwan_policy_object_policer_profile_parcel" "test" {
resource "sdwan_policy_object_policer" "test" {
name = "TF_TEST_POLICER"
description = "My Example"
feature_profile_id = var.policy_object_feature_template_id
feature_profile_id = sdwan_policy_object_feature_profile.test.id
entries = [
{
burst_bytes = 56500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,20 @@ func TestAccDataSourceSdwanApplicationPriorityTrafficPolicyProfileParcel(t *test

// Section below is generated&owned by "gen/generator.go". //template:begin testPrerequisites
const testAccDataSourceSdwanApplicationPriorityTrafficPolicyPrerequisitesProfileParcelConfig = `
variable "policy_object_feature_template_id" {}
resource "sdwan_policy_object_feature_profile" "test" {
name = "TF_TEST_POLICY_OBJECT"
description = "My policy object feature profile 1"
}
resource "sdwan_application_priority_feature_profile" "test" {
name = "TF_TEST"
description = "Terraform test"
}
resource "sdwan_policy_object_policer_profile_parcel" "test" {
resource "sdwan_policy_object_policer" "test" {
name = "TF_TEST_POLICER"
description = "My Example"
feature_profile_id = var.policy_object_feature_template_id
feature_profile_id = sdwan_policy_object_feature_profile.test.id
entries = [
{
burst_bytes = 56500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestAccDataSourceSdwanTrafficDataPolicyDefinition(t *testing.T) {
var checks []resource.TestCheckFunc
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_traffic_data_policy_definition.test", "name", "Example"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_traffic_data_policy_definition.test", "description", "My description"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_traffic_data_policy_definition.test", "default_action", "accept"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_traffic_data_policy_definition.test", "default_action", "drop"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_traffic_data_policy_definition.test", "sequences.0.id", "1"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_traffic_data_policy_definition.test", "sequences.0.name", "Seq1"))
checks = append(checks, resource.TestCheckResourceAttr("data.sdwan_traffic_data_policy_definition.test", "sequences.0.type", "applicationFirewall"))
Expand Down Expand Up @@ -75,7 +75,7 @@ func testAccDataSourceSdwanTrafficDataPolicyDefinitionConfig() string {
config += `resource "sdwan_traffic_data_policy_definition" "test" {` + "\n"
config += ` name = "Example"` + "\n"
config += ` description = "My description"` + "\n"
config += ` default_action = "accept"` + "\n"
config += ` default_action = "drop"` + "\n"
config += ` sequences = [{` + "\n"
config += ` id = 1` + "\n"
config += ` name = "Seq1"` + "\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,20 @@ func TestAccSdwanApplicationPriorityTrafficPolicyProfileParcel(t *testing.T) {

// Section below is generated&owned by "gen/generator.go". //template:begin testPrerequisites
const testAccSdwanApplicationPriorityTrafficPolicyPrerequisitesProfileParcelConfig = `
variable "policy_object_feature_template_id" {}
resource "sdwan_policy_object_feature_profile" "test" {
name = "TF_TEST_POLICY_OBJECT"
description = "My policy object feature profile 1"
}
resource "sdwan_application_priority_feature_profile" "test" {
name = "TF_TEST"
description = "Terraform test"
}
resource "sdwan_policy_object_policer_profile_parcel" "test" {
resource "sdwan_policy_object_policer" "test" {
name = "TF_TEST_POLICER"
description = "My Example"
feature_profile_id = var.policy_object_feature_template_id
feature_profile_id = sdwan_policy_object_feature_profile.test.id
entries = [
{
burst_bytes = 56500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestAccSdwanTrafficDataPolicyDefinition(t *testing.T) {
var checks []resource.TestCheckFunc
checks = append(checks, resource.TestCheckResourceAttr("sdwan_traffic_data_policy_definition.test", "name", "Example"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_traffic_data_policy_definition.test", "description", "My description"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_traffic_data_policy_definition.test", "default_action", "accept"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_traffic_data_policy_definition.test", "default_action", "drop"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_traffic_data_policy_definition.test", "sequences.0.id", "1"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_traffic_data_policy_definition.test", "sequences.0.name", "Seq1"))
checks = append(checks, resource.TestCheckResourceAttr("sdwan_traffic_data_policy_definition.test", "sequences.0.type", "applicationFirewall"))
Expand Down Expand Up @@ -74,7 +74,7 @@ func testAccSdwanTrafficDataPolicyDefinitionConfig_all() string {
config := `resource "sdwan_traffic_data_policy_definition" "test" {` + "\n"
config += ` name = "Example"` + "\n"
config += ` description = "My description"` + "\n"
config += ` default_action = "accept"` + "\n"
config += ` default_action = "drop"` + "\n"
config += ` sequences = [{` + "\n"
config += ` id = 1` + "\n"
config += ` name = "Seq1"` + "\n"
Expand Down

0 comments on commit 7f4deae

Please sign in to comment.