You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//internal version: replace import begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
110
-
//internal version: replace import end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
@@ -204,8 +202,6 @@ type TencentCloudClient struct {
204
202
cdwpgConn*cdwpg.Client
205
203
csipConn*csip.Client
206
204
billingConn*billing.Client
207
-
//internal version: replace client begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
208
-
//internal version: replace client end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
//internal version: replace useClient begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
1566
-
//internal version: replace useClient end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
Copy file name to clipboardExpand all lines: tencentcloud/internal/helper/transform.go
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -271,8 +271,13 @@ func StrToBool(s string) (i bool) {
271
271
return
272
272
}
273
273
274
-
//internal version: replace boolStr begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
275
-
//internal version: replace boolStr end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
//internal version: replace envYunti begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
124
-
//internal version: replace envYunti end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
Description: "The root domain of the API request, Default is `tencentcloudapi.com`.",
193
192
},
194
-
//internal version: replace enableBpass begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
195
-
//internal version: replace enableBpass end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
//internal version: replace import begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
21
-
//internal version: replace import end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
22
-
23
21
varimportMysqlFlag=false
24
22
25
23
constInWindow=1
@@ -544,8 +542,9 @@ func mysqlCreateInstancePayByMonth(ctx context.Context, d *schema.ResourceData,
544
542
request:=cdb.NewCreateDBInstanceRequest()
545
543
clientToken:=helper.BuildToken()
546
544
request.ClientToken=&clientToken
547
-
//internal version: replace var begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
548
-
//internal version: replace var end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
//internal version: replace bpass begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
580
-
//internal version: replace bpass end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
@@ -586,8 +596,7 @@ func mysqlCreateInstancePayByMonth(ctx context.Context, d *schema.ResourceData,
586
596
}
587
597
588
598
response=r
589
-
//internal version: replace instanceId begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
590
-
//internal version: replace instanceId end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
599
+
instanceId=*response.Response.InstanceIds[0]
591
600
returnnil
592
601
})
593
602
@@ -599,9 +608,7 @@ func mysqlCreateInstancePayByMonth(ctx context.Context, d *schema.ResourceData,
599
608
iflen(response.Response.InstanceIds) !=1 {
600
609
returnfmt.Errorf("mysql CreateDBInstance return len(InstanceIds) is not 1,but %d", len(response.Response.InstanceIds))
601
610
}
602
-
//internal version: replace setId begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
603
-
d.SetId(*response.Response.InstanceIds[0])
604
-
//internal version: replace setId end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
611
+
d.SetId(instanceId)
605
612
returnnil
606
613
}
607
614
@@ -661,9 +668,9 @@ func resourceTencentCloudMysqlInstanceCreate(d *schema.ResourceData, meta interf
//internal version: replace mysqlServer begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
//internal version: replace mysqlServer end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
@@ -683,16 +690,22 @@ func resourceTencentCloudMysqlInstanceCreate(d *schema.ResourceData, meta interf
683
690
684
691
mysqlID:=d.Id()
685
692
686
-
//internal version: replace setTag begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
//internal version: replace setTag end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
@@ -1273,8 +1286,7 @@ func mysqlAllInstanceRoleUpdate(ctx context.Context, d *schema.ResourceData, met
1273
1286
iferr!=nil {
1274
1287
returnerr
1275
1288
}
1276
-
//internal version: replace waitTag begin, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
1277
-
//internal version: replace waitTag end, please do not modify this annotation and refrain from inserting any code between the beginning and end lines of the annotation.
0 commit comments