Class: TencentCloud::Ses::V20201002::ListEmailTemplatesResponse

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

Overview

ListEmailTemplates返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templatesmetadata = nil, totalcount = nil, requestid = nil) ⇒ ListEmailTemplatesResponse

Returns a new instance of ListEmailTemplatesResponse.



1297
1298
1299
1300
1301
# File 'lib/v20201002/models.rb', line 1297

def initialize(=nil, totalcount=nil, requestid=nil)
  @TemplatesMetadata = 
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TemplatesMetadata:

    邮件模板列表

  • TotalCount:

    模板总数量

  • RequestId:

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



1295
1296
1297
# File 'lib/v20201002/models.rb', line 1295

def RequestId
  @RequestId
end

#TemplatesMetadataObject

Parameters:

  • TemplatesMetadata:

    邮件模板列表

  • TotalCount:

    模板总数量

  • RequestId:

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



1295
1296
1297
# File 'lib/v20201002/models.rb', line 1295

def TemplatesMetadata
  @TemplatesMetadata
end

#TotalCountObject

Parameters:

  • TemplatesMetadata:

    邮件模板列表

  • TotalCount:

    模板总数量

  • RequestId:

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



1295
1296
1297
# File 'lib/v20201002/models.rb', line 1295

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
# File 'lib/v20201002/models.rb', line 1303

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