Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tencentcloud/data_source_tc_sqlserver_basic_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func dataSourceTencentCloudSqlserverBasicInstances() *schema.Resource {
"engine_version": {
Type: schema.TypeString,
Computed: true,
Description: "Version of the SQL Server basic database engine. Allowed values are `2008R2`(SQL Server 2008 Enerprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.",
Description: "Version of the SQL Server basic database engine. Allowed values are `2008R2`(SQL Server 2008 Enterprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.",
},
"vpc_id": {
Type: schema.TypeString,
Expand Down
6 changes: 3 additions & 3 deletions tencentcloud/data_source_tc_sqlserver_instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ func dataSourceTencentCloudSqlserverInstances() *schema.Resource {
"engine_version": {
Type: schema.TypeString,
Computed: true,
Description: "Version of the SQL Server database engine. Allowed values are `2008R2`(SQL Server 2008 Enerprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.",
Description: "Version of the SQL Server database engine. Allowed values are `2008R2`(SQL Server 2008 Enterprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.",
},
"ha_type": {
Type: schema.TypeString,
Computed: true,
Description: "Instance type.",
Description: "Instance type. `DUAL` (dual-server high availability), `CLUSTER` (cluster).",
},
"vpc_id": {
Type: schema.TypeString,
Expand Down Expand Up @@ -116,7 +116,7 @@ func dataSourceTencentCloudSqlserverInstances() *schema.Resource {
"ro_flag": {
Type: schema.TypeString,
Computed: true,
Description: "Readonly flag. `RO` for readonly instance, `MASTER` for master instance, `` for not readonly instance.",
Description: "Readonly flag. `RO` (read-only instance), `MASTER` (primary instance with read-only instances). If it is left empty, it refers to an instance which is not read-only and has no RO group.",
},
"availability_zone": {
Type: schema.TypeString,
Expand Down
34 changes: 17 additions & 17 deletions tencentcloud/data_source_tc_sqlserver_publish_subscribes.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,32 +42,32 @@ func dataSourceTencentSqlserverPublishSubscribes() *schema.Resource {
"pub_or_sub_instance_id": {
Type: schema.TypeString,
Optional: true,
Description: "The subscribe/publish instance ID is related to whether the `instance_id` is a publish instance or a subscribe instance. when `instance_id` is a publish instance, this field is filtered according to the subscribe instance ID; when `instance_id` is a subscribe instance, this field is filtering according to the publish instance ID.",
Description: "The subscribe/publish instance ID. It is related to whether the `instance_id` is a publish instance or a subscribe instance. when `instance_id` is a publish instance, this field is filtered according to the subscribe instance ID; when `instance_id` is a subscribe instance, this field is filtering according to the publish instance ID.",
},
"pub_or_sub_instance_ip": {
Type: schema.TypeString,
Optional: true,
Description: "The intranet IP of the subscribe/publish instance is related to whether the `instance_id` is a publish instance or a subscribe instance. when `instance_id` is a publish instance, this field is filtered according to the intranet IP of the subscribe instance; when `instance_id` is a subscribe instance, this field is based on the publish instance intranet IP filter.",
Description: "The intranet IP of the subscribe/publish instance. It is related to whether the `instance_id` is a publish instance or a subscribe instance. when `instance_id` is a publish instance, this field is filtered according to the intranet IP of the subscribe instance; when `instance_id` is a subscribe instance, this field is based on the publish instance intranet IP filter.",
},
"publish_subscribe_id": {
Type: schema.TypeInt,
Optional: true,
Description: "The id of the Publish and Subscribe in the SQLServer instance.",
Description: "The id of the Publish and Subscribe.",
},
"publish_subscribe_name": {
Type: schema.TypeString,
Optional: true,
Description: "The name of the Publish and Subscribe in the SQLServer instance.",
Description: "The name of the Publish and Subscribe.",
},
"publish_database": {
Type: schema.TypeString,
Optional: true,
Description: "Publish the database.",
Description: "Name of publish database.",
},
"subscribe_database": {
Type: schema.TypeString,
Optional: true,
Description: "Subscribe to the database.",
Description: "Name of subscribe database.",
},
"publish_subscribe_list": {
Type: schema.TypeList,
Expand All @@ -78,42 +78,42 @@ func dataSourceTencentSqlserverPublishSubscribes() *schema.Resource {
"publish_subscribe_id": {
Type: schema.TypeInt,
Computed: true,
Description: "The id of the Publish and Subscribe in the SQLServer instance.",
Description: "The id of the Publish and Subscribe.",
},
"publish_subscribe_name": {
Type: schema.TypeString,
Computed: true,
Description: "The name of the Publish and Subscribe in the SQLServer instance.",
Description: "The name of the Publish and Subscribe.",
},
"publish_instance_id": {
Type: schema.TypeString,
Computed: true,
Description: "Publish the instance ID in the SQLServer instance.",
Description: "ID of the SQL Server instance which publish.",
},
"publish_instance_name": {
Type: schema.TypeString,
Computed: true,
Description: "Publish the instance name in the SQLServer instance.",
Description: "Name of the SQL Server instance which publish.",
},
"publish_instance_ip": {
Type: schema.TypeString,
Computed: true,
Description: "Publish the instance IP in the SQLServer instance.",
Description: "IP of the the SQL Server instance which publish.",
},
"subscribe_instance_id": {
Type: schema.TypeString,
Computed: true,
Description: "Subscribe the instance ID in the SQLServer instance.",
Description: "ID of the SQL Server instance which subscribe.",
},
"subscribe_instance_name": {
Type: schema.TypeString,
Computed: true,
Description: "Subscribe the instance name in the SQLServer instance.",
Description: "Name of the SQL Server instance which subscribe.",
},
"subscribe_instance_ip": {
Type: schema.TypeString,
Computed: true,
Description: "Subscribe the instance IP in the SQLServer instance.",
Description: "IP of the SQL Server instance which subscribe.",
},
"database_tuples": {
Type: schema.TypeSet,
Expand All @@ -124,12 +124,12 @@ func dataSourceTencentSqlserverPublishSubscribes() *schema.Resource {
"publish_database": {
Type: schema.TypeString,
Computed: true,
Description: "Publish the database.",
Description: "Name of the publish SQL Server instance.",
},
"subscribe_database": {
Type: schema.TypeString,
Computed: true,
Description: "Subscribe to the database.",
Description: "Name of the subscribe SQL Server instance.",
},
"last_sync_time": {
Type: schema.TypeString,
Expand All @@ -139,7 +139,7 @@ func dataSourceTencentSqlserverPublishSubscribes() *schema.Resource {
"status": {
Type: schema.TypeString,
Computed: true,
Description: "Publish and subscribe status between databases `running`, `success`, `fail`, `unknow`.",
Description: "Publish and subscribe status between databases, valid values are `running`, `success`, `fail`, `unknow`.",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/data_source_tc_sqlserver_readonly_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func dataSourceTencentCloudSqlserverReadonlyGroups() *schema.Resource {
"status": {
Type: schema.TypeInt,
Computed: true,
Description: "Status of the readonly group. 1 for running, 5 for applying.",
Description: "Status of the readonly group. `1` for running, `5` for applying.",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_sqlserver_basic_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func resourceTencentCloudSqlserverBasicInstance() *schema.Resource {
ForceNew: true,
Optional: true,
Default: "2008R2",
Description: "Version of the SQL Server basic database engine. Allowed values are `2008R2`(SQL Server 2008 Enerprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.",
Description: "Version of the SQL Server basic database engine. Allowed values are `2008R2`(SQL Server 2008 Enterprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.",
},
"period": {
Type: schema.TypeInt,
Expand Down
4 changes: 2 additions & 2 deletions tencentcloud/resource_tc_sqlserver_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ func resourceTencentCloudSqlserverDB() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "SQLServer instance ID which DB belongs to.",
Description: "SQL Server instance ID which DB belongs to.",
},
"name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Name of SQL Server DB. The DataBase name must be unique and must be composed of numbers, letters and underlines, and the first one can not be underline.",
Description: "Name of SQL Server DB. The database name must be unique and must be composed of numbers, letters and underlines, and the first one can not be underline.",
},
"charset": {
Type: schema.TypeString,
Expand Down
6 changes: 3 additions & 3 deletions tencentcloud/resource_tc_sqlserver_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TencentSqlServerBasicInfo() map[string]*schema.Schema {
"ro_flag": {
Type: schema.TypeString,
Computed: true,
Description: "Readonly flag. `RO` for readonly instance, `MASTER` for master instance, `` for not readonly instance.",
Description: "Readonly flag. `RO` (read-only instance), `MASTER` (primary instance with read-only instances). If it is left empty, it refers to an instance which is not read-only and has no RO group.",
},
"vip": {
Type: schema.TypeString,
Expand Down Expand Up @@ -138,14 +138,14 @@ func resourceTencentCloudSqlserverInstance() *schema.Resource {
ForceNew: true,
Optional: true,
Default: "2008R2",
Description: "Version of the SQL Server database engine. Allowed values are `2008R2`(SQL Server 2008 Enerprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.",
Description: "Version of the SQL Server database engine. Allowed values are `2008R2`(SQL Server 2008 Enterprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.",
},
"ha_type": {
Type: schema.TypeString,
ForceNew: true,
Optional: true,
Default: "DUAL",
Description: "Instance type. Valid value are `DUAL`, `CLUSTER`. Default is `DUAL`.",
Description: "Instance type. `DUAL` (dual-server high availability), `CLUSTER` (cluster). Default is `DUAL`.",
},
"maintenance_week_set": {
Type: schema.TypeSet,
Expand Down
8 changes: 4 additions & 4 deletions tencentcloud/resource_tc_sqlserver_publish_subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,25 @@ func resourceTencentCloudSqlserverPublishSubscribe() *schema.Resource {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Publish the instance ID in the SQLServer instance.",
Description: "ID of the SQL Server instance which publish.",
},
"subscribe_instance_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Subscribe the instance ID in the SQLServer instance.",
Description: "ID of the SQL Server instance which subscribe.",
},
"publish_subscribe_name": {
Type: schema.TypeString,
Optional: true,
Default: "default_name",
Description: "The name of the Publish and Subscribe in the SQLServer instance. default is `default_name`.",
Description: "The name of the Publish and Subscribe. Default is `default_name`.",
},
"delete_subscribe_db": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Whether to delete the subscriber database when deleting the Publish and Subscribe in the SQLServer instance. `true` for deletes the subscribe database, `false` for does not delete the subscribe database. default is `false`.",
Description: "Whether to delete the subscriber database when deleting the Publish and Subscribe. `true` for deletes the subscribe database, `false` for does not delete the subscribe database. default is `false`.",
},
"database_tuples": {
Type: schema.TypeSet,
Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_sqlserver_readonly_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func resourceTencentCloudSqlserverReadonlyInstance() *schema.Resource {
ForceNew: true,
Required: true,
ValidateFunc: validateAllowedIntValue([]int{1, 3}),
Description: "Type of readonly group. Valid values: 1, 3. 1 for one auto-assigned readonly instance per one readonly group, 2 for creating new readonly group, 3 for all exist readonly instances stay in the exist readonly group. For now, only 1 and 3 are supported.",
Description: "Type of readonly group. Valid values: `1`, `3`. `1` for one auto-assigned readonly instance per one readonly group, `2` for creating new readonly group, `3` for all exist readonly instances stay in the exist readonly group. For now, only `1` and `3` are supported.",
},
"force_upgrade": {
Type: schema.TypeBool,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/sqlserver_basic_instances.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ In addition to all arguments above, the following attributes are exported:
* `charge_type` - Pay type of the SQL Server basic instance. For now, only `POSTPAID_BY_HOUR` is valid.
* `cpu` - The CPU number of the SQL Server basic instance.
* `create_time` - Create time of the SQL Server basic instance.
* `engine_version` - Version of the SQL Server basic database engine. Allowed values are `2008R2`(SQL Server 2008 Enerprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.
* `engine_version` - Version of the SQL Server basic database engine. Allowed values are `2008R2`(SQL Server 2008 Enterprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.
* `id` - ID of the SQL Server basic instance.
* `memory` - Memory size (in GB). Allowed value must be larger than `memory` that data source `tencentcloud_sqlserver_specinfos` provides.
* `name` - Name of the SQL Server basic instance.
Expand Down
6 changes: 3 additions & 3 deletions website/docs/d/sqlserver_instances.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ In addition to all arguments above, the following attributes are exported:
* `availability_zone` - Availability zone.
* `charge_type` - Pay type of the SQL Server instance. For now, only `POSTPAID_BY_HOUR` is valid.
* `create_time` - Create time of the SQL Server instance.
* `engine_version` - Version of the SQL Server database engine. Allowed values are `2008R2`(SQL Server 2008 Enerprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.
* `ha_type` - Instance type.
* `engine_version` - Version of the SQL Server database engine. Allowed values are `2008R2`(SQL Server 2008 Enterprise), `2012SP3`(SQL Server 2012 Enterprise), `2016SP1` (SQL Server 2016 Enterprise), `201602`(SQL Server 2016 Standard) and `2017`(SQL Server 2017 Enterprise). Default is `2008R2`.
* `ha_type` - Instance type. `DUAL` (dual-server high availability), `CLUSTER` (cluster).
* `id` - ID of the SQL Server instance.
* `memory` - Memory size (in GB). Allowed value must be larger than `memory` that data source `tencentcloud_sqlserver_specinfos` provides.
* `name` - Name of the SQL Server instance.
* `project_id` - Project ID, default value is 0.
* `ro_flag` - Readonly flag. `RO` for readonly instance, `MASTER` for master instance, `` for not readonly instance.
* `ro_flag` - Readonly flag. `RO` (read-only instance), `MASTER` (primary instance with read-only instances). If it is left empty, it refers to an instance which is not read-only and has no RO group.
* `status` - Status of the SQL Server instance. 1 for applying, 2 for running, 3 for running with limit, 4 for isolated, 5 for recycling, 6 for recycled, 7 for running with task, 8 for off-line, 9 for expanding, 10 for migrating, 11 for readonly, 12 for rebooting.
* `storage` - Disk size (in GB). Allowed value must be a multiple of 10. The storage must be set with the limit of `storage_min` and `storage_max` which data source `tencentcloud_sqlserver_specinfos` provides.
* `subnet_id` - ID of subnet.
Expand Down
Loading