Skip to content

Commit f199607

Browse files
committed
remove extra space line and enchance descriptions
1 parent 2d6c327 commit f199607

9 files changed

+14
-20
lines changed

tencentcloud/resource_tc_gaap_proxy.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,6 @@ func resourceTencentCloudGaapProxy() *schema.Resource {
147147

148148
func resourceTencentCloudGaapProxyCreate(d *schema.ResourceData, m interface{}) error {
149149
defer logElapsed("resource.tencentcloud_gaap_proxy.create")()
150-
//gaapActionMu.Lock()
151-
//defer gaapActionMu.Unlock()
152150

153151
logId := getLogId(contextNil)
154152
ctx := context.WithValue(context.TODO(), logIdKey, logId)
@@ -295,8 +293,6 @@ func resourceTencentCloudGaapProxyRead(d *schema.ResourceData, m interface{}) er
295293

296294
func resourceTencentCloudGaapProxyUpdate(d *schema.ResourceData, m interface{}) error {
297295
defer logElapsed("resource.tencentcloud_gaap_proxy.update")()
298-
//gaapActionMu.Lock()
299-
//defer gaapActionMu.Unlock()
300296

301297
logId := getLogId(contextNil)
302298
ctx := context.WithValue(context.TODO(), logIdKey, logId)

tencentcloud/resource_tc_gaap_security_rule.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ func resourceTencentCloudGaapSecurityRuleCreate(d *schema.ResourceData, m interf
144144

145145
func resourceTencentCloudGaapSecurityRuleRead(d *schema.ResourceData, m interface{}) error {
146146
defer logElapsed("resource.tencentcloud_gaap_security_rule.read")()
147-
148147
logId := getLogId(contextNil)
149148
ctx := context.WithValue(context.TODO(), logIdKey, logId)
150149

tencentcloud/resource_tc_instance.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,9 @@ func resourceTencentCloudInstance() *schema.Resource {
270270
Elem: &schema.Resource{
271271
Schema: map[string]*schema.Schema{
272272
"data_disk_type": {
273-
Type: schema.TypeString,
274-
Required: true,
275-
ForceNew: true,
276-
//ValidateFunc: validateAllowedStringValue(CVM_DISK_TYPE),
273+
Type: schema.TypeString,
274+
Required: true,
275+
ForceNew: true,
277276
Description: "Data disk type. For more information about limits on different data disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_BASIC`: HDD cloud disk, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_SSD`: SSD, `CLOUD_HSSD`: Enhanced SSD. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.",
278277
},
279278
"data_disk_size": {
@@ -314,7 +313,7 @@ func resourceTencentCloudInstance() *schema.Resource {
314313
Optional: true,
315314
Default: 0,
316315
ForceNew: true,
317-
Description: "This parameter used to make extra performance of the data disk. It's only supported with `CLOUD_TSSD` and `CLOUD_HSSD` disk type.",
316+
Description: "Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.",
318317
},
319318
},
320319
},

tencentcloud/resource_tc_kubernetes_cluster.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ func resourceTencentCloudTkeClusterUpdate(d *schema.ResourceData, meta interface
18431843
return err
18441844
}
18451845
if !isOk {
1846-
return fmt.Errorf("This version %s is not supported", newVersion)
1846+
return fmt.Errorf("version %s is unsupported", newVersion)
18471847
}
18481848

18491849
err = resource.Retry(writeRetryTimeout, func() *resource.RetryError {

tencentcloud/resource_tc_kubernetes_cluster_attachment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ func TkeInstanceAdvancedSetting() map[string]*schema.Schema {
151151
ForceNew: true,
152152
Optional: true,
153153
Default: "",
154-
Description: "File system. E.g.(`ext3/ext4/xfs`).",
154+
Description: "File system, e.g. `ext3/ext4/xfs`.",
155155
},
156156
"auto_format_and_mount": {
157157
Type: schema.TypeBool,
158158
Optional: true,
159159
ForceNew: true,
160160
Default: false,
161-
Description: "Indicate to auto format and mount or not. Default is `false`.",
161+
Description: "Indicate whether to auto format and mount or not. Default is `false`.",
162162
},
163163
"mount_target": {
164164
Type: schema.TypeString,

tencentcloud/resource_tc_kubernetes_node_pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func ResourceTencentCloudKubernetesNodePool() *schema.Resource {
283283
Type: schema.TypeString,
284284
Optional: true,
285285
ForceNew: true,
286-
Description: "Auto scaling mode. Valid values are `CLASSIC_SCALING`(scaling by create/detroy instances), " +
286+
Description: "Auto scaling mode. Valid values are `CLASSIC_SCALING`(scaling by create/destroy instances), " +
287287
"`WAKE_UP_STOPPED_SCALING`(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance." +
288288
" If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking)" +
289289
".",

website/docs/r/instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ The `data_disks` object supports the following:
122122
* `data_disk_snapshot_id` - (Optional, ForceNew) Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
123123
* `delete_with_instance` - (Optional, ForceNew) Decides whether the disk is deleted with instance(only applied to `CLOUD_BASIC`, `CLOUD_SSD` and `CLOUD_PREMIUM` disk with `POSTPAID_BY_HOUR` instance), default is true.
124124
* `encrypt` - (Optional, ForceNew) Decides whether the disk is encrypted. Default is `false`.
125-
* `throughput_performance` - (Optional, ForceNew) This parameter used to make extra performance of the data disk. It's only supported with `CLOUD_TSSD` and `CLOUD_HSSD` disk type.
125+
* `throughput_performance` - (Optional, ForceNew) Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
126126

127127
## Attributes Reference
128128

website/docs/r/kubernetes_cluster_attachment.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ The following arguments are supported:
113113

114114
The `data_disk` object supports the following:
115115

116-
* `auto_format_and_mount` - (Optional, ForceNew) Indicate to auto format and mount or not. Default is `false`.
116+
* `auto_format_and_mount` - (Optional, ForceNew) Indicate whether to auto format and mount or not. Default is `false`.
117117
* `disk_size` - (Optional, ForceNew) Volume of disk in GB. Default is `0`.
118118
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD`.
119-
* `file_system` - (Optional, ForceNew) File system. E.g.(`ext3/ext4/xfs`).
119+
* `file_system` - (Optional, ForceNew) File system, e.g. `ext3/ext4/xfs`.
120120
* `mount_target` - (Optional, ForceNew) Mount target.
121121

122122
The `worker_config` object supports the following:

website/docs/r/kubernetes_node_pool.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The following arguments are supported:
118118
* `node_os_type` - (Optional) The image version of the node. Valida values are `DOCKER_CUSTOMIZE` and `GENERAL`. Default is `GENERAL`. This parameter will only affect new nodes, not including the existing nodes.
119119
* `node_os` - (Optional) Operating system of the cluster, the available values include: `tlinux2.4x86_64`, `ubuntu18.04.1x86_64`, `ubuntu16.04.1 LTSx86_64`, `centos7.6.0_x64` and `centos7.2x86_64`. Default is 'tlinux2.4x86_64'. This parameter will only affect new nodes, not including the existing nodes.
120120
* `retry_policy` - (Optional, ForceNew) Available values for retry policies include `IMMEDIATE_RETRY` and `INCREMENTAL_INTERVALS`.
121-
* `scaling_mode` - (Optional, ForceNew) Auto scaling mode. Valid values are `CLASSIC_SCALING`(scaling by create/detroy instances), `WAKE_UP_STOPPED_SCALING`(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking).
121+
* `scaling_mode` - (Optional, ForceNew) Auto scaling mode. Valid values are `CLASSIC_SCALING`(scaling by create/destroy instances), `WAKE_UP_STOPPED_SCALING`(Boot priority for expansion. When expanding the capacity, the shutdown operation is given priority to the shutdown of the instance. If the number of instances is still lower than the expected number of instances after the startup, the instance will be created, and the method of destroying the instance will still be used for shrinking).
122122
* `subnet_ids` - (Optional, ForceNew) ID list of subnet, and for VPC it is required.
123123
* `taints` - (Optional) Taints of kubernetes node pool created nodes.
124124

@@ -137,10 +137,10 @@ The `auto_scaling_config` object supports the following:
137137

138138
The `data_disk` object supports the following:
139139

140-
* `auto_format_and_mount` - (Optional, ForceNew) Indicate to auto format and mount or not. Default is `false`.
140+
* `auto_format_and_mount` - (Optional, ForceNew) Indicate whether to auto format and mount or not. Default is `false`.
141141
* `disk_size` - (Optional, ForceNew) Volume of disk in GB. Default is `0`.
142142
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD`.
143-
* `file_system` - (Optional, ForceNew) File system. E.g.(`ext3/ext4/xfs`).
143+
* `file_system` - (Optional, ForceNew) File system, e.g. `ext3/ext4/xfs`.
144144
* `mount_target` - (Optional, ForceNew) Mount target.
145145

146146
The `data_disk` object supports the following:

0 commit comments

Comments
 (0)