tencentcloud-sdk-ses 1.0.271 → 1.0.272
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201002/client.rb +24 -0
- data/lib/v20201002/models.rb +64 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 637e89b6b0a82686c960363d1e0861d945a31c24
|
4
|
+
data.tar.gz: 0b634835a7b12cf990def31495783970c1a4da85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cdbaa79fb53374ac5665ded24a27da995d98b195f7a8470651208a1acce15364fb65cb0c37966557ee7b4454ad47eebe74891c72980cce1efdad19b623fc818
|
7
|
+
data.tar.gz: 760db0f9c753db520ef9a22c0d0604126f5dd2b84cfea78ab2c15386fc4a565ab9b0866ca052386c87e4d1c5bfb71e2ccb166f115bf8c58d03cf27307da066e2
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.272
|
data/lib/v20201002/client.rb
CHANGED
@@ -174,6 +174,30 @@ module TencentCloud
|
|
174
174
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
175
175
|
end
|
176
176
|
|
177
|
+
# 添加收件人地址附带模板参数
|
178
|
+
|
179
|
+
# @param request: Request instance for CreateReceiverDetailWithData.
|
180
|
+
# @type request: :class:`Tencentcloud::ses::V20201002::CreateReceiverDetailWithDataRequest`
|
181
|
+
# @rtype: :class:`Tencentcloud::ses::V20201002::CreateReceiverDetailWithDataResponse`
|
182
|
+
def CreateReceiverDetailWithData(request)
|
183
|
+
body = send_request('CreateReceiverDetailWithData', request.serialize)
|
184
|
+
response = JSON.parse(body)
|
185
|
+
if response['Response'].key?('Error') == false
|
186
|
+
model = CreateReceiverDetailWithDataResponse.new
|
187
|
+
model.deserialize(response['Response'])
|
188
|
+
model
|
189
|
+
else
|
190
|
+
code = response['Response']['Error']['Code']
|
191
|
+
message = response['Response']['Error']['Message']
|
192
|
+
reqid = response['Response']['RequestId']
|
193
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
194
|
+
end
|
195
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
196
|
+
raise e
|
197
|
+
rescue StandardError => e
|
198
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
199
|
+
end
|
200
|
+
|
177
201
|
# 邮箱被拉黑之后,用户如果确认收件邮箱有效或者已经处于激活状态,可以从腾讯云地址库中删除该黑名单之后继续投递。
|
178
202
|
|
179
203
|
# @param request: Request instance for DeleteBlackList.
|
data/lib/v20201002/models.rb
CHANGED
@@ -316,6 +316,49 @@ module TencentCloud
|
|
316
316
|
end
|
317
317
|
end
|
318
318
|
|
319
|
+
# CreateReceiverDetailWithData请求参数结构体
|
320
|
+
class CreateReceiverDetailWithDataRequest < TencentCloud::Common::AbstractModel
|
321
|
+
# @param ReceiverId: 收件人列表ID
|
322
|
+
# @type ReceiverId: Integer
|
323
|
+
# @param Datas: 收信人邮箱以及模板参数,数组形式
|
324
|
+
# @type Datas: Array
|
325
|
+
|
326
|
+
attr_accessor :ReceiverId, :Datas
|
327
|
+
|
328
|
+
def initialize(receiverid=nil, datas=nil)
|
329
|
+
@ReceiverId = receiverid
|
330
|
+
@Datas = datas
|
331
|
+
end
|
332
|
+
|
333
|
+
def deserialize(params)
|
334
|
+
@ReceiverId = params['ReceiverId']
|
335
|
+
unless params['Datas'].nil?
|
336
|
+
@Datas = []
|
337
|
+
params['Datas'].each do |i|
|
338
|
+
receiverinputdata_tmp = ReceiverInputData.new
|
339
|
+
receiverinputdata_tmp.deserialize(i)
|
340
|
+
@Datas << receiverinputdata_tmp
|
341
|
+
end
|
342
|
+
end
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
# CreateReceiverDetailWithData返回参数结构体
|
347
|
+
class CreateReceiverDetailWithDataResponse < TencentCloud::Common::AbstractModel
|
348
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
349
|
+
# @type RequestId: String
|
350
|
+
|
351
|
+
attr_accessor :RequestId
|
352
|
+
|
353
|
+
def initialize(requestid=nil)
|
354
|
+
@RequestId = requestid
|
355
|
+
end
|
356
|
+
|
357
|
+
def deserialize(params)
|
358
|
+
@RequestId = params['RequestId']
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
319
362
|
# CreateReceiver请求参数结构体
|
320
363
|
class CreateReceiverRequest < TencentCloud::Common::AbstractModel
|
321
364
|
# @param ReceiversName: 收件人列表名称
|
@@ -1152,6 +1195,27 @@ module TencentCloud
|
|
1152
1195
|
end
|
1153
1196
|
end
|
1154
1197
|
|
1198
|
+
# 收件人明细输入参数,包含收件人邮箱,以及模板参数
|
1199
|
+
class ReceiverInputData < TencentCloud::Common::AbstractModel
|
1200
|
+
# @param Email: 收件人邮箱
|
1201
|
+
# @type Email: String
|
1202
|
+
# @param TemplateData: 模板中的变量参数,请使用json.dump将json对象格式化为string类型。该对象是一组键值对,每个Key代表模板中的一个变量,模板中的变量使用{{键}}表示,相应的值在发送时会被替换为{{值}}。
|
1203
|
+
# 注意:参数值不能是html等复杂类型的数据。
|
1204
|
+
# @type TemplateData: String
|
1205
|
+
|
1206
|
+
attr_accessor :Email, :TemplateData
|
1207
|
+
|
1208
|
+
def initialize(email=nil, templatedata=nil)
|
1209
|
+
@Email = email
|
1210
|
+
@TemplateData = templatedata
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
def deserialize(params)
|
1214
|
+
@Email = params['Email']
|
1215
|
+
@TemplateData = params['TemplateData']
|
1216
|
+
end
|
1217
|
+
end
|
1218
|
+
|
1155
1219
|
# SendEmail请求参数结构体
|
1156
1220
|
class SendEmailRequest < TencentCloud::Common::AbstractModel
|
1157
1221
|
# @param FromEmailAddress: 发信邮件地址。请填写发件人邮箱地址,例如:noreply@mail.qcloud.com
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ses
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.272
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|