@@ -72,8 +72,8 @@ func NewTencentCloudClient(secretId, secretKey, securityToken, region string) *T
72
72
}
73
73
}
74
74
75
- // newTencentCloudClientProfile returns a new ClientProfile
76
- func newTencentCloudClientProfile (timeout int ) * profile.ClientProfile {
75
+ // NewTencentCloudClientProfile returns a new ClientProfile
76
+ func NewTencentCloudClientProfile (timeout int ) * profile.ClientProfile {
77
77
cpf := profile .NewClientProfile ()
78
78
79
79
// all request use method POST
@@ -118,7 +118,7 @@ func (me *TencentCloudClient) UseMysqlClient() *cdb.Client {
118
118
return me .mysqlConn
119
119
}
120
120
121
- cpf := newTencentCloudClientProfile (300 )
121
+ cpf := NewTencentCloudClientProfile (300 )
122
122
me .mysqlConn , _ = cdb .NewClient (me .Credential , me .Region , cpf )
123
123
me .mysqlConn .WithHttpTransport (& LogRoundTripper {})
124
124
@@ -131,7 +131,7 @@ func (me *TencentCloudClient) UseRedisClient() *redis.Client {
131
131
return me .redisConn
132
132
}
133
133
134
- cpf := newTencentCloudClientProfile (300 )
134
+ cpf := NewTencentCloudClientProfile (300 )
135
135
me .redisConn , _ = redis .NewClient (me .Credential , me .Region , cpf )
136
136
me .redisConn .WithHttpTransport (& LogRoundTripper {})
137
137
@@ -144,7 +144,7 @@ func (me *TencentCloudClient) UseAsClient() *as.Client {
144
144
return me .asConn
145
145
}
146
146
147
- cpf := newTencentCloudClientProfile (300 )
147
+ cpf := NewTencentCloudClientProfile (300 )
148
148
me .asConn , _ = as .NewClient (me .Credential , me .Region , cpf )
149
149
me .asConn .WithHttpTransport (& LogRoundTripper {})
150
150
@@ -157,7 +157,7 @@ func (me *TencentCloudClient) UseVpcClient() *vpc.Client {
157
157
return me .vpcConn
158
158
}
159
159
160
- cpf := newTencentCloudClientProfile (300 )
160
+ cpf := NewTencentCloudClientProfile (300 )
161
161
me .vpcConn , _ = vpc .NewClient (me .Credential , me .Region , cpf )
162
162
me .vpcConn .WithHttpTransport (& LogRoundTripper {})
163
163
@@ -170,7 +170,7 @@ func (me *TencentCloudClient) UseCbsClient() *cbs.Client {
170
170
return me .cbsConn
171
171
}
172
172
173
- cpf := newTencentCloudClientProfile (300 )
173
+ cpf := NewTencentCloudClientProfile (300 )
174
174
me .cbsConn , _ = cbs .NewClient (me .Credential , me .Region , cpf )
175
175
me .cbsConn .WithHttpTransport (& LogRoundTripper {})
176
176
@@ -183,7 +183,7 @@ func (me *TencentCloudClient) UseDcClient() *dc.Client {
183
183
return me .dcConn
184
184
}
185
185
186
- cpf := newTencentCloudClientProfile (300 )
186
+ cpf := NewTencentCloudClientProfile (300 )
187
187
me .dcConn , _ = dc .NewClient (me .Credential , me .Region , cpf )
188
188
me .dcConn .WithHttpTransport (& LogRoundTripper {})
189
189
@@ -196,7 +196,7 @@ func (me *TencentCloudClient) UseMongodbClient() *mongodb.Client {
196
196
return me .mongodbConn
197
197
}
198
198
199
- cpf := newTencentCloudClientProfile (300 )
199
+ cpf := NewTencentCloudClientProfile (300 )
200
200
me .mongodbConn , _ = mongodb .NewClient (me .Credential , me .Region , cpf )
201
201
me .mongodbConn .WithHttpTransport (& LogRoundTripper {})
202
202
@@ -209,7 +209,7 @@ func (me *TencentCloudClient) UseClbClient() *clb.Client {
209
209
return me .clbConn
210
210
}
211
211
212
- cpf := newTencentCloudClientProfile (300 )
212
+ cpf := NewTencentCloudClientProfile (300 )
213
213
me .clbConn , _ = clb .NewClient (me .Credential , me .Region , cpf )
214
214
me .clbConn .WithHttpTransport (& LogRoundTripper {})
215
215
@@ -222,7 +222,7 @@ func (me *TencentCloudClient) UseCvmClient() *cvm.Client {
222
222
return me .cvmConn
223
223
}
224
224
225
- cpf := newTencentCloudClientProfile (300 )
225
+ cpf := NewTencentCloudClientProfile (300 )
226
226
me .cvmConn , _ = cvm .NewClient (me .Credential , me .Region , cpf )
227
227
me .cvmConn .WithHttpTransport (& LogRoundTripper {})
228
228
@@ -235,7 +235,7 @@ func (me *TencentCloudClient) UseTagClient() *tag.Client {
235
235
return me .tagConn
236
236
}
237
237
238
- cpf := newTencentCloudClientProfile (300 )
238
+ cpf := NewTencentCloudClientProfile (300 )
239
239
me .tagConn , _ = tag .NewClient (me .Credential , me .Region , cpf )
240
240
me .tagConn .WithHttpTransport (& LogRoundTripper {})
241
241
@@ -248,7 +248,7 @@ func (me *TencentCloudClient) UseTkeClient() *tke.Client {
248
248
return me .tkeConn
249
249
}
250
250
251
- cpf := newTencentCloudClientProfile (300 )
251
+ cpf := NewTencentCloudClientProfile (300 )
252
252
me .tkeConn , _ = tke .NewClient (me .Credential , me .Region , cpf )
253
253
me .tkeConn .WithHttpTransport (& LogRoundTripper {})
254
254
@@ -261,7 +261,7 @@ func (me *TencentCloudClient) UseGaapClient() *gaap.Client {
261
261
return me .gaapConn
262
262
}
263
263
264
- cpf := newTencentCloudClientProfile (300 )
264
+ cpf := NewTencentCloudClientProfile (300 )
265
265
me .gaapConn , _ = gaap .NewClient (me .Credential , me .Region , cpf )
266
266
me .gaapConn .WithHttpTransport (& LogRoundTripper {})
267
267
@@ -274,7 +274,7 @@ func (me *TencentCloudClient) UseSslClient() *ssl.Client {
274
274
return me .sslConn
275
275
}
276
276
277
- cpf := newTencentCloudClientProfile (300 )
277
+ cpf := NewTencentCloudClientProfile (300 )
278
278
me .sslConn , _ = ssl .NewClient (me .Credential , me .Region , cpf )
279
279
me .sslConn .WithHttpTransport (& LogRoundTripper {})
280
280
@@ -287,7 +287,7 @@ func (me *TencentCloudClient) UseCamClient() *cam.Client {
287
287
return me .camConn
288
288
}
289
289
290
- cpf := newTencentCloudClientProfile (300 )
290
+ cpf := NewTencentCloudClientProfile (300 )
291
291
me .camConn , _ = cam .NewClient (me .Credential , me .Region , cpf )
292
292
me .camConn .WithHttpTransport (& LogRoundTripper {})
293
293
@@ -300,7 +300,7 @@ func (me *TencentCloudClient) UseCfsClient() *cfs.Client {
300
300
return me .cfsConn
301
301
}
302
302
303
- cpf := newTencentCloudClientProfile (300 )
303
+ cpf := NewTencentCloudClientProfile (300 )
304
304
me .cfsConn , _ = cfs .NewClient (me .Credential , me .Region , cpf )
305
305
me .cfsConn .WithHttpTransport (& LogRoundTripper {})
306
306
@@ -313,7 +313,7 @@ func (me *TencentCloudClient) UseScfClient() *scf.Client {
313
313
return me .scfConn
314
314
}
315
315
316
- cpf := newTencentCloudClientProfile (300 )
316
+ cpf := NewTencentCloudClientProfile (300 )
317
317
me .scfConn , _ = scf .NewClient (me .Credential , me .Region , cpf )
318
318
me .scfConn .WithHttpTransport (& LogRoundTripper {})
319
319
@@ -326,7 +326,7 @@ func (me *TencentCloudClient) UseTcaplusClient() *tcaplusdb.Client {
326
326
return me .tcaplusConn
327
327
}
328
328
329
- cpf := newTencentCloudClientProfile (300 )
329
+ cpf := NewTencentCloudClientProfile (300 )
330
330
me .tcaplusConn , _ = tcaplusdb .NewClient (me .Credential , me .Region , cpf )
331
331
me .tcaplusConn .WithHttpTransport (& LogRoundTripper {})
332
332
@@ -339,7 +339,7 @@ func (me *TencentCloudClient) UseDayuClient() *dayu.Client {
339
339
return me .dayuConn
340
340
}
341
341
342
- cpf := newTencentCloudClientProfile (300 )
342
+ cpf := NewTencentCloudClientProfile (300 )
343
343
me .dayuConn , _ = dayu .NewClient (me .Credential , me .Region , cpf )
344
344
me .dayuConn .WithHttpTransport (& LogRoundTripper {})
345
345
@@ -352,7 +352,7 @@ func (me *TencentCloudClient) UseCdnClient() *cdn.Client {
352
352
return me .cdnConn
353
353
}
354
354
355
- cpf := newTencentCloudClientProfile (300 )
355
+ cpf := NewTencentCloudClientProfile (300 )
356
356
me .cdnConn , _ = cdn .NewClient (me .Credential , me .Region , cpf )
357
357
me .cdnConn .WithHttpTransport (& LogRoundTripper {})
358
358
@@ -365,7 +365,7 @@ func (me *TencentCloudClient) UseMonitorClient() *monitor.Client {
365
365
return me .monitorConn
366
366
}
367
367
368
- cpf := newTencentCloudClientProfile (300 )
368
+ cpf := NewTencentCloudClientProfile (300 )
369
369
me .monitorConn , _ = monitor .NewClient (me .Credential , me .Region , cpf )
370
370
me .monitorConn .WithHttpTransport (& LogRoundTripper {})
371
371
0 commit comments