Skip to content

Commit 465bad2

Browse files
author
Marcin Parafiniuk
committed
stub converter, generator refactor
1 parent 011e87f commit 465bad2

14 files changed

+745
-361
lines changed

docs/data-sources/network_group_policies.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,16 @@ data "meraki_network_group_policies" "example" {
3333

3434
### Read-Only
3535

36+
- `bandwidth_bandwidth_limits_limit_down` (Number)
37+
- `bandwidth_bandwidth_limits_limit_up` (Number)
38+
- `bandwidth_settings` (String)
3639
- `bonjour_forwarding_rules` (Attributes List) (see [below for nested schema](#nestedatt--bonjour_forwarding_rules))
3740
- `bonjour_forwarding_settings` (String)
41+
- `content_filtering_allowed_url_patterns_settings` (String)
42+
- `content_filtering_blocked_url_categories_categories` (List of String)
43+
- `content_filtering_blocked_url_categories_settings` (String)
44+
- `content_filtering_blocked_url_patterns_patterns` (List of String)
45+
- `content_filtering_blocked_url_patterns_settings` (String)
3846

3947
<a id="nestedatt--bonjour_forwarding_rules"></a>
4048
### Nested Schema for `bonjour_forwarding_rules`

docs/resources/network_group_policies.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ resource "meraki_network_group_policies" "example" {
2424
vlan_id = "2"
2525
}
2626
]
27+
bandwidth_bandwidth_limits_limit_down = 1000000
28+
bandwidth_bandwidth_limits_limit_up = 1000000
29+
bandwidth_settings = "custom"
30+
content_filtering_allowed_url_patterns_settings = "network default"
31+
content_filtering_blocked_url_categories_categories = ["meraki:contentFiltering/category/1"]
32+
content_filtering_blocked_url_categories_settings = "override"
33+
content_filtering_blocked_url_patterns_patterns = ["http://www.betting.com"]
34+
content_filtering_blocked_url_patterns_settings = "append"
2735
}
2836
```
2937

@@ -37,8 +45,16 @@ resource "meraki_network_group_policies" "example" {
3745

3846
### Optional
3947

48+
- `bandwidth_bandwidth_limits_limit_down` (Number)
49+
- `bandwidth_bandwidth_limits_limit_up` (Number)
50+
- `bandwidth_settings` (String)
4051
- `bonjour_forwarding_rules` (Attributes List) (see [below for nested schema](#nestedatt--bonjour_forwarding_rules))
4152
- `bonjour_forwarding_settings` (String)
53+
- `content_filtering_allowed_url_patterns_settings` (String)
54+
- `content_filtering_blocked_url_categories_categories` (List of String)
55+
- `content_filtering_blocked_url_categories_settings` (String)
56+
- `content_filtering_blocked_url_patterns_patterns` (List of String)
57+
- `content_filtering_blocked_url_patterns_settings` (String)
4258

4359
### Read-Only
4460

examples/resources/meraki_network_group_policies/resource.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ resource "meraki_network_group_policies" "example" {
99
vlan_id = "2"
1010
}
1111
]
12+
bandwidth_bandwidth_limits_limit_down = 1000000
13+
bandwidth_bandwidth_limits_limit_up = 1000000
14+
bandwidth_settings = "custom"
15+
content_filtering_allowed_url_patterns_settings = "network default"
16+
content_filtering_blocked_url_categories_categories = ["meraki:contentFiltering/category/1"]
17+
content_filtering_blocked_url_categories_settings = "override"
18+
content_filtering_blocked_url_patterns_patterns = ["http://www.betting.com"]
19+
content_filtering_blocked_url_patterns_settings = "append"
1220
}

gen/definitions/networks_group_policies.yaml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,45 @@ attributes:
3434
- model_name: vlanId
3535
type: String
3636
example: "2"
37-
38-
39-
40-
37+
- model_name: limitDown
38+
data_path: [bandwidth, bandwidthLimits]
39+
type: Int64
40+
example: 1000000
41+
- model_name: limitUp
42+
data_path: [bandwidth, bandwidthLimits]
43+
type: Int64
44+
example: 1000000
45+
- model_name: settings
46+
data_path: [bandwidth]
47+
type: String
48+
example: custom
49+
- model_name: settings
50+
data_path: [contentFiltering, allowedUrlPatterns]
51+
exclude_test: true
52+
type: String
53+
example: network default
54+
- model_name: categories
55+
data_path: [contentFiltering, blockedUrlCategories]
56+
exclude_test: true
57+
type: List
58+
element_type: String
59+
example: meraki:contentFiltering/category/1
60+
- model_name: settings
61+
data_path: [contentFiltering, blockedUrlCategories]
62+
exclude_test: true
63+
example: override
64+
type: String
65+
- model_name: patterns
66+
type: List
67+
data_path: [contentFiltering, blockedUrlPatterns]
68+
exclude_test: true
69+
element_type: String
70+
example: http://www.betting.com
71+
- model_name: settings
72+
data_path: [contentFiltering, blockedUrlPatterns]
73+
exclude_test: true
74+
example: append
75+
type: String
4176

4277
test_prerequisites: |
4378
data "meraki_organization" "test" {

0 commit comments

Comments
 (0)