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.



4300
4301
4302
4303
4304
# File 'lib/v20180709/models.rb', line 4300

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

Instance Attribute Details

#IdObject

Parameters:

  • Id:

    规则所属分账单元ID

  • RuleList:

    归集规则详情

  • Month:

    月份,不传默认当前月



4298
4299
4300
# File 'lib/v20180709/models.rb', line 4298

def Id
  @Id
end

#MonthObject

Parameters:

  • Id:

    规则所属分账单元ID

  • RuleList:

    归集规则详情

  • Month:

    月份,不传默认当前月



4298
4299
4300
# File 'lib/v20180709/models.rb', line 4298

def Month
  @Month
end

#RuleListObject

Parameters:

  • Id:

    规则所属分账单元ID

  • RuleList:

    归集规则详情

  • Month:

    月份,不传默认当前月



4298
4299
4300
# File 'lib/v20180709/models.rb', line 4298

def RuleList
  @RuleList
end

Instance Method Details

#deserialize(params) ⇒ Object



4306
4307
4308
4309
4310
4311
4312
4313
# File 'lib/v20180709/models.rb', line 4306

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