Skip to content

Commit 01694ef

Browse files
committed
fix: modify vpn gw change
1 parent 0f30e79 commit 01694ef

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

tencentcloud/services/apigateway/data_source_tc_api_gateway_api_app_api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ func DataSourceTencentCloudApiGatewayApiAppApi() *schema.Resource {
9595
Description: "API authentication type. Possible values are SECRET (key pair authentication), NONE (authentication-free), and OAUTH.",
9696
},
9797
"api_business_type": {
98-
Type: schema.TypeString,
99-
Computed: true,
98+
Type: schema.TypeString,
99+
Computed: true,
100100
Description: "Type of OAUTH API. Possible values are NORMAL (Business API), OAUTH (Authorization API).",
101101
},
102102
"auth_relation_api_id": {

tencentcloud/services/vpn/resource_tc_vpn_gateway.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ func resourceTencentCloudVpnGatewayRead(d *schema.ResourceData, meta interface{}
287287
_ = d.Set("type", gateway.Type)
288288
_ = d.Set("create_time", gateway.CreatedTime)
289289
_ = d.Set("state", gateway.State)
290-
_ = d.Set("prepaid_renew_flag", gateway.RenewFlag)
290+
if gateway.RenewFlag != nil {
291+
_ = d.Set("prepaid_renew_flag", *gateway.RenewFlag)
292+
} else {
293+
_ = d.Set("prepaid_renew_flag", svcvpc.VPN_PERIOD_PREPAID_RENEW_FLAG_AUTO_NOTIFY)
294+
}
291295
_ = d.Set("charge_type", gateway.InstanceChargeType)
292296
_ = d.Set("expired_time", gateway.ExpiredTime)
293297
_ = d.Set("is_address_blocked", gateway.IsAddressBlocked)

0 commit comments

Comments
 (0)