Skip to content

Commit ee92c35

Browse files
authored
fix(teo): [123610313] tencentcloud_teo_l7_acc_rule update action fields properties (#3322)
* add * add
1 parent 365c103 commit ee92c35

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.changelog/3322.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_teo_l7_acc_rule: update fields properties
3+
```

tencentcloud/services/teo/resource_tc_teo_l7_acc_rule_extension.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func TencentTeoL7RuleBranchBasicInfo(depth int) map[string]*schema.Schema {
193193
Description: "Whether to enable feature. values: on: enable; off: disable.",
194194
},
195195
"action": {
196-
Type: schema.TypeInt,
196+
Type: schema.TypeString,
197197
Optional: true,
198198
Description: "Cache action. values: full: retain all; ignore: ignore all; includeCustom: retain partial parameters; excludeCustom: ignore partial parameters. note: when switch is on, this field is required. when switch is off, this field is not required and will not take effect if filled.",
199199
},
@@ -748,7 +748,7 @@ func TencentTeoL7RuleBranchBasicInfo(depth int) map[string]*schema.Schema {
748748
Description: "Whether to enable origin-pull request parameter query string. values: on: enable; off: disable.",
749749
},
750750
"action": {
751-
Type: schema.TypeInt,
751+
Type: schema.TypeString,
752752
Optional: true,
753753
Description: "Query string mode. this parameter is required when switch is on. values: full: retain all; ignore: ignore all; includeCustom: retain partial parameters; excludeCustom: ignore partial parameters.",
754754
},
@@ -776,7 +776,7 @@ func TencentTeoL7RuleBranchBasicInfo(depth int) map[string]*schema.Schema {
776776
Description: "Whether to enable the origin-pull request parameter cookie. valid values: on: enable; off: disable.",
777777
},
778778
"action": {
779-
Type: schema.TypeInt,
779+
Type: schema.TypeString,
780780
Optional: true,
781781
Description: "Origin-Pull request parameter cookie mode. this parameter is required when switch is on. valid values are: full: retain all; ignore: ignore all; includeCustom: retain partial parameters; excludeCustom: ignore partial parameters.",
782782
},

website/docs/r/teo_l7_acc_rule.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,13 @@ The `compression_parameters` object of `actions` supports the following:
476476

477477
The `cookie` object of `cache_key_parameters` supports the following:
478478

479-
* `action` - (Optional, Int) Cache action. values: full: retain all; ignore: ignore all; includeCustom: retain partial parameters; excludeCustom: ignore partial parameters. note: when switch is on, this field is required. when switch is off, this field is not required and will not take effect if filled.
479+
* `action` - (Optional, String) Cache action. values: full: retain all; ignore: ignore all; includeCustom: retain partial parameters; excludeCustom: ignore partial parameters. note: when switch is on, this field is required. when switch is off, this field is not required and will not take effect if filled.
480480
* `switch` - (Optional, String) Whether to enable feature. values: on: enable; off: disable.
481481
* `values` - (Optional, List) Custom cache key cookie name list.
482482

483483
The `cookie` object of `upstream_request_parameters` supports the following:
484484

485-
* `action` - (Optional, Int) Origin-Pull request parameter cookie mode. this parameter is required when switch is on. valid values are: full: retain all; ignore: ignore all; includeCustom: retain partial parameters; excludeCustom: ignore partial parameters.
485+
* `action` - (Optional, String) Origin-Pull request parameter cookie mode. this parameter is required when switch is on. valid values are: full: retain all; ignore: ignore all; includeCustom: retain partial parameters; excludeCustom: ignore partial parameters.
486486
* `switch` - (Optional, String) Whether to enable the origin-pull request parameter cookie. valid values: on: enable; off: disable.
487487
* `values` - (Optional, List) Specifies parameter values. this parameter takes effect only when the query string mode action is includecustom or excludecustom, and is used to specify the parameters to be reserved or ignored. up to 10 parameters are supported.
488488

@@ -619,7 +619,7 @@ The `query_string` object of `cache_key_parameters` supports the following:
619619

620620
The `query_string` object of `upstream_request_parameters` supports the following:
621621

622-
* `action` - (Optional, Int) Query string mode. this parameter is required when switch is on. values: full: retain all; ignore: ignore all; includeCustom: retain partial parameters; excludeCustom: ignore partial parameters.
622+
* `action` - (Optional, String) Query string mode. this parameter is required when switch is on. values: full: retain all; ignore: ignore all; includeCustom: retain partial parameters; excludeCustom: ignore partial parameters.
623623
* `switch` - (Optional, String) Whether to enable origin-pull request parameter query string. values: on: enable; off: disable.
624624
* `values` - (Optional, List) Specifies parameter values. this parameter takes effect only when the query string mode action is includecustom or excludecustom, and is used to specify the parameters to be reserved or ignored. up to 10 parameters are supported.
625625

0 commit comments

Comments
 (0)