Class: TencentCloud::Billing::V20180709::AllocationRuleOverview

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

Overview

公摊规则概览

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ruleid = nil, rulename = nil, type = nil, updatetime = nil, allocationnode = nil) ⇒ AllocationRuleOverview

Returns a new instance of AllocationRuleOverview.



867
868
869
870
871
872
873
# File 'lib/v20180709/models.rb', line 867

def initialize(ruleid=nil, rulename=nil, type=nil, updatetime=nil, allocationnode=nil)
  @RuleId = ruleid
  @RuleName = rulename
  @Type = type
  @UpdateTime = updatetime
  @AllocationNode = allocationnode
end

Instance Attribute Details

#AllocationNodeObject

枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊

Parameters:

  • RuleId:

    公摊规则ID

  • RuleName:

    公摊规则名称

  • Type:

    公摊策略类型

  • UpdateTime:

    公摊规则最后更新时间

  • AllocationNode:

    分账单元概览



865
866
867
# File 'lib/v20180709/models.rb', line 865

def AllocationNode
  @AllocationNode
end

#RuleIdObject

枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊

Parameters:

  • RuleId:

    公摊规则ID

  • RuleName:

    公摊规则名称

  • Type:

    公摊策略类型

  • UpdateTime:

    公摊规则最后更新时间

  • AllocationNode:

    分账单元概览



865
866
867
# File 'lib/v20180709/models.rb', line 865

def RuleId
  @RuleId
end

#RuleNameObject

枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊

Parameters:

  • RuleId:

    公摊规则ID

  • RuleName:

    公摊规则名称

  • Type:

    公摊策略类型

  • UpdateTime:

    公摊规则最后更新时间

  • AllocationNode:

    分账单元概览



865
866
867
# File 'lib/v20180709/models.rb', line 865

def RuleName
  @RuleName
end

#TypeObject

枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊

Parameters:

  • RuleId:

    公摊规则ID

  • RuleName:

    公摊规则名称

  • Type:

    公摊策略类型

  • UpdateTime:

    公摊规则最后更新时间

  • AllocationNode:

    分账单元概览



865
866
867
# File 'lib/v20180709/models.rb', line 865

def Type
  @Type
end

#UpdateTimeObject

枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊

Parameters:

  • RuleId:

    公摊规则ID

  • RuleName:

    公摊规则名称

  • Type:

    公摊策略类型

  • UpdateTime:

    公摊规则最后更新时间

  • AllocationNode:

    分账单元概览



865
866
867
# File 'lib/v20180709/models.rb', line 865

def UpdateTime
  @UpdateTime
end

Instance Method Details

#deserialize(params) ⇒ Object



875
876
877
878
879
880
881
882
883
884
885
886
887
888
# File 'lib/v20180709/models.rb', line 875

def deserialize(params)
  @RuleId = params['RuleId']
  @RuleName = params['RuleName']
  @Type = params['Type']
  @UpdateTime = params['UpdateTime']
  unless params['AllocationNode'].nil?
    @AllocationNode = []
    params['AllocationNode'].each do |i|
      allocationunit_tmp = AllocationUnit.new
      allocationunit_tmp.deserialize(i)
      @AllocationNode << allocationunit_tmp
    end
  end
end