Skip to content

Commit 5a010e2

Browse files
author
hhermanwang
committed
Add blank lines to complex structures
1 parent 47ce459 commit 5a010e2

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

examples/tencentcloud-cdn/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ resource "tencentcloud_cdn_domain" "foo" {
33
service_type = "web"
44
area = "mainland"
55
range_origin_switch = "off"
6+
67
rule_cache{
78
cache_time = 10000
89
no_cache_switch="on"
910
re_validate="on"
1011
}
12+
1113
request_header{
1214
switch = "on"
15+
1316
header_rules {
1417
header_mode = "add"
1518
header_name = "tf-header-name"

tencentcloud/data_source_tc_cdn_domains_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,16 @@ resource "tencentcloud_cdn_domain" "foo" {
5858
area = "mainland"
5959
full_url_cache = false
6060
range_origin_switch = "off"
61+
6162
rule_cache{
6263
cache_time = 10000
6364
no_cache_switch="on"
6465
re_validate="on"
6566
}
67+
6668
request_header{
6769
switch = "on"
70+
6871
header_rules {
6972
header_mode = "add"
7073
header_name = "tf-header-name"
@@ -73,6 +76,7 @@ resource "tencentcloud_cdn_domain" "foo" {
7376
rule_paths = ["*"]
7477
}
7578
}
79+
7680
origin {
7781
origin_type = "ip"
7882
origin_list = ["172.199.199.140"]

tencentcloud/resource_tc_cdn_domain.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,16 @@ resource "tencentcloud_cdn_domain" "foo" {
4545
area = "mainland"
4646
full_url_cache = false
4747
range_origin_switch = "off"
48+
4849
rule_cache{
4950
cache_time = 10000
5051
no_cache_switch="on"
5152
re_validate="on"
5253
}
54+
5355
request_header{
5456
switch = "on"
57+
5558
header_rules {
5659
header_mode = "add"
5760
header_name = "tf-header-name"
@@ -277,7 +280,7 @@ func resourceTencentCloudCdnDomain() *schema.Resource {
277280
Optional: true,
278281
Default: CDN_SWITCH_OFF,
279282
ValidateFunc: validateAllowedStringValue(CDN_SWITCH),
280-
Description: "Spdy configuration switch. Valid values are `on` and `off`. and default value is `off`. The current version does not support `on`.",
283+
Description: "Spdy configuration switch. Valid values are `on` and `off`. and default value is `off`. This parameter is for white-list customer.",
281284
},
282285
"verify_client": {
283286
Type: schema.TypeString,

tencentcloud/resource_tc_cdn_domain_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,10 @@ resource "tencentcloud_cdn_domain" "foo" {
220220
no_cache_switch="on"
221221
re_validate="on"
222222
}
223+
223224
request_header{
224225
switch = "on"
226+
225227
header_rules {
226228
header_mode = "add"
227229
header_name = "tf-header-name"
@@ -230,6 +232,7 @@ resource "tencentcloud_cdn_domain" "foo" {
230232
rule_paths = ["*"]
231233
}
232234
}
235+
233236
origin {
234237
origin_type = "ip"
235238
origin_list = ["139.199.199.140"]
@@ -322,6 +325,7 @@ resource "tencentcloud_cdn_domain" "foo" {
322325
area = "mainland"
323326
full_url_cache = false
324327
range_origin_switch = "on"
328+
325329
rule_cache {
326330
cache_time = 20000
327331
rule_paths=["*"]
@@ -334,9 +338,11 @@ resource "tencentcloud_cdn_domain" "foo" {
334338
re_validate="off"
335339
follow_origin_switch="off"
336340
}
341+
337342
request_header{
338343
switch = "off"
339344
}
345+
340346
origin {
341347
origin_type = "ip"
342348
origin_list = ["139.199.199.140"]

website/docs/r/cdn_domain.html.markdown

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,16 @@ resource "tencentcloud_cdn_domain" "foo" {
5555
area = "mainland"
5656
full_url_cache = false
5757
range_origin_switch = "off"
58+
5859
rule_cache {
5960
cache_time = 10000
6061
no_cache_switch = "on"
6162
re_validate = "on"
6263
}
64+
6365
request_header {
6466
switch = "on"
67+
6568
header_rules {
6669
header_mode = "add"
6770
header_name = "tf-header-name"
@@ -173,7 +176,7 @@ The `https_config` object supports the following:
173176
* `http2_switch` - (Optional) HTTP2 configuration switch. Valid values are `on` and `off`. and default value is `off`.
174177
* `ocsp_stapling_switch` - (Optional) OCSP configuration switch. Valid values are `on` and `off`. and default value is `off`.
175178
* `server_certificate_config` - (Optional) Server certificate configuration information.
176-
* `spdy_switch` - (Optional) Spdy configuration switch. Valid values are `on` and `off`. and default value is `off`. The current version does not support `on`.
179+
* `spdy_switch` - (Optional) Spdy configuration switch. Valid values are `on` and `off`. and default value is `off`. This parameter is for white-list customer.
177180
* `verify_client` - (Optional) Client certificate authentication feature. Valid values are `on` and `off`. and default value is `off`.
178181

179182
The `origin` object supports the following:

0 commit comments

Comments
 (0)