tencentcloud-sdk-ses 1.0.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-ses.rb +11 -0
- data/lib/v20201002/client.rb +493 -0
- data/lib/v20201002/models.rb +1330 -0
- metadata +66 -0
|
@@ -0,0 +1,1330 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
module TencentCloud
|
|
18
|
+
module Ses
|
|
19
|
+
module V20201002
|
|
20
|
+
# 附件结构,包含附件名和base64之后的附件内容。
|
|
21
|
+
class Attachment < TencentCloud::Common::AbstractModel
|
|
22
|
+
# @param FileName: 附件名称,最大支持255个字符长度,不支持部分附件类型,详情请参考[附件类型](https://cloud.tencent.com/document/product/1288/51951)。
|
|
23
|
+
# @type FileName: String
|
|
24
|
+
# @param Content: base64之后的附件内容,您可以发送的附件大小上限为5 MB。 注意:腾讯云api目前要求请求包大小不得超过10 MB。如果您要发送多个附件,那么这些附件的总大小不能超过10 MB。
|
|
25
|
+
# @type Content: String
|
|
26
|
+
|
|
27
|
+
attr_accessor :FileName, :Content
|
|
28
|
+
|
|
29
|
+
def initialize(filename=nil, content=nil)
|
|
30
|
+
@FileName = filename
|
|
31
|
+
@Content = content
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def deserialize(params)
|
|
35
|
+
@FileName = params['FileName']
|
|
36
|
+
@Content = params['Content']
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# BatchSendEmail请求参数结构体
|
|
41
|
+
class BatchSendEmailRequest < TencentCloud::Common::AbstractModel
|
|
42
|
+
# @param FromEmailAddress: 发信邮件地址。请填写发件人邮箱地址,例如:noreply@mail.qcloud.com。如需填写发件人说明,请按照
|
|
43
|
+
# 发信人 <邮件地址> 的方式填写,例如:
|
|
44
|
+
# 腾讯云团队 <noreply@mail.qcloud.com>
|
|
45
|
+
# @type FromEmailAddress: String
|
|
46
|
+
# @param ReceiverId: 收件人列表ID
|
|
47
|
+
# @type ReceiverId: Integer
|
|
48
|
+
# @param Subject: 邮件主题
|
|
49
|
+
# @type Subject: String
|
|
50
|
+
# @param TaskType: 任务类型 1: 立即发送 2: 定时发送 3: 周期(频率)发送
|
|
51
|
+
# @type TaskType: Integer
|
|
52
|
+
# @param ReplyToAddresses: 邮件的“回复”电子邮件地址。可以填写您能收到邮件的邮箱地址,可以是个人邮箱。如果不填,收件人将会回复到腾讯云。
|
|
53
|
+
# @type ReplyToAddresses: String
|
|
54
|
+
# @param Template: 使用模板发送时,填写的模板相关参数
|
|
55
|
+
# @type Template: :class:`Tencentcloud::Ses.v20201002.models.Template`
|
|
56
|
+
# @param Simple: 使用API直接发送内容时,填写的邮件内容
|
|
57
|
+
# @type Simple: :class:`Tencentcloud::Ses.v20201002.models.Simple`
|
|
58
|
+
# @param Attachments: 需要发送附件时,填写附件相关参数。
|
|
59
|
+
# @type Attachments: Array
|
|
60
|
+
# @param CycleParam: 周期发送任务的必要参数
|
|
61
|
+
# @type CycleParam: :class:`Tencentcloud::Ses.v20201002.models.CycleEmailParam`
|
|
62
|
+
# @param TimedParam: 定时发送任务的必要参数
|
|
63
|
+
# @type TimedParam: :class:`Tencentcloud::Ses.v20201002.models.TimedEmailParam`
|
|
64
|
+
|
|
65
|
+
attr_accessor :FromEmailAddress, :ReceiverId, :Subject, :TaskType, :ReplyToAddresses, :Template, :Simple, :Attachments, :CycleParam, :TimedParam
|
|
66
|
+
|
|
67
|
+
def initialize(fromemailaddress=nil, receiverid=nil, subject=nil, tasktype=nil, replytoaddresses=nil, template=nil, simple=nil, attachments=nil, cycleparam=nil, timedparam=nil)
|
|
68
|
+
@FromEmailAddress = fromemailaddress
|
|
69
|
+
@ReceiverId = receiverid
|
|
70
|
+
@Subject = subject
|
|
71
|
+
@TaskType = tasktype
|
|
72
|
+
@ReplyToAddresses = replytoaddresses
|
|
73
|
+
@Template = template
|
|
74
|
+
@Simple = simple
|
|
75
|
+
@Attachments = attachments
|
|
76
|
+
@CycleParam = cycleparam
|
|
77
|
+
@TimedParam = timedparam
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def deserialize(params)
|
|
81
|
+
@FromEmailAddress = params['FromEmailAddress']
|
|
82
|
+
@ReceiverId = params['ReceiverId']
|
|
83
|
+
@Subject = params['Subject']
|
|
84
|
+
@TaskType = params['TaskType']
|
|
85
|
+
@ReplyToAddresses = params['ReplyToAddresses']
|
|
86
|
+
unless params['Template'].nil?
|
|
87
|
+
@Template = Template.new
|
|
88
|
+
@Template.deserialize(params['Template'])
|
|
89
|
+
end
|
|
90
|
+
unless params['Simple'].nil?
|
|
91
|
+
@Simple = Simple.new
|
|
92
|
+
@Simple.deserialize(params['Simple'])
|
|
93
|
+
end
|
|
94
|
+
unless params['Attachments'].nil?
|
|
95
|
+
@Attachments = []
|
|
96
|
+
params['Attachments'].each do |i|
|
|
97
|
+
attachment_tmp = Attachment.new
|
|
98
|
+
attachment_tmp.deserialize(i)
|
|
99
|
+
@Attachments << attachment_tmp
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
unless params['CycleParam'].nil?
|
|
103
|
+
@CycleParam = CycleEmailParam.new
|
|
104
|
+
@CycleParam.deserialize(params['CycleParam'])
|
|
105
|
+
end
|
|
106
|
+
unless params['TimedParam'].nil?
|
|
107
|
+
@TimedParam = TimedEmailParam.new
|
|
108
|
+
@TimedParam.deserialize(params['TimedParam'])
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# BatchSendEmail返回参数结构体
|
|
114
|
+
class BatchSendEmailResponse < TencentCloud::Common::AbstractModel
|
|
115
|
+
# @param TaskId: 发送任务ID
|
|
116
|
+
# @type TaskId: Integer
|
|
117
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
118
|
+
# @type RequestId: String
|
|
119
|
+
|
|
120
|
+
attr_accessor :TaskId, :RequestId
|
|
121
|
+
|
|
122
|
+
def initialize(taskid=nil, requestid=nil)
|
|
123
|
+
@TaskId = taskid
|
|
124
|
+
@RequestId = requestid
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
def deserialize(params)
|
|
128
|
+
@TaskId = params['TaskId']
|
|
129
|
+
@RequestId = params['RequestId']
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# 邮箱黑名单结构,包含被拉黑的邮箱地址和被拉黑时间
|
|
134
|
+
class BlackEmailAddress < TencentCloud::Common::AbstractModel
|
|
135
|
+
# @param BounceTime: 邮箱被拉黑时间
|
|
136
|
+
# @type BounceTime: String
|
|
137
|
+
# @param EmailAddress: 被拉黑的邮箱地址
|
|
138
|
+
# @type EmailAddress: String
|
|
139
|
+
|
|
140
|
+
attr_accessor :BounceTime, :EmailAddress
|
|
141
|
+
|
|
142
|
+
def initialize(bouncetime=nil, emailaddress=nil)
|
|
143
|
+
@BounceTime = bouncetime
|
|
144
|
+
@EmailAddress = emailaddress
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
def deserialize(params)
|
|
148
|
+
@BounceTime = params['BounceTime']
|
|
149
|
+
@EmailAddress = params['EmailAddress']
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# CreateEmailAddress请求参数结构体
|
|
154
|
+
class CreateEmailAddressRequest < TencentCloud::Common::AbstractModel
|
|
155
|
+
# @param EmailAddress: 您的发信地址(发信地址总数上限为10个)
|
|
156
|
+
# @type EmailAddress: String
|
|
157
|
+
# @param EmailSenderName: 发件人别名
|
|
158
|
+
# @type EmailSenderName: String
|
|
159
|
+
|
|
160
|
+
attr_accessor :EmailAddress, :EmailSenderName
|
|
161
|
+
|
|
162
|
+
def initialize(emailaddress=nil, emailsendername=nil)
|
|
163
|
+
@EmailAddress = emailaddress
|
|
164
|
+
@EmailSenderName = emailsendername
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
def deserialize(params)
|
|
168
|
+
@EmailAddress = params['EmailAddress']
|
|
169
|
+
@EmailSenderName = params['EmailSenderName']
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# CreateEmailAddress返回参数结构体
|
|
174
|
+
class CreateEmailAddressResponse < TencentCloud::Common::AbstractModel
|
|
175
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
176
|
+
# @type RequestId: String
|
|
177
|
+
|
|
178
|
+
attr_accessor :RequestId
|
|
179
|
+
|
|
180
|
+
def initialize(requestid=nil)
|
|
181
|
+
@RequestId = requestid
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def deserialize(params)
|
|
185
|
+
@RequestId = params['RequestId']
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# CreateEmailIdentity请求参数结构体
|
|
190
|
+
class CreateEmailIdentityRequest < TencentCloud::Common::AbstractModel
|
|
191
|
+
# @param EmailIdentity: 您的发信域名,建议使用三级以上域名。例如:mail.qcloud.com。
|
|
192
|
+
# @type EmailIdentity: String
|
|
193
|
+
|
|
194
|
+
attr_accessor :EmailIdentity
|
|
195
|
+
|
|
196
|
+
def initialize(emailidentity=nil)
|
|
197
|
+
@EmailIdentity = emailidentity
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
def deserialize(params)
|
|
201
|
+
@EmailIdentity = params['EmailIdentity']
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# CreateEmailIdentity返回参数结构体
|
|
206
|
+
class CreateEmailIdentityResponse < TencentCloud::Common::AbstractModel
|
|
207
|
+
# @param IdentityType: 验证类型。固定值:DOMAIN
|
|
208
|
+
# @type IdentityType: String
|
|
209
|
+
# @param VerifiedForSendingStatus: 是否已通过验证
|
|
210
|
+
# @type VerifiedForSendingStatus: Boolean
|
|
211
|
+
# @param Attributes: 需要配置的DNS信息
|
|
212
|
+
# @type Attributes: Array
|
|
213
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
214
|
+
# @type RequestId: String
|
|
215
|
+
|
|
216
|
+
attr_accessor :IdentityType, :VerifiedForSendingStatus, :Attributes, :RequestId
|
|
217
|
+
|
|
218
|
+
def initialize(identitytype=nil, verifiedforsendingstatus=nil, attributes=nil, requestid=nil)
|
|
219
|
+
@IdentityType = identitytype
|
|
220
|
+
@VerifiedForSendingStatus = verifiedforsendingstatus
|
|
221
|
+
@Attributes = attributes
|
|
222
|
+
@RequestId = requestid
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
def deserialize(params)
|
|
226
|
+
@IdentityType = params['IdentityType']
|
|
227
|
+
@VerifiedForSendingStatus = params['VerifiedForSendingStatus']
|
|
228
|
+
unless params['Attributes'].nil?
|
|
229
|
+
@Attributes = []
|
|
230
|
+
params['Attributes'].each do |i|
|
|
231
|
+
dnsattributes_tmp = DNSAttributes.new
|
|
232
|
+
dnsattributes_tmp.deserialize(i)
|
|
233
|
+
@Attributes << dnsattributes_tmp
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
@RequestId = params['RequestId']
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# CreateEmailTemplate请求参数结构体
|
|
241
|
+
class CreateEmailTemplateRequest < TencentCloud::Common::AbstractModel
|
|
242
|
+
# @param TemplateName: 模板名称
|
|
243
|
+
# @type TemplateName: String
|
|
244
|
+
# @param TemplateContent: 模板内容
|
|
245
|
+
# @type TemplateContent: :class:`Tencentcloud::Ses.v20201002.models.TemplateContent`
|
|
246
|
+
|
|
247
|
+
attr_accessor :TemplateName, :TemplateContent
|
|
248
|
+
|
|
249
|
+
def initialize(templatename=nil, templatecontent=nil)
|
|
250
|
+
@TemplateName = templatename
|
|
251
|
+
@TemplateContent = templatecontent
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
def deserialize(params)
|
|
255
|
+
@TemplateName = params['TemplateName']
|
|
256
|
+
unless params['TemplateContent'].nil?
|
|
257
|
+
@TemplateContent = TemplateContent.new
|
|
258
|
+
@TemplateContent.deserialize(params['TemplateContent'])
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# CreateEmailTemplate返回参数结构体
|
|
264
|
+
class CreateEmailTemplateResponse < TencentCloud::Common::AbstractModel
|
|
265
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
266
|
+
# @type RequestId: String
|
|
267
|
+
|
|
268
|
+
attr_accessor :RequestId
|
|
269
|
+
|
|
270
|
+
def initialize(requestid=nil)
|
|
271
|
+
@RequestId = requestid
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
def deserialize(params)
|
|
275
|
+
@RequestId = params['RequestId']
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# 创建重复周期发送邮件任务的参数
|
|
280
|
+
class CycleEmailParam < TencentCloud::Common::AbstractModel
|
|
281
|
+
# @param BeginTime: 任务开始时间
|
|
282
|
+
# @type BeginTime: String
|
|
283
|
+
# @param IntervalTime: 任务周期 小时维度
|
|
284
|
+
# @type IntervalTime: Integer
|
|
285
|
+
|
|
286
|
+
attr_accessor :BeginTime, :IntervalTime
|
|
287
|
+
|
|
288
|
+
def initialize(begintime=nil, intervaltime=nil)
|
|
289
|
+
@BeginTime = begintime
|
|
290
|
+
@IntervalTime = intervaltime
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
def deserialize(params)
|
|
294
|
+
@BeginTime = params['BeginTime']
|
|
295
|
+
@IntervalTime = params['IntervalTime']
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# 用于描述DNS记录的域名、记录类型、期望得到的值、目前配置的值
|
|
300
|
+
class DNSAttributes < TencentCloud::Common::AbstractModel
|
|
301
|
+
# @param Type: 记录类型 CNAME | A | TXT | MX
|
|
302
|
+
# @type Type: String
|
|
303
|
+
# @param SendDomain: 域名
|
|
304
|
+
# @type SendDomain: String
|
|
305
|
+
# @param ExpectedValue: 需要配置的值
|
|
306
|
+
# @type ExpectedValue: String
|
|
307
|
+
# @param CurrentValue: 腾讯云目前检测到的值
|
|
308
|
+
# @type CurrentValue: String
|
|
309
|
+
# @param Status: 检测是否通过,创建时默认为false
|
|
310
|
+
# @type Status: Boolean
|
|
311
|
+
|
|
312
|
+
attr_accessor :Type, :SendDomain, :ExpectedValue, :CurrentValue, :Status
|
|
313
|
+
|
|
314
|
+
def initialize(type=nil, senddomain=nil, expectedvalue=nil, currentvalue=nil, status=nil)
|
|
315
|
+
@Type = type
|
|
316
|
+
@SendDomain = senddomain
|
|
317
|
+
@ExpectedValue = expectedvalue
|
|
318
|
+
@CurrentValue = currentvalue
|
|
319
|
+
@Status = status
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
def deserialize(params)
|
|
323
|
+
@Type = params['Type']
|
|
324
|
+
@SendDomain = params['SendDomain']
|
|
325
|
+
@ExpectedValue = params['ExpectedValue']
|
|
326
|
+
@CurrentValue = params['CurrentValue']
|
|
327
|
+
@Status = params['Status']
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# DeleteBlackList请求参数结构体
|
|
332
|
+
class DeleteBlackListRequest < TencentCloud::Common::AbstractModel
|
|
333
|
+
# @param EmailAddressList: 需要清除的黑名单邮箱列表,数组长度至少为1
|
|
334
|
+
# @type EmailAddressList: Array
|
|
335
|
+
|
|
336
|
+
attr_accessor :EmailAddressList
|
|
337
|
+
|
|
338
|
+
def initialize(emailaddresslist=nil)
|
|
339
|
+
@EmailAddressList = emailaddresslist
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
def deserialize(params)
|
|
343
|
+
@EmailAddressList = params['EmailAddressList']
|
|
344
|
+
end
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# DeleteBlackList返回参数结构体
|
|
348
|
+
class DeleteBlackListResponse < TencentCloud::Common::AbstractModel
|
|
349
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
350
|
+
# @type RequestId: String
|
|
351
|
+
|
|
352
|
+
attr_accessor :RequestId
|
|
353
|
+
|
|
354
|
+
def initialize(requestid=nil)
|
|
355
|
+
@RequestId = requestid
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
def deserialize(params)
|
|
359
|
+
@RequestId = params['RequestId']
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# DeleteEmailAddress请求参数结构体
|
|
364
|
+
class DeleteEmailAddressRequest < TencentCloud::Common::AbstractModel
|
|
365
|
+
# @param EmailAddress: 发信地址
|
|
366
|
+
# @type EmailAddress: String
|
|
367
|
+
|
|
368
|
+
attr_accessor :EmailAddress
|
|
369
|
+
|
|
370
|
+
def initialize(emailaddress=nil)
|
|
371
|
+
@EmailAddress = emailaddress
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
def deserialize(params)
|
|
375
|
+
@EmailAddress = params['EmailAddress']
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# DeleteEmailAddress返回参数结构体
|
|
380
|
+
class DeleteEmailAddressResponse < TencentCloud::Common::AbstractModel
|
|
381
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
382
|
+
# @type RequestId: String
|
|
383
|
+
|
|
384
|
+
attr_accessor :RequestId
|
|
385
|
+
|
|
386
|
+
def initialize(requestid=nil)
|
|
387
|
+
@RequestId = requestid
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
def deserialize(params)
|
|
391
|
+
@RequestId = params['RequestId']
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# DeleteEmailIdentity请求参数结构体
|
|
396
|
+
class DeleteEmailIdentityRequest < TencentCloud::Common::AbstractModel
|
|
397
|
+
# @param EmailIdentity: 发信域名
|
|
398
|
+
# @type EmailIdentity: String
|
|
399
|
+
|
|
400
|
+
attr_accessor :EmailIdentity
|
|
401
|
+
|
|
402
|
+
def initialize(emailidentity=nil)
|
|
403
|
+
@EmailIdentity = emailidentity
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
def deserialize(params)
|
|
407
|
+
@EmailIdentity = params['EmailIdentity']
|
|
408
|
+
end
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# DeleteEmailIdentity返回参数结构体
|
|
412
|
+
class DeleteEmailIdentityResponse < TencentCloud::Common::AbstractModel
|
|
413
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
414
|
+
# @type RequestId: String
|
|
415
|
+
|
|
416
|
+
attr_accessor :RequestId
|
|
417
|
+
|
|
418
|
+
def initialize(requestid=nil)
|
|
419
|
+
@RequestId = requestid
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
def deserialize(params)
|
|
423
|
+
@RequestId = params['RequestId']
|
|
424
|
+
end
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
# DeleteEmailTemplate请求参数结构体
|
|
428
|
+
class DeleteEmailTemplateRequest < TencentCloud::Common::AbstractModel
|
|
429
|
+
# @param TemplateID: 模版ID
|
|
430
|
+
# @type TemplateID: Integer
|
|
431
|
+
|
|
432
|
+
attr_accessor :TemplateID
|
|
433
|
+
|
|
434
|
+
def initialize(templateid=nil)
|
|
435
|
+
@TemplateID = templateid
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
def deserialize(params)
|
|
439
|
+
@TemplateID = params['TemplateID']
|
|
440
|
+
end
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# DeleteEmailTemplate返回参数结构体
|
|
444
|
+
class DeleteEmailTemplateResponse < TencentCloud::Common::AbstractModel
|
|
445
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
446
|
+
# @type RequestId: String
|
|
447
|
+
|
|
448
|
+
attr_accessor :RequestId
|
|
449
|
+
|
|
450
|
+
def initialize(requestid=nil)
|
|
451
|
+
@RequestId = requestid
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
def deserialize(params)
|
|
455
|
+
@RequestId = params['RequestId']
|
|
456
|
+
end
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
# 发信域名验证列表结构体
|
|
460
|
+
class EmailIdentity < TencentCloud::Common::AbstractModel
|
|
461
|
+
# @param IdentityName: 发信域名
|
|
462
|
+
# @type IdentityName: String
|
|
463
|
+
# @param IdentityType: 验证类型,固定为DOMAIN
|
|
464
|
+
# @type IdentityType: String
|
|
465
|
+
# @param SendingEnabled: 是否已通过验证
|
|
466
|
+
# @type SendingEnabled: Boolean
|
|
467
|
+
|
|
468
|
+
attr_accessor :IdentityName, :IdentityType, :SendingEnabled
|
|
469
|
+
|
|
470
|
+
def initialize(identityname=nil, identitytype=nil, sendingenabled=nil)
|
|
471
|
+
@IdentityName = identityname
|
|
472
|
+
@IdentityType = identitytype
|
|
473
|
+
@SendingEnabled = sendingenabled
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
def deserialize(params)
|
|
477
|
+
@IdentityName = params['IdentityName']
|
|
478
|
+
@IdentityType = params['IdentityType']
|
|
479
|
+
@SendingEnabled = params['SendingEnabled']
|
|
480
|
+
end
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# 用于描述发件人相关信息
|
|
484
|
+
class EmailSender < TencentCloud::Common::AbstractModel
|
|
485
|
+
# @param EmailAddress: 发信地址
|
|
486
|
+
# @type EmailAddress: String
|
|
487
|
+
# @param EmailSenderName: 发信人别名
|
|
488
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
489
|
+
# @type EmailSenderName: String
|
|
490
|
+
# @param CreatedTimestamp: 创建时间
|
|
491
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
492
|
+
# @type CreatedTimestamp: Integer
|
|
493
|
+
|
|
494
|
+
attr_accessor :EmailAddress, :EmailSenderName, :CreatedTimestamp
|
|
495
|
+
|
|
496
|
+
def initialize(emailaddress=nil, emailsendername=nil, createdtimestamp=nil)
|
|
497
|
+
@EmailAddress = emailaddress
|
|
498
|
+
@EmailSenderName = emailsendername
|
|
499
|
+
@CreatedTimestamp = createdtimestamp
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
def deserialize(params)
|
|
503
|
+
@EmailAddress = params['EmailAddress']
|
|
504
|
+
@EmailSenderName = params['EmailSenderName']
|
|
505
|
+
@CreatedTimestamp = params['CreatedTimestamp']
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
# GetEmailIdentity请求参数结构体
|
|
510
|
+
class GetEmailIdentityRequest < TencentCloud::Common::AbstractModel
|
|
511
|
+
# @param EmailIdentity: 发信域名
|
|
512
|
+
# @type EmailIdentity: String
|
|
513
|
+
|
|
514
|
+
attr_accessor :EmailIdentity
|
|
515
|
+
|
|
516
|
+
def initialize(emailidentity=nil)
|
|
517
|
+
@EmailIdentity = emailidentity
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
def deserialize(params)
|
|
521
|
+
@EmailIdentity = params['EmailIdentity']
|
|
522
|
+
end
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# GetEmailIdentity返回参数结构体
|
|
526
|
+
class GetEmailIdentityResponse < TencentCloud::Common::AbstractModel
|
|
527
|
+
# @param IdentityType: 验证类型。固定值:DOMAIN
|
|
528
|
+
# @type IdentityType: String
|
|
529
|
+
# @param VerifiedForSendingStatus: 是否已通过验证
|
|
530
|
+
# @type VerifiedForSendingStatus: Boolean
|
|
531
|
+
# @param Attributes: DNS配置详情
|
|
532
|
+
# @type Attributes: Array
|
|
533
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
534
|
+
# @type RequestId: String
|
|
535
|
+
|
|
536
|
+
attr_accessor :IdentityType, :VerifiedForSendingStatus, :Attributes, :RequestId
|
|
537
|
+
|
|
538
|
+
def initialize(identitytype=nil, verifiedforsendingstatus=nil, attributes=nil, requestid=nil)
|
|
539
|
+
@IdentityType = identitytype
|
|
540
|
+
@VerifiedForSendingStatus = verifiedforsendingstatus
|
|
541
|
+
@Attributes = attributes
|
|
542
|
+
@RequestId = requestid
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
def deserialize(params)
|
|
546
|
+
@IdentityType = params['IdentityType']
|
|
547
|
+
@VerifiedForSendingStatus = params['VerifiedForSendingStatus']
|
|
548
|
+
unless params['Attributes'].nil?
|
|
549
|
+
@Attributes = []
|
|
550
|
+
params['Attributes'].each do |i|
|
|
551
|
+
dnsattributes_tmp = DNSAttributes.new
|
|
552
|
+
dnsattributes_tmp.deserialize(i)
|
|
553
|
+
@Attributes << dnsattributes_tmp
|
|
554
|
+
end
|
|
555
|
+
end
|
|
556
|
+
@RequestId = params['RequestId']
|
|
557
|
+
end
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
# GetEmailTemplate请求参数结构体
|
|
561
|
+
class GetEmailTemplateRequest < TencentCloud::Common::AbstractModel
|
|
562
|
+
# @param TemplateID: 模板ID
|
|
563
|
+
# @type TemplateID: Integer
|
|
564
|
+
|
|
565
|
+
attr_accessor :TemplateID
|
|
566
|
+
|
|
567
|
+
def initialize(templateid=nil)
|
|
568
|
+
@TemplateID = templateid
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
def deserialize(params)
|
|
572
|
+
@TemplateID = params['TemplateID']
|
|
573
|
+
end
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
# GetEmailTemplate返回参数结构体
|
|
577
|
+
class GetEmailTemplateResponse < TencentCloud::Common::AbstractModel
|
|
578
|
+
# @param TemplateContent: 模板内容数据
|
|
579
|
+
# @type TemplateContent: :class:`Tencentcloud::Ses.v20201002.models.TemplateContent`
|
|
580
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
581
|
+
# @type RequestId: String
|
|
582
|
+
|
|
583
|
+
attr_accessor :TemplateContent, :RequestId
|
|
584
|
+
|
|
585
|
+
def initialize(templatecontent=nil, requestid=nil)
|
|
586
|
+
@TemplateContent = templatecontent
|
|
587
|
+
@RequestId = requestid
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
def deserialize(params)
|
|
591
|
+
unless params['TemplateContent'].nil?
|
|
592
|
+
@TemplateContent = TemplateContent.new
|
|
593
|
+
@TemplateContent.deserialize(params['TemplateContent'])
|
|
594
|
+
end
|
|
595
|
+
@RequestId = params['RequestId']
|
|
596
|
+
end
|
|
597
|
+
end
|
|
598
|
+
|
|
599
|
+
# GetSendEmailStatus请求参数结构体
|
|
600
|
+
class GetSendEmailStatusRequest < TencentCloud::Common::AbstractModel
|
|
601
|
+
# @param RequestDate: 发送的日期,必填。仅支持查询某个日期,不支持范围查询。
|
|
602
|
+
# @type RequestDate: String
|
|
603
|
+
# @param Offset: 偏移量。默认为0
|
|
604
|
+
# @type Offset: Integer
|
|
605
|
+
# @param Limit: 拉取最大条数,最多 100。
|
|
606
|
+
# @type Limit: Integer
|
|
607
|
+
# @param MessageId: SendMail接口返回的MessageId字段。
|
|
608
|
+
# @type MessageId: String
|
|
609
|
+
# @param ToEmailAddress: 收件人邮箱。
|
|
610
|
+
# @type ToEmailAddress: String
|
|
611
|
+
|
|
612
|
+
attr_accessor :RequestDate, :Offset, :Limit, :MessageId, :ToEmailAddress
|
|
613
|
+
|
|
614
|
+
def initialize(requestdate=nil, offset=nil, limit=nil, messageid=nil, toemailaddress=nil)
|
|
615
|
+
@RequestDate = requestdate
|
|
616
|
+
@Offset = offset
|
|
617
|
+
@Limit = limit
|
|
618
|
+
@MessageId = messageid
|
|
619
|
+
@ToEmailAddress = toemailaddress
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
def deserialize(params)
|
|
623
|
+
@RequestDate = params['RequestDate']
|
|
624
|
+
@Offset = params['Offset']
|
|
625
|
+
@Limit = params['Limit']
|
|
626
|
+
@MessageId = params['MessageId']
|
|
627
|
+
@ToEmailAddress = params['ToEmailAddress']
|
|
628
|
+
end
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# GetSendEmailStatus返回参数结构体
|
|
632
|
+
class GetSendEmailStatusResponse < TencentCloud::Common::AbstractModel
|
|
633
|
+
# @param EmailStatusList: 邮件发送状态列表
|
|
634
|
+
# @type EmailStatusList: Array
|
|
635
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
636
|
+
# @type RequestId: String
|
|
637
|
+
|
|
638
|
+
attr_accessor :EmailStatusList, :RequestId
|
|
639
|
+
|
|
640
|
+
def initialize(emailstatuslist=nil, requestid=nil)
|
|
641
|
+
@EmailStatusList = emailstatuslist
|
|
642
|
+
@RequestId = requestid
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
def deserialize(params)
|
|
646
|
+
unless params['EmailStatusList'].nil?
|
|
647
|
+
@EmailStatusList = []
|
|
648
|
+
params['EmailStatusList'].each do |i|
|
|
649
|
+
sendemailstatus_tmp = SendEmailStatus.new
|
|
650
|
+
sendemailstatus_tmp.deserialize(i)
|
|
651
|
+
@EmailStatusList << sendemailstatus_tmp
|
|
652
|
+
end
|
|
653
|
+
end
|
|
654
|
+
@RequestId = params['RequestId']
|
|
655
|
+
end
|
|
656
|
+
end
|
|
657
|
+
|
|
658
|
+
# GetStatisticsReport请求参数结构体
|
|
659
|
+
class GetStatisticsReportRequest < TencentCloud::Common::AbstractModel
|
|
660
|
+
# @param StartDate: 开始日期
|
|
661
|
+
# @type StartDate: String
|
|
662
|
+
# @param EndDate: 结束日期
|
|
663
|
+
# @type EndDate: String
|
|
664
|
+
# @param Domain: 发信域名
|
|
665
|
+
# @type Domain: String
|
|
666
|
+
# @param ReceivingMailboxType: 收件方邮箱类型,例如gmail.com
|
|
667
|
+
# @type ReceivingMailboxType: String
|
|
668
|
+
|
|
669
|
+
attr_accessor :StartDate, :EndDate, :Domain, :ReceivingMailboxType
|
|
670
|
+
|
|
671
|
+
def initialize(startdate=nil, enddate=nil, domain=nil, receivingmailboxtype=nil)
|
|
672
|
+
@StartDate = startdate
|
|
673
|
+
@EndDate = enddate
|
|
674
|
+
@Domain = domain
|
|
675
|
+
@ReceivingMailboxType = receivingmailboxtype
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
def deserialize(params)
|
|
679
|
+
@StartDate = params['StartDate']
|
|
680
|
+
@EndDate = params['EndDate']
|
|
681
|
+
@Domain = params['Domain']
|
|
682
|
+
@ReceivingMailboxType = params['ReceivingMailboxType']
|
|
683
|
+
end
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
# GetStatisticsReport返回参数结构体
|
|
687
|
+
class GetStatisticsReportResponse < TencentCloud::Common::AbstractModel
|
|
688
|
+
# @param DailyVolumes: 发信统计报告,按天
|
|
689
|
+
# @type DailyVolumes: Array
|
|
690
|
+
# @param OverallVolume: 发信统计报告,总览
|
|
691
|
+
# @type OverallVolume: :class:`Tencentcloud::Ses.v20201002.models.Volume`
|
|
692
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
693
|
+
# @type RequestId: String
|
|
694
|
+
|
|
695
|
+
attr_accessor :DailyVolumes, :OverallVolume, :RequestId
|
|
696
|
+
|
|
697
|
+
def initialize(dailyvolumes=nil, overallvolume=nil, requestid=nil)
|
|
698
|
+
@DailyVolumes = dailyvolumes
|
|
699
|
+
@OverallVolume = overallvolume
|
|
700
|
+
@RequestId = requestid
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
def deserialize(params)
|
|
704
|
+
unless params['DailyVolumes'].nil?
|
|
705
|
+
@DailyVolumes = []
|
|
706
|
+
params['DailyVolumes'].each do |i|
|
|
707
|
+
volume_tmp = Volume.new
|
|
708
|
+
volume_tmp.deserialize(i)
|
|
709
|
+
@DailyVolumes << volume_tmp
|
|
710
|
+
end
|
|
711
|
+
end
|
|
712
|
+
unless params['OverallVolume'].nil?
|
|
713
|
+
@OverallVolume = Volume.new
|
|
714
|
+
@OverallVolume.deserialize(params['OverallVolume'])
|
|
715
|
+
end
|
|
716
|
+
@RequestId = params['RequestId']
|
|
717
|
+
end
|
|
718
|
+
end
|
|
719
|
+
|
|
720
|
+
# ListBlackEmailAddress请求参数结构体
|
|
721
|
+
class ListBlackEmailAddressRequest < TencentCloud::Common::AbstractModel
|
|
722
|
+
# @param StartDate: 开始日期,格式为YYYY-MM-DD
|
|
723
|
+
# @type StartDate: String
|
|
724
|
+
# @param EndDate: 结束日期,格式为YYYY-MM-DD
|
|
725
|
+
# @type EndDate: String
|
|
726
|
+
# @param Limit: 规范,配合Offset使用
|
|
727
|
+
# @type Limit: Integer
|
|
728
|
+
# @param Offset: 规范,配合Limit使用,Limit最大取值为100
|
|
729
|
+
# @type Offset: Integer
|
|
730
|
+
# @param EmailAddress: 可以指定邮箱进行查询
|
|
731
|
+
# @type EmailAddress: String
|
|
732
|
+
# @param TaskID: 可以指定任务ID进行查询
|
|
733
|
+
# @type TaskID: String
|
|
734
|
+
|
|
735
|
+
attr_accessor :StartDate, :EndDate, :Limit, :Offset, :EmailAddress, :TaskID
|
|
736
|
+
|
|
737
|
+
def initialize(startdate=nil, enddate=nil, limit=nil, offset=nil, emailaddress=nil, taskid=nil)
|
|
738
|
+
@StartDate = startdate
|
|
739
|
+
@EndDate = enddate
|
|
740
|
+
@Limit = limit
|
|
741
|
+
@Offset = offset
|
|
742
|
+
@EmailAddress = emailaddress
|
|
743
|
+
@TaskID = taskid
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
def deserialize(params)
|
|
747
|
+
@StartDate = params['StartDate']
|
|
748
|
+
@EndDate = params['EndDate']
|
|
749
|
+
@Limit = params['Limit']
|
|
750
|
+
@Offset = params['Offset']
|
|
751
|
+
@EmailAddress = params['EmailAddress']
|
|
752
|
+
@TaskID = params['TaskID']
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
# ListBlackEmailAddress返回参数结构体
|
|
757
|
+
class ListBlackEmailAddressResponse < TencentCloud::Common::AbstractModel
|
|
758
|
+
# @param BlackList: 黑名单列表
|
|
759
|
+
# @type BlackList: Array
|
|
760
|
+
# @param TotalCount: 黑名单总数
|
|
761
|
+
# @type TotalCount: Integer
|
|
762
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
763
|
+
# @type RequestId: String
|
|
764
|
+
|
|
765
|
+
attr_accessor :BlackList, :TotalCount, :RequestId
|
|
766
|
+
|
|
767
|
+
def initialize(blacklist=nil, totalcount=nil, requestid=nil)
|
|
768
|
+
@BlackList = blacklist
|
|
769
|
+
@TotalCount = totalcount
|
|
770
|
+
@RequestId = requestid
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
def deserialize(params)
|
|
774
|
+
unless params['BlackList'].nil?
|
|
775
|
+
@BlackList = []
|
|
776
|
+
params['BlackList'].each do |i|
|
|
777
|
+
blackemailaddress_tmp = BlackEmailAddress.new
|
|
778
|
+
blackemailaddress_tmp.deserialize(i)
|
|
779
|
+
@BlackList << blackemailaddress_tmp
|
|
780
|
+
end
|
|
781
|
+
end
|
|
782
|
+
@TotalCount = params['TotalCount']
|
|
783
|
+
@RequestId = params['RequestId']
|
|
784
|
+
end
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# ListEmailAddress请求参数结构体
|
|
788
|
+
class ListEmailAddressRequest < TencentCloud::Common::AbstractModel
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
def initialize()
|
|
792
|
+
end
|
|
793
|
+
|
|
794
|
+
def deserialize(params)
|
|
795
|
+
end
|
|
796
|
+
end
|
|
797
|
+
|
|
798
|
+
# ListEmailAddress返回参数结构体
|
|
799
|
+
class ListEmailAddressResponse < TencentCloud::Common::AbstractModel
|
|
800
|
+
# @param EmailSenders: 发信地址列表详情
|
|
801
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
802
|
+
# @type EmailSenders: Array
|
|
803
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
804
|
+
# @type RequestId: String
|
|
805
|
+
|
|
806
|
+
attr_accessor :EmailSenders, :RequestId
|
|
807
|
+
|
|
808
|
+
def initialize(emailsenders=nil, requestid=nil)
|
|
809
|
+
@EmailSenders = emailsenders
|
|
810
|
+
@RequestId = requestid
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
def deserialize(params)
|
|
814
|
+
unless params['EmailSenders'].nil?
|
|
815
|
+
@EmailSenders = []
|
|
816
|
+
params['EmailSenders'].each do |i|
|
|
817
|
+
emailsender_tmp = EmailSender.new
|
|
818
|
+
emailsender_tmp.deserialize(i)
|
|
819
|
+
@EmailSenders << emailsender_tmp
|
|
820
|
+
end
|
|
821
|
+
end
|
|
822
|
+
@RequestId = params['RequestId']
|
|
823
|
+
end
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
# ListEmailIdentities请求参数结构体
|
|
827
|
+
class ListEmailIdentitiesRequest < TencentCloud::Common::AbstractModel
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
def initialize()
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
def deserialize(params)
|
|
834
|
+
end
|
|
835
|
+
end
|
|
836
|
+
|
|
837
|
+
# ListEmailIdentities返回参数结构体
|
|
838
|
+
class ListEmailIdentitiesResponse < TencentCloud::Common::AbstractModel
|
|
839
|
+
# @param EmailIdentities: 发信域名列表
|
|
840
|
+
# @type EmailIdentities: Array
|
|
841
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
842
|
+
# @type RequestId: String
|
|
843
|
+
|
|
844
|
+
attr_accessor :EmailIdentities, :RequestId
|
|
845
|
+
|
|
846
|
+
def initialize(emailidentities=nil, requestid=nil)
|
|
847
|
+
@EmailIdentities = emailidentities
|
|
848
|
+
@RequestId = requestid
|
|
849
|
+
end
|
|
850
|
+
|
|
851
|
+
def deserialize(params)
|
|
852
|
+
unless params['EmailIdentities'].nil?
|
|
853
|
+
@EmailIdentities = []
|
|
854
|
+
params['EmailIdentities'].each do |i|
|
|
855
|
+
emailidentity_tmp = EmailIdentity.new
|
|
856
|
+
emailidentity_tmp.deserialize(i)
|
|
857
|
+
@EmailIdentities << emailidentity_tmp
|
|
858
|
+
end
|
|
859
|
+
end
|
|
860
|
+
@RequestId = params['RequestId']
|
|
861
|
+
end
|
|
862
|
+
end
|
|
863
|
+
|
|
864
|
+
# ListEmailTemplates请求参数结构体
|
|
865
|
+
class ListEmailTemplatesRequest < TencentCloud::Common::AbstractModel
|
|
866
|
+
# @param Limit: 获取模版数据量,用于分页
|
|
867
|
+
# @type Limit: Integer
|
|
868
|
+
# @param Offset: 获取模版偏移值,用于分页
|
|
869
|
+
# @type Offset: Integer
|
|
870
|
+
|
|
871
|
+
attr_accessor :Limit, :Offset
|
|
872
|
+
|
|
873
|
+
def initialize(limit=nil, offset=nil)
|
|
874
|
+
@Limit = limit
|
|
875
|
+
@Offset = offset
|
|
876
|
+
end
|
|
877
|
+
|
|
878
|
+
def deserialize(params)
|
|
879
|
+
@Limit = params['Limit']
|
|
880
|
+
@Offset = params['Offset']
|
|
881
|
+
end
|
|
882
|
+
end
|
|
883
|
+
|
|
884
|
+
# ListEmailTemplates返回参数结构体
|
|
885
|
+
class ListEmailTemplatesResponse < TencentCloud::Common::AbstractModel
|
|
886
|
+
# @param TemplatesMetadata: 邮件模板列表
|
|
887
|
+
# @type TemplatesMetadata: Array
|
|
888
|
+
# @param TotalCount: 模版总数量
|
|
889
|
+
# @type TotalCount: Integer
|
|
890
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
891
|
+
# @type RequestId: String
|
|
892
|
+
|
|
893
|
+
attr_accessor :TemplatesMetadata, :TotalCount, :RequestId
|
|
894
|
+
|
|
895
|
+
def initialize(templatesmetadata=nil, totalcount=nil, requestid=nil)
|
|
896
|
+
@TemplatesMetadata = templatesmetadata
|
|
897
|
+
@TotalCount = totalcount
|
|
898
|
+
@RequestId = requestid
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
def deserialize(params)
|
|
902
|
+
unless params['TemplatesMetadata'].nil?
|
|
903
|
+
@TemplatesMetadata = []
|
|
904
|
+
params['TemplatesMetadata'].each do |i|
|
|
905
|
+
templatesmetadata_tmp = TemplatesMetadata.new
|
|
906
|
+
templatesmetadata_tmp.deserialize(i)
|
|
907
|
+
@TemplatesMetadata << templatesmetadata_tmp
|
|
908
|
+
end
|
|
909
|
+
end
|
|
910
|
+
@TotalCount = params['TotalCount']
|
|
911
|
+
@RequestId = params['RequestId']
|
|
912
|
+
end
|
|
913
|
+
end
|
|
914
|
+
|
|
915
|
+
# SendEmail请求参数结构体
|
|
916
|
+
class SendEmailRequest < TencentCloud::Common::AbstractModel
|
|
917
|
+
# @param FromEmailAddress: 发信邮件地址。请填写发件人邮箱地址,例如:noreply@mail.qcloud.com。如需填写发件人说明,请按照
|
|
918
|
+
# 发信人 <邮件地址> 的方式填写,例如:
|
|
919
|
+
# 腾讯云团队 <noreply@mail.qcloud.com>
|
|
920
|
+
# @type FromEmailAddress: String
|
|
921
|
+
# @param Destination: 收信人邮箱地址,最多支持群发50人。注意:邮件内容会显示所有收件人地址,非群发邮件请多次调用API发送。
|
|
922
|
+
# @type Destination: Array
|
|
923
|
+
# @param Subject: 邮件主题
|
|
924
|
+
# @type Subject: String
|
|
925
|
+
# @param ReplyToAddresses: 邮件的“回复”电子邮件地址。可以填写您能收到邮件的邮箱地址,可以是个人邮箱。如果不填,收件人将会回复到腾讯云。
|
|
926
|
+
# @type ReplyToAddresses: String
|
|
927
|
+
# @param Template: 使用模板发送时,填写的模板相关参数
|
|
928
|
+
# @type Template: :class:`Tencentcloud::Ses.v20201002.models.Template`
|
|
929
|
+
# @param Simple: 使用API直接发送内容时,填写的邮件内容
|
|
930
|
+
# @type Simple: :class:`Tencentcloud::Ses.v20201002.models.Simple`
|
|
931
|
+
# @param Attachments: 需要发送附件时,填写附件相关参数。
|
|
932
|
+
# @type Attachments: Array
|
|
933
|
+
|
|
934
|
+
attr_accessor :FromEmailAddress, :Destination, :Subject, :ReplyToAddresses, :Template, :Simple, :Attachments
|
|
935
|
+
|
|
936
|
+
def initialize(fromemailaddress=nil, destination=nil, subject=nil, replytoaddresses=nil, template=nil, simple=nil, attachments=nil)
|
|
937
|
+
@FromEmailAddress = fromemailaddress
|
|
938
|
+
@Destination = destination
|
|
939
|
+
@Subject = subject
|
|
940
|
+
@ReplyToAddresses = replytoaddresses
|
|
941
|
+
@Template = template
|
|
942
|
+
@Simple = simple
|
|
943
|
+
@Attachments = attachments
|
|
944
|
+
end
|
|
945
|
+
|
|
946
|
+
def deserialize(params)
|
|
947
|
+
@FromEmailAddress = params['FromEmailAddress']
|
|
948
|
+
@Destination = params['Destination']
|
|
949
|
+
@Subject = params['Subject']
|
|
950
|
+
@ReplyToAddresses = params['ReplyToAddresses']
|
|
951
|
+
unless params['Template'].nil?
|
|
952
|
+
@Template = Template.new
|
|
953
|
+
@Template.deserialize(params['Template'])
|
|
954
|
+
end
|
|
955
|
+
unless params['Simple'].nil?
|
|
956
|
+
@Simple = Simple.new
|
|
957
|
+
@Simple.deserialize(params['Simple'])
|
|
958
|
+
end
|
|
959
|
+
unless params['Attachments'].nil?
|
|
960
|
+
@Attachments = []
|
|
961
|
+
params['Attachments'].each do |i|
|
|
962
|
+
attachment_tmp = Attachment.new
|
|
963
|
+
attachment_tmp.deserialize(i)
|
|
964
|
+
@Attachments << attachment_tmp
|
|
965
|
+
end
|
|
966
|
+
end
|
|
967
|
+
end
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
# SendEmail返回参数结构体
|
|
971
|
+
class SendEmailResponse < TencentCloud::Common::AbstractModel
|
|
972
|
+
# @param MessageId: 接受消息生成的唯一消息标识符。
|
|
973
|
+
# @type MessageId: String
|
|
974
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
975
|
+
# @type RequestId: String
|
|
976
|
+
|
|
977
|
+
attr_accessor :MessageId, :RequestId
|
|
978
|
+
|
|
979
|
+
def initialize(messageid=nil, requestid=nil)
|
|
980
|
+
@MessageId = messageid
|
|
981
|
+
@RequestId = requestid
|
|
982
|
+
end
|
|
983
|
+
|
|
984
|
+
def deserialize(params)
|
|
985
|
+
@MessageId = params['MessageId']
|
|
986
|
+
@RequestId = params['RequestId']
|
|
987
|
+
end
|
|
988
|
+
end
|
|
989
|
+
|
|
990
|
+
# 描述邮件发送状态
|
|
991
|
+
class SendEmailStatus < TencentCloud::Common::AbstractModel
|
|
992
|
+
# @param MessageId: SendEmail返回的MessageId
|
|
993
|
+
# @type MessageId: String
|
|
994
|
+
# @param ToEmailAddress: 收件人邮箱
|
|
995
|
+
# @type ToEmailAddress: String
|
|
996
|
+
# @param FromEmailAddress: 发件人邮箱
|
|
997
|
+
# @type FromEmailAddress: String
|
|
998
|
+
# @param SendStatus: 腾讯云处理状态
|
|
999
|
+
# 0: 处理成功
|
|
1000
|
+
# 1001: 内部系统异常
|
|
1001
|
+
# 1002: 内部系统异常
|
|
1002
|
+
# 1003: 内部系统异常
|
|
1003
|
+
# 1003: 内部系统异常
|
|
1004
|
+
# 1004: 发信超时
|
|
1005
|
+
# 1005: 内部系统异常
|
|
1006
|
+
# 1006: 触发频率控制,短时间内对同一地址发送过多邮件
|
|
1007
|
+
# 1007: 邮件地址在黑名单中
|
|
1008
|
+
# 1009: 内部系统异常
|
|
1009
|
+
# 1010: 超出了每日发送限制
|
|
1010
|
+
# 1011: 无发送自定义内容权限,必须使用模板
|
|
1011
|
+
# 2001: 找不到相关记录
|
|
1012
|
+
# 3007: 模板ID无效或者不可用
|
|
1013
|
+
# 3008: 模板状态异常
|
|
1014
|
+
# 3009: 无权限使用该模板
|
|
1015
|
+
# 3010: TemplateData字段格式不正确
|
|
1016
|
+
# 3014: 发件域名没有经过认证,无法发送
|
|
1017
|
+
# 3020: 收件方邮箱类型在黑名单
|
|
1018
|
+
# 3024: 邮箱地址格式预检查失败
|
|
1019
|
+
# 3030: 退信率过高,临时限制发送
|
|
1020
|
+
# 3033: 余额不足,账号欠费等
|
|
1021
|
+
# @type SendStatus: Integer
|
|
1022
|
+
# @param DeliverStatus: 收件方处理状态
|
|
1023
|
+
# 0: 请求成功被腾讯云接受,进入发送队列
|
|
1024
|
+
# 1: 邮件递送成功,DeliverTime表示递送成功的时间
|
|
1025
|
+
# 2: 邮件因某种原因被丢弃,DeliverMessage表示丢弃原因
|
|
1026
|
+
# 3: 收件方ESP拒信,一般原因为邮箱地址不存在,或其它原因
|
|
1027
|
+
# 8: 邮件被ESP因某些原因延迟递送,DeliverMessage表示延迟原因
|
|
1028
|
+
# @type DeliverStatus: Integer
|
|
1029
|
+
# @param DeliverMessage: 收件方处理状态描述
|
|
1030
|
+
# @type DeliverMessage: String
|
|
1031
|
+
# @param RequestTime: 请求到达腾讯云时间戳
|
|
1032
|
+
# @type RequestTime: Integer
|
|
1033
|
+
# @param DeliverTime: 腾讯云执行递送时间戳
|
|
1034
|
+
# @type DeliverTime: Integer
|
|
1035
|
+
# @param UserOpened: 用户是否打开该邮件
|
|
1036
|
+
# @type UserOpened: Boolean
|
|
1037
|
+
# @param UserClicked: 用户是否点击该邮件中的链接
|
|
1038
|
+
# @type UserClicked: Boolean
|
|
1039
|
+
# @param UserUnsubscribed: 用户是否取消该发送者的订阅
|
|
1040
|
+
# @type UserUnsubscribed: Boolean
|
|
1041
|
+
# @param UserComplainted: 用户是否举报该发送者
|
|
1042
|
+
# @type UserComplainted: Boolean
|
|
1043
|
+
|
|
1044
|
+
attr_accessor :MessageId, :ToEmailAddress, :FromEmailAddress, :SendStatus, :DeliverStatus, :DeliverMessage, :RequestTime, :DeliverTime, :UserOpened, :UserClicked, :UserUnsubscribed, :UserComplainted
|
|
1045
|
+
|
|
1046
|
+
def initialize(messageid=nil, toemailaddress=nil, fromemailaddress=nil, sendstatus=nil, deliverstatus=nil, delivermessage=nil, requesttime=nil, delivertime=nil, useropened=nil, userclicked=nil, userunsubscribed=nil, usercomplainted=nil)
|
|
1047
|
+
@MessageId = messageid
|
|
1048
|
+
@ToEmailAddress = toemailaddress
|
|
1049
|
+
@FromEmailAddress = fromemailaddress
|
|
1050
|
+
@SendStatus = sendstatus
|
|
1051
|
+
@DeliverStatus = deliverstatus
|
|
1052
|
+
@DeliverMessage = delivermessage
|
|
1053
|
+
@RequestTime = requesttime
|
|
1054
|
+
@DeliverTime = delivertime
|
|
1055
|
+
@UserOpened = useropened
|
|
1056
|
+
@UserClicked = userclicked
|
|
1057
|
+
@UserUnsubscribed = userunsubscribed
|
|
1058
|
+
@UserComplainted = usercomplainted
|
|
1059
|
+
end
|
|
1060
|
+
|
|
1061
|
+
def deserialize(params)
|
|
1062
|
+
@MessageId = params['MessageId']
|
|
1063
|
+
@ToEmailAddress = params['ToEmailAddress']
|
|
1064
|
+
@FromEmailAddress = params['FromEmailAddress']
|
|
1065
|
+
@SendStatus = params['SendStatus']
|
|
1066
|
+
@DeliverStatus = params['DeliverStatus']
|
|
1067
|
+
@DeliverMessage = params['DeliverMessage']
|
|
1068
|
+
@RequestTime = params['RequestTime']
|
|
1069
|
+
@DeliverTime = params['DeliverTime']
|
|
1070
|
+
@UserOpened = params['UserOpened']
|
|
1071
|
+
@UserClicked = params['UserClicked']
|
|
1072
|
+
@UserUnsubscribed = params['UserUnsubscribed']
|
|
1073
|
+
@UserComplainted = params['UserComplainted']
|
|
1074
|
+
end
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1077
|
+
# 邮件发送的内容,可以是纯文本(TEXT),也可以是纯代码(HTML),或者纯文本+HTML的组合(建议方式)
|
|
1078
|
+
class Simple < TencentCloud::Common::AbstractModel
|
|
1079
|
+
# @param Html: base64之后的Html代码。需要包含所有的代码信息,不要包含外部css,否则会导致显示格式错乱
|
|
1080
|
+
# @type Html: String
|
|
1081
|
+
# @param Text: base64之后的纯文本信息,如果没有Html,邮件中会直接显示纯文本;如果有Html,它代表邮件的纯文本样式
|
|
1082
|
+
# @type Text: String
|
|
1083
|
+
|
|
1084
|
+
attr_accessor :Html, :Text
|
|
1085
|
+
|
|
1086
|
+
def initialize(html=nil, text=nil)
|
|
1087
|
+
@Html = html
|
|
1088
|
+
@Text = text
|
|
1089
|
+
end
|
|
1090
|
+
|
|
1091
|
+
def deserialize(params)
|
|
1092
|
+
@Html = params['Html']
|
|
1093
|
+
@Text = params['Text']
|
|
1094
|
+
end
|
|
1095
|
+
end
|
|
1096
|
+
|
|
1097
|
+
# 模板发送相关信息,包含模板ID,模板变量参数等信息
|
|
1098
|
+
class Template < TencentCloud::Common::AbstractModel
|
|
1099
|
+
# @param TemplateID: 模板ID。如果没有模板,请先新建一个
|
|
1100
|
+
# @type TemplateID: Integer
|
|
1101
|
+
# @param TemplateData: 模板中的变量参数,请使用json.dump将json对象格式化为string类型。该对象是一组键值对,每个Key代表模板中的一个变量,模板中的变量使用{{键}}表示,相应的值在发送时会被替换为{{值}}。
|
|
1102
|
+
# 注意:参数值不能是html等复杂类型的数据。
|
|
1103
|
+
# 示例:{"name":"xxx","age":"xx"}
|
|
1104
|
+
# @type TemplateData: String
|
|
1105
|
+
|
|
1106
|
+
attr_accessor :TemplateID, :TemplateData
|
|
1107
|
+
|
|
1108
|
+
def initialize(templateid=nil, templatedata=nil)
|
|
1109
|
+
@TemplateID = templateid
|
|
1110
|
+
@TemplateData = templatedata
|
|
1111
|
+
end
|
|
1112
|
+
|
|
1113
|
+
def deserialize(params)
|
|
1114
|
+
@TemplateID = params['TemplateID']
|
|
1115
|
+
@TemplateData = params['TemplateData']
|
|
1116
|
+
end
|
|
1117
|
+
end
|
|
1118
|
+
|
|
1119
|
+
# 模板内容,TEXT和HTML必须至少存在一项,建议使用TEXT和HTML的组合
|
|
1120
|
+
class TemplateContent < TencentCloud::Common::AbstractModel
|
|
1121
|
+
# @param Html: base64之后的Html代码
|
|
1122
|
+
# @type Html: String
|
|
1123
|
+
# @param Text: base64之后的文本内容
|
|
1124
|
+
# @type Text: String
|
|
1125
|
+
|
|
1126
|
+
attr_accessor :Html, :Text
|
|
1127
|
+
|
|
1128
|
+
def initialize(html=nil, text=nil)
|
|
1129
|
+
@Html = html
|
|
1130
|
+
@Text = text
|
|
1131
|
+
end
|
|
1132
|
+
|
|
1133
|
+
def deserialize(params)
|
|
1134
|
+
@Html = params['Html']
|
|
1135
|
+
@Text = params['Text']
|
|
1136
|
+
end
|
|
1137
|
+
end
|
|
1138
|
+
|
|
1139
|
+
# 模板列表结构
|
|
1140
|
+
class TemplatesMetadata < TencentCloud::Common::AbstractModel
|
|
1141
|
+
# @param CreatedTimestamp: 创建时间
|
|
1142
|
+
# @type CreatedTimestamp: Integer
|
|
1143
|
+
# @param TemplateName: 模板名称
|
|
1144
|
+
# @type TemplateName: String
|
|
1145
|
+
# @param TemplateStatus: 模板状态。1-审核中|0-已通过|2-拒绝|其它-不可用
|
|
1146
|
+
# @type TemplateStatus: Integer
|
|
1147
|
+
# @param TemplateID: 模板ID
|
|
1148
|
+
# @type TemplateID: Integer
|
|
1149
|
+
# @param ReviewReason: 审核原因
|
|
1150
|
+
# @type ReviewReason: String
|
|
1151
|
+
|
|
1152
|
+
attr_accessor :CreatedTimestamp, :TemplateName, :TemplateStatus, :TemplateID, :ReviewReason
|
|
1153
|
+
|
|
1154
|
+
def initialize(createdtimestamp=nil, templatename=nil, templatestatus=nil, templateid=nil, reviewreason=nil)
|
|
1155
|
+
@CreatedTimestamp = createdtimestamp
|
|
1156
|
+
@TemplateName = templatename
|
|
1157
|
+
@TemplateStatus = templatestatus
|
|
1158
|
+
@TemplateID = templateid
|
|
1159
|
+
@ReviewReason = reviewreason
|
|
1160
|
+
end
|
|
1161
|
+
|
|
1162
|
+
def deserialize(params)
|
|
1163
|
+
@CreatedTimestamp = params['CreatedTimestamp']
|
|
1164
|
+
@TemplateName = params['TemplateName']
|
|
1165
|
+
@TemplateStatus = params['TemplateStatus']
|
|
1166
|
+
@TemplateID = params['TemplateID']
|
|
1167
|
+
@ReviewReason = params['ReviewReason']
|
|
1168
|
+
end
|
|
1169
|
+
end
|
|
1170
|
+
|
|
1171
|
+
# 创建定时发送邮件任务时,设置的定时参数,比如开始时间之类
|
|
1172
|
+
class TimedEmailParam < TencentCloud::Common::AbstractModel
|
|
1173
|
+
# @param BeginTime: 定时发送邮件的开始时间
|
|
1174
|
+
# @type BeginTime: String
|
|
1175
|
+
|
|
1176
|
+
attr_accessor :BeginTime
|
|
1177
|
+
|
|
1178
|
+
def initialize(begintime=nil)
|
|
1179
|
+
@BeginTime = begintime
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
def deserialize(params)
|
|
1183
|
+
@BeginTime = params['BeginTime']
|
|
1184
|
+
end
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1187
|
+
# UpdateEmailIdentity请求参数结构体
|
|
1188
|
+
class UpdateEmailIdentityRequest < TencentCloud::Common::AbstractModel
|
|
1189
|
+
# @param EmailIdentity: 请求验证的域名
|
|
1190
|
+
# @type EmailIdentity: String
|
|
1191
|
+
|
|
1192
|
+
attr_accessor :EmailIdentity
|
|
1193
|
+
|
|
1194
|
+
def initialize(emailidentity=nil)
|
|
1195
|
+
@EmailIdentity = emailidentity
|
|
1196
|
+
end
|
|
1197
|
+
|
|
1198
|
+
def deserialize(params)
|
|
1199
|
+
@EmailIdentity = params['EmailIdentity']
|
|
1200
|
+
end
|
|
1201
|
+
end
|
|
1202
|
+
|
|
1203
|
+
# UpdateEmailIdentity返回参数结构体
|
|
1204
|
+
class UpdateEmailIdentityResponse < TencentCloud::Common::AbstractModel
|
|
1205
|
+
# @param IdentityType: 验证类型。固定值:DOMAIN
|
|
1206
|
+
# @type IdentityType: String
|
|
1207
|
+
# @param VerifiedForSendingStatus: 是否已通过验证
|
|
1208
|
+
# @type VerifiedForSendingStatus: Boolean
|
|
1209
|
+
# @param Attributes: 需要配置的DNS信息
|
|
1210
|
+
# @type Attributes: Array
|
|
1211
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1212
|
+
# @type RequestId: String
|
|
1213
|
+
|
|
1214
|
+
attr_accessor :IdentityType, :VerifiedForSendingStatus, :Attributes, :RequestId
|
|
1215
|
+
|
|
1216
|
+
def initialize(identitytype=nil, verifiedforsendingstatus=nil, attributes=nil, requestid=nil)
|
|
1217
|
+
@IdentityType = identitytype
|
|
1218
|
+
@VerifiedForSendingStatus = verifiedforsendingstatus
|
|
1219
|
+
@Attributes = attributes
|
|
1220
|
+
@RequestId = requestid
|
|
1221
|
+
end
|
|
1222
|
+
|
|
1223
|
+
def deserialize(params)
|
|
1224
|
+
@IdentityType = params['IdentityType']
|
|
1225
|
+
@VerifiedForSendingStatus = params['VerifiedForSendingStatus']
|
|
1226
|
+
unless params['Attributes'].nil?
|
|
1227
|
+
@Attributes = []
|
|
1228
|
+
params['Attributes'].each do |i|
|
|
1229
|
+
dnsattributes_tmp = DNSAttributes.new
|
|
1230
|
+
dnsattributes_tmp.deserialize(i)
|
|
1231
|
+
@Attributes << dnsattributes_tmp
|
|
1232
|
+
end
|
|
1233
|
+
end
|
|
1234
|
+
@RequestId = params['RequestId']
|
|
1235
|
+
end
|
|
1236
|
+
end
|
|
1237
|
+
|
|
1238
|
+
# UpdateEmailTemplate请求参数结构体
|
|
1239
|
+
class UpdateEmailTemplateRequest < TencentCloud::Common::AbstractModel
|
|
1240
|
+
# @param TemplateContent: 模板内容
|
|
1241
|
+
# @type TemplateContent: :class:`Tencentcloud::Ses.v20201002.models.TemplateContent`
|
|
1242
|
+
# @param TemplateID: 模板ID
|
|
1243
|
+
# @type TemplateID: Integer
|
|
1244
|
+
# @param TemplateName: 模版名字
|
|
1245
|
+
# @type TemplateName: String
|
|
1246
|
+
|
|
1247
|
+
attr_accessor :TemplateContent, :TemplateID, :TemplateName
|
|
1248
|
+
|
|
1249
|
+
def initialize(templatecontent=nil, templateid=nil, templatename=nil)
|
|
1250
|
+
@TemplateContent = templatecontent
|
|
1251
|
+
@TemplateID = templateid
|
|
1252
|
+
@TemplateName = templatename
|
|
1253
|
+
end
|
|
1254
|
+
|
|
1255
|
+
def deserialize(params)
|
|
1256
|
+
unless params['TemplateContent'].nil?
|
|
1257
|
+
@TemplateContent = TemplateContent.new
|
|
1258
|
+
@TemplateContent.deserialize(params['TemplateContent'])
|
|
1259
|
+
end
|
|
1260
|
+
@TemplateID = params['TemplateID']
|
|
1261
|
+
@TemplateName = params['TemplateName']
|
|
1262
|
+
end
|
|
1263
|
+
end
|
|
1264
|
+
|
|
1265
|
+
# UpdateEmailTemplate返回参数结构体
|
|
1266
|
+
class UpdateEmailTemplateResponse < TencentCloud::Common::AbstractModel
|
|
1267
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1268
|
+
# @type RequestId: String
|
|
1269
|
+
|
|
1270
|
+
attr_accessor :RequestId
|
|
1271
|
+
|
|
1272
|
+
def initialize(requestid=nil)
|
|
1273
|
+
@RequestId = requestid
|
|
1274
|
+
end
|
|
1275
|
+
|
|
1276
|
+
def deserialize(params)
|
|
1277
|
+
@RequestId = params['RequestId']
|
|
1278
|
+
end
|
|
1279
|
+
end
|
|
1280
|
+
|
|
1281
|
+
# 统计数据的结构体
|
|
1282
|
+
class Volume < TencentCloud::Common::AbstractModel
|
|
1283
|
+
# @param SendDate: 日期
|
|
1284
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1285
|
+
# @type SendDate: String
|
|
1286
|
+
# @param RequestCount: 邮件请求数量
|
|
1287
|
+
# @type RequestCount: Integer
|
|
1288
|
+
# @param AcceptedCount: 腾讯云通过数量
|
|
1289
|
+
# @type AcceptedCount: Integer
|
|
1290
|
+
# @param DeliveredCount: 送达数量
|
|
1291
|
+
# @type DeliveredCount: Integer
|
|
1292
|
+
# @param OpenedCount: 打开邮件的用户数量,根据收件人去重
|
|
1293
|
+
# @type OpenedCount: Integer
|
|
1294
|
+
# @param ClickedCount: 点击了邮件中的链接数量用户数量
|
|
1295
|
+
# @type ClickedCount: Integer
|
|
1296
|
+
# @param BounceCount: 退信数量
|
|
1297
|
+
# @type BounceCount: Integer
|
|
1298
|
+
# @param UnsubscribeCount: 取消订阅的用户数量
|
|
1299
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1300
|
+
# @type UnsubscribeCount: Integer
|
|
1301
|
+
|
|
1302
|
+
attr_accessor :SendDate, :RequestCount, :AcceptedCount, :DeliveredCount, :OpenedCount, :ClickedCount, :BounceCount, :UnsubscribeCount
|
|
1303
|
+
|
|
1304
|
+
def initialize(senddate=nil, requestcount=nil, acceptedcount=nil, deliveredcount=nil, openedcount=nil, clickedcount=nil, bouncecount=nil, unsubscribecount=nil)
|
|
1305
|
+
@SendDate = senddate
|
|
1306
|
+
@RequestCount = requestcount
|
|
1307
|
+
@AcceptedCount = acceptedcount
|
|
1308
|
+
@DeliveredCount = deliveredcount
|
|
1309
|
+
@OpenedCount = openedcount
|
|
1310
|
+
@ClickedCount = clickedcount
|
|
1311
|
+
@BounceCount = bouncecount
|
|
1312
|
+
@UnsubscribeCount = unsubscribecount
|
|
1313
|
+
end
|
|
1314
|
+
|
|
1315
|
+
def deserialize(params)
|
|
1316
|
+
@SendDate = params['SendDate']
|
|
1317
|
+
@RequestCount = params['RequestCount']
|
|
1318
|
+
@AcceptedCount = params['AcceptedCount']
|
|
1319
|
+
@DeliveredCount = params['DeliveredCount']
|
|
1320
|
+
@OpenedCount = params['OpenedCount']
|
|
1321
|
+
@ClickedCount = params['ClickedCount']
|
|
1322
|
+
@BounceCount = params['BounceCount']
|
|
1323
|
+
@UnsubscribeCount = params['UnsubscribeCount']
|
|
1324
|
+
end
|
|
1325
|
+
end
|
|
1326
|
+
|
|
1327
|
+
end
|
|
1328
|
+
end
|
|
1329
|
+
end
|
|
1330
|
+
|