Skip to content

Commit

Permalink
feat/csip
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenEarth committed Jan 26, 2024
1 parent ceb8442 commit 25d920e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tencentcloud/connectivity/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1387,8 +1387,8 @@ func (me *TencentCloudClient) UseCsipClient() *csip.Client {

cpf := me.NewClientProfile(300)
cpf.Language = "zh-CN"
me.cdwpgConn, _ = cdwpg.NewClient(me.Credential, me.Region, cpf)
me.cdwpgConn.WithHttpTransport(&LogRoundTripper{})
me.csipConn, _ = csip.NewClient(me.Credential, me.Region, cpf)
me.csipConn.WithHttpTransport(&LogRoundTripper{})

return me.csipConn
}
Expand Down
4 changes: 4 additions & 0 deletions tencentcloud/services/csip/service_tencentcloud_csip.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/ratelimit"
)

func NewCsipService(client *connectivity.TencentCloudClient) CsipService {
return CsipService{client: client}
}

type CsipService struct {
client *connectivity.TencentCloudClient
}
Expand Down
11 changes: 11 additions & 0 deletions tencentcloud/services/csip/tencentcloud_sweeper_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package csip_test

import (
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestMain(m *testing.M) {
resource.TestMain(m)
}

0 comments on commit 25d920e

Please sign in to comment.