Class: TencentCloud::Billing::V20180709::DescribeAllocationRuleDetailResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::DescribeAllocationRuleDetailResponse
- Defined in:
- lib/v20180709/models.rb
Overview
DescribeAllocationRuleDetail返回参数结构体
Instance Attribute Summary collapse
-
#Id ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#Name ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#RatioDetail ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#RequestId ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#RuleDetail ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#Type ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#Uin ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, uin = nil, name = nil, type = nil, ruledetail = nil, ratiodetail = nil, requestid = nil) ⇒ DescribeAllocationRuleDetailResponse
constructor
A new instance of DescribeAllocationRuleDetailResponse.
Constructor Details
#initialize(id = nil, uin = nil, name = nil, type = nil, ruledetail = nil, ratiodetail = nil, requestid = nil) ⇒ DescribeAllocationRuleDetailResponse
Returns a new instance of DescribeAllocationRuleDetailResponse.
6297 6298 6299 6300 6301 6302 6303 6304 6305 |
# File 'lib/v20180709/models.rb', line 6297 def initialize(id=nil, uin=nil, name=nil, type=nil, ruledetail=nil, ratiodetail=nil, requestid=nil) @Id = id @Uin = uin @Name = name @Type = type @RuleDetail = ruledetail @RatioDetail = ratiodetail @RequestId = requestid end |
Instance Attribute Details
#Id ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
6295 6296 6297 |
# File 'lib/v20180709/models.rb', line 6295 def Id @Id end |
#Name ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
6295 6296 6297 |
# File 'lib/v20180709/models.rb', line 6295 def Name @Name end |
#RatioDetail ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
6295 6296 6297 |
# File 'lib/v20180709/models.rb', line 6295 def RatioDetail @RatioDetail end |
#RequestId ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
6295 6296 6297 |
# File 'lib/v20180709/models.rb', line 6295 def RequestId @RequestId end |
#RuleDetail ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
6295 6296 6297 |
# File 'lib/v20180709/models.rb', line 6295 def RuleDetail @RuleDetail end |
#Type ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
6295 6296 6297 |
# File 'lib/v20180709/models.rb', line 6295 def Type @Type end |
#Uin ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
6295 6296 6297 |
# File 'lib/v20180709/models.rb', line 6295 def Uin @Uin end |
Instance Method Details
#deserialize(params) ⇒ Object
6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 |
# File 'lib/v20180709/models.rb', line 6307 def deserialize(params) @Id = params['Id'] @Uin = params['Uin'] @Name = params['Name'] @Type = params['Type'] unless params['RuleDetail'].nil? @RuleDetail = AllocationRuleExpression.new @RuleDetail.deserialize(params['RuleDetail']) end unless params['RatioDetail'].nil? @RatioDetail = [] params['RatioDetail'].each do |i| allocationrationexpression_tmp = AllocationRationExpression.new allocationrationexpression_tmp.deserialize(i) @RatioDetail << allocationrationexpression_tmp end end @RequestId = params['RequestId'] end |