@@ -10,6 +10,7 @@ import (
10
10
11
11
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
12
12
teo "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo/v20220901"
13
+ teov20220901 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo/v20220901"
13
14
14
15
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/connectivity"
15
16
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
@@ -1545,13 +1546,13 @@ func (me *TeoService) DescribeTeoL7AccSettingById(ctx context.Context, zoneId st
1545
1546
return
1546
1547
}
1547
1548
1548
- func (me * TeoService ) DescribeTeoL4ProxyRuleById (ctx context.Context , zoneId string , proxyId string , ruleId string ) (ret * teo .L4ProxyRule , errRet error ) {
1549
+ func (me * TeoService ) DescribeTeoL4ProxyRuleById (ctx context.Context , zoneId string , proxyId string , ruleId string ) (ret * teov20220901 .L4ProxyRule , errRet error ) {
1549
1550
logId := tccommon .GetLogId (ctx )
1550
1551
1551
- request := teo .NewDescribeL4ProxyRulesRequest ()
1552
+ request := teov20220901 .NewDescribeL4ProxyRulesRequest ()
1552
1553
request .ZoneId = helper .String (zoneId )
1553
1554
request .ProxyId = helper .String (proxyId )
1554
- filter := & teo .Filter {
1555
+ filter := & teov20220901 .Filter {
1555
1556
Name : helper .String ("rule-id" ),
1556
1557
Values : []* string {helper .String (ruleId )},
1557
1558
}
@@ -1569,11 +1570,11 @@ func (me *TeoService) DescribeTeoL4ProxyRuleById(ctx context.Context, zoneId str
1569
1570
offset uint64 = 0
1570
1571
limit int64 = 20
1571
1572
)
1572
- var instances []* teo .L4ProxyRule
1573
+ var instances []* teov20220901 .L4ProxyRule
1573
1574
for {
1574
1575
request .Offset = & offset
1575
1576
request .Limit = & limit
1576
- response := teo .NewDescribeL4ProxyRulesResponse ()
1577
+ response := teov20220901 .NewDescribeL4ProxyRulesResponse ()
1577
1578
err := resource .Retry (tccommon .ReadRetryTimeout , func () * resource.RetryError {
1578
1579
result , e := me .client .UseTeoClient ().DescribeL4ProxyRules (request )
1579
1580
if e != nil {
@@ -1607,11 +1608,11 @@ func (me *TeoService) DescribeTeoL4ProxyRuleById(ctx context.Context, zoneId str
1607
1608
return
1608
1609
}
1609
1610
1610
- func (me * TeoService ) DescribeTeoL7AccRuleById (ctx context.Context , zoneId string ) (ret * teo .DescribeL7AccRulesResponseParams , errRet error ) {
1611
+ func (me * TeoService ) DescribeTeoL7AccRuleById (ctx context.Context , zoneId string ) (ret * teov20220901 .DescribeL7AccRulesResponseParams , errRet error ) {
1611
1612
logId := tccommon .GetLogId (ctx )
1612
1613
1613
- request := teo .NewDescribeL7AccRulesRequest ()
1614
- response := teo .NewDescribeL7AccRulesResponse ()
1614
+ request := teov20220901 .NewDescribeL7AccRulesRequest ()
1615
+ response := teov20220901 .NewDescribeL7AccRulesResponse ()
1615
1616
request .ZoneId = helper .String (zoneId )
1616
1617
1617
1618
defer func () {
@@ -1645,11 +1646,11 @@ func (me *TeoService) DescribeTeoL7AccRuleById(ctx context.Context, zoneId strin
1645
1646
return
1646
1647
}
1647
1648
1648
- func (me * TeoService ) DescribeTeoSecurityPolicyConfigById (ctx context.Context , zoneId , entity , host , templateId string ) (ret * teo .SecurityPolicy , errRet error ) {
1649
+ func (me * TeoService ) DescribeTeoSecurityPolicyConfigById (ctx context.Context , zoneId , entity , host , templateId string ) (ret * teov20220901 .SecurityPolicy , errRet error ) {
1649
1650
logId := tccommon .GetLogId (ctx )
1650
1651
1651
- request := teo .NewDescribeSecurityPolicyRequest ()
1652
- response := teo .NewDescribeSecurityPolicyResponse ()
1652
+ request := teov20220901 .NewDescribeSecurityPolicyRequest ()
1653
+ response := teov20220901 .NewDescribeSecurityPolicyResponse ()
1653
1654
request .ZoneId = & zoneId
1654
1655
request .Entity = & entity
1655
1656
if host != "" {
@@ -1685,10 +1686,10 @@ func (me *TeoService) DescribeTeoSecurityPolicyConfigById(ctx context.Context, z
1685
1686
return
1686
1687
}
1687
1688
1688
- func (me * TeoService ) DescribeTeoZonesByFilter (ctx context.Context , param map [string ]interface {}) (ret []* teo .Zone , errRet error ) {
1689
+ func (me * TeoService ) DescribeTeoZonesByFilter (ctx context.Context , param map [string ]interface {}) (ret []* teov20220901 .Zone , errRet error ) {
1689
1690
var (
1690
1691
logId = tccommon .GetLogId (ctx )
1691
- request = teo .NewDescribeZonesRequest ()
1692
+ request = teov20220901 .NewDescribeZonesRequest ()
1692
1693
)
1693
1694
1694
1695
defer func () {
@@ -1699,7 +1700,7 @@ func (me *TeoService) DescribeTeoZonesByFilter(ctx context.Context, param map[st
1699
1700
1700
1701
for k , v := range param {
1701
1702
if k == "Filters" {
1702
- request .Filters = v .([]* teo .AdvancedFilter )
1703
+ request .Filters = v .([]* teov20220901 .AdvancedFilter )
1703
1704
}
1704
1705
if k == "Order" {
1705
1706
request .Order = v .(* string )
@@ -1718,7 +1719,7 @@ func (me *TeoService) DescribeTeoZonesByFilter(ctx context.Context, param map[st
1718
1719
for {
1719
1720
request .Offset = & offset
1720
1721
request .Limit = & limit
1721
- response := teo .NewDescribeZonesResponse ()
1722
+ response := teov20220901 .NewDescribeZonesResponse ()
1722
1723
err := resource .Retry (tccommon .ReadRetryTimeout , func () * resource.RetryError {
1723
1724
result , e := me .client .UseTeoClient ().DescribeZones (request )
1724
1725
if e != nil {
@@ -1749,7 +1750,7 @@ func (me *TeoService) DescribeTeoZonesByFilter(ctx context.Context, param map[st
1749
1750
1750
1751
func (me * TeoService ) TeoL7AccRuleStateRefreshFunc (zoneId , taskId string , failStates []string ) resource.StateRefreshFunc {
1751
1752
return func () (interface {}, string , error ) {
1752
- request := teo .NewDescribeZoneConfigImportResultRequest ()
1753
+ request := teov20220901 .NewDescribeZoneConfigImportResultRequest ()
1753
1754
request .ZoneId = helper .String (zoneId )
1754
1755
request .TaskId = helper .String (taskId )
1755
1756
ratelimit .Check (request .GetAction ())
@@ -1765,7 +1766,7 @@ func (me *TeoService) TeoL7AccRuleStateRefreshFunc(zoneId, taskId string, failSt
1765
1766
if len (failStates ) > 0 {
1766
1767
for _ , state := range failStates {
1767
1768
if strings .Contains (status , state ) {
1768
- return object , status , fmt .Errorf ("teo [%s] sync check task[%s] failed, status is on [%s], return..." , zoneId , taskId , status )
1769
+ return object , status , fmt .Errorf ("teov20220901 [%s] sync check task[%s] failed, status is on [%s], return..." , zoneId , taskId , status )
1769
1770
}
1770
1771
}
1771
1772
}
@@ -1774,12 +1775,12 @@ func (me *TeoService) TeoL7AccRuleStateRefreshFunc(zoneId, taskId string, failSt
1774
1775
}
1775
1776
}
1776
1777
1777
- func (me * TeoService ) DescribeTeoDnsRecordById (ctx context.Context , zoneId , recordId string ) (ret * teo .DnsRecord , errRet error ) {
1778
+ func (me * TeoService ) DescribeTeoDnsRecordById (ctx context.Context , zoneId , recordId string ) (ret * teov20220901 .DnsRecord , errRet error ) {
1778
1779
logId := tccommon .GetLogId (ctx )
1779
1780
1780
- request := teo .NewDescribeDnsRecordsRequest ()
1781
+ request := teov20220901 .NewDescribeDnsRecordsRequest ()
1781
1782
request .ZoneId = helper .String (zoneId )
1782
- request .Filters = []* teo .AdvancedFilter {
1783
+ request .Filters = []* teov20220901 .AdvancedFilter {
1783
1784
{
1784
1785
Name : helper .String ("id" ),
1785
1786
Values : helper .Strings ([]string {recordId }),
0 commit comments