Skip to content

Commit cce9484

Browse files
fix: test case
1 parent 969d335 commit cce9484

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

volcengine-java-sdk-vpn/src/main/java/com/volcengine/vpn/examples/TestCreateVpnGateway.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import com.volcengine.vpn.VpnApi;
1111
import com.volcengine.vpn.model.*;
1212

13+
import static com.volcengine.vpn.model.CreateVpnGatewayRequest.PeriodUnitEnum.MONTH;
14+
1315

1416
public class TestCreateVpnGateway {
1517
public static void main(String[] args) throws Exception {
@@ -28,7 +30,7 @@ public static void main(String[] args) throws Exception {
2830
createVpnGatewayRequest.setBillingType(1);
2931
createVpnGatewayRequest.setDescription("test");
3032
createVpnGatewayRequest.setPeriod(1);
31-
createVpnGatewayRequest.setPeriodUnit("Month");
33+
createVpnGatewayRequest.setPeriodUnit(MONTH);
3234
createVpnGatewayRequest.setSubnetId("subnet-2fewbgn7jbk0059gp67ap****");
3335
createVpnGatewayRequest.setVpcId("vpc-12bhs1ivo6p6o17q7y2x3****");
3436
createVpnGatewayRequest.setVpnGatewayName("test");

0 commit comments

Comments
 (0)