Skip to content

Commit f81c0b1

Browse files
authored
update doc (#1981)
* update doc * add changelog * update doc
1 parent 8026327 commit f81c0b1

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.changelog/1981.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_vpc_bandwidth_package: support set more `charge_type`
3+
```
4+
5+
```release-note:bug
6+
resource/tencentcloud_cynosdb_cluster: fix panic error while parameter not found in template
7+
```
8+

tencentcloud/resource_tc_cynosdb_cluster.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,9 @@ func resourceTencentCloudCynosdbClusterRead(d *schema.ResourceData, meta interfa
519519
oldValue := item["old_value"].(string)
520520
currentParamItem := make(map[string]string)
521521
currentParamItem["name"] = name
522-
currentParamItem["current_value"] = *currentParamMap[name].CurrentValue
522+
if currentParamMap[name] != nil {
523+
currentParamItem["current_value"] = *currentParamMap[name].CurrentValue
524+
}
523525
if oldValue != "" {
524526
currentParamItem["old_value"] = oldValue
525527
}

tencentcloud/resource_tc_vpc_bandwidth_package.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,12 @@ func resourceTencentCloudVpcBandwidthPackage() *schema.Resource {
5151
},
5252

5353
"charge_type": {
54-
Type: schema.TypeString,
55-
Optional: true,
56-
Description: "Bandwidth package billing type, default: TOP5_POSTPAID_BY_MONTH, optional value:- `TOP5_POSTPAID_BY_MONTH`: TOP5 billed by monthly postpaid- `PERCENT95_POSTPAID_BY_MONTH`: 95 billed monthly postpaid- `FIXED_PREPAID_BY_MONTH`: Monthly prepaid billing (Type FIXED_PREPAID_BY_MONTH product API capability is under construction).",
54+
Type: schema.TypeString,
55+
Optional: true,
56+
Description: "Bandwidth package billing type, default: TOP5_POSTPAID_BY_MONTH." +
57+
" Optional value: `TOP5_POSTPAID_BY_MONTH`: TOP5 billed by monthly postpaid; `PERCENT95_POSTPAID_BY_MONTH`: 95 billed monthly postpaid;" +
58+
" `FIXED_PREPAID_BY_MONTH`: Monthly prepaid billing (Type FIXED_PREPAID_BY_MONTH product API capability is under construction);" +
59+
" `BANDWIDTH_POSTPAID_BY_DAY`: bandwidth billed by daily postpaid; `ENHANCED95_POSTPAID_BY_MONTH`: enhanced 95 billed monthly postpaid.",
5760
},
5861

5962
"bandwidth_package_name": {

website/docs/r/vpc_bandwidth_package.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "tencentcloud_vpc_bandwidth_package" "bandwidth_package" {
2929
The following arguments are supported:
3030

3131
* `bandwidth_package_name` - (Optional, String) Bandwidth package name.
32-
* `charge_type` - (Optional, String) Bandwidth package billing type, default: TOP5_POSTPAID_BY_MONTH, optional value:- `TOP5_POSTPAID_BY_MONTH`: TOP5 billed by monthly postpaid- `PERCENT95_POSTPAID_BY_MONTH`: 95 billed monthly postpaid- `FIXED_PREPAID_BY_MONTH`: Monthly prepaid billing (Type FIXED_PREPAID_BY_MONTH product API capability is under construction).
32+
* `charge_type` - (Optional, String) Bandwidth package billing type, default: TOP5_POSTPAID_BY_MONTH. Optional value: `TOP5_POSTPAID_BY_MONTH`: TOP5 billed by monthly postpaid; `PERCENT95_POSTPAID_BY_MONTH`: 95 billed monthly postpaid; `FIXED_PREPAID_BY_MONTH`: Monthly prepaid billing (Type FIXED_PREPAID_BY_MONTH product API capability is under construction); `BANDWIDTH_POSTPAID_BY_DAY`: bandwidth billed by daily postpaid; `ENHANCED95_POSTPAID_BY_MONTH`: enhanced 95 billed monthly postpaid.
3333
* `internet_max_bandwidth` - (Optional, Int) Bandwidth packet speed limit size. Unit: Mbps, -1 means no speed limit.
3434
* `network_type` - (Optional, String) Bandwidth packet type, default:BGP, optional:- `BGP`: common BGP shared bandwidth package- `HIGH_QUALITY_BGP`: Quality BGP Shared Bandwidth Package.
3535
* `tags` - (Optional, Map) Tag description list.

0 commit comments

Comments
 (0)