Class: TencentCloud::Live::V20180801::DescribeLiveSnapshotRulesResponse

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

Overview

DescribeLiveSnapshotRules返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rules = nil, requestid = nil) ⇒ DescribeLiveSnapshotRulesResponse

Returns a new instance of DescribeLiveSnapshotRulesResponse.



7689
7690
7691
7692
# File 'lib/v20180801/models.rb', line 7689

def initialize(rules=nil, requestid=nil)
  @Rules = rules
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • Rules:

    规则列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



7687
7688
7689
# File 'lib/v20180801/models.rb', line 7687

def RequestId
  @RequestId
end

#RulesObject

Parameters:

  • Rules:

    规则列表。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



7687
7688
7689
# File 'lib/v20180801/models.rb', line 7687

def Rules
  @Rules
end

Instance Method Details

#deserialize(params) ⇒ Object



7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
# File 'lib/v20180801/models.rb', line 7694

def deserialize(params)
  unless params['Rules'].nil?
    @Rules = []
    params['Rules'].each do |i|
      ruleinfo_tmp = RuleInfo.new
      ruleinfo_tmp.deserialize(i)
      @Rules << ruleinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end