Skip to content

Commit a743a8b

Browse files
committed
make fmt
1 parent c811b4b commit a743a8b

File tree

2 files changed

+145
-145
lines changed

2 files changed

+145
-145
lines changed

tencentcloud/data_source_tc_mysql_instance.go

Lines changed: 96 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
144144
Read: dataSourceTencentCloudMysqlInstanceRead,
145145
Schema: map[string]*schema.Schema{
146146
"mysql_id": {
147-
Type: schema.TypeString,
148-
Optional: true,
149-
Description: "Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.",
147+
Type: schema.TypeString,
148+
Optional: true,
149+
Description: "Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.",
150150
},
151151
"instance_role": {
152152
Type: schema.TypeString,
@@ -161,9 +161,9 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
161161
Description: "Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 – Isolated.",
162162
},
163163
"security_group_id": {
164-
Type: schema.TypeString,
165-
Optional: true,
166-
Description: "Security groups ID of instance.",
164+
Type: schema.TypeString,
165+
Optional: true,
166+
Description: "Security groups ID of instance.",
167167
},
168168
"pay_type": {
169169
Type: schema.TypeInt,
@@ -172,9 +172,9 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
172172
Description: "",
173173
},
174174
"instance_name": {
175-
Type: schema.TypeString,
176-
Optional: true,
177-
Description: "Name of mysql instance.",
175+
Type: schema.TypeString,
176+
Optional: true,
177+
Description: "Name of mysql instance.",
178178
},
179179
"engine_version": {
180180
Type: schema.TypeString,
@@ -221,154 +221,154 @@ func dataSourceTencentCloudMysqlInstance() *schema.Resource {
221221
Description: "Number of results returned for a single request. Default is 20, and maximum is 2000.",
222222
},
223223
"result_output_file": {
224-
Type: schema.TypeString,
225-
Optional: true,
226-
Description: "Used to store results.",
224+
Type: schema.TypeString,
225+
Optional: true,
226+
Description: "Used to store results.",
227227
},
228228
// Computed values
229229
"instance_list": {
230-
Type: schema.TypeList,
231-
Computed: true,
230+
Type: schema.TypeList,
231+
Computed: true,
232232
Description: "A list of instances. Each element contains the following attributes:",
233233
Elem: &schema.Resource{
234234
Schema: map[string]*schema.Schema{
235235
"mysql_id": {
236-
Type: schema.TypeString,
237-
Computed: true,
238-
Description: "Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.",
236+
Type: schema.TypeString,
237+
Computed: true,
238+
Description: "Instance ID, such as cdb-c1nl9rpv. It is identical to the instance ID displayed in the database console page.",
239239
},
240240
"instance_name": {
241-
Type: schema.TypeString,
242-
Computed: true,
243-
Description: "Name of mysql instance.",
241+
Type: schema.TypeString,
242+
Computed: true,
243+
Description: "Name of mysql instance.",
244244
},
245245
"instance_role": {
246-
Type: schema.TypeString,
247-
Computed: true,
248-
Description: "Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.",
246+
Type: schema.TypeString,
247+
Computed: true,
248+
Description: "Instance type. Supported values include: master - master instance, dr - disaster recovery instance, and ro - read-only instance.",
249249
},
250250
"init_flag": {
251-
Type: schema.TypeInt,
252-
Computed: true,
253-
Description: "Initialization mark. Available values: 0 - Uninitialized; 1 – Initialized.",
251+
Type: schema.TypeInt,
252+
Computed: true,
253+
Description: "Initialization mark. Available values: 0 - Uninitialized; 1 – Initialized.",
254254
},
255255
"status": {
256-
Type: schema.TypeInt,
257-
Computed: true,
258-
Description: "Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 – Isolated.",
256+
Type: schema.TypeInt,
257+
Computed: true,
258+
Description: "Instance status. Available values: 0 - Creating; 1 - Running; 4 - Isolating; 5 – Isolated.",
259259
},
260260
"zone": {
261-
Type: schema.TypeString,
262-
Computed: true,
263-
Description: "Information of available zone.",
261+
Type: schema.TypeString,
262+
Computed: true,
263+
Description: "Information of available zone.",
264264
},
265265
"auto_renew_flag": {
266-
Type: schema.TypeInt,
267-
Computed: true,
268-
Description: "",
266+
Type: schema.TypeInt,
267+
Computed: true,
268+
Description: "",
269269
},
270270
"engine_version": {
271-
Type: schema.TypeString,
272-
Computed: true,
273-
Description: "The version number of the database engine to use. Supported versions include 5.5/5.6/5.7.",
271+
Type: schema.TypeString,
272+
Computed: true,
273+
Description: "The version number of the database engine to use. Supported versions include 5.5/5.6/5.7.",
274274
},
275275
"cpu_core_count": {
276-
Type: schema.TypeInt,
277-
Computed: true,
278-
Description: "CPU count.",
276+
Type: schema.TypeInt,
277+
Computed: true,
278+
Description: "CPU count.",
279279
},
280280
"memory_size": {
281-
Type: schema.TypeInt,
282-
Computed: true,
283-
Description: "Memory size (in MB).",
281+
Type: schema.TypeInt,
282+
Computed: true,
283+
Description: "Memory size (in MB).",
284284
},
285285
"volume_size": {
286-
Type: schema.TypeInt,
287-
Computed: true,
288-
Description: "Disk capacity (in GB).",
286+
Type: schema.TypeInt,
287+
Computed: true,
288+
Description: "Disk capacity (in GB).",
289289
},
290290
"internet_status": {
291-
Type: schema.TypeInt,
292-
Computed: true,
293-
Description: "Status of public network.",
291+
Type: schema.TypeInt,
292+
Computed: true,
293+
Description: "Status of public network.",
294294
},
295295
"internet_host": {
296-
Type: schema.TypeString,
297-
Computed: true,
298-
Description: "Public network domain name.",
296+
Type: schema.TypeString,
297+
Computed: true,
298+
Description: "Public network domain name.",
299299
},
300300
"internet_port": {
301-
Type: schema.TypeInt,
302-
Computed: true,
303-
Description: "Public network port.",
301+
Type: schema.TypeInt,
302+
Computed: true,
303+
Description: "Public network port.",
304304
},
305305
"intranet_ip": {
306-
Type: schema.TypeString,
307-
Computed: true,
308-
Description: "Instance IP for internal access.",
306+
Type: schema.TypeString,
307+
Computed: true,
308+
Description: "Instance IP for internal access.",
309309
},
310310
"intranet_port": {
311-
Type: schema.TypeInt,
312-
Computed: true,
313-
Description: "Transport layer port number for internal purpose.",
311+
Type: schema.TypeInt,
312+
Computed: true,
313+
Description: "Transport layer port number for internal purpose.",
314314
},
315315
"project_id": {
316-
Type: schema.TypeInt,
317-
Computed: true,
318-
Description: "Project ID to which the current instance belongs.",
316+
Type: schema.TypeInt,
317+
Computed: true,
318+
Description: "Project ID to which the current instance belongs.",
319319
},
320320
"vpc_id": {
321-
Type: schema.TypeString,
322-
Computed: true,
323-
Description: "ID of Virtual Private Cloud.",
321+
Type: schema.TypeString,
322+
Computed: true,
323+
Description: "ID of Virtual Private Cloud.",
324324
},
325325
"subnet_id": {
326-
Type: schema.TypeString,
327-
Computed: true,
328-
Description: "ID of subnet to which the current instance belongs.",
326+
Type: schema.TypeString,
327+
Computed: true,
328+
Description: "ID of subnet to which the current instance belongs.",
329329
},
330330
"slave_sync_mode": {
331-
Type: schema.TypeInt,
332-
Computed: true,
333-
Description: "Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.",
331+
Type: schema.TypeInt,
332+
Computed: true,
333+
Description: "Data replication mode. 0 - Async replication; 1 - Semisync replication; 2 - Strongsync replication.",
334334
},
335335
"device_type": {
336-
Type: schema.TypeString,
337-
Computed: true,
338-
Description: "Supported instance model.HA - high available version; Basic - basic version.",
336+
Type: schema.TypeString,
337+
Computed: true,
338+
Description: "Supported instance model.HA - high available version; Basic - basic version.",
339339
},
340340
"pay_type": {
341-
Type: schema.TypeInt,
342-
Computed: true,
343-
Description: "",
341+
Type: schema.TypeInt,
342+
Computed: true,
343+
Description: "",
344344
},
345345
"create_time": {
346-
Type: schema.TypeString,
347-
Computed: true,
348-
Description: "The time at which a instance is created.",
346+
Type: schema.TypeString,
347+
Computed: true,
348+
Description: "The time at which a instance is created.",
349349
},
350350
"dead_line_time": {
351-
Type: schema.TypeString,
352-
Computed: true,
353-
Description: "",
351+
Type: schema.TypeString,
352+
Computed: true,
353+
Description: "",
354354
},
355355
"master_instance_id": {
356-
Type: schema.TypeString,
357-
Computed: true,
358-
Description: "",
356+
Type: schema.TypeString,
357+
Computed: true,
358+
Description: "",
359359
},
360360
"ro_instance_ids": {
361-
Type: schema.TypeList,
362-
Computed: true,
363-
Description: "ID list of read-only type associated with the current instance.",
361+
Type: schema.TypeList,
362+
Computed: true,
363+
Description: "ID list of read-only type associated with the current instance.",
364364
Elem: &schema.Schema{
365365
Type: schema.TypeString,
366366
},
367367
},
368368
"dr_instance_ids": {
369-
Type: schema.TypeList,
370-
Computed: true,
371-
Description: "ID list of disaster-recovory type associated with the current instance.",
369+
Type: schema.TypeList,
370+
Computed: true,
371+
Description: "ID list of disaster-recovory type associated with the current instance.",
372372
Elem: &schema.Schema{
373373
Type: schema.TypeString,
374374
},
@@ -476,7 +476,7 @@ func dataSourceTencentCloudMysqlInstanceRead(d *schema.ResourceData, meta interf
476476
"memory_size": *item.Memory,
477477
"volume_size": *item.Volume,
478478
"internet_status": *item.WanStatus,
479-
"internet_host": *item.WanDomain,
479+
"internet_host": *item.WanDomain,
480480
"internet_port": *item.WanPort,
481481
"intranet_ip": *item.Vip,
482482
"intranet_port": *item.Vport,

0 commit comments

Comments
 (0)