Class: TencentCloud::Emr::V20190103::NodeRenewPriceDetail

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

Overview

节点续费询价明细

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chargetype = nil, emrresourceid = nil, nodetype = nil, ip = nil, expiretime = nil, originalcost = nil, discountcost = nil, renewpricedetails = nil) ⇒ NodeRenewPriceDetail

Returns a new instance of NodeRenewPriceDetail.



10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
# File 'lib/v20190103/models.rb', line 10150

def initialize(chargetype=nil, emrresourceid=nil, nodetype=nil, ip=nil, expiretime=nil, originalcost=nil, discountcost=nil, renewpricedetails=nil)
  @ChargeType = chargetype
  @EmrResourceId = emrresourceid
  @NodeType = nodetype
  @Ip = ip
  @ExpireTime = expiretime
  @OriginalCost = originalcost
  @DiscountCost = discountcost
  @RenewPriceDetails = renewpricedetails
end

Instance Attribute Details

#ChargeTypeObject

Parameters:

  • 计费类型,包月为1、包销为3

  • emr资源id

  • 节点类型

  • 节点内网ip

  • 当前到期时间

  • 原价

  • 折扣价

  • 节点子项续费询价明细列表



10148
10149
10150
# File 'lib/v20190103/models.rb', line 10148

def ChargeType
  @ChargeType
end

#DiscountCostObject

Parameters:

  • 计费类型,包月为1、包销为3

  • emr资源id

  • 节点类型

  • 节点内网ip

  • 当前到期时间

  • 原价

  • 折扣价

  • 节点子项续费询价明细列表



10148
10149
10150
# File 'lib/v20190103/models.rb', line 10148

def DiscountCost
  @DiscountCost
end

#EmrResourceIdObject

Parameters:

  • 计费类型,包月为1、包销为3

  • emr资源id

  • 节点类型

  • 节点内网ip

  • 当前到期时间

  • 原价

  • 折扣价

  • 节点子项续费询价明细列表



10148
10149
10150
# File 'lib/v20190103/models.rb', line 10148

def EmrResourceId
  @EmrResourceId
end

#ExpireTimeObject

Parameters:

  • 计费类型,包月为1、包销为3

  • emr资源id

  • 节点类型

  • 节点内网ip

  • 当前到期时间

  • 原价

  • 折扣价

  • 节点子项续费询价明细列表



10148
10149
10150
# File 'lib/v20190103/models.rb', line 10148

def ExpireTime
  @ExpireTime
end

#IpObject

Parameters:

  • 计费类型,包月为1、包销为3

  • emr资源id

  • 节点类型

  • 节点内网ip

  • 当前到期时间

  • 原价

  • 折扣价

  • 节点子项续费询价明细列表



10148
10149
10150
# File 'lib/v20190103/models.rb', line 10148

def Ip
  @Ip
end

#NodeTypeObject

Parameters:

  • 计费类型,包月为1、包销为3

  • emr资源id

  • 节点类型

  • 节点内网ip

  • 当前到期时间

  • 原价

  • 折扣价

  • 节点子项续费询价明细列表



10148
10149
10150
# File 'lib/v20190103/models.rb', line 10148

def NodeType
  @NodeType
end

#OriginalCostObject

Parameters:

  • 计费类型,包月为1、包销为3

  • emr资源id

  • 节点类型

  • 节点内网ip

  • 当前到期时间

  • 原价

  • 折扣价

  • 节点子项续费询价明细列表



10148
10149
10150
# File 'lib/v20190103/models.rb', line 10148

def OriginalCost
  @OriginalCost
end

#RenewPriceDetailsObject

Parameters:

  • 计费类型,包月为1、包销为3

  • emr资源id

  • 节点类型

  • 节点内网ip

  • 当前到期时间

  • 原价

  • 折扣价

  • 节点子项续费询价明细列表



10148
10149
10150
# File 'lib/v20190103/models.rb', line 10148

def RenewPriceDetails
  @RenewPriceDetails
end

Instance Method Details

#deserialize(params) ⇒ Object



10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
# File 'lib/v20190103/models.rb', line 10161

def deserialize(params)
  @ChargeType = params['ChargeType']
  @EmrResourceId = params['EmrResourceId']
  @NodeType = params['NodeType']
  @Ip = params['Ip']
  @ExpireTime = params['ExpireTime']
  @OriginalCost = params['OriginalCost']
  @DiscountCost = params['DiscountCost']
  unless params['RenewPriceDetails'].nil?
    @RenewPriceDetails = []
    params['RenewPriceDetails'].each do |i|
      renewpricedetail_tmp = RenewPriceDetail.new
      renewpricedetail_tmp.deserialize(i)
      @RenewPriceDetails << renewpricedetail_tmp
    end
  end
end