@@ -43,6 +43,7 @@ def __init__(self,regionId, natGatewayName, vpcId, subnetId, ):
4343 self .regionId = regionId
4444 self .natGatewayName = natGatewayName
4545 self .natGatewaySpec = None
46+ self .networkType = None
4647 self .vpcId = vpcId
4748 self .subnetId = subnetId
4849 self .azIpSpecs = None
@@ -54,13 +55,23 @@ def __init__(self,regionId, natGatewayName, vpcId, subnetId, ):
5455 self .description = None
5556 self .userTags = None
5657 self .resourceGroupId = None
58+ self .resourceTag = None
5759
5860 def setNatGatewaySpec (self , natGatewaySpec ):
5961 """
6062 :param natGatewaySpec: (Optional) NAT网关规格,取值small(100万并发连接数),medium(300万并发连接数),large(1000万并发连接数),默认small
6163 """
6264 self .natGatewaySpec = natGatewaySpec
6365
66+ def setNetworkType (self , networkType ):
67+ """
68+ :param networkType: (Optional) 创建的 NAT 网关类型,可不填,取值:
69+ - internet:公网 NAT 网关(默认值/不填时默认值)。
70+ - intranet:VPC NAT 网关。
71+
72+ """
73+ self .networkType = networkType
74+
6475 def setAzIpSpecs (self , azIpSpecs ):
6576 """
6677 :param azIpSpecs: (Optional) NAT网关的可用区属性,即将废弃
@@ -69,7 +80,7 @@ def setAzIpSpecs(self, azIpSpecs):
6980
7081 def setAzs (self , azs ):
7182 """
72- :param azs: (Optional) NAT网关可用区
83+ :param azs: (Optional) NAT网关可用区,目前仅支持单个可用区(例如 ["cn-north-1a"])
7384 """
7485 self .azs = azs
7586
@@ -93,7 +104,7 @@ def setElasticIpSpec(self, elasticIpSpec):
93104
94105 def setNatGatewayCharge (self , natGatewayCharge ):
95106 """
96- :param natGatewayCharge: (Optional) 计费配置,仅支持按配置,默认按配置
107+ :param natGatewayCharge: (Optional) 计费配置,公网 NAT 仅支持按配置,VPC NAT 仅支持按用量 ,默认按配置
97108 """
98109 self .natGatewayCharge = natGatewayCharge
99110
@@ -115,3 +126,9 @@ def setResourceGroupId(self, resourceGroupId):
115126 """
116127 self .resourceGroupId = resourceGroupId
117128
129+ def setResourceTag (self , resourceTag ):
130+ """
131+ :param resourceTag: (Optional) 物理资源专区, 仅内部使用[JDStack]
132+ """
133+ self .resourceTag = resourceTag
134+
0 commit comments