Class: TencentCloud::Billing::V20180709::CreateAllocationRuleRequest

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

Overview

CreateAllocationRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rulelist = nil, month = nil) ⇒ CreateAllocationRuleRequest

Returns a new instance of CreateAllocationRuleRequest.



4786
4787
4788
4789
# File 'lib/v20180709/models.rb', line 4786

def initialize(rulelist=nil, month=nil)
  @RuleList = rulelist
  @Month = month
end

Instance Attribute Details

#MonthObject

Parameters:

  • RuleList:

    公摊规则列表

  • Month:

    月份,不传默认当前月



4784
4785
4786
# File 'lib/v20180709/models.rb', line 4784

def Month
  @Month
end

#RuleListObject

Parameters:

  • RuleList:

    公摊规则列表

  • Month:

    月份,不传默认当前月



4784
4785
4786
# File 'lib/v20180709/models.rb', line 4784

def RuleList
  @RuleList
end

Instance Method Details

#deserialize(params) ⇒ Object



4791
4792
4793
4794
4795
4796
4797
# File 'lib/v20180709/models.rb', line 4791

def deserialize(params)
  unless params['RuleList'].nil?
    @RuleList = AllocationRulesSummary.new
    @RuleList.deserialize(params['RuleList'])
  end
  @Month = params['Month']
end