Skip to content

fix(privatedns): [121355564] add new resource tencentcloud_private_dns_extend_end_point #3057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 8, 2025
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
3 changes: 3 additions & 0 deletions .changelog/3057.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
tencentcloud_private_dns_extend_end_point
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ require (
github.com/mozillazg/go-httpheader v0.4.0 // indirect
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.8.2
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.646+incompatible
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1114+incompatible
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/antiddos v1.0.799
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/api v1.0.285
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apigateway v1.0.763
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,10 @@ github.com/tdakkota/asciicheck v0.2.0 h1:o8jvnUANo0qXtnslk2d3nMKTFNlOnJjRrNcj0j9
github.com/tdakkota/asciicheck v0.2.0/go.mod h1:Qb7Y9EgjCLJGup51gDHFzbI08/gbGhL/UVhYIPWG2rg=
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.646+incompatible h1:C6knK+5LOkVTypyHsPj3njTYub6StITj6n4wmMBPS+8=
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.646+incompatible/go.mod h1:72Wo6Gt6F8d8V+njrAmduVoT9QjPwCyXktpqCWr7PUc=
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1113+incompatible h1:Vfzv2LeRMKRU3BGxFMnfaG7KvjLZP6fhwsM/i+FIovY=
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1113+incompatible/go.mod h1:72Wo6Gt6F8d8V+njrAmduVoT9QjPwCyXktpqCWr7PUc=
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1114+incompatible h1:Qo2u4QpYzsrrTedOFmNyDIghJMsFSa/Dn3HfnTWtTfs=
github.com/tencentcloud/tencentcloud-sdk-go-intl-en v3.0.1114+incompatible/go.mod h1:72Wo6Gt6F8d8V+njrAmduVoT9QjPwCyXktpqCWr7PUc=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/antiddos v1.0.799 h1:u49r1bGFDY0CeAF46iotNnLtc5yplPf9XXa7W7zJ4fE=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/antiddos v1.0.799/go.mod h1:JQa/Ess7Kkn/BuAugq0Tt5GJR7ZQAY47ypP9LjEn/DE=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/api v1.0.285 h1:gFmukRGLtYiXVBVvg/5DP/0fM1+dKpwDjT+khtDVLmc=
Expand Down
43 changes: 29 additions & 14 deletions tencentcloud/connectivity/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/aws/aws-sdk-go/service/s3"
intlProfile "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/common/profile"
mdl "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/mdl/v20200326"
privatednsIntl "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028"
antiddos "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/antiddos/v20200309"
api "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/api/v20201106"
apigateway "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apigateway/v20180808"
Expand Down Expand Up @@ -212,20 +213,21 @@ type TencentCloudClient struct {
controlcenterConn *controlcenter.Client
thpcConn *thpc.Client
//omit nil client
omitNilConn *common.Client
emrv20190103Conn *emr.Client
teov20220901Conn *teo.Client
sslv20191205Conn *sslCertificate.Client
postgresv20170312Conn *postgre.Client
cfwv20190904Conn *cfw.Client
ccnv20170312Conn *vpc.Client
tcssv20201101Conn *tcss.Client
cloudauditv20190319Conn *audit.Client
privatednsv20201028Conn *privatedns.Client
wafv20180125Conn *waf.Client
camv20190116Conn *cam.Client
clsv20201016Conn *cls.Client
monitor20180724Conn *monitor.Client
omitNilConn *common.Client
emrv20190103Conn *emr.Client
teov20220901Conn *teo.Client
sslv20191205Conn *sslCertificate.Client
postgresv20170312Conn *postgre.Client
cfwv20190904Conn *cfw.Client
ccnv20170312Conn *vpc.Client
tcssv20201101Conn *tcss.Client
cloudauditv20190319Conn *audit.Client
privatednsv20201028Conn *privatedns.Client
privatednsIntlv20201028Conn *privatednsIntl.Client
wafv20180125Conn *waf.Client
camv20190116Conn *cam.Client
clsv20201016Conn *cls.Client
monitor20180724Conn *monitor.Client
}

// NewClientProfile returns a new ClientProfile
Expand Down Expand Up @@ -1965,6 +1967,19 @@ func (me *TencentCloudClient) UsePrivatednsV20201028Client() *privatedns.Client
return me.privatednsv20201028Conn
}

// UsePrivatednsV20201028Client return PRIVATEDNS Intl client for service
func (me *TencentCloudClient) UsePrivatednsIntlV20201028Client() *privatednsIntl.Client {
if me.privatednsIntlv20201028Conn != nil {
return me.privatednsIntlv20201028Conn
}
cpf := me.NewClientIntlProfile(300)
cpf.Language = "zh-CN"
me.privatednsIntlv20201028Conn, _ = privatednsIntl.NewClient(me.Credential, me.Region, cpf)
me.privatednsIntlv20201028Conn.WithHttpTransport(&LogRoundTripper{})

return me.privatednsIntlv20201028Conn
}

// UseWafV20180125Client return WAF client for service
func (me *TencentCloudClient) UseWafV20180125Client() *waf.Client {
if me.wafv20180125Conn != nil {
Expand Down
1 change: 1 addition & 0 deletions tencentcloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,7 @@ func Provider() *schema.Provider {
"tencentcloud_subscribe_private_zone_service": privatedns.ResourceTencentCloudSubscribePrivateZoneService(),
"tencentcloud_private_dns_forward_rule": privatedns.ResourceTencentCloudPrivateDnsForwardRule(),
"tencentcloud_private_dns_end_point": privatedns.ResourceTencentCloudPrivateDnsEndPoint(),
"tencentcloud_private_dns_extend_end_point": privatedns.ResourceTencentCloudPrivateDnsExtendEndPoint(),
"tencentcloud_cls_logset": cls.ResourceTencentCloudClsLogset(),
"tencentcloud_cls_topic": cls.ResourceTencentCloudClsTopic(),
"tencentcloud_cls_config": cls.ResourceTencentCloudClsConfig(),
Expand Down
2 changes: 2 additions & 0 deletions tencentcloud/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,8 @@ PrivateDNS
tencentcloud_subscribe_private_zone_service
tencentcloud_private_dns_forward_rule
tencentcloud_private_dns_end_point
tencentcloud_private_dns_extend_end_point

Data Source
tencentcloud_private_dns_records
tencentcloud_private_dns_private_zone_list
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"fmt"
"log"

privatednsv20201028 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/privatedns/v20201028"
privatednsIntlv20201028 "github.com/tencentcloud/tencentcloud-sdk-go-intl-en/tencentcloud/privatedns/v20201028"
tccommon "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/common"
)

func resourceTencentCloudPrivateDnsEndPointReadPreHandleResponse0(ctx context.Context, resp *privatednsv20201028.DescribeEndPointListResponseParams) error {
func resourceTencentCloudPrivateDnsEndPointReadPreHandleResponse0(ctx context.Context, resp *privatednsIntlv20201028.DescribeEndPointListResponseParams) error {
logId := tccommon.GetLogId(ctx)
d := tccommon.ResourceDataFromContext(ctx)
if d == nil {
Expand Down
Loading
Loading