Skip to content

Commit dc12150

Browse files
author
mikatong
committed
update
1 parent a0de881 commit dc12150

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tencentcloud/services/teo/service_tencentcloud_teo.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ func (me *TeoService) DescribeTeoL4ProxyRuleById(ctx context.Context, zoneId str
15521552
request := teov20220901.NewDescribeL4ProxyRulesRequest()
15531553
request.ZoneId = helper.String(zoneId)
15541554
request.ProxyId = helper.String(proxyId)
1555-
filter := &teov20220901.Filter{
1555+
filter := &teo.Filter{
15561556
Name: helper.String("rule-id"),
15571557
Values: []*string{helper.String(ruleId)},
15581558
}
@@ -1574,7 +1574,7 @@ func (me *TeoService) DescribeTeoL4ProxyRuleById(ctx context.Context, zoneId str
15741574
for {
15751575
request.Offset = &offset
15761576
request.Limit = &limit
1577-
response := teov20220901.NewDescribeL4ProxyRulesResponse()
1577+
response := teo.NewDescribeL4ProxyRulesResponse()
15781578
err := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError {
15791579
result, e := me.client.UseTeoClient().DescribeL4ProxyRules(request)
15801580
if e != nil {
@@ -1646,11 +1646,11 @@ func (me *TeoService) DescribeTeoL7AccRuleById(ctx context.Context, zoneId strin
16461646
return
16471647
}
16481648

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) {
16501650
logId := tccommon.GetLogId(ctx)
16511651

1652-
request := teov20220901.NewDescribeSecurityPolicyRequest()
1653-
response := teov20220901.NewDescribeSecurityPolicyResponse()
1652+
request := teo.NewDescribeSecurityPolicyRequest()
1653+
response := teo.NewDescribeSecurityPolicyResponse()
16541654
request.ZoneId = &zoneId
16551655
request.Entity = &entity
16561656
if host != "" {
@@ -1719,7 +1719,7 @@ func (me *TeoService) DescribeTeoZonesByFilter(ctx context.Context, param map[st
17191719
for {
17201720
request.Offset = &offset
17211721
request.Limit = &limit
1722-
response := teov20220901.NewDescribeZonesResponse()
1722+
response := teo.NewDescribeZonesResponse()
17231723
err := resource.Retry(tccommon.ReadRetryTimeout, func() *resource.RetryError {
17241724
result, e := me.client.UseTeoClient().DescribeZones(request)
17251725
if e != nil {
@@ -1766,7 +1766,7 @@ func (me *TeoService) TeoL7AccRuleStateRefreshFunc(zoneId, taskId string, failSt
17661766
if len(failStates) > 0 {
17671767
for _, state := range failStates {
17681768
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)
17701770
}
17711771
}
17721772
}

0 commit comments

Comments
 (0)