Skip to content

Commit ef7b20c

Browse files
committed
add
1 parent f83afbf commit ef7b20c

6 files changed

+449
-0
lines changed

tencentcloud/connectivity/client.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ type TencentCloudClient struct {
225225
wafv20180125Conn *waf.Client
226226
camv20190116Conn *cam.Client
227227
clsv20201016Conn *cls.Client
228+
postgresqlv20170312Conn *postgre.Client
228229
}
229230

230231
// NewClientProfile returns a new ClientProfile
@@ -2002,3 +2003,16 @@ func (me *TencentCloudClient) UseClsV20201016Client() *cls.Client {
20022003

20032004
return me.clsv20201016Conn
20042005
}
2006+
2007+
// UsePostgresqlV20170312Client return POSTGRESQL client for service
2008+
func (me *TencentCloudClient) UsePostgresqlV20170312Client() *postgre.Client {
2009+
if me.postgresqlv20170312Conn != nil {
2010+
return me.postgresqlv20170312Conn
2011+
}
2012+
cpf := me.NewClientProfile(300)
2013+
cpf.Language = "zh-CN"
2014+
me.postgresqlv20170312Conn, _ = postgre.NewClient(me.Credential, me.Region, cpf)
2015+
me.postgresqlv20170312Conn.WithHttpTransport(&LogRoundTripper{})
2016+
2017+
return me.postgresqlv20170312Conn
2018+
}

tencentcloud/services/postgresql/resource_tc_postgresql_instance_network_access.go

Lines changed: 338 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Provides a resource to create a postgres postgresql_instance_network_access
2+
3+
Example Usage
4+
5+
```hcl
6+
resource "tencentcloud_postgresql_instance_network_access" "postgresql_instance_network_access" {
7+
}
8+
```
9+
10+
Import
11+
12+
postgres postgresql_instance_network_access can be imported using the id, e.g.
13+
14+
```
15+
terraform import tencentcloud_postgresql_instance_network_access.postgresql_instance_network_access postgresql_instance_network_access_id
16+
```

0 commit comments

Comments
 (0)