Skip to content

Commit c9de637

Browse files
committed
enchance descriptions
1 parent ff868c8 commit c9de637

7 files changed

+12
-12
lines changed

tencentcloud/data_source_tc_postgresql_instances.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func dataSourceTencentCloudPostgresqlInstances() *schema.Resource {
6161
"id": {
6262
Type: schema.TypeString,
6363
Computed: true,
64-
Description: "Id of the postgresql instance.",
64+
Description: "ID of the postgresql instance.",
6565
},
6666
"name": {
6767
Type: schema.TypeString,
@@ -81,7 +81,7 @@ func dataSourceTencentCloudPostgresqlInstances() *schema.Resource {
8181
"engine_version": {
8282
Type: schema.TypeString,
8383
Computed: true,
84-
Description: "Version of the postgresql db engine.",
84+
Description: "Version of the postgresql database engine.",
8585
},
8686
"vpc_id": {
8787
Type: schema.TypeString,

tencentcloud/data_source_tc_postgresql_specinfos.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ func dataSourceTencentCloudPostgresqlSpecinfos() *schema.Resource {
5656
"storage_max": {
5757
Type: schema.TypeInt,
5858
Computed: true,
59-
Description: "The max volume size(in GB).",
59+
Description: "The maximum volume size(in GB).",
6060
},
61-
"cpu_number": {
61+
"cpu": {
6262
Type: schema.TypeInt,
6363
Computed: true,
6464
Description: "The CPU number of the postgresql instance.",
@@ -111,7 +111,7 @@ func dataSourceTencentCloudPostgresqlSpecinfosRead(d *schema.ResourceData, meta
111111
listItem["memory"] = v.Memory
112112
listItem["storage_min"] = v.MinStorage
113113
listItem["storage_max"] = v.MaxStorage
114-
listItem["cpu_number"] = v.Cpu
114+
listItem["cpu"] = v.Cpu
115115
listItem["qps"] = v.Qps
116116
listItem["version"] = v.Version
117117
listItem["version_name"] = v.VersionName

tencentcloud/data_source_tc_postgresql_specinfos_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestAccTencentCloudPostgresqlSpecinfos_basic(t *testing.T) {
2222
resource.TestCheckResourceAttrSet("data.tencentcloud_postgresql_specinfos.foo", "list.0.memory"),
2323
resource.TestCheckResourceAttrSet("data.tencentcloud_postgresql_specinfos.foo", "list.0.storage_min"),
2424
resource.TestCheckResourceAttrSet("data.tencentcloud_postgresql_specinfos.foo", "list.0.storage_max"),
25-
resource.TestCheckResourceAttrSet("data.tencentcloud_postgresql_specinfos.foo", "list.0.cpu_number"),
25+
resource.TestCheckResourceAttrSet("data.tencentcloud_postgresql_specinfos.foo", "list.0.cpu"),
2626
resource.TestCheckResourceAttrSet("data.tencentcloud_postgresql_specinfos.foo", "list.0.qps"),
2727
resource.TestCheckResourceAttrSet("data.tencentcloud_postgresql_specinfos.foo", "list.0.version"),
2828
resource.TestCheckResourceAttrSet("data.tencentcloud_postgresql_specinfos.foo", "list.0.version_name"),

tencentcloud/resource_tc_postgresql_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func resourceTencentCloudPostgresqlInstance() *schema.Resource {
6868
Optional: true,
6969
ValidateFunc: validateAllowedStringValue(POSTSQL_DB_VERSION),
7070
Default: POSTSQL_DB_VERSION[len(POSTSQL_DB_VERSION)-1],
71-
Description: "Version of the postgresql engine. Allowed values are `9.3.5`, `9.5.4`, `10.4`.",
71+
Description: "Version of the postgresql database engine. Allowed values are `9.3.5`, `9.5.4`, `10.4`.",
7272
},
7373
"vpc_id": {
7474
Type: schema.TypeString,

website/docs/d/postgresql_instances.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ In addition to all arguments above, the following attributes are exported:
4545
* `charge_type` - Pay type of the postgresql instance.
4646
* `charset` - Charset of the postgresql instance.
4747
* `create_time` - Create time of the postgresql instance.
48-
* `engine_version` - Version of the postgresql db engine.
49-
* `id` - Id of the postgresql instance.
48+
* `engine_version` - Version of the postgresql database engine.
49+
* `id` - ID of the postgresql instance.
5050
* `memory` - Memory size (in MB).
5151
* `name` - Name of the postgresql instance.
5252
* `private_access_ip` - Ip address for private access.

website/docs/d/postgresql_specinfos.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ The following arguments are supported:
3030
In addition to all arguments above, the following attributes are exported:
3131

3232
* `list` - A list of zones will be exported and its every element contains the following attributes:
33-
* `cpu_number` - The CPU number of the postgresql instance.
33+
* `cpu` - The CPU number of the postgresql instance.
3434
* `id` - Id of the speccode of the postgresql instance. This parameter is used as `spec_code` for the creation of postgresql instance.
3535
* `memory` - Memory size(in MB).
3636
* `qps` - The QPS of the postgresql instance.
37-
* `storage_max` - The max volume size(in GB).
37+
* `storage_max` - The maximum volume size(in GB).
3838
* `storage_min` - The minimum volume size(in GB).
3939
* `version_name` - The version name of the postgresql instance.
4040
* `version` - The version of the postgresql instance.

website/docs/r/postgresql_instance.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
* `availability_zone` - (Optional, ForceNew) Availability zone.
2626
* `charge_type` - (Optional, ForceNew) Pay type of the postgresql instance. For now, only `POSTPAID_BY_HOUR` is valid.
2727
* `charset` - (Optional, ForceNew) Charset of the root account. Valid values are `UTF8`,`LATIN1`.
28-
* `engine_version` - (Optional, ForceNew) Version of the postgresql engine. Allowed values are `9.3.5`, `9.5.4`, `10.4`.
28+
* `engine_version` - (Optional, ForceNew) Version of the postgresql database engine. Allowed values are `9.3.5`, `9.5.4`, `10.4`.
2929
* `memory` - (Optional) Memory size (in MB).
3030
* `project_id` - (Optional) Project ID, default value is 0.
3131
* `public_access_switch` - (Optional) Indicates whether to enable the access to an instance from public network or not.

0 commit comments

Comments
 (0)