Skip to content

Commit 8f96509

Browse files
authored
Merge pull request #566 from ChuGuai/master
optimize document
2 parents 764c692 + 8a97ce4 commit 8f96509

9 files changed

+55
-55
lines changed

tencentcloud/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Global Application Acceleration(GAAP)
298298
tencentcloud_gaap_security_rule
299299
tencentcloud_gaap_domain_error_page
300300
301-
Kubernetes
301+
Tencent Kubernetes Engine(TKE)
302302
Data Source
303303
tencentcloud_kubernetes_clusters
304304

tencentcloud/resource_tc_kubernetes_as_scaling_group.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ func kubernetesAsScalingGroupPara() map[string]*schema.Schema {
457457
Optional: true,
458458
ForceNew: true,
459459
MaxItems: 1,
460-
Description: "Available values for termination policies include OLDEST_INSTANCE and NEWEST_INSTANCE.",
460+
Description: "Available values for termination policies include `OLDEST_INSTANCE` and `NEWEST_INSTANCE`.",
461461
Elem: &schema.Schema{
462462
Type: schema.TypeString,
463463
Default: SCALING_GROUP_TERMINATION_POLICY_OLDEST_INSTANCE,
@@ -469,7 +469,7 @@ func kubernetesAsScalingGroupPara() map[string]*schema.Schema {
469469
Type: schema.TypeString,
470470
Optional: true,
471471
ForceNew: true,
472-
Description: "Available values for retry policies include IMMEDIATE_RETRY and INCREMENTAL_INTERVALS.",
472+
Description: "Available values for retry policies include `IMMEDIATE_RETRY` and `INCREMENTAL_INTERVALS`.",
473473
Default: SCALING_GROUP_RETRY_POLICY_IMMEDIATE_RETRY,
474474
ValidateFunc: validateAllowedStringValue([]string{SCALING_GROUP_RETRY_POLICY_IMMEDIATE_RETRY,
475475
SCALING_GROUP_RETRY_POLICY_INCREMENTAL_INTERVALS}),

tencentcloud/resource_tc_kubernetes_cluster.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func TkeCvmCreateInfo() map[string]*schema.Schema {
326326
ForceNew: true,
327327
Default: CVM_PREPAID_RENEW_FLAG_NOTIFY_AND_MANUAL_RENEW,
328328
ValidateFunc: validateAllowedStringValue(CVM_PREPAID_RENEW_FLAG),
329-
Description: "When enabled, the CVM instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are `NOTIFY_AND_AUTO_RENEW`, `NOTIFY_AND_MANUAL_RENEW` and `DISABLE_NOTIFY_AND_MANUAL_RENEW`. NOTE: it only works when instance_charge_type is set to `PREPAID`.",
329+
Description: "Auto renewal flag. Valid values: `NOTIFY_AND_AUTO_RENEW`: notify upon expiration and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: notify upon expiration but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: neither notify upon expiration nor renew automatically. Default value: `NOTIFY_AND_MANUAL_RENEW`. If this parameter is specified as `NOTIFY_AND_AUTO_RENEW`, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to `PREPAID`.",
330330
},
331331
"subnet_id": {
332332
Type: schema.TypeString,
@@ -341,7 +341,7 @@ func TkeCvmCreateInfo() map[string]*schema.Schema {
341341
Optional: true,
342342
Default: SYSTEM_DISK_TYPE_CLOUD_PREMIUM,
343343
ValidateFunc: validateAllowedStringValue(SYSTEM_DISK_ALLOW_TYPE),
344-
Description: "Type of a CVM disk, and available values include CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM.",
344+
Description: "System disk type. For more information on limits of system 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_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.",
345345
},
346346
"system_disk_size": {
347347
Type: schema.TypeInt,
@@ -365,7 +365,7 @@ func TkeCvmCreateInfo() map[string]*schema.Schema {
365365
Optional: true,
366366
Default: SYSTEM_DISK_TYPE_CLOUD_PREMIUM,
367367
ValidateFunc: validateAllowedStringValue(SYSTEM_DISK_ALLOW_TYPE),
368-
Description: "Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD.",
368+
Description: "Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD`.",
369369
},
370370
"disk_size": {
371371
Type: schema.TypeInt,
@@ -389,7 +389,7 @@ func TkeCvmCreateInfo() map[string]*schema.Schema {
389389
Optional: true,
390390
Default: INTERNET_CHARGE_TYPE_TRAFFIC_POSTPAID_BY_HOUR,
391391
ValidateFunc: validateAllowedStringValue(INTERNET_CHARGE_ALLOW_TYPE),
392-
Description: "Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.",
392+
Description: "Charge types for network traffic. Available values include `TRAFFIC_POSTPAID_BY_HOUR`.",
393393
},
394394
"internet_max_bandwidth_out": {
395395
Type: schema.TypeInt,

website/docs/d/kubernetes_clusters.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
subcategory: "Kubernetes"
2+
subcategory: "Tencent Kubernetes Engine(TKE)"
33
layout: "tencentcloud"
44
page_title: "TencentCloud: tencentcloud_kubernetes_clusters"
55
sidebar_current: "docs-tencentcloud-datasource-kubernetes_clusters"

website/docs/r/kubernetes_as_scaling_group.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
subcategory: "Kubernetes"
2+
subcategory: "Tencent Kubernetes Engine(TKE)"
33
layout: "tencentcloud"
44
page_title: "TencentCloud: tencentcloud_kubernetes_as_scaling_group"
55
sidebar_current: "docs-tencentcloud-resource-kubernetes_as_scaling_group"
@@ -170,10 +170,10 @@ The `auto_scaling_group` object supports the following:
170170
* `forward_balancer_ids` - (Optional, ForceNew) List of application load balancers, which can't be specified with load_balancer_ids together.
171171
* `load_balancer_ids` - (Optional, ForceNew) ID list of traditional load balancers.
172172
* `project_id` - (Optional, ForceNew) Specifys to which project the scaling group belongs.
173-
* `retry_policy` - (Optional, ForceNew) Available values for retry policies include IMMEDIATE_RETRY and INCREMENTAL_INTERVALS.
173+
* `retry_policy` - (Optional, ForceNew) Available values for retry policies include `IMMEDIATE_RETRY` and `INCREMENTAL_INTERVALS`.
174174
* `subnet_ids` - (Optional, ForceNew) ID list of subnet, and for VPC it is required.
175175
* `tags` - (Optional, ForceNew) Tags of a scaling group.
176-
* `termination_policies` - (Optional, ForceNew) Available values for termination policies include OLDEST_INSTANCE and NEWEST_INSTANCE.
176+
* `termination_policies` - (Optional, ForceNew) Available values for termination policies include `OLDEST_INSTANCE` and `NEWEST_INSTANCE`.
177177
* `zones` - (Optional, ForceNew) List of available zones, for Basic network it is required.
178178

179179
The `data_disk` object supports the following:

website/docs/r/kubernetes_cluster.html.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
subcategory: "Kubernetes"
2+
subcategory: "Tencent Kubernetes Engine(TKE)"
33
layout: "tencentcloud"
44
page_title: "TencentCloud: tencentcloud_kubernetes_cluster"
55
sidebar_current: "docs-tencentcloud-resource-kubernetes_cluster"
@@ -250,7 +250,7 @@ The `cluster_extra_args` object supports the following:
250250
The `data_disk` object supports the following:
251251

252252
* `disk_size` - (Optional, ForceNew) Volume of disk in GB. Default is 0.
253-
* `disk_type` - (Optional, ForceNew) Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD.
253+
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD`.
254254
* `snapshot_id` - (Optional, ForceNew) Data disk snapshot ID.
255255

256256
The `master_config` object supports the following:
@@ -264,17 +264,17 @@ The `master_config` object supports the following:
264264
* `enhanced_monitor_service` - (Optional, ForceNew) To specify whether to enable cloud monitor service. Default is TRUE.
265265
* `enhanced_security_service` - (Optional, ForceNew) To specify whether to enable cloud security service. Default is TRUE.
266266
* `instance_charge_type_prepaid_period` - (Optional, ForceNew) The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
267-
* `instance_charge_type_prepaid_renew_flag` - (Optional, ForceNew) When enabled, the CVM instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are `NOTIFY_AND_AUTO_RENEW`, `NOTIFY_AND_MANUAL_RENEW` and `DISABLE_NOTIFY_AND_MANUAL_RENEW`. NOTE: it only works when instance_charge_type is set to `PREPAID`.
267+
* `instance_charge_type_prepaid_renew_flag` - (Optional, ForceNew) Auto renewal flag. Valid values: `NOTIFY_AND_AUTO_RENEW`: notify upon expiration and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: notify upon expiration but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: neither notify upon expiration nor renew automatically. Default value: `NOTIFY_AND_MANUAL_RENEW`. If this parameter is specified as `NOTIFY_AND_AUTO_RENEW`, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to `PREPAID`.
268268
* `instance_charge_type` - (Optional, ForceNew) The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`, `PREPAID` instance will not terminated after cluster deleted, and may not allow to delete before expired.
269269
* `instance_name` - (Optional, ForceNew) Name of the CVMs.
270-
* `internet_charge_type` - (Optional, ForceNew) Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
270+
* `internet_charge_type` - (Optional, ForceNew) Charge types for network traffic. Available values include `TRAFFIC_POSTPAID_BY_HOUR`.
271271
* `internet_max_bandwidth_out` - (Optional, ForceNew) Max bandwidth of Internet access in Mbps. Default is 0.
272272
* `key_ids` - (Optional, ForceNew) ID list of keys, should be set if `password` not set.
273273
* `password` - (Optional, ForceNew) Password to access, should be set if `key_ids` not set.
274274
* `public_ip_assigned` - (Optional, ForceNew) Specify whether to assign an Internet IP address.
275275
* `security_group_ids` - (Optional, ForceNew) Security groups to which a CVM instance belongs.
276276
* `system_disk_size` - (Optional, ForceNew) Volume of system disk in GB. Default is 50.
277-
* `system_disk_type` - (Optional, ForceNew) Type of a CVM disk, and available values include CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM.
277+
* `system_disk_type` - (Optional, ForceNew) System disk type. For more information on limits of system 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_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.
278278
* `user_data` - (Optional, ForceNew) ase64-encoded User Data text, the length limit is 16KB.
279279

280280
The `worker_config` object supports the following:
@@ -288,17 +288,17 @@ The `worker_config` object supports the following:
288288
* `enhanced_monitor_service` - (Optional, ForceNew) To specify whether to enable cloud monitor service. Default is TRUE.
289289
* `enhanced_security_service` - (Optional, ForceNew) To specify whether to enable cloud security service. Default is TRUE.
290290
* `instance_charge_type_prepaid_period` - (Optional, ForceNew) The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
291-
* `instance_charge_type_prepaid_renew_flag` - (Optional, ForceNew) When enabled, the CVM instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are `NOTIFY_AND_AUTO_RENEW`, `NOTIFY_AND_MANUAL_RENEW` and `DISABLE_NOTIFY_AND_MANUAL_RENEW`. NOTE: it only works when instance_charge_type is set to `PREPAID`.
291+
* `instance_charge_type_prepaid_renew_flag` - (Optional, ForceNew) Auto renewal flag. Valid values: `NOTIFY_AND_AUTO_RENEW`: notify upon expiration and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: notify upon expiration but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: neither notify upon expiration nor renew automatically. Default value: `NOTIFY_AND_MANUAL_RENEW`. If this parameter is specified as `NOTIFY_AND_AUTO_RENEW`, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to `PREPAID`.
292292
* `instance_charge_type` - (Optional, ForceNew) The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`, `PREPAID` instance will not terminated after cluster deleted, and may not allow to delete before expired.
293293
* `instance_name` - (Optional, ForceNew) Name of the CVMs.
294-
* `internet_charge_type` - (Optional, ForceNew) Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
294+
* `internet_charge_type` - (Optional, ForceNew) Charge types for network traffic. Available values include `TRAFFIC_POSTPAID_BY_HOUR`.
295295
* `internet_max_bandwidth_out` - (Optional, ForceNew) Max bandwidth of Internet access in Mbps. Default is 0.
296296
* `key_ids` - (Optional, ForceNew) ID list of keys, should be set if `password` not set.
297297
* `password` - (Optional, ForceNew) Password to access, should be set if `key_ids` not set.
298298
* `public_ip_assigned` - (Optional, ForceNew) Specify whether to assign an Internet IP address.
299299
* `security_group_ids` - (Optional, ForceNew) Security groups to which a CVM instance belongs.
300300
* `system_disk_size` - (Optional, ForceNew) Volume of system disk in GB. Default is 50.
301-
* `system_disk_type` - (Optional, ForceNew) Type of a CVM disk, and available values include CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM.
301+
* `system_disk_type` - (Optional, ForceNew) System disk type. For more information on limits of system 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_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.
302302
* `user_data` - (Optional, ForceNew) ase64-encoded User Data text, the length limit is 16KB.
303303

304304
## Attributes Reference

website/docs/r/kubernetes_cluster_attachment.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
subcategory: "Kubernetes"
2+
subcategory: "Tencent Kubernetes Engine(TKE)"
33
layout: "tencentcloud"
44
page_title: "TencentCloud: tencentcloud_kubernetes_cluster_attachment"
55
sidebar_current: "docs-tencentcloud-resource-kubernetes_cluster_attachment"

website/docs/r/kubernetes_scale_worker.html.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
subcategory: "Kubernetes"
2+
subcategory: "Tencent Kubernetes Engine(TKE)"
33
layout: "tencentcloud"
44
page_title: "TencentCloud: tencentcloud_kubernetes_scale_worker"
55
sidebar_current: "docs-tencentcloud-resource-kubernetes_scale_worker"
@@ -121,7 +121,7 @@ The following arguments are supported:
121121
The `data_disk` object supports the following:
122122

123123
* `disk_size` - (Optional, ForceNew) Volume of disk in GB. Default is 0.
124-
* `disk_type` - (Optional, ForceNew) Types of disk, available values: CLOUD_PREMIUM and CLOUD_SSD.
124+
* `disk_type` - (Optional, ForceNew) Types of disk, available values: `CLOUD_PREMIUM` and `CLOUD_SSD`.
125125
* `snapshot_id` - (Optional, ForceNew) Data disk snapshot ID.
126126

127127
The `worker_config` object supports the following:
@@ -135,17 +135,17 @@ The `worker_config` object supports the following:
135135
* `enhanced_monitor_service` - (Optional, ForceNew) To specify whether to enable cloud monitor service. Default is TRUE.
136136
* `enhanced_security_service` - (Optional, ForceNew) To specify whether to enable cloud security service. Default is TRUE.
137137
* `instance_charge_type_prepaid_period` - (Optional, ForceNew) The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
138-
* `instance_charge_type_prepaid_renew_flag` - (Optional, ForceNew) When enabled, the CVM instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are `NOTIFY_AND_AUTO_RENEW`, `NOTIFY_AND_MANUAL_RENEW` and `DISABLE_NOTIFY_AND_MANUAL_RENEW`. NOTE: it only works when instance_charge_type is set to `PREPAID`.
138+
* `instance_charge_type_prepaid_renew_flag` - (Optional, ForceNew) Auto renewal flag. Valid values: `NOTIFY_AND_AUTO_RENEW`: notify upon expiration and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: notify upon expiration but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: neither notify upon expiration nor renew automatically. Default value: `NOTIFY_AND_MANUAL_RENEW`. If this parameter is specified as `NOTIFY_AND_AUTO_RENEW`, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when instance_charge_type is set to `PREPAID`.
139139
* `instance_charge_type` - (Optional, ForceNew) The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR`, `PREPAID` instance will not terminated after cluster deleted, and may not allow to delete before expired.
140140
* `instance_name` - (Optional, ForceNew) Name of the CVMs.
141-
* `internet_charge_type` - (Optional, ForceNew) Charge types for network traffic. Available values include TRAFFIC_POSTPAID_BY_HOUR.
141+
* `internet_charge_type` - (Optional, ForceNew) Charge types for network traffic. Available values include `TRAFFIC_POSTPAID_BY_HOUR`.
142142
* `internet_max_bandwidth_out` - (Optional, ForceNew) Max bandwidth of Internet access in Mbps. Default is 0.
143143
* `key_ids` - (Optional, ForceNew) ID list of keys, should be set if `password` not set.
144144
* `password` - (Optional, ForceNew) Password to access, should be set if `key_ids` not set.
145145
* `public_ip_assigned` - (Optional, ForceNew) Specify whether to assign an Internet IP address.
146146
* `security_group_ids` - (Optional, ForceNew) Security groups to which a CVM instance belongs.
147147
* `system_disk_size` - (Optional, ForceNew) Volume of system disk in GB. Default is 50.
148-
* `system_disk_type` - (Optional, ForceNew) Type of a CVM disk, and available values include CLOUD_PREMIUM and CLOUD_SSD. Default is CLOUD_PREMIUM.
148+
* `system_disk_type` - (Optional, ForceNew) System disk type. For more information on limits of system 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_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.
149149
* `user_data` - (Optional, ForceNew) ase64-encoded User Data text, the length limit is 16KB.
150150

151151
## Attributes Reference

0 commit comments

Comments
 (0)