Class: TencentCloud::Bmeip::V20180625::CreateEipRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180625/models.rb

Overview

CreateEip请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(goodsnum = nil, paymode = nil, bandwidth = nil, settype = nil, exclusive = nil, vpcid = nil, iplist = nil) ⇒ CreateEipRequest

Returns a new instance of CreateEipRequest.



254
255
256
257
258
259
260
261
262
# File 'lib/v20180625/models.rb', line 254

def initialize(goodsnum=nil, paymode=nil, bandwidth=nil, settype=nil, exclusive=nil, vpcid=nil, iplist=nil)
  @GoodsNum = goodsnum
  @PayMode = paymode
  @Bandwidth = bandwidth
  @SetType = settype
  @Exclusive = exclusive
  @VpcId = vpcid
  @IpList = iplist
end

Instance Attribute Details

#BandwidthObject

Parameters:

  • GoodsNum:

    申请数量,默认为1, 最大 20

  • PayMode:

    EIP计费方式,flow-流量计费;bandwidth-带宽计费

  • Bandwidth:

    带宽设定值(只在带宽计费时生效)

  • SetType:

    EIP模式,目前支持tunnel和fullnat

  • Exclusive:

    是否使用独占集群,0:不使用,1:使用。默认为0

  • VpcId:

    EIP归属私有网络ID,例如vpc-k7j1t2x1

  • IpList:

    指定申请的IP列表



252
253
254
# File 'lib/v20180625/models.rb', line 252

def Bandwidth
  @Bandwidth
end

#ExclusiveObject

Parameters:

  • GoodsNum:

    申请数量,默认为1, 最大 20

  • PayMode:

    EIP计费方式,flow-流量计费;bandwidth-带宽计费

  • Bandwidth:

    带宽设定值(只在带宽计费时生效)

  • SetType:

    EIP模式,目前支持tunnel和fullnat

  • Exclusive:

    是否使用独占集群,0:不使用,1:使用。默认为0

  • VpcId:

    EIP归属私有网络ID,例如vpc-k7j1t2x1

  • IpList:

    指定申请的IP列表



252
253
254
# File 'lib/v20180625/models.rb', line 252

def Exclusive
  @Exclusive
end

#GoodsNumObject

Parameters:

  • GoodsNum:

    申请数量,默认为1, 最大 20

  • PayMode:

    EIP计费方式,flow-流量计费;bandwidth-带宽计费

  • Bandwidth:

    带宽设定值(只在带宽计费时生效)

  • SetType:

    EIP模式,目前支持tunnel和fullnat

  • Exclusive:

    是否使用独占集群,0:不使用,1:使用。默认为0

  • VpcId:

    EIP归属私有网络ID,例如vpc-k7j1t2x1

  • IpList:

    指定申请的IP列表



252
253
254
# File 'lib/v20180625/models.rb', line 252

def GoodsNum
  @GoodsNum
end

#IpListObject

Parameters:

  • GoodsNum:

    申请数量,默认为1, 最大 20

  • PayMode:

    EIP计费方式,flow-流量计费;bandwidth-带宽计费

  • Bandwidth:

    带宽设定值(只在带宽计费时生效)

  • SetType:

    EIP模式,目前支持tunnel和fullnat

  • Exclusive:

    是否使用独占集群,0:不使用,1:使用。默认为0

  • VpcId:

    EIP归属私有网络ID,例如vpc-k7j1t2x1

  • IpList:

    指定申请的IP列表



252
253
254
# File 'lib/v20180625/models.rb', line 252

def IpList
  @IpList
end

#PayModeObject

Parameters:

  • GoodsNum:

    申请数量,默认为1, 最大 20

  • PayMode:

    EIP计费方式,flow-流量计费;bandwidth-带宽计费

  • Bandwidth:

    带宽设定值(只在带宽计费时生效)

  • SetType:

    EIP模式,目前支持tunnel和fullnat

  • Exclusive:

    是否使用独占集群,0:不使用,1:使用。默认为0

  • VpcId:

    EIP归属私有网络ID,例如vpc-k7j1t2x1

  • IpList:

    指定申请的IP列表



252
253
254
# File 'lib/v20180625/models.rb', line 252

def PayMode
  @PayMode
end

#SetTypeObject

Parameters:

  • GoodsNum:

    申请数量,默认为1, 最大 20

  • PayMode:

    EIP计费方式,flow-流量计费;bandwidth-带宽计费

  • Bandwidth:

    带宽设定值(只在带宽计费时生效)

  • SetType:

    EIP模式,目前支持tunnel和fullnat

  • Exclusive:

    是否使用独占集群,0:不使用,1:使用。默认为0

  • VpcId:

    EIP归属私有网络ID,例如vpc-k7j1t2x1

  • IpList:

    指定申请的IP列表



252
253
254
# File 'lib/v20180625/models.rb', line 252

def SetType
  @SetType
end

#VpcIdObject

Parameters:

  • GoodsNum:

    申请数量,默认为1, 最大 20

  • PayMode:

    EIP计费方式,flow-流量计费;bandwidth-带宽计费

  • Bandwidth:

    带宽设定值(只在带宽计费时生效)

  • SetType:

    EIP模式,目前支持tunnel和fullnat

  • Exclusive:

    是否使用独占集群,0:不使用,1:使用。默认为0

  • VpcId:

    EIP归属私有网络ID,例如vpc-k7j1t2x1

  • IpList:

    指定申请的IP列表



252
253
254
# File 'lib/v20180625/models.rb', line 252

def VpcId
  @VpcId
end

Instance Method Details

#deserialize(params) ⇒ Object



264
265
266
267
268
269
270
271
272
# File 'lib/v20180625/models.rb', line 264

def deserialize(params)
  @GoodsNum = params['GoodsNum']
  @PayMode = params['PayMode']
  @Bandwidth = params['Bandwidth']
  @SetType = params['SetType']
  @Exclusive = params['Exclusive']
  @VpcId = params['VpcId']
  @IpList = params['IpList']
end