Class: TencentCloud::Billing::V20180709::CreateGatherRuleRequest

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

Overview

CreateGatherRule请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id = nil, rulelist = nil, month = nil) ⇒ CreateGatherRuleRequest

Returns a new instance of CreateGatherRuleRequest.



5021
5022
5023
5024
5025
# File 'lib/v20180709/models.rb', line 5021

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

Instance Attribute Details

#IdObject

Parameters:

  • Id:

    规则所属分账单元ID

  • RuleList:

    归集规则详情

  • Month:

    月份,不传默认当前月



5019
5020
5021
# File 'lib/v20180709/models.rb', line 5019

def Id
  @Id
end

#MonthObject

Parameters:

  • Id:

    规则所属分账单元ID

  • RuleList:

    归集规则详情

  • Month:

    月份,不传默认当前月



5019
5020
5021
# File 'lib/v20180709/models.rb', line 5019

def Month
  @Month
end

#RuleListObject

Parameters:

  • Id:

    规则所属分账单元ID

  • RuleList:

    归集规则详情

  • Month:

    月份,不传默认当前月



5019
5020
5021
# File 'lib/v20180709/models.rb', line 5019

def RuleList
  @RuleList
end

Instance Method Details

#deserialize(params) ⇒ Object



5027
5028
5029
5030
5031
5032
5033
5034
# File 'lib/v20180709/models.rb', line 5027

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