Skip to content

Commit 56ee716

Browse files
authored
Merge pull request #463 from Sesede/master
fix description
2 parents a9ec22f + 1fd688d commit 56ee716

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

tencentcloud/data_source_tc_mysql_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
5050
"pay_type": {
5151
Type: schema.TypeInt,
5252
Optional: true,
53-
Deprecated: "It has been deprecated from version 1.36.0.",
53+
Deprecated: "It has been deprecated from version 1.36.0. Please use `charge_type` instead.",
5454
ValidateFunc: validateAllowedIntValue([]int{0, 1}),
5555
Description: "Pay type of instance, 0: prepay, 1: postpay.",
5656
},

tencentcloud/resource_tc_mysql_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TencentMsyqlBasicInfo() map[string]*schema.Schema {
6161
},
6262
"pay_type": {
6363
Type: schema.TypeInt,
64-
Deprecated: "It has been deprecated from version 1.36.0.",
64+
Deprecated: "It has been deprecated from version 1.36.0. Please use `charge_type` instead.",
6565
Optional: true,
6666
ValidateFunc: validateAllowedIntValue([]int{MysqlPayByMonth, MysqlPayByUse}),
6767
ConflictsWith: []string{"charge_type", "prepaid_period"},
@@ -96,7 +96,7 @@ func TencentMsyqlBasicInfo() map[string]*schema.Schema {
9696
},
9797
"period": {
9898
Type: schema.TypeInt,
99-
Deprecated: "It has been deprecated from version 1.36.0.",
99+
Deprecated: "It has been deprecated from version 1.36.0. Please use `prepaid_period` instead.",
100100
Optional: true,
101101
Default: -1,
102102
ConflictsWith: []string{"charge_type", "prepaid_period"},

website/docs/d/mysql_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The following arguments are supported:
3131
* `limit` - (Optional) Number of results returned for a single request. Default is 20, and maximum is 2000.
3232
* `mysql_id` - (Optional) Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.
3333
* `offset` - (Optional) Record offset. Default is 0.
34-
* `pay_type` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Pay type of instance, 0: prepay, 1: postpay.
34+
* `pay_type` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Please use `charge_type` instead. Pay type of instance, 0: prepay, 1: postpay.
3535
* `result_output_file` - (Optional) Used to store results.
3636
* `security_group_id` - (Optional) Security groups ID of instance.
3737
* `status` - (Optional) Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated.

website/docs/r/mysql_instance.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ The following arguments are supported:
6161
* `internet_service` - (Optional) Indicates whether to enable the access to an instance from public network: 0 - No, 1 - Yes.
6262
* `intranet_port` - (Optional) Public access port, rang form 1024 to 65535 and default value is 3306.
6363
* `parameters` - (Optional) List of parameters to use.
64-
* `pay_type` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Pay type of instance, 0: prepaid, 1: postpaid.
65-
* `period` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Period of instance. NOTES: Only supported prepaid instance.
64+
* `pay_type` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Please use `charge_type` instead. Pay type of instance, 0: prepaid, 1: postpaid.
65+
* `period` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Please use `prepaid_period` instead. Period of instance. NOTES: Only supported prepaid instance.
6666
* `prepaid_period` - (Optional) Period of instance. NOTES: Only supported prepaid instance.
6767
* `project_id` - (Optional) Project ID, default value is 0.
6868
* `second_slave_zone` - (Optional, ForceNew) Zone information about second slave instance.

website/docs/r/mysql_readonly_instance.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ The following arguments are supported:
4343
* `charge_type` - (Optional, ForceNew) Pay type of instance, valid values are `PREPAID`, `POSTPAID`. Default is `POSTPAID`.
4444
* `force_delete` - (Optional) Indicate whether to delete instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin. Note: only works for `PREPAID` instance. When the main mysql instance set true, this para of the readonly mysql instance will not take effect.
4545
* `intranet_port` - (Optional) Public access port, rang form 1024 to 65535 and default value is 3306.
46-
* `pay_type` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Pay type of instance, 0: prepaid, 1: postpaid.
47-
* `period` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Period of instance. NOTES: Only supported prepaid instance.
46+
* `pay_type` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Please use `charge_type` instead. Pay type of instance, 0: prepaid, 1: postpaid.
47+
* `period` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Please use `prepaid_period` instead. Period of instance. NOTES: Only supported prepaid instance.
4848
* `prepaid_period` - (Optional) Period of instance. NOTES: Only supported prepaid instance.
4949
* `security_groups` - (Optional) Security groups to use.
5050
* `subnet_id` - (Optional) Private network ID. If vpc_id is set, this value is required.

0 commit comments

Comments
 (0)