Class: TencentCloud::Live::V20180801::DescribeLiveSnapshotTemplatesResponse

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

Overview

DescribeLiveSnapshotTemplates返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templates = nil, requestid = nil) ⇒ DescribeLiveSnapshotTemplatesResponse

Returns a new instance of DescribeLiveSnapshotTemplatesResponse.



7767
7768
7769
7770
# File 'lib/v20180801/models.rb', line 7767

def initialize(templates=nil, requestid=nil)
  @Templates = templates
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • Templates:

    截图模板列表。

  • RequestId:

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



7765
7766
7767
# File 'lib/v20180801/models.rb', line 7765

def RequestId
  @RequestId
end

#TemplatesObject

Parameters:

  • Templates:

    截图模板列表。

  • RequestId:

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



7765
7766
7767
# File 'lib/v20180801/models.rb', line 7765

def Templates
  @Templates
end

Instance Method Details

#deserialize(params) ⇒ Object



7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
# File 'lib/v20180801/models.rb', line 7772

def deserialize(params)
  unless params['Templates'].nil?
    @Templates = []
    params['Templates'].each do |i|
      snapshottemplateinfo_tmp = SnapshotTemplateInfo.new
      snapshottemplateinfo_tmp.deserialize(i)
      @Templates << snapshottemplateinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end