tencentcloud-sdk-ses 3.0.853 → 3.0.854
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 +96 -0
- data/lib/v20201002/models.rb +204 -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: f4606af96f9b2f0ae73f3f69a3bd15972a474eaf
|
4
|
+
data.tar.gz: c412d7e42cba88f2c216c414c91b68e9ec11f842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56addc7fc0c593f35dce5b7af9a6a6f515b51ec9b74c3647f2096e015651475448b0d82464ef808fbb6d88ea098122f485d7b16dbd8eb4e7b9aeffc5b9510948
|
7
|
+
data.tar.gz: f9fffb2fffb53be4a169facb2e6cc8ad5a4d59fc298a15ce55669832aad0396110d5d33e99aa814eba0f7023153fdd583afa2e07fe5ade4c4e1826bca48f292b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.854
|
data/lib/v20201002/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 添加自定义黑名单
|
57
|
+
|
58
|
+
# @param request: Request instance for CreateCustomBlacklist.
|
59
|
+
# @type request: :class:`Tencentcloud::ses::V20201002::CreateCustomBlacklistRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::ses::V20201002::CreateCustomBlacklistResponse`
|
61
|
+
def CreateCustomBlacklist(request)
|
62
|
+
body = send_request('CreateCustomBlacklist', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateCustomBlacklistResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 在验证了发信域名之后,您需要一个发信地址来发送邮件。例如发信域名是mail.qcloud.com,那么发信地址可以为 service@mail.qcloud.com。如果您想要收件人在收件箱列表中显示您的别名,例如"腾讯云邮件通知"。那么发信地址为: 别名 空格 尖括号 邮箱地址。请注意中间需要有空格
|
57
81
|
|
58
82
|
# @param request: Request instance for CreateEmailAddress.
|
@@ -222,6 +246,30 @@ module TencentCloud
|
|
222
246
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
223
247
|
end
|
224
248
|
|
249
|
+
# 删除自定义黑名单邮箱地址
|
250
|
+
|
251
|
+
# @param request: Request instance for DeleteCustomBlackList.
|
252
|
+
# @type request: :class:`Tencentcloud::ses::V20201002::DeleteCustomBlackListRequest`
|
253
|
+
# @rtype: :class:`Tencentcloud::ses::V20201002::DeleteCustomBlackListResponse`
|
254
|
+
def DeleteCustomBlackList(request)
|
255
|
+
body = send_request('DeleteCustomBlackList', request.serialize)
|
256
|
+
response = JSON.parse(body)
|
257
|
+
if response['Response'].key?('Error') == false
|
258
|
+
model = DeleteCustomBlackListResponse.new
|
259
|
+
model.deserialize(response['Response'])
|
260
|
+
model
|
261
|
+
else
|
262
|
+
code = response['Response']['Error']['Code']
|
263
|
+
message = response['Response']['Error']['Message']
|
264
|
+
reqid = response['Response']['RequestId']
|
265
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
266
|
+
end
|
267
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
268
|
+
raise e
|
269
|
+
rescue StandardError => e
|
270
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
271
|
+
end
|
272
|
+
|
225
273
|
# 删除发信人地址
|
226
274
|
|
227
275
|
# @param request: Request instance for DeleteEmailAddress.
|
@@ -438,6 +486,30 @@ module TencentCloud
|
|
438
486
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
439
487
|
end
|
440
488
|
|
489
|
+
# 获取自定义黑名单列表
|
490
|
+
|
491
|
+
# @param request: Request instance for ListCustomBlacklist.
|
492
|
+
# @type request: :class:`Tencentcloud::ses::V20201002::ListCustomBlacklistRequest`
|
493
|
+
# @rtype: :class:`Tencentcloud::ses::V20201002::ListCustomBlacklistResponse`
|
494
|
+
def ListCustomBlacklist(request)
|
495
|
+
body = send_request('ListCustomBlacklist', request.serialize)
|
496
|
+
response = JSON.parse(body)
|
497
|
+
if response['Response'].key?('Error') == false
|
498
|
+
model = ListCustomBlacklistResponse.new
|
499
|
+
model.deserialize(response['Response'])
|
500
|
+
model
|
501
|
+
else
|
502
|
+
code = response['Response']['Error']['Code']
|
503
|
+
message = response['Response']['Error']['Message']
|
504
|
+
reqid = response['Response']['RequestId']
|
505
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
506
|
+
end
|
507
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
508
|
+
raise e
|
509
|
+
rescue StandardError => e
|
510
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
511
|
+
end
|
512
|
+
|
441
513
|
# 获取发信地址列表
|
442
514
|
|
443
515
|
# @param request: Request instance for ListEmailAddress.
|
@@ -606,6 +678,30 @@ module TencentCloud
|
|
606
678
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
607
679
|
end
|
608
680
|
|
681
|
+
# 更新自定义黑名单
|
682
|
+
|
683
|
+
# @param request: Request instance for UpdateCustomBlackList.
|
684
|
+
# @type request: :class:`Tencentcloud::ses::V20201002::UpdateCustomBlackListRequest`
|
685
|
+
# @rtype: :class:`Tencentcloud::ses::V20201002::UpdateCustomBlackListResponse`
|
686
|
+
def UpdateCustomBlackList(request)
|
687
|
+
body = send_request('UpdateCustomBlackList', request.serialize)
|
688
|
+
response = JSON.parse(body)
|
689
|
+
if response['Response'].key?('Error') == false
|
690
|
+
model = UpdateCustomBlackListResponse.new
|
691
|
+
model.deserialize(response['Response'])
|
692
|
+
model
|
693
|
+
else
|
694
|
+
code = response['Response']['Error']['Code']
|
695
|
+
message = response['Response']['Error']['Message']
|
696
|
+
reqid = response['Response']['RequestId']
|
697
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
698
|
+
end
|
699
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
700
|
+
raise e
|
701
|
+
rescue StandardError => e
|
702
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
703
|
+
end
|
704
|
+
|
609
705
|
# 您已经成功配置好了您的DNS,接下来请求腾讯云验证您的DNS配置是否正确
|
610
706
|
|
611
707
|
# @param request: Request instance for UpdateEmailIdentity.
|
data/lib/v20201002/models.rb
CHANGED
@@ -140,6 +140,43 @@ module TencentCloud
|
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
143
|
+
# 黑名单详情
|
144
|
+
class BlackAddressDetail < TencentCloud::Common::AbstractModel
|
145
|
+
# @param Id: 黑名单地址id
|
146
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
147
|
+
# @type Id: Integer
|
148
|
+
# @param Email: 邮箱地址
|
149
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
150
|
+
# @type Email: String
|
151
|
+
# @param CreateTime: 创建时间
|
152
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
153
|
+
# @type CreateTime: String
|
154
|
+
# @param ExpireDate: 过期时间
|
155
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
156
|
+
# @type ExpireDate: String
|
157
|
+
# @param Status: 黑名单状态,0:已过期,1:生效中
|
158
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
159
|
+
# @type Status: Integer
|
160
|
+
|
161
|
+
attr_accessor :Id, :Email, :CreateTime, :ExpireDate, :Status
|
162
|
+
|
163
|
+
def initialize(id=nil, email=nil, createtime=nil, expiredate=nil, status=nil)
|
164
|
+
@Id = id
|
165
|
+
@Email = email
|
166
|
+
@CreateTime = createtime
|
167
|
+
@ExpireDate = expiredate
|
168
|
+
@Status = status
|
169
|
+
end
|
170
|
+
|
171
|
+
def deserialize(params)
|
172
|
+
@Id = params['Id']
|
173
|
+
@Email = params['Email']
|
174
|
+
@CreateTime = params['CreateTime']
|
175
|
+
@ExpireDate = params['ExpireDate']
|
176
|
+
@Status = params['Status']
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
143
180
|
# 邮箱黑名单结构,包含被拉黑的邮箱地址和被拉黑时间,以及被拉黑的理由
|
144
181
|
class BlackEmailAddress < TencentCloud::Common::AbstractModel
|
145
182
|
# @param BounceTime: 邮箱被拉黑时间
|
@@ -165,6 +202,42 @@ module TencentCloud
|
|
165
202
|
end
|
166
203
|
end
|
167
204
|
|
205
|
+
# CreateCustomBlacklist请求参数结构体
|
206
|
+
class CreateCustomBlacklistRequest < TencentCloud::Common::AbstractModel
|
207
|
+
# @param Emails: 添加到黑名单的邮件地址
|
208
|
+
# @type Emails: Array
|
209
|
+
# @param ExpireDate: 过期日期
|
210
|
+
# @type ExpireDate: String
|
211
|
+
|
212
|
+
attr_accessor :Emails, :ExpireDate
|
213
|
+
|
214
|
+
def initialize(emails=nil, expiredate=nil)
|
215
|
+
@Emails = emails
|
216
|
+
@ExpireDate = expiredate
|
217
|
+
end
|
218
|
+
|
219
|
+
def deserialize(params)
|
220
|
+
@Emails = params['Emails']
|
221
|
+
@ExpireDate = params['ExpireDate']
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
# CreateCustomBlacklist返回参数结构体
|
226
|
+
class CreateCustomBlacklistResponse < TencentCloud::Common::AbstractModel
|
227
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
228
|
+
# @type RequestId: String
|
229
|
+
|
230
|
+
attr_accessor :RequestId
|
231
|
+
|
232
|
+
def initialize(requestid=nil)
|
233
|
+
@RequestId = requestid
|
234
|
+
end
|
235
|
+
|
236
|
+
def deserialize(params)
|
237
|
+
@RequestId = params['RequestId']
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
168
241
|
# CreateEmailAddress请求参数结构体
|
169
242
|
class CreateEmailAddressRequest < TencentCloud::Common::AbstractModel
|
170
243
|
# @param EmailAddress: 您的发信地址(发信地址总数上限为10个)
|
@@ -502,6 +575,38 @@ module TencentCloud
|
|
502
575
|
end
|
503
576
|
end
|
504
577
|
|
578
|
+
# DeleteCustomBlackList请求参数结构体
|
579
|
+
class DeleteCustomBlackListRequest < TencentCloud::Common::AbstractModel
|
580
|
+
# @param Emails: 需要删除的邮箱地址
|
581
|
+
# @type Emails: Array
|
582
|
+
|
583
|
+
attr_accessor :Emails
|
584
|
+
|
585
|
+
def initialize(emails=nil)
|
586
|
+
@Emails = emails
|
587
|
+
end
|
588
|
+
|
589
|
+
def deserialize(params)
|
590
|
+
@Emails = params['Emails']
|
591
|
+
end
|
592
|
+
end
|
593
|
+
|
594
|
+
# DeleteCustomBlackList返回参数结构体
|
595
|
+
class DeleteCustomBlackListResponse < TencentCloud::Common::AbstractModel
|
596
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
597
|
+
# @type RequestId: String
|
598
|
+
|
599
|
+
attr_accessor :RequestId
|
600
|
+
|
601
|
+
def initialize(requestid=nil)
|
602
|
+
@RequestId = requestid
|
603
|
+
end
|
604
|
+
|
605
|
+
def deserialize(params)
|
606
|
+
@RequestId = params['RequestId']
|
607
|
+
end
|
608
|
+
end
|
609
|
+
|
505
610
|
# DeleteEmailAddress请求参数结构体
|
506
611
|
class DeleteEmailAddressRequest < TencentCloud::Common::AbstractModel
|
507
612
|
# @param EmailAddress: 发信地址
|
@@ -974,6 +1079,65 @@ module TencentCloud
|
|
974
1079
|
end
|
975
1080
|
end
|
976
1081
|
|
1082
|
+
# ListCustomBlacklist请求参数结构体
|
1083
|
+
class ListCustomBlacklistRequest < TencentCloud::Common::AbstractModel
|
1084
|
+
# @param Offset: 偏移量,整型,从0开始
|
1085
|
+
# @type Offset: Integer
|
1086
|
+
# @param Limit: 限制数目,整型,不超过100
|
1087
|
+
# @type Limit: Integer
|
1088
|
+
# @param Status: 筛选黑名单的状态,0:已过期,1:生效中, 2:全部
|
1089
|
+
# @type Status: Integer
|
1090
|
+
# @param Email: 黑名单中的邮箱地址
|
1091
|
+
# @type Email: String
|
1092
|
+
|
1093
|
+
attr_accessor :Offset, :Limit, :Status, :Email
|
1094
|
+
|
1095
|
+
def initialize(offset=nil, limit=nil, status=nil, email=nil)
|
1096
|
+
@Offset = offset
|
1097
|
+
@Limit = limit
|
1098
|
+
@Status = status
|
1099
|
+
@Email = email
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
def deserialize(params)
|
1103
|
+
@Offset = params['Offset']
|
1104
|
+
@Limit = params['Limit']
|
1105
|
+
@Status = params['Status']
|
1106
|
+
@Email = params['Email']
|
1107
|
+
end
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# ListCustomBlacklist返回参数结构体
|
1111
|
+
class ListCustomBlacklistResponse < TencentCloud::Common::AbstractModel
|
1112
|
+
# @param TotalCount: 列表总数
|
1113
|
+
# @type TotalCount: Integer
|
1114
|
+
# @param Data: 黑名单列表详情
|
1115
|
+
# @type Data: Array
|
1116
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1117
|
+
# @type RequestId: String
|
1118
|
+
|
1119
|
+
attr_accessor :TotalCount, :Data, :RequestId
|
1120
|
+
|
1121
|
+
def initialize(totalcount=nil, data=nil, requestid=nil)
|
1122
|
+
@TotalCount = totalcount
|
1123
|
+
@Data = data
|
1124
|
+
@RequestId = requestid
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
def deserialize(params)
|
1128
|
+
@TotalCount = params['TotalCount']
|
1129
|
+
unless params['Data'].nil?
|
1130
|
+
@Data = []
|
1131
|
+
params['Data'].each do |i|
|
1132
|
+
blackaddressdetail_tmp = BlackAddressDetail.new
|
1133
|
+
blackaddressdetail_tmp.deserialize(i)
|
1134
|
+
@Data << blackaddressdetail_tmp
|
1135
|
+
end
|
1136
|
+
end
|
1137
|
+
@RequestId = params['RequestId']
|
1138
|
+
end
|
1139
|
+
end
|
1140
|
+
|
977
1141
|
# ListEmailAddress请求参数结构体
|
978
1142
|
class ListEmailAddressRequest < TencentCloud::Common::AbstractModel
|
979
1143
|
|
@@ -1762,6 +1926,46 @@ module TencentCloud
|
|
1762
1926
|
end
|
1763
1927
|
end
|
1764
1928
|
|
1929
|
+
# UpdateCustomBlackList请求参数结构体
|
1930
|
+
class UpdateCustomBlackListRequest < TencentCloud::Common::AbstractModel
|
1931
|
+
# @param Id: 需要更改的黑名单id
|
1932
|
+
# @type Id: Integer
|
1933
|
+
# @param Email: 修改后的邮件地址
|
1934
|
+
# @type Email: String
|
1935
|
+
# @param ExpireDate: 过期时间,为空则表示永久有效
|
1936
|
+
# @type ExpireDate: String
|
1937
|
+
|
1938
|
+
attr_accessor :Id, :Email, :ExpireDate
|
1939
|
+
|
1940
|
+
def initialize(id=nil, email=nil, expiredate=nil)
|
1941
|
+
@Id = id
|
1942
|
+
@Email = email
|
1943
|
+
@ExpireDate = expiredate
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
def deserialize(params)
|
1947
|
+
@Id = params['Id']
|
1948
|
+
@Email = params['Email']
|
1949
|
+
@ExpireDate = params['ExpireDate']
|
1950
|
+
end
|
1951
|
+
end
|
1952
|
+
|
1953
|
+
# UpdateCustomBlackList返回参数结构体
|
1954
|
+
class UpdateCustomBlackListResponse < TencentCloud::Common::AbstractModel
|
1955
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1956
|
+
# @type RequestId: String
|
1957
|
+
|
1958
|
+
attr_accessor :RequestId
|
1959
|
+
|
1960
|
+
def initialize(requestid=nil)
|
1961
|
+
@RequestId = requestid
|
1962
|
+
end
|
1963
|
+
|
1964
|
+
def deserialize(params)
|
1965
|
+
@RequestId = params['RequestId']
|
1966
|
+
end
|
1967
|
+
end
|
1968
|
+
|
1765
1969
|
# UpdateEmailIdentity请求参数结构体
|
1766
1970
|
class UpdateEmailIdentityRequest < TencentCloud::Common::AbstractModel
|
1767
1971
|
# @param EmailIdentity: 请求验证的域名
|
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: 3.0.
|
4
|
+
version: 3.0.854
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|