diff --git a/tencentcloud/data_source_tc_mysql_instance.go b/tencentcloud/data_source_tc_mysql_instance.go index 1c4df7edc3..996ef934f9 100644 --- a/tencentcloud/data_source_tc_mysql_instance.go +++ b/tencentcloud/data_source_tc_mysql_instance.go @@ -50,7 +50,7 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource { "pay_type": { Type: schema.TypeInt, Optional: true, - Deprecated: "It has been deprecated from version 1.36.0.", + Deprecated: "It has been deprecated from version 1.36.0. Please use `charge_type` instead.", ValidateFunc: validateAllowedIntValue([]int{0, 1}), Description: "Pay type of instance, 0: prepay, 1: postpay.", }, diff --git a/tencentcloud/resource_tc_mysql_instance.go b/tencentcloud/resource_tc_mysql_instance.go index c7a13a0e22..55137e22b9 100644 --- a/tencentcloud/resource_tc_mysql_instance.go +++ b/tencentcloud/resource_tc_mysql_instance.go @@ -61,7 +61,7 @@ func TencentMsyqlBasicInfo() map[string]*schema.Schema { }, "pay_type": { Type: schema.TypeInt, - Deprecated: "It has been deprecated from version 1.36.0.", + Deprecated: "It has been deprecated from version 1.36.0. Please use `charge_type` instead.", Optional: true, ValidateFunc: validateAllowedIntValue([]int{MysqlPayByMonth, MysqlPayByUse}), ConflictsWith: []string{"charge_type", "prepaid_period"}, @@ -96,7 +96,7 @@ func TencentMsyqlBasicInfo() map[string]*schema.Schema { }, "period": { Type: schema.TypeInt, - Deprecated: "It has been deprecated from version 1.36.0.", + Deprecated: "It has been deprecated from version 1.36.0. Please use `prepaid_period` instead.", Optional: true, Default: -1, ConflictsWith: []string{"charge_type", "prepaid_period"}, diff --git a/website/docs/d/mysql_instance.html.markdown b/website/docs/d/mysql_instance.html.markdown index 50fbefccc3..125eb63679 100644 --- a/website/docs/d/mysql_instance.html.markdown +++ b/website/docs/d/mysql_instance.html.markdown @@ -31,7 +31,7 @@ The following arguments are supported: * `limit` - (Optional) Number of results returned for a single request. Default is 20, and maximum is 2000. * `mysql_id` - (Optional) Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page. * `offset` - (Optional) Record offset. Default is 0. -* `pay_type` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Pay type of instance, 0: prepay, 1: postpay. +* `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. * `result_output_file` - (Optional) Used to store results. * `security_group_id` - (Optional) Security groups ID of instance. * `status` - (Optional) Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 - Isolated. diff --git a/website/docs/r/mysql_instance.html.markdown b/website/docs/r/mysql_instance.html.markdown index 8c21423cba..ccbe4d0a3e 100644 --- a/website/docs/r/mysql_instance.html.markdown +++ b/website/docs/r/mysql_instance.html.markdown @@ -61,8 +61,8 @@ The following arguments are supported: * `internet_service` - (Optional) Indicates whether to enable the access to an instance from public network: 0 - No, 1 - Yes. * `intranet_port` - (Optional) Public access port, rang form 1024 to 65535 and default value is 3306. * `parameters` - (Optional) List of parameters to use. -* `pay_type` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Pay type of instance, 0: prepaid, 1: postpaid. -* `period` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Period of instance. NOTES: Only supported prepaid instance. +* `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. +* `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. * `prepaid_period` - (Optional) Period of instance. NOTES: Only supported prepaid instance. * `project_id` - (Optional) Project ID, default value is 0. * `second_slave_zone` - (Optional, ForceNew) Zone information about second slave instance. diff --git a/website/docs/r/mysql_readonly_instance.html.markdown b/website/docs/r/mysql_readonly_instance.html.markdown index 6ac8bc862e..a8363649b3 100644 --- a/website/docs/r/mysql_readonly_instance.html.markdown +++ b/website/docs/r/mysql_readonly_instance.html.markdown @@ -43,8 +43,8 @@ The following arguments are supported: * `charge_type` - (Optional, ForceNew) Pay type of instance, valid values are `PREPAID`, `POSTPAID`. Default is `POSTPAID`. * `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. * `intranet_port` - (Optional) Public access port, rang form 1024 to 65535 and default value is 3306. -* `pay_type` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Pay type of instance, 0: prepaid, 1: postpaid. -* `period` - (Optional, **Deprecated**) It has been deprecated from version 1.36.0. Period of instance. NOTES: Only supported prepaid instance. +* `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. +* `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. * `prepaid_period` - (Optional) Period of instance. NOTES: Only supported prepaid instance. * `security_groups` - (Optional) Security groups to use. * `subnet_id` - (Optional) Private network ID. If vpc_id is set, this value is required.