Class: TencentCloud::Zj::V20190121::DescribeSmsTemplateListResponse

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

Overview

DescribeSmsTemplateList返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = nil, requestid = nil) ⇒ DescribeSmsTemplateListResponse

Returns a new instance of DescribeSmsTemplateListResponse.



957
958
959
960
# File 'lib/v20190121/models.rb', line 957

def initialize(data=nil, requestid=nil)
  @Data = data
  @RequestId = requestid
end

Instance Attribute Details

#DataObject

Parameters:

  • Data:

    返回数据信息

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



955
956
957
# File 'lib/v20190121/models.rb', line 955

def Data
  @Data
end

#RequestIdObject

Parameters:

  • Data:

    返回数据信息

  • RequestId:

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



955
956
957
# File 'lib/v20190121/models.rb', line 955

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



962
963
964
965
966
967
968
969
970
971
972
# File 'lib/v20190121/models.rb', line 962

def deserialize(params)
  unless params['Data'].nil?
    @Data = []
    params['Data'].each do |i|
      describesmstemplatelistdatastruct_tmp = DescribeSmsTemplateListDataStruct.new
      describesmstemplatelistdatastruct_tmp.deserialize(i)
      @Data << describesmstemplatelistdatastruct_tmp
    end
  end
  @RequestId = params['RequestId']
end