lib/v20170312/models.rb in tencentcloud-sdk-vpc-1.0.286 vs lib/v20170312/models.rb in tencentcloud-sdk-vpc-1.0.287
- old
+ new
@@ -1055,29 +1055,33 @@
# @type Zone: String
# @param StockPublicIpAddressesBandwidthOut: 绑定NAT网关的弹性IP带宽大小(单位Mbps),默认为当前用户类型所能使用的最大值。
# @type StockPublicIpAddressesBandwidthOut: Integer
# @param PublicIpAddressesBandwidthOut: 需要申请公网IP带宽大小(单位Mbps),默认为当前用户类型所能使用的最大值。
# @type PublicIpAddressesBandwidthOut: Integer
+ # @param PublicIpFromSameZone: 公网IP是否强制与NAT网关来自同可用区,true表示需要与NAT网关同可用区;false表示可与NAT网关不是同一个可用区。此参数只有当参数Zone存在时才能生效。
+ # @type PublicIpFromSameZone: Boolean
- attr_accessor :NatGatewayId, :AddressCount, :PublicIpAddresses, :Zone, :StockPublicIpAddressesBandwidthOut, :PublicIpAddressesBandwidthOut
+ attr_accessor :NatGatewayId, :AddressCount, :PublicIpAddresses, :Zone, :StockPublicIpAddressesBandwidthOut, :PublicIpAddressesBandwidthOut, :PublicIpFromSameZone
- def initialize(natgatewayid=nil, addresscount=nil, publicipaddresses=nil, zone=nil, stockpublicipaddressesbandwidthout=nil, publicipaddressesbandwidthout=nil)
+ def initialize(natgatewayid=nil, addresscount=nil, publicipaddresses=nil, zone=nil, stockpublicipaddressesbandwidthout=nil, publicipaddressesbandwidthout=nil, publicipfromsamezone=nil)
@NatGatewayId = natgatewayid
@AddressCount = addresscount
@PublicIpAddresses = publicipaddresses
@Zone = zone
@StockPublicIpAddressesBandwidthOut = stockpublicipaddressesbandwidthout
@PublicIpAddressesBandwidthOut = publicipaddressesbandwidthout
+ @PublicIpFromSameZone = publicipfromsamezone
end
def deserialize(params)
@NatGatewayId = params['NatGatewayId']
@AddressCount = params['AddressCount']
@PublicIpAddresses = params['PublicIpAddresses']
@Zone = params['Zone']
@StockPublicIpAddressesBandwidthOut = params['StockPublicIpAddressesBandwidthOut']
@PublicIpAddressesBandwidthOut = params['PublicIpAddressesBandwidthOut']
+ @PublicIpFromSameZone = params['PublicIpFromSameZone']
end
end
# AssociateNatGatewayAddress返回参数结构体
class AssociateNatGatewayAddressResponse < TencentCloud::Common::AbstractModel
@@ -3025,14 +3029,16 @@
# @type SubnetId: String
# @param StockPublicIpAddressesBandwidthOut: 绑定NAT网关的弹性IP带宽大小(单位Mbps),默认为当前用户类型所能使用的最大值。
# @type StockPublicIpAddressesBandwidthOut: Integer
# @param PublicIpAddressesBandwidthOut: 需要申请公网IP带宽大小(单位Mbps),默认为当前用户类型所能使用的最大值。
# @type PublicIpAddressesBandwidthOut: Integer
+ # @param PublicIpFromSameZone: 公网IP是否强制与NAT网关来自同可用区,true表示需要与NAT网关同可用区;false表示可与NAT网关不是同一个可用区。此参数只有当参数Zone存在时才能生效。
+ # @type PublicIpFromSameZone: Boolean
- attr_accessor :NatGatewayName, :VpcId, :InternetMaxBandwidthOut, :MaxConcurrentConnection, :AddressCount, :PublicIpAddresses, :Zone, :Tags, :SubnetId, :StockPublicIpAddressesBandwidthOut, :PublicIpAddressesBandwidthOut
+ attr_accessor :NatGatewayName, :VpcId, :InternetMaxBandwidthOut, :MaxConcurrentConnection, :AddressCount, :PublicIpAddresses, :Zone, :Tags, :SubnetId, :StockPublicIpAddressesBandwidthOut, :PublicIpAddressesBandwidthOut, :PublicIpFromSameZone
- def initialize(natgatewayname=nil, vpcid=nil, internetmaxbandwidthout=nil, maxconcurrentconnection=nil, addresscount=nil, publicipaddresses=nil, zone=nil, tags=nil, subnetid=nil, stockpublicipaddressesbandwidthout=nil, publicipaddressesbandwidthout=nil)
+ def initialize(natgatewayname=nil, vpcid=nil, internetmaxbandwidthout=nil, maxconcurrentconnection=nil, addresscount=nil, publicipaddresses=nil, zone=nil, tags=nil, subnetid=nil, stockpublicipaddressesbandwidthout=nil, publicipaddressesbandwidthout=nil, publicipfromsamezone=nil)
@NatGatewayName = natgatewayname
@VpcId = vpcid
@InternetMaxBandwidthOut = internetmaxbandwidthout
@MaxConcurrentConnection = maxconcurrentconnection
@AddressCount = addresscount
@@ -3040,10 +3046,11 @@
@Zone = zone
@Tags = tags
@SubnetId = subnetid
@StockPublicIpAddressesBandwidthOut = stockpublicipaddressesbandwidthout
@PublicIpAddressesBandwidthOut = publicipaddressesbandwidthout
+ @PublicIpFromSameZone = publicipfromsamezone
end
def deserialize(params)
@NatGatewayName = params['NatGatewayName']
@VpcId = params['VpcId']
@@ -3061,10 +3068,11 @@
end
end
@SubnetId = params['SubnetId']
@StockPublicIpAddressesBandwidthOut = params['StockPublicIpAddressesBandwidthOut']
@PublicIpAddressesBandwidthOut = params['PublicIpAddressesBandwidthOut']
+ @PublicIpFromSameZone = params['PublicIpFromSameZone']
end
end
# CreateNatGateway返回参数结构体
class CreateNatGatewayResponse < TencentCloud::Common::AbstractModel
@@ -12018,25 +12026,33 @@
# @type InternetMaxBandwidthOut: Integer
# @param InstanceChargeType: VPN网关计费模式,PREPAID:表示预付费,即包年包月,POSTPAID_BY_HOUR:表示后付费,即按量计费。默认:POSTPAID_BY_HOUR,如果指定预付费模式,参数InstanceChargePrepaid必填。
# @type InstanceChargeType: String
# @param InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。
# @type InstanceChargePrepaid: :class:`Tencentcloud::Vpc.v20170312.models.InstanceChargePrepaid`
+ # @param MaxConnection: SSL VPN连接数设置,可选规格:5, 10, 20, 50, 100;单位:个。
+ # @type MaxConnection: Integer
+ # @param Type: 查询的VPN类型,支持IPSEC和SSL两种类型,为SSL类型时,MaxConnection参数必传。
+ # @type Type: String
- attr_accessor :InternetMaxBandwidthOut, :InstanceChargeType, :InstanceChargePrepaid
+ attr_accessor :InternetMaxBandwidthOut, :InstanceChargeType, :InstanceChargePrepaid, :MaxConnection, :Type
- def initialize(internetmaxbandwidthout=nil, instancechargetype=nil, instancechargeprepaid=nil)
+ def initialize(internetmaxbandwidthout=nil, instancechargetype=nil, instancechargeprepaid=nil, maxconnection=nil, type=nil)
@InternetMaxBandwidthOut = internetmaxbandwidthout
@InstanceChargeType = instancechargetype
@InstanceChargePrepaid = instancechargeprepaid
+ @MaxConnection = maxconnection
+ @Type = type
end
def deserialize(params)
@InternetMaxBandwidthOut = params['InternetMaxBandwidthOut']
@InstanceChargeType = params['InstanceChargeType']
unless params['InstanceChargePrepaid'].nil?
@InstanceChargePrepaid = InstanceChargePrepaid.new
@InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
end
+ @MaxConnection = params['MaxConnection']
+ @Type = params['Type']
end
end
# InquiryPriceCreateVpnGateway返回参数结构体
class InquiryPriceCreateVpnGatewayResponse < TencentCloud::Common::AbstractModel