Class: TencentCloud::Billing::V20180709::AllocationRuleOverview
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::AllocationRuleOverview
- Defined in:
- lib/v20180709/models.rb
Overview
公摊规则概览
Instance Attribute Summary collapse
-
#AllocationNode ⇒ Object
枚举值: 1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#RuleId ⇒ Object
枚举值: 1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#RuleName ⇒ Object
枚举值: 1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#Type ⇒ Object
枚举值: 1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#UpdateTime ⇒ Object
枚举值: 1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(ruleid = nil, rulename = nil, type = nil, updatetime = nil, allocationnode = nil) ⇒ AllocationRuleOverview
constructor
A new instance of AllocationRuleOverview.
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
#AllocationNode ⇒ Object
枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
865 866 867 |
# File 'lib/v20180709/models.rb', line 865 def AllocationNode @AllocationNode end |
#RuleId ⇒ Object
枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
865 866 867 |
# File 'lib/v20180709/models.rb', line 865 def RuleId @RuleId end |
#RuleName ⇒ Object
枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
865 866 867 |
# File 'lib/v20180709/models.rb', line 865 def RuleName @RuleName end |
#Type ⇒ Object
枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
865 866 867 |
# File 'lib/v20180709/models.rb', line 865 def Type @Type end |
#UpdateTime ⇒ Object
枚举值:1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
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 |