tencentcloud-sdk-wss 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-wss.rb +11 -0
- data/lib/v20180426/client.rb +108 -0
- data/lib/v20180426/models.rb +377 -0
- metadata +66 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7869d32e70f819bc0f06d859cdec903c7c4420b4
|
4
|
+
data.tar.gz: c96646baec06673a4a87d968b2a95154b939f9f5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2e8a14991f9e7abad13a50b60f4b18ccfbdb8f99c6c866044b209a89a068881b176885c68cd51327e498e99d40e1938a481dbc6110a83e347b6b0a63786e339b
|
7
|
+
data.tar.gz: bc8726d38585f2ece545e6f7fc79c090086d0eb7d08558a9bdcc1307cc0b11d36e1761a2e18bdb0c14ab4e42c730a65187d930e100cc6110580042f46b4b6095
|
data/lib/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.200
|
@@ -0,0 +1,108 @@
|
|
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 Wss
|
21
|
+
module V20180426
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
23
|
+
|
24
|
+
def initialize(credential, region, profile = nil)
|
25
|
+
api_version = '2018-04-26'
|
26
|
+
api_endpoint = 'wss.tencentcloudapi.com'
|
27
|
+
sdk_version = 'WSS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
# 本接口(DeleteCert)用于删除证书。
|
33
|
+
|
34
|
+
# @param request: Request instance for DeleteCert.
|
35
|
+
# @type request: :class:`Tencentcloud::wss::V20180426::DeleteCertRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::wss::V20180426::DeleteCertResponse`
|
37
|
+
def DeleteCert(request)
|
38
|
+
body = send_request('DeleteCert', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = DeleteCertResponse.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
|
+
# 本接口(DescribeCertList)用于获取证书列表。
|
57
|
+
|
58
|
+
# @param request: Request instance for DescribeCertList.
|
59
|
+
# @type request: :class:`Tencentcloud::wss::V20180426::DescribeCertListRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::wss::V20180426::DescribeCertListResponse`
|
61
|
+
def DescribeCertList(request)
|
62
|
+
body = send_request('DescribeCertList', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeCertListResponse.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
|
+
# 本接口(UploadCert)用于上传证书。
|
81
|
+
|
82
|
+
# @param request: Request instance for UploadCert.
|
83
|
+
# @type request: :class:`Tencentcloud::wss::V20180426::UploadCertRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::wss::V20180426::UploadCertResponse`
|
85
|
+
def UploadCert(request)
|
86
|
+
body = send_request('UploadCert', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = UploadCertResponse.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
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,377 @@
|
|
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 Wss
|
19
|
+
module V20180426
|
20
|
+
# DeleteCert请求参数结构体
|
21
|
+
class DeleteCertRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Id: 证书 ID,即通过 GetList 拿到的证书列表的 ID 字段。
|
23
|
+
# @type Id: String
|
24
|
+
# @param ModuleType: 模块名称,应填 ssl。
|
25
|
+
# @type ModuleType: String
|
26
|
+
|
27
|
+
attr_accessor :Id, :ModuleType
|
28
|
+
|
29
|
+
def initialize(id=nil, moduletype=nil)
|
30
|
+
@Id = id
|
31
|
+
@ModuleType = moduletype
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@Id = params['Id']
|
36
|
+
@ModuleType = params['ModuleType']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# DeleteCert返回参数结构体
|
41
|
+
class DeleteCertResponse < TencentCloud::Common::AbstractModel
|
42
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
43
|
+
# @type RequestId: String
|
44
|
+
|
45
|
+
attr_accessor :RequestId
|
46
|
+
|
47
|
+
def initialize(requestid=nil)
|
48
|
+
@RequestId = requestid
|
49
|
+
end
|
50
|
+
|
51
|
+
def deserialize(params)
|
52
|
+
@RequestId = params['RequestId']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# DescribeCertList请求参数结构体
|
57
|
+
class DescribeCertListRequest < TencentCloud::Common::AbstractModel
|
58
|
+
# @param ModuleType: 模块名称,应填 ssl。
|
59
|
+
# @type ModuleType: String
|
60
|
+
# @param Offset: 页数,默认第一页。
|
61
|
+
# @type Offset: Integer
|
62
|
+
# @param Limit: 每页条数,默认每页20条。
|
63
|
+
# @type Limit: Integer
|
64
|
+
# @param SearchKey: 搜索关键字。
|
65
|
+
# @type SearchKey: String
|
66
|
+
# @param CertType: 证书类型(目前支持:CA=客户端证书,SVR=服务器证书)。
|
67
|
+
# @type CertType: String
|
68
|
+
# @param Id: 证书ID。
|
69
|
+
# @type Id: String
|
70
|
+
# @param WithCert: 是否同时获取证书内容。
|
71
|
+
# @type WithCert: String
|
72
|
+
# @param AltDomain: 如传,则只返回可以给该域名使用的证书。
|
73
|
+
# @type AltDomain: String
|
74
|
+
|
75
|
+
attr_accessor :ModuleType, :Offset, :Limit, :SearchKey, :CertType, :Id, :WithCert, :AltDomain
|
76
|
+
|
77
|
+
def initialize(moduletype=nil, offset=nil, limit=nil, searchkey=nil, certtype=nil, id=nil, withcert=nil, altdomain=nil)
|
78
|
+
@ModuleType = moduletype
|
79
|
+
@Offset = offset
|
80
|
+
@Limit = limit
|
81
|
+
@SearchKey = searchkey
|
82
|
+
@CertType = certtype
|
83
|
+
@Id = id
|
84
|
+
@WithCert = withcert
|
85
|
+
@AltDomain = altdomain
|
86
|
+
end
|
87
|
+
|
88
|
+
def deserialize(params)
|
89
|
+
@ModuleType = params['ModuleType']
|
90
|
+
@Offset = params['Offset']
|
91
|
+
@Limit = params['Limit']
|
92
|
+
@SearchKey = params['SearchKey']
|
93
|
+
@CertType = params['CertType']
|
94
|
+
@Id = params['Id']
|
95
|
+
@WithCert = params['WithCert']
|
96
|
+
@AltDomain = params['AltDomain']
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# DescribeCertList返回参数结构体
|
101
|
+
class DescribeCertListResponse < TencentCloud::Common::AbstractModel
|
102
|
+
# @param TotalCount: 总数量。
|
103
|
+
# @type TotalCount: Integer
|
104
|
+
# @param CertificateSet: 列表。
|
105
|
+
# @type CertificateSet: Array
|
106
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
107
|
+
# @type RequestId: String
|
108
|
+
|
109
|
+
attr_accessor :TotalCount, :CertificateSet, :RequestId
|
110
|
+
|
111
|
+
def initialize(totalcount=nil, certificateset=nil, requestid=nil)
|
112
|
+
@TotalCount = totalcount
|
113
|
+
@CertificateSet = certificateset
|
114
|
+
@RequestId = requestid
|
115
|
+
end
|
116
|
+
|
117
|
+
def deserialize(params)
|
118
|
+
@TotalCount = params['TotalCount']
|
119
|
+
unless params['CertificateSet'].nil?
|
120
|
+
@CertificateSet = []
|
121
|
+
params['CertificateSet'].each do |i|
|
122
|
+
sslcertificate_tmp = SSLCertificate.new
|
123
|
+
sslcertificate_tmp.deserialize(i)
|
124
|
+
@CertificateSet << sslcertificate_tmp
|
125
|
+
end
|
126
|
+
end
|
127
|
+
@RequestId = params['RequestId']
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# 获取证书列表(SSLCertificate)返回参数键为 CertificateSet 的内容。
|
132
|
+
class SSLCertificate < TencentCloud::Common::AbstractModel
|
133
|
+
# @param OwnerUin: 所属账户
|
134
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
135
|
+
# @type OwnerUin: String
|
136
|
+
# @param ProjectId: 项目ID
|
137
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
138
|
+
# @type ProjectId: String
|
139
|
+
# @param From: 证书来源:trustasia = 亚洲诚信, upload = 用户上传
|
140
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
141
|
+
# @type From: String
|
142
|
+
# @param Type: 证书类型
|
143
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
144
|
+
# @type Type: String
|
145
|
+
# @param CertType: 证书类型(目前支持:CA = 客户端证书,SVR = 服务器证书)
|
146
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
147
|
+
# @type CertType: String
|
148
|
+
# @param ProductZhName: 证书办法者名称
|
149
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
150
|
+
# @type ProductZhName: String
|
151
|
+
# @param Domain: 主域名
|
152
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
153
|
+
# @type Domain: String
|
154
|
+
# @param Alias: 别名
|
155
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
156
|
+
# @type Alias: String
|
157
|
+
# @param Status: 状态值 0:审核中,1:已通过,2:审核失败,3:已过期,4:已添加云解析记录,5:OV/EV 证书,待提交资料,6:订单取消中,7:已取消,8:已提交资料, 待上传确认函
|
158
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
159
|
+
# @type Status: Integer
|
160
|
+
# @param VulnerabilityStatus: 漏洞扫描状态:INACTIVE = 未开启,ACTIVE = 已开启
|
161
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
162
|
+
# @type VulnerabilityStatus: String
|
163
|
+
# @param StatusMsg: 状态信息
|
164
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
165
|
+
# @type StatusMsg: String
|
166
|
+
# @param VerifyType: 验证类型
|
167
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
168
|
+
# @type VerifyType: String
|
169
|
+
# @param CertBeginTime: 证书生效时间
|
170
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
171
|
+
# @type CertBeginTime: String
|
172
|
+
# @param CertEndTime: 证书过期时间
|
173
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
174
|
+
# @type CertEndTime: String
|
175
|
+
# @param ValidityPeriod: 证书过期时间
|
176
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
177
|
+
# @type ValidityPeriod: String
|
178
|
+
# @param InsertTime: 创建时间
|
179
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
180
|
+
# @type InsertTime: String
|
181
|
+
# @param ProjectInfo: 项目信息,ProjectId:项目ID,OwnerUin:项目所属的 uin(默认项目为0),Name:项目名称,CreatorUin:创建项目的 uin,CreateTime:项目创建时间,Info:项目说明
|
182
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
183
|
+
# @type ProjectInfo: :class:`Tencentcloud::Wss.v20180426.models.SSLProjectInfo`
|
184
|
+
# @param Id: 证书ID
|
185
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
186
|
+
# @type Id: String
|
187
|
+
# @param SubjectAltName: 证书包含的多个域名(包含主域名)
|
188
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
189
|
+
# @type SubjectAltName: Array
|
190
|
+
# @param TypeName: 证书类型名称
|
191
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
192
|
+
# @type TypeName: String
|
193
|
+
# @param StatusName: 状态名称
|
194
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
195
|
+
# @type StatusName: String
|
196
|
+
# @param IsVip: 是否为 VIP 客户
|
197
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
198
|
+
# @type IsVip: Boolean
|
199
|
+
# @param IsDv: 是否我 DV 版证书
|
200
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
201
|
+
# @type IsDv: Boolean
|
202
|
+
# @param IsWildcard: 是否为泛域名证书
|
203
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
204
|
+
# @type IsWildcard: Boolean
|
205
|
+
# @param IsVulnerability: 是否启用了漏洞扫描功能
|
206
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
207
|
+
# @type IsVulnerability: Boolean
|
208
|
+
# @param Cert: 证书
|
209
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
210
|
+
# @type Cert: String
|
211
|
+
|
212
|
+
attr_accessor :OwnerUin, :ProjectId, :From, :Type, :CertType, :ProductZhName, :Domain, :Alias, :Status, :VulnerabilityStatus, :StatusMsg, :VerifyType, :CertBeginTime, :CertEndTime, :ValidityPeriod, :InsertTime, :ProjectInfo, :Id, :SubjectAltName, :TypeName, :StatusName, :IsVip, :IsDv, :IsWildcard, :IsVulnerability, :Cert
|
213
|
+
|
214
|
+
def initialize(owneruin=nil, projectid=nil, from=nil, type=nil, certtype=nil, productzhname=nil, domain=nil, _alias=nil, status=nil, vulnerabilitystatus=nil, statusmsg=nil, verifytype=nil, certbegintime=nil, certendtime=nil, validityperiod=nil, inserttime=nil, projectinfo=nil, id=nil, subjectaltname=nil, typename=nil, statusname=nil, isvip=nil, isdv=nil, iswildcard=nil, isvulnerability=nil, cert=nil)
|
215
|
+
@OwnerUin = owneruin
|
216
|
+
@ProjectId = projectid
|
217
|
+
@From = from
|
218
|
+
@Type = type
|
219
|
+
@CertType = certtype
|
220
|
+
@ProductZhName = productzhname
|
221
|
+
@Domain = domain
|
222
|
+
@Alias = _alias
|
223
|
+
@Status = status
|
224
|
+
@VulnerabilityStatus = vulnerabilitystatus
|
225
|
+
@StatusMsg = statusmsg
|
226
|
+
@VerifyType = verifytype
|
227
|
+
@CertBeginTime = certbegintime
|
228
|
+
@CertEndTime = certendtime
|
229
|
+
@ValidityPeriod = validityperiod
|
230
|
+
@InsertTime = inserttime
|
231
|
+
@ProjectInfo = projectinfo
|
232
|
+
@Id = id
|
233
|
+
@SubjectAltName = subjectaltname
|
234
|
+
@TypeName = typename
|
235
|
+
@StatusName = statusname
|
236
|
+
@IsVip = isvip
|
237
|
+
@IsDv = isdv
|
238
|
+
@IsWildcard = iswildcard
|
239
|
+
@IsVulnerability = isvulnerability
|
240
|
+
@Cert = cert
|
241
|
+
end
|
242
|
+
|
243
|
+
def deserialize(params)
|
244
|
+
@OwnerUin = params['OwnerUin']
|
245
|
+
@ProjectId = params['ProjectId']
|
246
|
+
@From = params['From']
|
247
|
+
@Type = params['Type']
|
248
|
+
@CertType = params['CertType']
|
249
|
+
@ProductZhName = params['ProductZhName']
|
250
|
+
@Domain = params['Domain']
|
251
|
+
@Alias = params['Alias']
|
252
|
+
@Status = params['Status']
|
253
|
+
@VulnerabilityStatus = params['VulnerabilityStatus']
|
254
|
+
@StatusMsg = params['StatusMsg']
|
255
|
+
@VerifyType = params['VerifyType']
|
256
|
+
@CertBeginTime = params['CertBeginTime']
|
257
|
+
@CertEndTime = params['CertEndTime']
|
258
|
+
@ValidityPeriod = params['ValidityPeriod']
|
259
|
+
@InsertTime = params['InsertTime']
|
260
|
+
unless params['ProjectInfo'].nil?
|
261
|
+
@ProjectInfo = SSLProjectInfo.new
|
262
|
+
@ProjectInfo.deserialize(params['ProjectInfo'])
|
263
|
+
end
|
264
|
+
@Id = params['Id']
|
265
|
+
@SubjectAltName = params['SubjectAltName']
|
266
|
+
@TypeName = params['TypeName']
|
267
|
+
@StatusName = params['StatusName']
|
268
|
+
@IsVip = params['IsVip']
|
269
|
+
@IsDv = params['IsDv']
|
270
|
+
@IsWildcard = params['IsWildcard']
|
271
|
+
@IsVulnerability = params['IsVulnerability']
|
272
|
+
@Cert = params['Cert']
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
# 获取证书列表接口(SSLProjectInfo)出参键为CertificateSet下的元素ProjectIno详情
|
277
|
+
class SSLProjectInfo < TencentCloud::Common::AbstractModel
|
278
|
+
# @param ProjectId: 项目ID
|
279
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
280
|
+
# @type ProjectId: String
|
281
|
+
# @param OwnerUin: 项目所属的 uin(默认项目为0)
|
282
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
283
|
+
# @type OwnerUin: Integer
|
284
|
+
# @param Name: 项目名称
|
285
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
286
|
+
# @type Name: String
|
287
|
+
# @param CreatorUin: 创建项目的 uin
|
288
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
289
|
+
# @type CreatorUin: Integer
|
290
|
+
# @param CreateTime: 项目创建时间
|
291
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
292
|
+
# @type CreateTime: String
|
293
|
+
# @param Info: 项目说明
|
294
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
295
|
+
# @type Info: String
|
296
|
+
|
297
|
+
attr_accessor :ProjectId, :OwnerUin, :Name, :CreatorUin, :CreateTime, :Info
|
298
|
+
|
299
|
+
def initialize(projectid=nil, owneruin=nil, name=nil, creatoruin=nil, createtime=nil, info=nil)
|
300
|
+
@ProjectId = projectid
|
301
|
+
@OwnerUin = owneruin
|
302
|
+
@Name = name
|
303
|
+
@CreatorUin = creatoruin
|
304
|
+
@CreateTime = createtime
|
305
|
+
@Info = info
|
306
|
+
end
|
307
|
+
|
308
|
+
def deserialize(params)
|
309
|
+
@ProjectId = params['ProjectId']
|
310
|
+
@OwnerUin = params['OwnerUin']
|
311
|
+
@Name = params['Name']
|
312
|
+
@CreatorUin = params['CreatorUin']
|
313
|
+
@CreateTime = params['CreateTime']
|
314
|
+
@Info = params['Info']
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
# UploadCert请求参数结构体
|
319
|
+
class UploadCertRequest < TencentCloud::Common::AbstractModel
|
320
|
+
# @param Cert: 证书内容。
|
321
|
+
# @type Cert: String
|
322
|
+
# @param CertType: 证书类型(目前支持:CA 为客户端证书,SVR 为服务器证书)。
|
323
|
+
# @type CertType: String
|
324
|
+
# @param ProjectId: 项目ID,详见用户指南的 [项目与标签](https://cloud.tencent.com/document/product/598/32738)。
|
325
|
+
# @type ProjectId: String
|
326
|
+
# @param ModuleType: 模块名称,应填 ssl。
|
327
|
+
# @type ModuleType: String
|
328
|
+
# @param Key: 证书私钥,certType=SVR 时必填。
|
329
|
+
# @type Key: String
|
330
|
+
# @param Alias: 证书备注。
|
331
|
+
# @type Alias: String
|
332
|
+
|
333
|
+
attr_accessor :Cert, :CertType, :ProjectId, :ModuleType, :Key, :Alias
|
334
|
+
|
335
|
+
def initialize(cert=nil, certtype=nil, projectid=nil, moduletype=nil, key=nil, _alias=nil)
|
336
|
+
@Cert = cert
|
337
|
+
@CertType = certtype
|
338
|
+
@ProjectId = projectid
|
339
|
+
@ModuleType = moduletype
|
340
|
+
@Key = key
|
341
|
+
@Alias = _alias
|
342
|
+
end
|
343
|
+
|
344
|
+
def deserialize(params)
|
345
|
+
@Cert = params['Cert']
|
346
|
+
@CertType = params['CertType']
|
347
|
+
@ProjectId = params['ProjectId']
|
348
|
+
@ModuleType = params['ModuleType']
|
349
|
+
@Key = params['Key']
|
350
|
+
@Alias = params['Alias']
|
351
|
+
end
|
352
|
+
end
|
353
|
+
|
354
|
+
# UploadCert返回参数结构体
|
355
|
+
class UploadCertResponse < TencentCloud::Common::AbstractModel
|
356
|
+
# @param Id: 证书ID。
|
357
|
+
# @type Id: String
|
358
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
359
|
+
# @type RequestId: String
|
360
|
+
|
361
|
+
attr_accessor :Id, :RequestId
|
362
|
+
|
363
|
+
def initialize(id=nil, requestid=nil)
|
364
|
+
@Id = id
|
365
|
+
@RequestId = requestid
|
366
|
+
end
|
367
|
+
|
368
|
+
def deserialize(params)
|
369
|
+
@Id = params['Id']
|
370
|
+
@RequestId = params['RequestId']
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
end
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
metadata
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tencentcloud-sdk-wss
|
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
|
+
WSS.
|
30
|
+
email:
|
31
|
+
- tencentcloudapi@tencent.com
|
32
|
+
executables: []
|
33
|
+
extensions: []
|
34
|
+
extra_rdoc_files: []
|
35
|
+
files:
|
36
|
+
- lib/VERSION
|
37
|
+
- lib/tencentcloud-sdk-wss.rb
|
38
|
+
- lib/v20180426/client.rb
|
39
|
+
- lib/v20180426/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-wss
|
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 - WSS
|
66
|
+
test_files: []
|