tencentcloud-sdk-iottid 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: 47897858ceaef8d0f909d07605e2ce1350ad5104
4
+ data.tar.gz: 28614826f4da9f4be7008781f7df9822505f2601
5
+ SHA512:
6
+ metadata.gz: 000e3f727a503a2b15e6b5b7877775a16d0cb20ac190a2563be6eb9f9f8ea48426f82fb9fe8276b08874d422f54bc4a8524fcebeab527b4cd4de377ce4179235
7
+ data.tar.gz: c4035fe306551018736f4e95f64d496ace9c0bed605989dd9b8386eea29626e3f2cb8093bb9a21952a432a08e1e76d5130d25c7238a79c2554b4e87be9fe1df9
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 'v20190411/client'
6
+ require_relative 'v20190411/models'
7
+
8
+ module TencentCloud
9
+ module Iottid
10
+ end
11
+ end
@@ -0,0 +1,252 @@
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 Iottid
21
+ module V20190411
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2019-04-11'
26
+ api_endpoint = 'iottid.tencentcloudapi.com'
27
+ sdk_version = 'IOTTID_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 单向认证测试TID
33
+
34
+ # @param request: Request instance for AuthTestTid.
35
+ # @type request: :class:`Tencentcloud::iottid::V20190411::AuthTestTidRequest`
36
+ # @rtype: :class:`Tencentcloud::iottid::V20190411::AuthTestTidResponse`
37
+ def AuthTestTid(request)
38
+ body = send_request('AuthTestTid', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AuthTestTidResponse.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
+ # 安全芯片TID烧录回执
57
+
58
+ # @param request: Request instance for BurnTidNotify.
59
+ # @type request: :class:`Tencentcloud::iottid::V20190411::BurnTidNotifyRequest`
60
+ # @rtype: :class:`Tencentcloud::iottid::V20190411::BurnTidNotifyResponse`
61
+ def BurnTidNotify(request)
62
+ body = send_request('BurnTidNotify', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = BurnTidNotifyResponse.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
+ # 安全芯片为载体的TID空发回执,绑定TID与订单号。
81
+
82
+ # @param request: Request instance for DeliverTidNotify.
83
+ # @type request: :class:`Tencentcloud::iottid::V20190411::DeliverTidNotifyRequest`
84
+ # @rtype: :class:`Tencentcloud::iottid::V20190411::DeliverTidNotifyResponse`
85
+ def DeliverTidNotify(request)
86
+ body = send_request('DeliverTidNotify', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DeliverTidNotifyResponse.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
+ # 设备服务商请求空发产品订单的TID信息
105
+
106
+ # @param request: Request instance for DeliverTids.
107
+ # @type request: :class:`Tencentcloud::iottid::V20190411::DeliverTidsRequest`
108
+ # @rtype: :class:`Tencentcloud::iottid::V20190411::DeliverTidsResponse`
109
+ def DeliverTids(request)
110
+ body = send_request('DeliverTids', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DeliverTidsResponse.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
+ # 查询指定订单的可空发的白盒密钥数量
129
+
130
+ # @param request: Request instance for DescribeAvailableLibCount.
131
+ # @type request: :class:`Tencentcloud::iottid::V20190411::DescribeAvailableLibCountRequest`
132
+ # @rtype: :class:`Tencentcloud::iottid::V20190411::DescribeAvailableLibCountResponse`
133
+ def DescribeAvailableLibCount(request)
134
+ body = send_request('DescribeAvailableLibCount', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeAvailableLibCountResponse.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
+ # 查询企业用户TID平台控制台权限
153
+
154
+ # @param request: Request instance for DescribePermission.
155
+ # @type request: :class:`Tencentcloud::iottid::V20190411::DescribePermissionRequest`
156
+ # @rtype: :class:`Tencentcloud::iottid::V20190411::DescribePermissionResponse`
157
+ def DescribePermission(request)
158
+ body = send_request('DescribePermission', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DescribePermissionResponse.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
+ # 下载芯片订单的TID
177
+
178
+ # @param request: Request instance for DownloadTids.
179
+ # @type request: :class:`Tencentcloud::iottid::V20190411::DownloadTidsRequest`
180
+ # @rtype: :class:`Tencentcloud::iottid::V20190411::DownloadTidsResponse`
181
+ def DownloadTids(request)
182
+ body = send_request('DownloadTids', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DownloadTidsResponse.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
+ # 上传硬件唯一标识码,是软加固设备身份参数。本接口如遇到错误数据,则所有当次上传数据失效。
201
+
202
+ # @param request: Request instance for UploadDeviceUniqueCode.
203
+ # @type request: :class:`Tencentcloud::iottid::V20190411::UploadDeviceUniqueCodeRequest`
204
+ # @rtype: :class:`Tencentcloud::iottid::V20190411::UploadDeviceUniqueCodeResponse`
205
+ def UploadDeviceUniqueCode(request)
206
+ body = send_request('UploadDeviceUniqueCode', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = UploadDeviceUniqueCodeResponse.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
+ # 下载控制台验证芯片烧录信息,保证TID与中心信息一致
225
+
226
+ # @param request: Request instance for VerifyChipBurnInfo.
227
+ # @type request: :class:`Tencentcloud::iottid::V20190411::VerifyChipBurnInfoRequest`
228
+ # @rtype: :class:`Tencentcloud::iottid::V20190411::VerifyChipBurnInfoResponse`
229
+ def VerifyChipBurnInfo(request)
230
+ body = send_request('VerifyChipBurnInfo', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = VerifyChipBurnInfoResponse.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
+
249
+ end
250
+ end
251
+ end
252
+ end
@@ -0,0 +1,456 @@
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 Iottid
19
+ module V20190411
20
+ # AuthTestTid请求参数结构体
21
+ class AuthTestTidRequest < TencentCloud::Common::AbstractModel
22
+ # @param Data: 设备端SDK填入测试TID参数后生成的加密数据串
23
+ # @type Data: String
24
+
25
+ attr_accessor :Data
26
+
27
+ def initialize(data=nil)
28
+ @Data = data
29
+ end
30
+
31
+ def deserialize(params)
32
+ @Data = params['Data']
33
+ end
34
+ end
35
+
36
+ # AuthTestTid返回参数结构体
37
+ class AuthTestTidResponse < TencentCloud::Common::AbstractModel
38
+ # @param Pass: 认证结果
39
+ # @type Pass: Boolean
40
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
41
+ # @type RequestId: String
42
+
43
+ attr_accessor :Pass, :RequestId
44
+
45
+ def initialize(pass=nil, requestid=nil)
46
+ @Pass = pass
47
+ @RequestId = requestid
48
+ end
49
+
50
+ def deserialize(params)
51
+ @Pass = params['Pass']
52
+ @RequestId = params['RequestId']
53
+ end
54
+ end
55
+
56
+ # BurnTidNotify请求参数结构体
57
+ class BurnTidNotifyRequest < TencentCloud::Common::AbstractModel
58
+ # @param OrderId: 订单编号
59
+ # @type OrderId: String
60
+ # @param Tid: TID编号
61
+ # @type Tid: String
62
+
63
+ attr_accessor :OrderId, :Tid
64
+
65
+ def initialize(orderid=nil, tid=nil)
66
+ @OrderId = orderid
67
+ @Tid = tid
68
+ end
69
+
70
+ def deserialize(params)
71
+ @OrderId = params['OrderId']
72
+ @Tid = params['Tid']
73
+ end
74
+ end
75
+
76
+ # BurnTidNotify返回参数结构体
77
+ class BurnTidNotifyResponse < TencentCloud::Common::AbstractModel
78
+ # @param Tid: 接收回执成功的TID
79
+ # @type Tid: String
80
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
81
+ # @type RequestId: String
82
+
83
+ attr_accessor :Tid, :RequestId
84
+
85
+ def initialize(tid=nil, requestid=nil)
86
+ @Tid = tid
87
+ @RequestId = requestid
88
+ end
89
+
90
+ def deserialize(params)
91
+ @Tid = params['Tid']
92
+ @RequestId = params['RequestId']
93
+ end
94
+ end
95
+
96
+ # DeliverTidNotify请求参数结构体
97
+ class DeliverTidNotifyRequest < TencentCloud::Common::AbstractModel
98
+ # @param OrderId: 订单编号
99
+ # @type OrderId: String
100
+ # @param Tid: TID编号
101
+ # @type Tid: String
102
+
103
+ attr_accessor :OrderId, :Tid
104
+
105
+ def initialize(orderid=nil, tid=nil)
106
+ @OrderId = orderid
107
+ @Tid = tid
108
+ end
109
+
110
+ def deserialize(params)
111
+ @OrderId = params['OrderId']
112
+ @Tid = params['Tid']
113
+ end
114
+ end
115
+
116
+ # DeliverTidNotify返回参数结构体
117
+ class DeliverTidNotifyResponse < TencentCloud::Common::AbstractModel
118
+ # @param RemaindCount: 剩余空发数量
119
+ # @type RemaindCount: Integer
120
+ # @param Tid: 已回执的TID编码
121
+ # @type Tid: String
122
+ # @param ProductKey: 产品公钥
123
+ # @type ProductKey: String
124
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
125
+ # @type RequestId: String
126
+
127
+ attr_accessor :RemaindCount, :Tid, :ProductKey, :RequestId
128
+
129
+ def initialize(remaindcount=nil, tid=nil, productkey=nil, requestid=nil)
130
+ @RemaindCount = remaindcount
131
+ @Tid = tid
132
+ @ProductKey = productkey
133
+ @RequestId = requestid
134
+ end
135
+
136
+ def deserialize(params)
137
+ @RemaindCount = params['RemaindCount']
138
+ @Tid = params['Tid']
139
+ @ProductKey = params['ProductKey']
140
+ @RequestId = params['RequestId']
141
+ end
142
+ end
143
+
144
+ # DeliverTids请求参数结构体
145
+ class DeliverTidsRequest < TencentCloud::Common::AbstractModel
146
+ # @param OrderId: 订单ID
147
+ # @type OrderId: String
148
+ # @param Quantity: 数量,1~100
149
+ # @type Quantity: Integer
150
+
151
+ attr_accessor :OrderId, :Quantity
152
+
153
+ def initialize(orderid=nil, quantity=nil)
154
+ @OrderId = orderid
155
+ @Quantity = quantity
156
+ end
157
+
158
+ def deserialize(params)
159
+ @OrderId = params['OrderId']
160
+ @Quantity = params['Quantity']
161
+ end
162
+ end
163
+
164
+ # DeliverTids返回参数结构体
165
+ class DeliverTidsResponse < TencentCloud::Common::AbstractModel
166
+ # @param TidSet: 空发的TID信息
167
+ # 注意:此字段可能返回 null,表示取不到有效值。
168
+ # @type TidSet: Array
169
+ # @param ProductKey: 产品公钥
170
+ # @type ProductKey: String
171
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
172
+ # @type RequestId: String
173
+
174
+ attr_accessor :TidSet, :ProductKey, :RequestId
175
+
176
+ def initialize(tidset=nil, productkey=nil, requestid=nil)
177
+ @TidSet = tidset
178
+ @ProductKey = productkey
179
+ @RequestId = requestid
180
+ end
181
+
182
+ def deserialize(params)
183
+ unless params['TidSet'].nil?
184
+ @TidSet = []
185
+ params['TidSet'].each do |i|
186
+ tidkeysinfo_tmp = TidKeysInfo.new
187
+ tidkeysinfo_tmp.deserialize(i)
188
+ @TidSet << tidkeysinfo_tmp
189
+ end
190
+ end
191
+ @ProductKey = params['ProductKey']
192
+ @RequestId = params['RequestId']
193
+ end
194
+ end
195
+
196
+ # DescribeAvailableLibCount请求参数结构体
197
+ class DescribeAvailableLibCountRequest < TencentCloud::Common::AbstractModel
198
+ # @param OrderId: 订单编号
199
+ # @type OrderId: String
200
+
201
+ attr_accessor :OrderId
202
+
203
+ def initialize(orderid=nil)
204
+ @OrderId = orderid
205
+ end
206
+
207
+ def deserialize(params)
208
+ @OrderId = params['OrderId']
209
+ end
210
+ end
211
+
212
+ # DescribeAvailableLibCount返回参数结构体
213
+ class DescribeAvailableLibCountResponse < TencentCloud::Common::AbstractModel
214
+ # @param Quantity: 可空发的白盒密钥数量
215
+ # @type Quantity: Integer
216
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
217
+ # @type RequestId: String
218
+
219
+ attr_accessor :Quantity, :RequestId
220
+
221
+ def initialize(quantity=nil, requestid=nil)
222
+ @Quantity = quantity
223
+ @RequestId = requestid
224
+ end
225
+
226
+ def deserialize(params)
227
+ @Quantity = params['Quantity']
228
+ @RequestId = params['RequestId']
229
+ end
230
+ end
231
+
232
+ # DescribePermission请求参数结构体
233
+ class DescribePermissionRequest < TencentCloud::Common::AbstractModel
234
+
235
+
236
+ def initialize()
237
+ end
238
+
239
+ def deserialize(params)
240
+ end
241
+ end
242
+
243
+ # DescribePermission返回参数结构体
244
+ class DescribePermissionResponse < TencentCloud::Common::AbstractModel
245
+ # @param EnterpriseUser: 企业用户
246
+ # @type EnterpriseUser: Boolean
247
+ # @param DownloadPermission: 下载控制台权限
248
+ # @type DownloadPermission: String
249
+ # @param UsePermission: 使用控制台权限
250
+ # @type UsePermission: String
251
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
252
+ # @type RequestId: String
253
+
254
+ attr_accessor :EnterpriseUser, :DownloadPermission, :UsePermission, :RequestId
255
+
256
+ def initialize(enterpriseuser=nil, downloadpermission=nil, usepermission=nil, requestid=nil)
257
+ @EnterpriseUser = enterpriseuser
258
+ @DownloadPermission = downloadpermission
259
+ @UsePermission = usepermission
260
+ @RequestId = requestid
261
+ end
262
+
263
+ def deserialize(params)
264
+ @EnterpriseUser = params['EnterpriseUser']
265
+ @DownloadPermission = params['DownloadPermission']
266
+ @UsePermission = params['UsePermission']
267
+ @RequestId = params['RequestId']
268
+ end
269
+ end
270
+
271
+ # DownloadTids请求参数结构体
272
+ class DownloadTidsRequest < TencentCloud::Common::AbstractModel
273
+ # @param OrderId: 订单编号
274
+ # @type OrderId: String
275
+ # @param Quantity: 下载数量:1~10
276
+ # @type Quantity: Integer
277
+
278
+ attr_accessor :OrderId, :Quantity
279
+
280
+ def initialize(orderid=nil, quantity=nil)
281
+ @OrderId = orderid
282
+ @Quantity = quantity
283
+ end
284
+
285
+ def deserialize(params)
286
+ @OrderId = params['OrderId']
287
+ @Quantity = params['Quantity']
288
+ end
289
+ end
290
+
291
+ # DownloadTids返回参数结构体
292
+ class DownloadTidsResponse < TencentCloud::Common::AbstractModel
293
+ # @param TidSet: 下载的TID信息列表
294
+ # 注意:此字段可能返回 null,表示取不到有效值。
295
+ # @type TidSet: Array
296
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
297
+ # @type RequestId: String
298
+
299
+ attr_accessor :TidSet, :RequestId
300
+
301
+ def initialize(tidset=nil, requestid=nil)
302
+ @TidSet = tidset
303
+ @RequestId = requestid
304
+ end
305
+
306
+ def deserialize(params)
307
+ unless params['TidSet'].nil?
308
+ @TidSet = []
309
+ params['TidSet'].each do |i|
310
+ tidkeysinfo_tmp = TidKeysInfo.new
311
+ tidkeysinfo_tmp.deserialize(i)
312
+ @TidSet << tidkeysinfo_tmp
313
+ end
314
+ end
315
+ @RequestId = params['RequestId']
316
+ end
317
+ end
318
+
319
+ # 系统生成的TID和密钥信息
320
+ class TidKeysInfo < TencentCloud::Common::AbstractModel
321
+ # @param Tid: TID号码
322
+ # @type Tid: String
323
+ # @param PublicKey: 公钥
324
+ # @type PublicKey: String
325
+ # @param PrivateKey: 私钥
326
+ # @type PrivateKey: String
327
+ # @param Psk: 共享密钥
328
+ # @type Psk: String
329
+ # @param DownloadUrl: 软加固白盒密钥下载地址
330
+ # @type DownloadUrl: String
331
+ # @param DeviceCode: 软加固设备标识码
332
+ # @type DeviceCode: String
333
+
334
+ attr_accessor :Tid, :PublicKey, :PrivateKey, :Psk, :DownloadUrl, :DeviceCode
335
+
336
+ def initialize(tid=nil, publickey=nil, privatekey=nil, psk=nil, downloadurl=nil, devicecode=nil)
337
+ @Tid = tid
338
+ @PublicKey = publickey
339
+ @PrivateKey = privatekey
340
+ @Psk = psk
341
+ @DownloadUrl = downloadurl
342
+ @DeviceCode = devicecode
343
+ end
344
+
345
+ def deserialize(params)
346
+ @Tid = params['Tid']
347
+ @PublicKey = params['PublicKey']
348
+ @PrivateKey = params['PrivateKey']
349
+ @Psk = params['Psk']
350
+ @DownloadUrl = params['DownloadUrl']
351
+ @DeviceCode = params['DeviceCode']
352
+ end
353
+ end
354
+
355
+ # UploadDeviceUniqueCode请求参数结构体
356
+ class UploadDeviceUniqueCodeRequest < TencentCloud::Common::AbstractModel
357
+ # @param CodeSet: 硬件唯一标识码
358
+ # @type CodeSet: Array
359
+ # @param OrderId: 硬件标识码绑定的申请编号
360
+ # @type OrderId: String
361
+
362
+ attr_accessor :CodeSet, :OrderId
363
+
364
+ def initialize(codeset=nil, orderid=nil)
365
+ @CodeSet = codeset
366
+ @OrderId = orderid
367
+ end
368
+
369
+ def deserialize(params)
370
+ @CodeSet = params['CodeSet']
371
+ @OrderId = params['OrderId']
372
+ end
373
+ end
374
+
375
+ # UploadDeviceUniqueCode返回参数结构体
376
+ class UploadDeviceUniqueCodeResponse < TencentCloud::Common::AbstractModel
377
+ # @param Count: 本次已上传数量
378
+ # @type Count: Integer
379
+ # @param ExistedCodeSet: 重复的硬件唯一标识码
380
+ # 注意:此字段可能返回 null,表示取不到有效值。
381
+ # @type ExistedCodeSet: Array
382
+ # @param LeftQuantity: 剩余可上传数量
383
+ # @type LeftQuantity: Integer
384
+ # @param IllegalCodeSet: 错误的硬件唯一标识码
385
+ # 注意:此字段可能返回 null,表示取不到有效值。
386
+ # @type IllegalCodeSet: Array
387
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
388
+ # @type RequestId: String
389
+
390
+ attr_accessor :Count, :ExistedCodeSet, :LeftQuantity, :IllegalCodeSet, :RequestId
391
+
392
+ def initialize(count=nil, existedcodeset=nil, leftquantity=nil, illegalcodeset=nil, requestid=nil)
393
+ @Count = count
394
+ @ExistedCodeSet = existedcodeset
395
+ @LeftQuantity = leftquantity
396
+ @IllegalCodeSet = illegalcodeset
397
+ @RequestId = requestid
398
+ end
399
+
400
+ def deserialize(params)
401
+ @Count = params['Count']
402
+ @ExistedCodeSet = params['ExistedCodeSet']
403
+ @LeftQuantity = params['LeftQuantity']
404
+ @IllegalCodeSet = params['IllegalCodeSet']
405
+ @RequestId = params['RequestId']
406
+ end
407
+ end
408
+
409
+ # VerifyChipBurnInfo请求参数结构体
410
+ class VerifyChipBurnInfoRequest < TencentCloud::Common::AbstractModel
411
+ # @param Data: 验证数据
412
+ # @type Data: String
413
+
414
+ attr_accessor :Data
415
+
416
+ def initialize(data=nil)
417
+ @Data = data
418
+ end
419
+
420
+ def deserialize(params)
421
+ @Data = params['Data']
422
+ end
423
+ end
424
+
425
+ # VerifyChipBurnInfo返回参数结构体
426
+ class VerifyChipBurnInfoResponse < TencentCloud::Common::AbstractModel
427
+ # @param Pass: 验证结果
428
+ # @type Pass: Boolean
429
+ # @param VerifiedTimes: 已验证次数
430
+ # @type VerifiedTimes: Integer
431
+ # @param LeftTimes: 剩余验证次数
432
+ # @type LeftTimes: Integer
433
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
434
+ # @type RequestId: String
435
+
436
+ attr_accessor :Pass, :VerifiedTimes, :LeftTimes, :RequestId
437
+
438
+ def initialize(pass=nil, verifiedtimes=nil, lefttimes=nil, requestid=nil)
439
+ @Pass = pass
440
+ @VerifiedTimes = verifiedtimes
441
+ @LeftTimes = lefttimes
442
+ @RequestId = requestid
443
+ end
444
+
445
+ def deserialize(params)
446
+ @Pass = params['Pass']
447
+ @VerifiedTimes = params['VerifiedTimes']
448
+ @LeftTimes = params['LeftTimes']
449
+ @RequestId = params['RequestId']
450
+ end
451
+ end
452
+
453
+ end
454
+ end
455
+ end
456
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-iottid
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
+ IOTTID.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/VERSION
37
+ - lib/tencentcloud-sdk-iottid.rb
38
+ - lib/v20190411/client.rb
39
+ - lib/v20190411/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-iottid
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 - IOTTID
66
+ test_files: []