Class: TencentCloud::Live::V20180801::DescribeLivePadRulesResponse

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

Overview

DescribeLivePadRules返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeLivePadRulesResponse.



7181
7182
7183
7184
# File 'lib/v20180801/models.rb', line 7181

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

Instance Attribute Details

#RequestIdObject

Parameters:

  • Rules:

    规则信息列表。

  • RequestId:

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



7179
7180
7181
# File 'lib/v20180801/models.rb', line 7179

def RequestId
  @RequestId
end

#RulesObject

Parameters:

  • Rules:

    规则信息列表。

  • RequestId:

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



7179
7180
7181
# File 'lib/v20180801/models.rb', line 7179

def Rules
  @Rules
end

Instance Method Details

#deserialize(params) ⇒ Object



7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
# File 'lib/v20180801/models.rb', line 7186

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