Skip to content

Commit d12ad83

Browse files
committed
merge master
2 parents f716457 + 5d08ccb commit d12ad83

9 files changed

+36
-33
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
## 1.36.0 (Unreleased)
22

3+
FEATURES:
4+
35
* **New Data Source**: `tencentcloud_availability_regions`
46

7+
## 1.35.1 (Unreleased)
8+
9+
ENHANCEMENTS:
10+
11+
* Resource: `tencentcloud_as_scaling_config`, `tencentcloud_eip` and `tencentcloud_kubernetes_cluster` remove the validate function of `internet_max_bandwidth_out`.
12+
* Resource: `tencentcloud_vpn_gateway` update available value of `bandwidth`.
13+
514
## 1.35.0 (June 01, 2020)
615

716
FEATURES:

tencentcloud/resource_tc_as_scaling_config.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,10 @@ func resourceTencentCloudAsScalingConfig() *schema.Resource {
138138
Description: "Charge types for network traffic. Available values include `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`, `TRAFFIC_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.",
139139
},
140140
"internet_max_bandwidth_out": {
141-
Type: schema.TypeInt,
142-
Optional: true,
143-
Default: 0,
144-
ValidateFunc: validateIntegerInRange(0, 100),
145-
Description: "Max bandwidth of Internet access in Mbps. Default is 0.",
141+
Type: schema.TypeInt,
142+
Optional: true,
143+
Default: 0,
144+
Description: "Max bandwidth of Internet access in Mbps. Default is 0.",
146145
},
147146
"public_ip_assigned": {
148147
Type: schema.TypeBool,

tencentcloud/resource_tc_eip.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ func resourceTencentCloudEip() *schema.Resource {
8585
Description: "The charge type of eip, and available values include `BANDWIDTH_PACKAGE`, `BANDWIDTH_POSTPAID_BY_HOUR` and `TRAFFIC_POSTPAID_BY_HOUR`.",
8686
},
8787
"internet_max_bandwidth_out": {
88-
Type: schema.TypeInt,
89-
Optional: true,
90-
ForceNew: true,
91-
ValidateFunc: validateIntegerInRange(1, 1000),
92-
Description: "The bandwidth limit of eip, unit is Mbps, and the range is 1-1000.",
88+
Type: schema.TypeInt,
89+
Optional: true,
90+
ForceNew: true,
91+
Description: "The bandwidth limit of eip, unit is Mbps.",
9392
},
9493
"tags": {
9594
Type: schema.TypeMap,

tencentcloud/resource_tc_gaap_proxy.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ func resourceTencentCloudGaapProxy() *schema.Resource {
6363
Description: "ID of the project within the GAAP proxy, '0' means is default project.",
6464
},
6565
"bandwidth": {
66-
Type: schema.TypeInt,
67-
Required: true,
68-
ValidateFunc: validateAllowedIntValue([]int{10, 20, 50, 100, 200, 500, 1000}),
69-
Description: "Maximum bandwidth of the GAAP proxy, unit is Mbps, the available values include `10`, `20`, `50`, `100`, `200`, `500` and `1000`.",
66+
Type: schema.TypeInt,
67+
Required: true,
68+
Description: "Maximum bandwidth of the GAAP proxy, unit is Mbps, the available values include `10`, `20`, `50`, `100`, `200`, `500` and `1000`.",
7069
},
7170
"concurrent": {
7271
Type: schema.TypeInt,

tencentcloud/resource_tc_kubernetes_as_scaling_group.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,11 @@ func kubernetesAsScalingConfigPara() map[string]*schema.Schema {
184184
Description: "Charge types for network traffic. Available values include `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`, `TRAFFIC_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.",
185185
},
186186
"internet_max_bandwidth_out": {
187-
Type: schema.TypeInt,
188-
Optional: true,
189-
ForceNew: true,
190-
Default: 0,
191-
ValidateFunc: validateIntegerInRange(0, 100),
192-
Description: "Max bandwidth of Internet access in Mbps. Default is 0.",
187+
Type: schema.TypeInt,
188+
Optional: true,
189+
ForceNew: true,
190+
Default: 0,
191+
Description: "Max bandwidth of Internet access in Mbps. Default is 0.",
193192
},
194193
"public_ip_assigned": {
195194
Type: schema.TypeBool,

tencentcloud/resource_tc_kubernetes_cluster.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,11 @@ func TkeCvmCreateInfo() map[string]*schema.Schema {
312312
Description: "Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.",
313313
},
314314
"internet_max_bandwidth_out": {
315-
Type: schema.TypeInt,
316-
ForceNew: true,
317-
Optional: true,
318-
Default: 0,
319-
ValidateFunc: validateIntegerInRange(0, 100),
320-
Description: "Max bandwidth of Internet access in Mbps. Default is 0.",
315+
Type: schema.TypeInt,
316+
ForceNew: true,
317+
Optional: true,
318+
Default: 0,
319+
Description: "Max bandwidth of Internet access in Mbps. Default is 0.",
321320
},
322321
"public_ip_assigned": {
323322
Type: schema.TypeBool,

tencentcloud/resource_tc_vpn_gateway.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,10 @@ func resourceTencentCloudVpnGateway() *schema.Resource {
8282
Description: "ID of the VPC.",
8383
},
8484
"bandwidth": {
85-
Type: schema.TypeInt,
86-
Optional: true,
87-
Default: 5,
88-
ValidateFunc: validateAllowedIntValue([]int{5, 10, 20, 50, 100}),
89-
Description: "The maximum public network output bandwidth of VPN gateway (unit: Mbps), the available values include: 5,10,20,50,100. Default is 5. When charge type is `PREPAID`, bandwidth degradation operation is unsupported.",
85+
Type: schema.TypeInt,
86+
Optional: true,
87+
Default: 5,
88+
Description: "The maximum public network output bandwidth of VPN gateway (unit: Mbps), the available values include: 5,10,20,50,100,200,500,1000. Default is 5. When charge type is `PREPAID`, bandwidth degradation operation is unsupported.",
9089
},
9190
"public_ip_address": {
9291
Type: schema.TypeString,

website/docs/r/eip.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The following arguments are supported:
2525
* `anycast_zone` - (Optional, ForceNew) The zone of anycast, and available values include `ANYCAST_ZONE_GLOBAL` and `ANYCAST_ZONE_OVERSEAS`.
2626
* `applicable_for_clb` - (Optional, **Deprecated**) It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.
2727
* `internet_charge_type` - (Optional, ForceNew) The charge type of eip, and available values include `BANDWIDTH_PACKAGE`, `BANDWIDTH_POSTPAID_BY_HOUR` and `TRAFFIC_POSTPAID_BY_HOUR`.
28-
* `internet_max_bandwidth_out` - (Optional, ForceNew) The bandwidth limit of eip, unit is Mbps, and the range is 1-1000.
28+
* `internet_max_bandwidth_out` - (Optional, ForceNew) The bandwidth limit of eip, unit is Mbps.
2929
* `internet_service_provider` - (Optional, ForceNew) Internet service provider of eip, and available values include `BGP`, `CMCC`, `CTCC` and `CUCC`.
3030
* `name` - (Optional) The name of eip.
3131
* `tags` - (Optional) The tags of eip.

website/docs/r/vpn_gateway.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The following arguments are supported:
5353
* `name` - (Required) Name of the VPN gateway. The length of character is limited to 1-60.
5454
* `vpc_id` - (Required, ForceNew) ID of the VPC.
5555
* `zone` - (Required, ForceNew) Zone of the VPN gateway.
56-
* `bandwidth` - (Optional) The maximum public network output bandwidth of VPN gateway (unit: Mbps), the available values include: 5,10,20,50,100. Default is 5. When charge type is `PREPAID`, bandwidth degradation operation is unsupported.
56+
* `bandwidth` - (Optional) The maximum public network output bandwidth of VPN gateway (unit: Mbps), the available values include: 5,10,20,50,100,200,500,1000. Default is 5. When charge type is `PREPAID`, bandwidth degradation operation is unsupported.
5757
* `charge_type` - (Optional) Charge Type of the VPN gateway, valid values are `PREPAID`, `POSTPAID_BY_HOUR` and default is `POSTPAID_BY_HOUR`.
5858
* `prepaid_period` - (Optional) Period of instance to be prepaid. Valid values are 1, 2, 3, 4, 6, 7, 8, 9, 12, 24, 36 and unit is month. Caution: when this para and renew_flag para are valid, the request means to renew several months more pre-paid period. This para can only be set to take effect in create operation.
5959
* `prepaid_renew_flag` - (Optional) Flag indicates whether to renew or not, valid values are `NOTIFY_AND_RENEW`, `NOTIFY_AND_AUTO_RENEW`, `NOT_NOTIFY_AND_NOT_RENEW`. This para can only be set to take effect in create operation.

0 commit comments

Comments
 (0)