tencentcloud-sdk-sslpod 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 79c7ecb3ca5d291a685b2c4757ea0403b24c690b
4
+ data.tar.gz: 9d7e41777beec8c93246026a4b7fcdff14847c76
5
+ SHA512:
6
+ metadata.gz: d8165ddbdd3a0bfb3ba7453851e571da29d575cd1b286f5dc7c25304a55510a678f7c48478664f651bba73d803eb677b353153e3f459688e6d851a99bf4362d2
7
+ data.tar.gz: e71c99adff3c9ab22e35d72a901b884aab5267ecbd4bf2afa1412ca9154ed538bc4a1b7ed2933753ffcc03c2558969dcf84aabcc3eabb898c03393f892a7a9d7
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.200
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20190605/client'
6
+ require_relative 'v20190605/models'
7
+
8
+ module TencentCloud
9
+ module Sslpod
10
+ end
11
+ end
@@ -0,0 +1,276 @@
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
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Sslpod
21
+ module V20190605
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2019-06-05'
26
+ api_endpoint = 'sslpod.tencentcloudapi.com'
27
+ sdk_version = 'SSLPOD_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 通过域名端口添加监控
33
+
34
+ # @param request: Request instance for CreateDomain.
35
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::CreateDomainRequest`
36
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::CreateDomainResponse`
37
+ def CreateDomain(request)
38
+ body = send_request('CreateDomain', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateDomainResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 通过域名ID删除监控的域名
57
+
58
+ # @param request: Request instance for DeleteDomain.
59
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::DeleteDomainRequest`
60
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::DeleteDomainResponse`
61
+ def DeleteDomain(request)
62
+ body = send_request('DeleteDomain', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DeleteDomainResponse.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
+
80
+ # 获取仪表盘数据
81
+
82
+ # @param request: Request instance for DescribeDashboard.
83
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::DescribeDashboardRequest`
84
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::DescribeDashboardResponse`
85
+ def DescribeDashboard(request)
86
+ body = send_request('DescribeDashboard', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeDashboardResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+ # 获取域名关联证书
105
+
106
+ # @param request: Request instance for DescribeDomainCerts.
107
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::DescribeDomainCertsRequest`
108
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::DescribeDomainCertsResponse`
109
+ def DescribeDomainCerts(request)
110
+ body = send_request('DescribeDomainCerts', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeDomainCertsResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 获取账号下所有tag
129
+
130
+ # @param request: Request instance for DescribeDomainTags.
131
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::DescribeDomainTagsRequest`
132
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::DescribeDomainTagsResponse`
133
+ def DescribeDomainTags(request)
134
+ body = send_request('DescribeDomainTags', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeDomainTagsResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 通过searchType搜索已经添加的域名
153
+
154
+ # @param request: Request instance for DescribeDomains.
155
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::DescribeDomainsRequest`
156
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::DescribeDomainsResponse`
157
+ def DescribeDomains(request)
158
+ body = send_request('DescribeDomains', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribeDomainsResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 获取通知额度信息
177
+
178
+ # @param request: Request instance for DescribeNoticeInfo.
179
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::DescribeNoticeInfoRequest`
180
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::DescribeNoticeInfoResponse`
181
+ def DescribeNoticeInfo(request)
182
+ body = send_request('DescribeNoticeInfo', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DescribeNoticeInfoResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 修改域名tag
201
+
202
+ # @param request: Request instance for ModifyDomainTags.
203
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::ModifyDomainTagsRequest`
204
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::ModifyDomainTagsResponse`
205
+ def ModifyDomainTags(request)
206
+ body = send_request('ModifyDomainTags', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = ModifyDomainTagsResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
224
+ # 强制重新检测域名
225
+
226
+ # @param request: Request instance for RefreshDomain.
227
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::RefreshDomainRequest`
228
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::RefreshDomainResponse`
229
+ def RefreshDomain(request)
230
+ body = send_request('RefreshDomain', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = RefreshDomainResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
248
+ # 解析域名获得多个IP地址
249
+
250
+ # @param request: Request instance for ResolveDomain.
251
+ # @type request: :class:`Tencentcloud::sslpod::V20190605::ResolveDomainRequest`
252
+ # @rtype: :class:`Tencentcloud::sslpod::V20190605::ResolveDomainResponse`
253
+ def ResolveDomain(request)
254
+ body = send_request('ResolveDomain', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = ResolveDomainResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
272
+
273
+ end
274
+ end
275
+ end
276
+ end
@@ -0,0 +1,818 @@
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 Sslpod
19
+ module V20190605
20
+ # 证书信息
21
+ class CertInfo < TencentCloud::Common::AbstractModel
22
+ # @param Hash: 证书sha1
23
+ # @type Hash: String
24
+ # @param CN: 证书通用名称
25
+ # @type CN: String
26
+ # @param SANs: 备用名称
27
+ # @type SANs: String
28
+ # @param KeyAlgo: 公钥算法
29
+ # @type KeyAlgo: String
30
+ # @param Issuer: 颁发者
31
+ # @type Issuer: String
32
+ # @param BeginTime: 有效期开始
33
+ # @type BeginTime: String
34
+ # @param EndTime: 有效期结束
35
+ # @type EndTime: String
36
+ # @param Days: 剩余天数
37
+ # @type Days: Integer
38
+ # @param Brand: 品牌
39
+ # @type Brand: String
40
+ # @param TrustStatus: 信任状态
41
+ # @type TrustStatus: String
42
+ # @param CertType: 证书类型
43
+ # 注意:此字段可能返回 null,表示取不到有效值。
44
+ # @type CertType: String
45
+
46
+ attr_accessor :Hash, :CN, :SANs, :KeyAlgo, :Issuer, :BeginTime, :EndTime, :Days, :Brand, :TrustStatus, :CertType
47
+
48
+ def initialize(hash=nil, cn=nil, sans=nil, keyalgo=nil, issuer=nil, begintime=nil, endtime=nil, days=nil, brand=nil, truststatus=nil, certtype=nil)
49
+ @Hash = hash
50
+ @CN = cn
51
+ @SANs = sans
52
+ @KeyAlgo = keyalgo
53
+ @Issuer = issuer
54
+ @BeginTime = begintime
55
+ @EndTime = endtime
56
+ @Days = days
57
+ @Brand = brand
58
+ @TrustStatus = truststatus
59
+ @CertType = certtype
60
+ end
61
+
62
+ def deserialize(params)
63
+ @Hash = params['Hash']
64
+ @CN = params['CN']
65
+ @SANs = params['SANs']
66
+ @KeyAlgo = params['KeyAlgo']
67
+ @Issuer = params['Issuer']
68
+ @BeginTime = params['BeginTime']
69
+ @EndTime = params['EndTime']
70
+ @Days = params['Days']
71
+ @Brand = params['Brand']
72
+ @TrustStatus = params['TrustStatus']
73
+ @CertType = params['CertType']
74
+ end
75
+ end
76
+
77
+ # 直方图数据结构
78
+ class ChartHistogram < TencentCloud::Common::AbstractModel
79
+ # @param Name: 项目名
80
+ # @type Name: String
81
+ # @param Children: 项目值
82
+ # @type Children: Array
83
+
84
+ attr_accessor :Name, :Children
85
+
86
+ def initialize(name=nil, children=nil)
87
+ @Name = name
88
+ @Children = children
89
+ end
90
+
91
+ def deserialize(params)
92
+ @Name = params['Name']
93
+ unless params['Children'].nil?
94
+ @Children = []
95
+ params['Children'].each do |i|
96
+ chartnamevalue_tmp = ChartNameValue.new
97
+ chartnamevalue_tmp.deserialize(i)
98
+ @Children << chartnamevalue_tmp
99
+ end
100
+ end
101
+ end
102
+ end
103
+
104
+ # 通用图表键值对
105
+ class ChartNameValue < TencentCloud::Common::AbstractModel
106
+ # @param Name: 图表项名称
107
+ # @type Name: String
108
+ # @param Value: 图表项值
109
+ # @type Value: Integer
110
+
111
+ attr_accessor :Name, :Value
112
+
113
+ def initialize(name=nil, value=nil)
114
+ @Name = name
115
+ @Value = value
116
+ end
117
+
118
+ def deserialize(params)
119
+ @Name = params['Name']
120
+ @Value = params['Value']
121
+ end
122
+ end
123
+
124
+ # CreateDomain请求参数结构体
125
+ class CreateDomainRequest < TencentCloud::Common::AbstractModel
126
+ # @param ServerType: 监控的服务器类型(0:web,1:smtp,2:imap,3:pops)
127
+ # @type ServerType: Integer
128
+ # @param Domain: 添加的域名
129
+ # @type Domain: String
130
+ # @param Port: 添加的端口
131
+ # @type Port: String
132
+ # @param IP: 指定域名的IP
133
+ # @type IP: String
134
+ # @param Notice: 是否开启通知告警;true:开启通知告警,false:关闭通知告警
135
+ # @type Notice: Boolean
136
+ # @param Tags: 给域名添加标签,多个以逗号隔开
137
+ # @type Tags: String
138
+
139
+ attr_accessor :ServerType, :Domain, :Port, :IP, :Notice, :Tags
140
+
141
+ def initialize(servertype=nil, domain=nil, port=nil, ip=nil, notice=nil, tags=nil)
142
+ @ServerType = servertype
143
+ @Domain = domain
144
+ @Port = port
145
+ @IP = ip
146
+ @Notice = notice
147
+ @Tags = tags
148
+ end
149
+
150
+ def deserialize(params)
151
+ @ServerType = params['ServerType']
152
+ @Domain = params['Domain']
153
+ @Port = params['Port']
154
+ @IP = params['IP']
155
+ @Notice = params['Notice']
156
+ @Tags = params['Tags']
157
+ end
158
+ end
159
+
160
+ # CreateDomain返回参数结构体
161
+ class CreateDomainResponse < TencentCloud::Common::AbstractModel
162
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
163
+ # @type RequestId: String
164
+
165
+ attr_accessor :RequestId
166
+
167
+ def initialize(requestid=nil)
168
+ @RequestId = requestid
169
+ end
170
+
171
+ def deserialize(params)
172
+ @RequestId = params['RequestId']
173
+ end
174
+ end
175
+
176
+ # 面板数据
177
+ class DashboardResult < TencentCloud::Common::AbstractModel
178
+ # @param SecurityLevelPie: 安全等级图表
179
+ # @type SecurityLevelPie: Array
180
+ # @param CertBrandsPie: 证书品牌图表
181
+ # @type CertBrandsPie: Array
182
+ # @param CertValidTimePie: 证书有效时间图表
183
+ # @type CertValidTimePie: Array
184
+ # @param CertTypePie: 证书类型图表
185
+ # @type CertTypePie: Array
186
+ # @param SSLBugsLoopholeHistogram: ssl bugs图表
187
+ # @type SSLBugsLoopholeHistogram: Array
188
+ # @param ComplianceHistogram: 合规图表
189
+ # @type ComplianceHistogram: Array
190
+
191
+ attr_accessor :SecurityLevelPie, :CertBrandsPie, :CertValidTimePie, :CertTypePie, :SSLBugsLoopholeHistogram, :ComplianceHistogram
192
+
193
+ def initialize(securitylevelpie=nil, certbrandspie=nil, certvalidtimepie=nil, certtypepie=nil, sslbugsloopholehistogram=nil, compliancehistogram=nil)
194
+ @SecurityLevelPie = securitylevelpie
195
+ @CertBrandsPie = certbrandspie
196
+ @CertValidTimePie = certvalidtimepie
197
+ @CertTypePie = certtypepie
198
+ @SSLBugsLoopholeHistogram = sslbugsloopholehistogram
199
+ @ComplianceHistogram = compliancehistogram
200
+ end
201
+
202
+ def deserialize(params)
203
+ unless params['SecurityLevelPie'].nil?
204
+ @SecurityLevelPie = []
205
+ params['SecurityLevelPie'].each do |i|
206
+ chartnamevalue_tmp = ChartNameValue.new
207
+ chartnamevalue_tmp.deserialize(i)
208
+ @SecurityLevelPie << chartnamevalue_tmp
209
+ end
210
+ end
211
+ unless params['CertBrandsPie'].nil?
212
+ @CertBrandsPie = []
213
+ params['CertBrandsPie'].each do |i|
214
+ chartnamevalue_tmp = ChartNameValue.new
215
+ chartnamevalue_tmp.deserialize(i)
216
+ @CertBrandsPie << chartnamevalue_tmp
217
+ end
218
+ end
219
+ unless params['CertValidTimePie'].nil?
220
+ @CertValidTimePie = []
221
+ params['CertValidTimePie'].each do |i|
222
+ chartnamevalue_tmp = ChartNameValue.new
223
+ chartnamevalue_tmp.deserialize(i)
224
+ @CertValidTimePie << chartnamevalue_tmp
225
+ end
226
+ end
227
+ unless params['CertTypePie'].nil?
228
+ @CertTypePie = []
229
+ params['CertTypePie'].each do |i|
230
+ chartnamevalue_tmp = ChartNameValue.new
231
+ chartnamevalue_tmp.deserialize(i)
232
+ @CertTypePie << chartnamevalue_tmp
233
+ end
234
+ end
235
+ unless params['SSLBugsLoopholeHistogram'].nil?
236
+ @SSLBugsLoopholeHistogram = []
237
+ params['SSLBugsLoopholeHistogram'].each do |i|
238
+ charthistogram_tmp = ChartHistogram.new
239
+ charthistogram_tmp.deserialize(i)
240
+ @SSLBugsLoopholeHistogram << charthistogram_tmp
241
+ end
242
+ end
243
+ unless params['ComplianceHistogram'].nil?
244
+ @ComplianceHistogram = []
245
+ params['ComplianceHistogram'].each do |i|
246
+ charthistogram_tmp = ChartHistogram.new
247
+ charthistogram_tmp.deserialize(i)
248
+ @ComplianceHistogram << charthistogram_tmp
249
+ end
250
+ end
251
+ end
252
+ end
253
+
254
+ # DeleteDomain请求参数结构体
255
+ class DeleteDomainRequest < TencentCloud::Common::AbstractModel
256
+ # @param DomainId: 域名ID,可通过<a href="https://cloud.tencent.com/document/api/1084/49339">搜索域名</a>接口获得
257
+ # @type DomainId: Integer
258
+
259
+ attr_accessor :DomainId
260
+
261
+ def initialize(domainid=nil)
262
+ @DomainId = domainid
263
+ end
264
+
265
+ def deserialize(params)
266
+ @DomainId = params['DomainId']
267
+ end
268
+ end
269
+
270
+ # DeleteDomain返回参数结构体
271
+ class DeleteDomainResponse < TencentCloud::Common::AbstractModel
272
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
273
+ # @type RequestId: String
274
+
275
+ attr_accessor :RequestId
276
+
277
+ def initialize(requestid=nil)
278
+ @RequestId = requestid
279
+ end
280
+
281
+ def deserialize(params)
282
+ @RequestId = params['RequestId']
283
+ end
284
+ end
285
+
286
+ # DescribeDashboard请求参数结构体
287
+ class DescribeDashboardRequest < TencentCloud::Common::AbstractModel
288
+
289
+
290
+ def initialize()
291
+ end
292
+
293
+ def deserialize(params)
294
+ end
295
+ end
296
+
297
+ # DescribeDashboard返回参数结构体
298
+ class DescribeDashboardResponse < TencentCloud::Common::AbstractModel
299
+ # @param Data: dashboard面板数据
300
+ # 注意:此字段可能返回 null,表示取不到有效值。
301
+ # @type Data: :class:`Tencentcloud::Sslpod.v20190605.models.DashboardResult`
302
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
303
+ # @type RequestId: String
304
+
305
+ attr_accessor :Data, :RequestId
306
+
307
+ def initialize(data=nil, requestid=nil)
308
+ @Data = data
309
+ @RequestId = requestid
310
+ end
311
+
312
+ def deserialize(params)
313
+ unless params['Data'].nil?
314
+ @Data = DashboardResult.new
315
+ @Data.deserialize(params['Data'])
316
+ end
317
+ @RequestId = params['RequestId']
318
+ end
319
+ end
320
+
321
+ # DescribeDomainCerts请求参数结构体
322
+ class DescribeDomainCertsRequest < TencentCloud::Common::AbstractModel
323
+ # @param DomainId: 域名ID,可通过搜索域名接口获得
324
+ # @type DomainId: Integer
325
+
326
+ attr_accessor :DomainId
327
+
328
+ def initialize(domainid=nil)
329
+ @DomainId = domainid
330
+ end
331
+
332
+ def deserialize(params)
333
+ @DomainId = params['DomainId']
334
+ end
335
+ end
336
+
337
+ # DescribeDomainCerts返回参数结构体
338
+ class DescribeDomainCertsResponse < TencentCloud::Common::AbstractModel
339
+ # @param Data: 证书信息
340
+ # @type Data: Array
341
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
342
+ # @type RequestId: String
343
+
344
+ attr_accessor :Data, :RequestId
345
+
346
+ def initialize(data=nil, requestid=nil)
347
+ @Data = data
348
+ @RequestId = requestid
349
+ end
350
+
351
+ def deserialize(params)
352
+ unless params['Data'].nil?
353
+ @Data = []
354
+ params['Data'].each do |i|
355
+ certinfo_tmp = CertInfo.new
356
+ certinfo_tmp.deserialize(i)
357
+ @Data << certinfo_tmp
358
+ end
359
+ end
360
+ @RequestId = params['RequestId']
361
+ end
362
+ end
363
+
364
+ # DescribeDomainTags请求参数结构体
365
+ class DescribeDomainTagsRequest < TencentCloud::Common::AbstractModel
366
+
367
+
368
+ def initialize()
369
+ end
370
+
371
+ def deserialize(params)
372
+ end
373
+ end
374
+
375
+ # DescribeDomainTags返回参数结构体
376
+ class DescribeDomainTagsResponse < TencentCloud::Common::AbstractModel
377
+ # @param Data: Tag数组
378
+ # @type Data: Array
379
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
380
+ # @type RequestId: String
381
+
382
+ attr_accessor :Data, :RequestId
383
+
384
+ def initialize(data=nil, requestid=nil)
385
+ @Data = data
386
+ @RequestId = requestid
387
+ end
388
+
389
+ def deserialize(params)
390
+ @Data = params['Data']
391
+ @RequestId = params['RequestId']
392
+ end
393
+ end
394
+
395
+ # 监控域名列表
396
+ class DescribeDomains < TencentCloud::Common::AbstractModel
397
+ # @param Result: 列表数据
398
+ # 注意:此字段可能返回 null,表示取不到有效值。
399
+ # @type Result: Array
400
+ # @param SearchTotal: 搜索出来的数量
401
+ # @type SearchTotal: Integer
402
+ # @param Total: 总数
403
+ # @type Total: Integer
404
+ # @param AllowMonitoringCount: 允许的监控数量
405
+ # @type AllowMonitoringCount: Integer
406
+ # @param CurrentMonitoringCount: 当前监控的数量
407
+ # @type CurrentMonitoringCount: Integer
408
+ # @param AllowMaxAddDomain: 允许添加域名总数
409
+ # @type AllowMaxAddDomain: Integer
410
+
411
+ attr_accessor :Result, :SearchTotal, :Total, :AllowMonitoringCount, :CurrentMonitoringCount, :AllowMaxAddDomain
412
+
413
+ def initialize(result=nil, searchtotal=nil, total=nil, allowmonitoringcount=nil, currentmonitoringcount=nil, allowmaxadddomain=nil)
414
+ @Result = result
415
+ @SearchTotal = searchtotal
416
+ @Total = total
417
+ @AllowMonitoringCount = allowmonitoringcount
418
+ @CurrentMonitoringCount = currentmonitoringcount
419
+ @AllowMaxAddDomain = allowmaxadddomain
420
+ end
421
+
422
+ def deserialize(params)
423
+ unless params['Result'].nil?
424
+ @Result = []
425
+ params['Result'].each do |i|
426
+ domainsiteinfo_tmp = DomainSiteInfo.new
427
+ domainsiteinfo_tmp.deserialize(i)
428
+ @Result << domainsiteinfo_tmp
429
+ end
430
+ end
431
+ @SearchTotal = params['SearchTotal']
432
+ @Total = params['Total']
433
+ @AllowMonitoringCount = params['AllowMonitoringCount']
434
+ @CurrentMonitoringCount = params['CurrentMonitoringCount']
435
+ @AllowMaxAddDomain = params['AllowMaxAddDomain']
436
+ end
437
+ end
438
+
439
+ # DescribeDomains请求参数结构体
440
+ class DescribeDomainsRequest < TencentCloud::Common::AbstractModel
441
+ # @param Offset: 偏移量
442
+ # @type Offset: Integer
443
+ # @param Limit: 获取数量
444
+ # @type Limit: Integer
445
+ # @param SearchType: 搜索的类型有:none,tags,grade,brand,code,hash,limit。
446
+ # 选tags,入参请填Tag,
447
+ # 选grade,入参请填Grade,
448
+ # 选brand,入参请填Brand,
449
+ # 选code,入参请填Code,
450
+ # 选hash,入参请填Hash
451
+ # 选limit,标识只返回数量信息
452
+ # @type SearchType: String
453
+ # @param Tag: 标签,多个标签用逗号分隔
454
+ # @type Tag: String
455
+ # @param Grade: 等级
456
+ # @type Grade: String
457
+ # @param Brand: 品牌
458
+ # @type Brand: String
459
+ # @param Code: 混合搜索
460
+ # @type Code: String
461
+ # @param Hash: 证书指纹
462
+ # @type Hash: String
463
+ # @param Item: 搜索图标类型
464
+ # @type Item: String
465
+ # @param Status: 搜索图标值
466
+ # @type Status: String
467
+
468
+ attr_accessor :Offset, :Limit, :SearchType, :Tag, :Grade, :Brand, :Code, :Hash, :Item, :Status
469
+
470
+ def initialize(offset=nil, limit=nil, searchtype=nil, tag=nil, grade=nil, brand=nil, code=nil, hash=nil, item=nil, status=nil)
471
+ @Offset = offset
472
+ @Limit = limit
473
+ @SearchType = searchtype
474
+ @Tag = tag
475
+ @Grade = grade
476
+ @Brand = brand
477
+ @Code = code
478
+ @Hash = hash
479
+ @Item = item
480
+ @Status = status
481
+ end
482
+
483
+ def deserialize(params)
484
+ @Offset = params['Offset']
485
+ @Limit = params['Limit']
486
+ @SearchType = params['SearchType']
487
+ @Tag = params['Tag']
488
+ @Grade = params['Grade']
489
+ @Brand = params['Brand']
490
+ @Code = params['Code']
491
+ @Hash = params['Hash']
492
+ @Item = params['Item']
493
+ @Status = params['Status']
494
+ end
495
+ end
496
+
497
+ # DescribeDomains返回参数结构体
498
+ class DescribeDomainsResponse < TencentCloud::Common::AbstractModel
499
+ # @param Data: 列表数据
500
+ # @type Data: :class:`Tencentcloud::Sslpod.v20190605.models.DescribeDomains`
501
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
502
+ # @type RequestId: String
503
+
504
+ attr_accessor :Data, :RequestId
505
+
506
+ def initialize(data=nil, requestid=nil)
507
+ @Data = data
508
+ @RequestId = requestid
509
+ end
510
+
511
+ def deserialize(params)
512
+ unless params['Data'].nil?
513
+ @Data = DescribeDomains.new
514
+ @Data.deserialize(params['Data'])
515
+ end
516
+ @RequestId = params['RequestId']
517
+ end
518
+ end
519
+
520
+ # DescribeNoticeInfo请求参数结构体
521
+ class DescribeNoticeInfoRequest < TencentCloud::Common::AbstractModel
522
+
523
+
524
+ def initialize()
525
+ end
526
+
527
+ def deserialize(params)
528
+ end
529
+ end
530
+
531
+ # DescribeNoticeInfo返回参数结构体
532
+ class DescribeNoticeInfoResponse < TencentCloud::Common::AbstractModel
533
+ # @param Data: 通知信息结果
534
+ # @type Data: :class:`Tencentcloud::Sslpod.v20190605.models.NoticeInfoResult`
535
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
536
+ # @type RequestId: String
537
+
538
+ attr_accessor :Data, :RequestId
539
+
540
+ def initialize(data=nil, requestid=nil)
541
+ @Data = data
542
+ @RequestId = requestid
543
+ end
544
+
545
+ def deserialize(params)
546
+ unless params['Data'].nil?
547
+ @Data = NoticeInfoResult.new
548
+ @Data.deserialize(params['Data'])
549
+ end
550
+ @RequestId = params['RequestId']
551
+ end
552
+ end
553
+
554
+ # 监控的域名站点信息
555
+ class DomainSiteInfo < TencentCloud::Common::AbstractModel
556
+ # @param Id: ID标识
557
+ # @type Id: Integer
558
+ # @param Domain: 域名
559
+ # @type Domain: String
560
+ # @param Ip: IP地址
561
+ # @type Ip: String
562
+ # @param AutoIP: 是否自动获取IP:true:是,false:否
563
+ # @type AutoIP: Boolean
564
+ # @param Grade: 评级
565
+ # "A+",
566
+ # "A",
567
+ # "A-",
568
+ # "B",
569
+ # "C",
570
+ # "D",
571
+ # "E",
572
+ # "F",
573
+ # "T",
574
+ # @type Grade: String
575
+ # @param Brand: 证书品牌
576
+ # @type Brand: String
577
+ # @param ServerType: 监控服务类型
578
+ # 0 :Web
579
+ # 1: SMTP
580
+ # 2: IMAP
581
+ # 3: POP3
582
+ # @type ServerType: Integer
583
+ # @param GradeCode: 评级Code
584
+ # 0:"unknown",
585
+ # 1:"A+",
586
+ # 2: "A",
587
+ # 3:"A-",
588
+ # 4:"B",
589
+ # 5:"C",
590
+ # 6:"D",
591
+ # 7: "E",
592
+ # 8: "F",
593
+ # 9:"T",
594
+ # @type GradeCode: Integer
595
+ # @param Notice: 是否监控告警;true:是,false:否
596
+ # @type Notice: Boolean
597
+ # @param AccountDomainId: 账号域名关系ID
598
+ # @type AccountDomainId: Integer
599
+ # @param Tags: 标签
600
+ # 注意:此字段可能返回 null,表示取不到有效值。
601
+ # @type Tags: Array
602
+ # @param Status: 域名状态:
603
+ # 连接异常,
604
+ # 证书已过期,
605
+ # 证书已吊销,
606
+ # 证书黑名单,
607
+ # 证书域名不匹配,
608
+ # 证书不可信,
609
+ # 证书密钥弱,
610
+ # 证书即将过期,少于7天,
611
+ # 证书即将过期,少于30天,
612
+ # 正常,
613
+ # 部分异常
614
+ # @type Status: String
615
+ # @param Port: 域名端口
616
+ # @type Port: String
617
+
618
+ attr_accessor :Id, :Domain, :Ip, :AutoIP, :Grade, :Brand, :ServerType, :GradeCode, :Notice, :AccountDomainId, :Tags, :Status, :Port
619
+
620
+ def initialize(id=nil, domain=nil, ip=nil, autoip=nil, grade=nil, brand=nil, servertype=nil, gradecode=nil, notice=nil, accountdomainid=nil, tags=nil, status=nil, port=nil)
621
+ @Id = id
622
+ @Domain = domain
623
+ @Ip = ip
624
+ @AutoIP = autoip
625
+ @Grade = grade
626
+ @Brand = brand
627
+ @ServerType = servertype
628
+ @GradeCode = gradecode
629
+ @Notice = notice
630
+ @AccountDomainId = accountdomainid
631
+ @Tags = tags
632
+ @Status = status
633
+ @Port = port
634
+ end
635
+
636
+ def deserialize(params)
637
+ @Id = params['Id']
638
+ @Domain = params['Domain']
639
+ @Ip = params['Ip']
640
+ @AutoIP = params['AutoIP']
641
+ @Grade = params['Grade']
642
+ @Brand = params['Brand']
643
+ @ServerType = params['ServerType']
644
+ @GradeCode = params['GradeCode']
645
+ @Notice = params['Notice']
646
+ @AccountDomainId = params['AccountDomainId']
647
+ @Tags = params['Tags']
648
+ @Status = params['Status']
649
+ @Port = params['Port']
650
+ end
651
+ end
652
+
653
+ # 通知额度限制信息
654
+ class LimitInfo < TencentCloud::Common::AbstractModel
655
+ # @param Type: 通知类型:
656
+ # limit_emai:邮件
657
+ # limit_wechat:微信
658
+ # limit_phone:手机
659
+ # @type Type: String
660
+ # @param Total: 总量
661
+ # @type Total: Integer
662
+ # @param Sent: 已发送
663
+ # @type Sent: Integer
664
+
665
+ attr_accessor :Type, :Total, :Sent
666
+
667
+ def initialize(type=nil, total=nil, sent=nil)
668
+ @Type = type
669
+ @Total = total
670
+ @Sent = sent
671
+ end
672
+
673
+ def deserialize(params)
674
+ @Type = params['Type']
675
+ @Total = params['Total']
676
+ @Sent = params['Sent']
677
+ end
678
+ end
679
+
680
+ # ModifyDomainTags请求参数结构体
681
+ class ModifyDomainTagsRequest < TencentCloud::Common::AbstractModel
682
+ # @param AccountDomainId: 账号下域名ID
683
+ # @type AccountDomainId: Integer
684
+ # @param Tags: 更新后的tag,多个以逗号隔开
685
+ # @type Tags: String
686
+
687
+ attr_accessor :AccountDomainId, :Tags
688
+
689
+ def initialize(accountdomainid=nil, tags=nil)
690
+ @AccountDomainId = accountdomainid
691
+ @Tags = tags
692
+ end
693
+
694
+ def deserialize(params)
695
+ @AccountDomainId = params['AccountDomainId']
696
+ @Tags = params['Tags']
697
+ end
698
+ end
699
+
700
+ # ModifyDomainTags返回参数结构体
701
+ class ModifyDomainTagsResponse < TencentCloud::Common::AbstractModel
702
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
703
+ # @type RequestId: String
704
+
705
+ attr_accessor :RequestId
706
+
707
+ def initialize(requestid=nil)
708
+ @RequestId = requestid
709
+ end
710
+
711
+ def deserialize(params)
712
+ @RequestId = params['RequestId']
713
+ end
714
+ end
715
+
716
+ # 通知信息结果
717
+ class NoticeInfoResult < TencentCloud::Common::AbstractModel
718
+ # @param Id: 通知ID
719
+ # @type Id: Integer
720
+ # @param NoticeType: 通知开关信息;0:关闭;15开启
721
+ # @type NoticeType: Integer
722
+ # @param LimitInfos: 额度信息
723
+ # @type LimitInfos: Array
724
+
725
+ attr_accessor :Id, :NoticeType, :LimitInfos
726
+
727
+ def initialize(id=nil, noticetype=nil, limitinfos=nil)
728
+ @Id = id
729
+ @NoticeType = noticetype
730
+ @LimitInfos = limitinfos
731
+ end
732
+
733
+ def deserialize(params)
734
+ @Id = params['Id']
735
+ @NoticeType = params['NoticeType']
736
+ unless params['LimitInfos'].nil?
737
+ @LimitInfos = []
738
+ params['LimitInfos'].each do |i|
739
+ limitinfo_tmp = LimitInfo.new
740
+ limitinfo_tmp.deserialize(i)
741
+ @LimitInfos << limitinfo_tmp
742
+ end
743
+ end
744
+ end
745
+ end
746
+
747
+ # RefreshDomain请求参数结构体
748
+ class RefreshDomainRequest < TencentCloud::Common::AbstractModel
749
+ # @param DomainId: 域名列表中的ID,可通过搜索域名接口获得
750
+ # @type DomainId: Integer
751
+
752
+ attr_accessor :DomainId
753
+
754
+ def initialize(domainid=nil)
755
+ @DomainId = domainid
756
+ end
757
+
758
+ def deserialize(params)
759
+ @DomainId = params['DomainId']
760
+ end
761
+ end
762
+
763
+ # RefreshDomain返回参数结构体
764
+ class RefreshDomainResponse < TencentCloud::Common::AbstractModel
765
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
766
+ # @type RequestId: String
767
+
768
+ attr_accessor :RequestId
769
+
770
+ def initialize(requestid=nil)
771
+ @RequestId = requestid
772
+ end
773
+
774
+ def deserialize(params)
775
+ @RequestId = params['RequestId']
776
+ end
777
+ end
778
+
779
+ # ResolveDomain请求参数结构体
780
+ class ResolveDomainRequest < TencentCloud::Common::AbstractModel
781
+ # @param Domain: 域名
782
+ # @type Domain: String
783
+
784
+ attr_accessor :Domain
785
+
786
+ def initialize(domain=nil)
787
+ @Domain = domain
788
+ end
789
+
790
+ def deserialize(params)
791
+ @Domain = params['Domain']
792
+ end
793
+ end
794
+
795
+ # ResolveDomain返回参数结构体
796
+ class ResolveDomainResponse < TencentCloud::Common::AbstractModel
797
+ # @param Data: 响应数据
798
+ # @type Data: Array
799
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
800
+ # @type RequestId: String
801
+
802
+ attr_accessor :Data, :RequestId
803
+
804
+ def initialize(data=nil, requestid=nil)
805
+ @Data = data
806
+ @RequestId = requestid
807
+ end
808
+
809
+ def deserialize(params)
810
+ @Data = params['Data']
811
+ @RequestId = params['RequestId']
812
+ end
813
+ end
814
+
815
+ end
816
+ end
817
+ end
818
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-sslpod
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.200
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-11-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ SSLPOD.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-sslpod.rb
38
+ - lib/v20190605/client.rb
39
+ - lib/v20190605/models.rb
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-sslpod
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - SSLPOD
66
+ test_files: []