Skip to content

Commit b70fe53

Browse files
authored
Merge pull request #564 from oliverpei/master
optimize document
2 parents 21824a8 + b40f8f3 commit b70fe53

15 files changed

+31
-194
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
## 1.50.1 (Unreleased)
2+
3+
ENHANCEMENTS:
4+
5+
* Doc: optimize document.
6+
27
## 1.50.0 (December 08, 2020)
38

49
FEATURES:

tencentcloud/data_source_tc_cbs_storages.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ func dataSourceTencentCloudCbsStorages() *schema.Resource {
5151
Type: schema.TypeString,
5252
Optional: true,
5353
ValidateFunc: validateAllowedStringValue(CBS_STORAGE_TYPE),
54-
Description: "Types of storage medium, and available values include CLOUD_BASIC, CLOUD_PREMIUM and CLOUD_SSD.",
54+
Description: "Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).",
5555
},
5656
"storage_usage": {
5757
Type: schema.TypeString,
5858
Optional: true,
59-
Description: "Types of CBS, and available values include SYSTEM_DISK and DATA_DISK.",
59+
Description: "Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).",
6060
},
6161
"result_output_file": {
6262
Type: schema.TypeString,

tencentcloud/resource_tc_cbs_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func resourceTencentCloudCbsStorage() *schema.Resource {
8989
Optional: true,
9090
Computed: true,
9191
ValidateFunc: validateAllowedStringValue(CBS_PREPAID_RENEW_FLAG),
92-
Description: "When enabled, the CBS 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 charge_type is set to `PREPAID`.",
92+
Description: "Auto Renewal flag. Value range: `NOTIFY_AND_AUTO_RENEW`: Notify expiry and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Neither notify expiry nor renew automatically. Default value range: `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set to `PREPAID`.",
9393
},
9494
"availability_zone": {
9595
Type: schema.TypeString,

tencentcloud/resource_tc_cdn_domain.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func resourceTencentCloudCdnDomain() *schema.Resource {
116116
Required: true,
117117
ForceNew: true,
118118
ValidateFunc: validateAllowedStringValue(CDN_SERVICE_TYPE),
119-
Description: "Service type of Acceleration domain name. Valid values are `web`, `download` and `media`.",
119+
Description: "Acceleration domain name service type. `web`: static acceleration, `download`: download acceleration, `media`: streaming media VOD acceleration.",
120120
},
121121
"project_id": {
122122
Type: schema.TypeInt,
@@ -128,7 +128,7 @@ func resourceTencentCloudCdnDomain() *schema.Resource {
128128
Type: schema.TypeString,
129129
Optional: true,
130130
ValidateFunc: validateAllowedStringValue(CDN_AREA),
131-
Description: "Domain name acceleration region. Valid values are `mainland`, `overseas` and `global`.",
131+
Description: "Domain name acceleration region. `mainland`: acceleration inside mainland China, `overseas`: acceleration outside mainland China, `global`: global acceleration. Overseas acceleration service must be enabled to use overseas acceleration and global acceleration.",
132132
},
133133
"full_url_cache": {
134134
Type: schema.TypeBool,
@@ -147,7 +147,7 @@ func resourceTencentCloudCdnDomain() *schema.Resource {
147147
Type: schema.TypeString,
148148
Required: true,
149149
ValidateFunc: validateAllowedStringValue(CDN_ORIGIN_TYPE),
150-
Description: "Master origin server type. Valid values are `domain`, `cos`, `ip`, `ipv6` and `ip_ipv6`.",
150+
Description: "Master origin server type. The following types are supported: `domain`: domain name type, `cos`: COS origin, `ip`: IP list used as origin server, `ipv6`: origin server list is a single IPv6 address, `ip_ipv6`: origin server list is multiple IPv4 addresses and an IPv6 address.",
151151
},
152152
"origin_list": {
153153
Type: schema.TypeList,
@@ -171,13 +171,13 @@ func resourceTencentCloudCdnDomain() *schema.Resource {
171171
Optional: true,
172172
Default: CDN_ORIGIN_PULL_PROTOCOL_HTTP,
173173
ValidateFunc: validateAllowedStringValue(CDN_ORIGIN_PULL_PROTOCOL),
174-
Description: "Origin-pull protocol configuration. Valid values are `http`, `https` and `follow`. Default value is `http`.",
174+
Description: "Origin-pull protocol configuration. `http`: forced HTTP origin-pull, `follow`: protocol follow origin-pull, `https`: forced HTTPS origin-pull. This only supports origin server port 443 for origin-pull.",
175175
},
176176
"backup_origin_type": {
177177
Type: schema.TypeString,
178178
Optional: true,
179179
ValidateFunc: validateAllowedStringValue(CDN_BACKUP_ORIGIN_TYPE),
180-
Description: "Backup origin server type. Valid values are `domain` and `ip`.",
180+
Description: "Backup origin server type, which supports the following types: `domain`: domain name type, `ip`: IP list used as origin server.",
181181
},
182182
"backup_origin_list": {
183183
Type: schema.TypeList,

tencentcloud/resource_tc_cos_bucket.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func resourceTencentCloudCosBucket() *schema.Resource {
159159
Type: schema.TypeList,
160160
Required: true,
161161
Elem: &schema.Schema{Type: schema.TypeString},
162-
Description: "Specifies which methods are allowed. Can be GET, PUT, POST, DELETE or HEAD.",
162+
Description: "Specifies which methods are allowed. Can be `GET`, `PUT`, `POST`, `DELETE` or `HEAD`.",
163163
},
164164
"allowed_headers": {
165165
Type: schema.TypeList,
@@ -215,7 +215,7 @@ func resourceTencentCloudCosBucket() *schema.Resource {
215215
Type: schema.TypeString,
216216
Required: true,
217217
ValidateFunc: validateAllowedStringValue(availableCosStorageClass),
218-
Description: "Specifies the storage class to which you want the object to transition. Available values include STANDARD, STANDARD_IA and ARCHIVE.",
218+
Description: "Specifies the storage class to which you want the object to transition. Available values include `STANDARD`, `STANDARD_IA` and `ARCHIVE`.",
219219
},
220220
},
221221
},

tencentcloud/resource_tc_instance.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func resourceTencentCloudInstance() *schema.Resource {
173173
Optional: true,
174174
Computed: true,
175175
ValidateFunc: validateAllowedStringValue(CVM_PREPAID_RENEW_FLAG),
176-
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`.",
176+
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`.",
177177
},
178178
"spot_instance_type": {
179179
Type: schema.TypeString,
@@ -244,7 +244,7 @@ func resourceTencentCloudInstance() *schema.Resource {
244244
Default: CVM_DISK_TYPE_CLOUD_BASIC,
245245
ForceNew: true,
246246
ValidateFunc: validateAllowedStringValue(CVM_DISK_TYPE),
247-
Description: "Type of the system disk. Valid values are `LOCAL_BASIC`, `LOCAL_SSD`, `CLOUD_BASIC`, `CLOUD_SSD` and `CLOUD_PREMIUM`. default value is `CLOUD_BASIC`. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.",
247+
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.",
248248
},
249249
"system_disk_size": {
250250
Type: schema.TypeInt,
@@ -274,7 +274,7 @@ func resourceTencentCloudInstance() *schema.Resource {
274274
Required: true,
275275
ForceNew: true,
276276
ValidateFunc: validateAllowedStringValue(CVM_DISK_TYPE),
277-
Description: "Type of the data disk. Valid values are `LOCAL_BASIC`, `LOCAL_SSD`, `CLOUD_BASIC`, `CLOUD_SSD` and `CLOUD_PREMIUM`. NOTE: `LOCAL_BASIC` and `LOCAL_SSD` are deprecated.",
277+
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.",
278278
},
279279
"data_disk_size": {
280280
Type: schema.TypeInt,

website/docs/d/cbs_storages.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ The following arguments are supported:
2929
* `result_output_file` - (Optional) Used to save results.
3030
* `storage_id` - (Optional) ID of the CBS to be queried.
3131
* `storage_name` - (Optional) Name of the CBS to be queried.
32-
* `storage_type` - (Optional) Types of storage medium, and available values include CLOUD_BASIC, CLOUD_PREMIUM and CLOUD_SSD.
33-
* `storage_usage` - (Optional) Types of CBS, and available values include SYSTEM_DISK and DATA_DISK.
32+
* `storage_type` - (Optional) Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
33+
* `storage_usage` - (Optional) Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
3434

3535
## Attributes Reference
3636

website/docs/d/service_template_groups.html.markdown

Lines changed: 0 additions & 39 deletions
This file was deleted.

website/docs/d/service_templates.html.markdown

Lines changed: 0 additions & 39 deletions
This file was deleted.

website/docs/r/cbs_storage.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following arguments are supported:
4141
* `force_delete` - (Optional) Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
4242
* `period` - (Optional, **Deprecated**) It has been deprecated from version 1.33.0. Set `prepaid_period` instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36].
4343
* `prepaid_period` - (Optional) The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
44-
* `prepaid_renew_flag` - (Optional) When enabled, the CBS 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 charge_type is set to `PREPAID`.
44+
* `prepaid_renew_flag` - (Optional) Auto Renewal flag. Value range: `NOTIFY_AND_AUTO_RENEW`: Notify expiry and renew automatically, `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically, `DISABLE_NOTIFY_AND_MANUAL_RENEW`: Neither notify expiry nor renew automatically. Default value range: `NOTIFY_AND_MANUAL_RENEW`: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set to `PREPAID`.
4545
* `project_id` - (Optional) ID of the project to which the instance belongs.
4646
* `snapshot_id` - (Optional) ID of the snapshot. If specified, created the CBS by this snapshot.
4747
* `tags` - (Optional) The available tags within this CBS.

0 commit comments

Comments
 (0)