@@ -1552,7 +1552,7 @@ func (me *TeoService) DescribeTeoL4ProxyRuleById(ctx context.Context, zoneId str
1552
1552
request := teov20220901 .NewDescribeL4ProxyRulesRequest ()
1553
1553
request .ZoneId = helper .String (zoneId )
1554
1554
request .ProxyId = helper .String (proxyId )
1555
- filter := & teov20220901 .Filter {
1555
+ filter := & teo .Filter {
1556
1556
Name : helper .String ("rule-id" ),
1557
1557
Values : []* string {helper .String (ruleId )},
1558
1558
}
@@ -1574,7 +1574,7 @@ func (me *TeoService) DescribeTeoL4ProxyRuleById(ctx context.Context, zoneId str
1574
1574
for {
1575
1575
request .Offset = & offset
1576
1576
request .Limit = & limit
1577
- response := teov20220901 .NewDescribeL4ProxyRulesResponse ()
1577
+ response := teo .NewDescribeL4ProxyRulesResponse ()
1578
1578
err := resource .Retry (tccommon .ReadRetryTimeout , func () * resource.RetryError {
1579
1579
result , e := me .client .UseTeoClient ().DescribeL4ProxyRules (request )
1580
1580
if e != nil {
@@ -1646,11 +1646,11 @@ func (me *TeoService) DescribeTeoL7AccRuleById(ctx context.Context, zoneId strin
1646
1646
return
1647
1647
}
1648
1648
1649
- func (me * TeoService ) DescribeTeoSecurityPolicyConfigById (ctx context.Context , zoneId , entity , host , templateId string ) (ret * teov20220901 .SecurityPolicy , errRet error ) {
1649
+ func (me * TeoService ) DescribeTeoSecurityPolicyConfigById (ctx context.Context , zoneId , entity , host , templateId string ) (ret * teo .SecurityPolicy , errRet error ) {
1650
1650
logId := tccommon .GetLogId (ctx )
1651
1651
1652
- request := teov20220901 .NewDescribeSecurityPolicyRequest ()
1653
- response := teov20220901 .NewDescribeSecurityPolicyResponse ()
1652
+ request := teo .NewDescribeSecurityPolicyRequest ()
1653
+ response := teo .NewDescribeSecurityPolicyResponse ()
1654
1654
request .ZoneId = & zoneId
1655
1655
request .Entity = & entity
1656
1656
if host != "" {
@@ -1719,7 +1719,7 @@ func (me *TeoService) DescribeTeoZonesByFilter(ctx context.Context, param map[st
1719
1719
for {
1720
1720
request .Offset = & offset
1721
1721
request .Limit = & limit
1722
- response := teov20220901 .NewDescribeZonesResponse ()
1722
+ response := teo .NewDescribeZonesResponse ()
1723
1723
err := resource .Retry (tccommon .ReadRetryTimeout , func () * resource.RetryError {
1724
1724
result , e := me .client .UseTeoClient ().DescribeZones (request )
1725
1725
if e != nil {
@@ -1766,7 +1766,7 @@ func (me *TeoService) TeoL7AccRuleStateRefreshFunc(zoneId, taskId string, failSt
1766
1766
if len (failStates ) > 0 {
1767
1767
for _ , state := range failStates {
1768
1768
if strings .Contains (status , state ) {
1769
- return object , status , fmt .Errorf ("teov20220901 [%s] sync check task[%s] failed, status is on [%s], return..." , zoneId , taskId , status )
1769
+ return object , status , fmt .Errorf ("teo [%s] sync check task[%s] failed, status is on [%s], return..." , zoneId , taskId , status )
1770
1770
}
1771
1771
}
1772
1772
}
0 commit comments