tencentcloud-sdk-iotcloud 1.0.289 → 1.0.290
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/v20180614/client.rb +48 -0
- data/lib/v20180614/models.rb +106 -0
- data/lib/v20210408/client.rb +216 -0
- data/lib/v20210408/models.rb +590 -2
- 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: 1398d127832276725ba02d3abda8a1eccb465561
|
4
|
+
data.tar.gz: 7d7158a5c81836dbb71657fb8cb17eec6d056d5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fea2dfd60465937968952fa28cb515d691ed2b43bc17c9731c6fdf9d5f2b8777b55a927bd8d4d6bc5bc35107c49d0bc78b033fe4828ae40f4ed0b6ef915036af
|
7
|
+
data.tar.gz: 4fe3a90826087d3bf9b91270215a11cb5e11e71644d33f58ce512ee3727daa3678f761dda86353da2521952a7a7cce34441fc56f249bbf6369309077571b1d49
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.290
|
data/lib/v20180614/client.rb
CHANGED
@@ -845,6 +845,30 @@ module TencentCloud
|
|
845
845
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
846
846
|
end
|
847
847
|
|
848
|
+
# 本接口(DescribeProduct)用于查看产品详情
|
849
|
+
|
850
|
+
# @param request: Request instance for DescribeProduct.
|
851
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20180614::DescribeProductRequest`
|
852
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20180614::DescribeProductResponse`
|
853
|
+
def DescribeProduct(request)
|
854
|
+
body = send_request('DescribeProduct', request.serialize)
|
855
|
+
response = JSON.parse(body)
|
856
|
+
if response['Response'].key?('Error') == false
|
857
|
+
model = DescribeProductResponse.new
|
858
|
+
model.deserialize(response['Response'])
|
859
|
+
model
|
860
|
+
else
|
861
|
+
code = response['Response']['Error']['Code']
|
862
|
+
message = response['Response']['Error']['Message']
|
863
|
+
reqid = response['Response']['RequestId']
|
864
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
865
|
+
end
|
866
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
867
|
+
raise e
|
868
|
+
rescue StandardError => e
|
869
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
870
|
+
end
|
871
|
+
|
848
872
|
# 本接口(DescribeProductResource)用于查询产品资源详情。
|
849
873
|
|
850
874
|
# @param request: Request instance for DescribeProductResource.
|
@@ -1589,6 +1613,30 @@ module TencentCloud
|
|
1589
1613
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1590
1614
|
end
|
1591
1615
|
|
1616
|
+
# 更新产品动态注册的配置
|
1617
|
+
|
1618
|
+
# @param request: Request instance for UpdateProductDynamicRegister.
|
1619
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20180614::UpdateProductDynamicRegisterRequest`
|
1620
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20180614::UpdateProductDynamicRegisterResponse`
|
1621
|
+
def UpdateProductDynamicRegister(request)
|
1622
|
+
body = send_request('UpdateProductDynamicRegister', request.serialize)
|
1623
|
+
response = JSON.parse(body)
|
1624
|
+
if response['Response'].key?('Error') == false
|
1625
|
+
model = UpdateProductDynamicRegisterResponse.new
|
1626
|
+
model.deserialize(response['Response'])
|
1627
|
+
model
|
1628
|
+
else
|
1629
|
+
code = response['Response']['Error']['Code']
|
1630
|
+
message = response['Response']['Error']['Message']
|
1631
|
+
reqid = response['Response']['RequestId']
|
1632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1633
|
+
end
|
1634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1635
|
+
raise e
|
1636
|
+
rescue StandardError => e
|
1637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1638
|
+
end
|
1639
|
+
|
1592
1640
|
# 本接口(UpdateTopicPolicy)用于更新Topic信息
|
1593
1641
|
|
1594
1642
|
# @param request: Request instance for UpdateTopicPolicy.
|
data/lib/v20180614/models.rb
CHANGED
@@ -2062,6 +2062,22 @@ module TencentCloud
|
|
2062
2062
|
end
|
2063
2063
|
end
|
2064
2064
|
|
2065
|
+
# DescribeProduct请求参数结构体
|
2066
|
+
class DescribeProductRequest < TencentCloud::Common::AbstractModel
|
2067
|
+
# @param ProductId: 产品ID
|
2068
|
+
# @type ProductId: String
|
2069
|
+
|
2070
|
+
attr_accessor :ProductId
|
2071
|
+
|
2072
|
+
def initialize(productid=nil)
|
2073
|
+
@ProductId = productid
|
2074
|
+
end
|
2075
|
+
|
2076
|
+
def deserialize(params)
|
2077
|
+
@ProductId = params['ProductId']
|
2078
|
+
end
|
2079
|
+
end
|
2080
|
+
|
2065
2081
|
# DescribeProductResource请求参数结构体
|
2066
2082
|
class DescribeProductResourceRequest < TencentCloud::Common::AbstractModel
|
2067
2083
|
# @param ProductID: 需要查看资源列表的产品 ID
|
@@ -2166,6 +2182,44 @@ module TencentCloud
|
|
2166
2182
|
end
|
2167
2183
|
end
|
2168
2184
|
|
2185
|
+
# DescribeProduct返回参数结构体
|
2186
|
+
class DescribeProductResponse < TencentCloud::Common::AbstractModel
|
2187
|
+
# @param ProductId: 产品ID
|
2188
|
+
# @type ProductId: String
|
2189
|
+
# @param ProductName: 产品名
|
2190
|
+
# @type ProductName: String
|
2191
|
+
# @param ProductMetadata: 产品元数据
|
2192
|
+
# @type ProductMetadata: :class:`Tencentcloud::Iotcloud.v20180614.models.ProductMetadata`
|
2193
|
+
# @param ProductProperties: 产品属性
|
2194
|
+
# @type ProductProperties: :class:`Tencentcloud::Iotcloud.v20180614.models.ProductProperties`
|
2195
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2196
|
+
# @type RequestId: String
|
2197
|
+
|
2198
|
+
attr_accessor :ProductId, :ProductName, :ProductMetadata, :ProductProperties, :RequestId
|
2199
|
+
|
2200
|
+
def initialize(productid=nil, productname=nil, productmetadata=nil, productproperties=nil, requestid=nil)
|
2201
|
+
@ProductId = productid
|
2202
|
+
@ProductName = productname
|
2203
|
+
@ProductMetadata = productmetadata
|
2204
|
+
@ProductProperties = productproperties
|
2205
|
+
@RequestId = requestid
|
2206
|
+
end
|
2207
|
+
|
2208
|
+
def deserialize(params)
|
2209
|
+
@ProductId = params['ProductId']
|
2210
|
+
@ProductName = params['ProductName']
|
2211
|
+
unless params['ProductMetadata'].nil?
|
2212
|
+
@ProductMetadata = ProductMetadata.new
|
2213
|
+
@ProductMetadata.deserialize(params['ProductMetadata'])
|
2214
|
+
end
|
2215
|
+
unless params['ProductProperties'].nil?
|
2216
|
+
@ProductProperties = ProductProperties.new
|
2217
|
+
@ProductProperties.deserialize(params['ProductProperties'])
|
2218
|
+
end
|
2219
|
+
@RequestId = params['RequestId']
|
2220
|
+
end
|
2221
|
+
end
|
2222
|
+
|
2169
2223
|
# DescribeProductTask请求参数结构体
|
2170
2224
|
class DescribeProductTaskRequest < TencentCloud::Common::AbstractModel
|
2171
2225
|
# @param ProductId: 产品ID
|
@@ -4507,6 +4561,58 @@ module TencentCloud
|
|
4507
4561
|
end
|
4508
4562
|
end
|
4509
4563
|
|
4564
|
+
# UpdateProductDynamicRegister请求参数结构体
|
4565
|
+
class UpdateProductDynamicRegisterRequest < TencentCloud::Common::AbstractModel
|
4566
|
+
# @param ProductId: 产品Id
|
4567
|
+
# @type ProductId: String
|
4568
|
+
# @param RegisterType: 动态注册类型,0-关闭 1-预创建设备 2-自动创建设备
|
4569
|
+
# @type RegisterType: Integer
|
4570
|
+
# @param RegisterLimit: 动态注册设备上限
|
4571
|
+
# @type RegisterLimit: Integer
|
4572
|
+
|
4573
|
+
attr_accessor :ProductId, :RegisterType, :RegisterLimit
|
4574
|
+
|
4575
|
+
def initialize(productid=nil, registertype=nil, registerlimit=nil)
|
4576
|
+
@ProductId = productid
|
4577
|
+
@RegisterType = registertype
|
4578
|
+
@RegisterLimit = registerlimit
|
4579
|
+
end
|
4580
|
+
|
4581
|
+
def deserialize(params)
|
4582
|
+
@ProductId = params['ProductId']
|
4583
|
+
@RegisterType = params['RegisterType']
|
4584
|
+
@RegisterLimit = params['RegisterLimit']
|
4585
|
+
end
|
4586
|
+
end
|
4587
|
+
|
4588
|
+
# UpdateProductDynamicRegister返回参数结构体
|
4589
|
+
class UpdateProductDynamicRegisterResponse < TencentCloud::Common::AbstractModel
|
4590
|
+
# @param RegisterType: 动态注册类型,0-关闭 1-预创建设备 2-自动创建设备
|
4591
|
+
# @type RegisterType: Integer
|
4592
|
+
# @param ProductSecret: 动态注册产品密钥
|
4593
|
+
# @type ProductSecret: String
|
4594
|
+
# @param RegisterLimit: 动态注册设备上限
|
4595
|
+
# @type RegisterLimit: Integer
|
4596
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4597
|
+
# @type RequestId: String
|
4598
|
+
|
4599
|
+
attr_accessor :RegisterType, :ProductSecret, :RegisterLimit, :RequestId
|
4600
|
+
|
4601
|
+
def initialize(registertype=nil, productsecret=nil, registerlimit=nil, requestid=nil)
|
4602
|
+
@RegisterType = registertype
|
4603
|
+
@ProductSecret = productsecret
|
4604
|
+
@RegisterLimit = registerlimit
|
4605
|
+
@RequestId = requestid
|
4606
|
+
end
|
4607
|
+
|
4608
|
+
def deserialize(params)
|
4609
|
+
@RegisterType = params['RegisterType']
|
4610
|
+
@ProductSecret = params['ProductSecret']
|
4611
|
+
@RegisterLimit = params['RegisterLimit']
|
4612
|
+
@RequestId = params['RequestId']
|
4613
|
+
end
|
4614
|
+
end
|
4615
|
+
|
4510
4616
|
# UpdateTopicPolicy请求参数结构体
|
4511
4617
|
class UpdateTopicPolicyRequest < TencentCloud::Common::AbstractModel
|
4512
4618
|
# @param ProductID: 产品ID
|
data/lib/v20210408/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 删除产品的私有CA证书
|
153
|
+
|
154
|
+
# @param request: Request instance for DeleteProductPrivateCA.
|
155
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductPrivateCARequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductPrivateCAResponse`
|
157
|
+
def DeleteProductPrivateCA(request)
|
158
|
+
body = send_request('DeleteProductPrivateCA', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DeleteProductPrivateCAResponse.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
|
+
|
152
176
|
# 本接口(DescribeDevice)用于查看设备信息
|
153
177
|
|
154
178
|
# @param request: Request instance for DescribeDevice.
|
@@ -317,6 +341,126 @@ module TencentCloud
|
|
317
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
342
|
end
|
319
343
|
|
344
|
+
# 本接口(ListLog)用于查看日志信息
|
345
|
+
|
346
|
+
# @param request: Request instance for ListLog.
|
347
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::ListLogRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::ListLogResponse`
|
349
|
+
def ListLog(request)
|
350
|
+
body = send_request('ListLog', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = ListLogResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
368
|
+
# 获取日志内容列表
|
369
|
+
|
370
|
+
# @param request: Request instance for ListLogPayload.
|
371
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::ListLogPayloadRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::ListLogPayloadResponse`
|
373
|
+
def ListLogPayload(request)
|
374
|
+
body = send_request('ListLogPayload', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = ListLogPayloadResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
392
|
+
# 获取设备上报的日志
|
393
|
+
|
394
|
+
# @param request: Request instance for ListSDKLog.
|
395
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::ListSDKLogRequest`
|
396
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::ListSDKLogResponse`
|
397
|
+
def ListSDKLog(request)
|
398
|
+
body = send_request('ListSDKLog', request.serialize)
|
399
|
+
response = JSON.parse(body)
|
400
|
+
if response['Response'].key?('Error') == false
|
401
|
+
model = ListSDKLogResponse.new
|
402
|
+
model.deserialize(response['Response'])
|
403
|
+
model
|
404
|
+
else
|
405
|
+
code = response['Response']['Error']['Code']
|
406
|
+
message = response['Response']['Error']['Message']
|
407
|
+
reqid = response['Response']['RequestId']
|
408
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
409
|
+
end
|
410
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
411
|
+
raise e
|
412
|
+
rescue StandardError => e
|
413
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
414
|
+
end
|
415
|
+
|
416
|
+
# 发布广播消息
|
417
|
+
|
418
|
+
# @param request: Request instance for PublishBroadcastMessage.
|
419
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::PublishBroadcastMessageRequest`
|
420
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::PublishBroadcastMessageResponse`
|
421
|
+
def PublishBroadcastMessage(request)
|
422
|
+
body = send_request('PublishBroadcastMessage', request.serialize)
|
423
|
+
response = JSON.parse(body)
|
424
|
+
if response['Response'].key?('Error') == false
|
425
|
+
model = PublishBroadcastMessageResponse.new
|
426
|
+
model.deserialize(response['Response'])
|
427
|
+
model
|
428
|
+
else
|
429
|
+
code = response['Response']['Error']['Code']
|
430
|
+
message = response['Response']['Error']['Message']
|
431
|
+
reqid = response['Response']['RequestId']
|
432
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
433
|
+
end
|
434
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
435
|
+
raise e
|
436
|
+
rescue StandardError => e
|
437
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
|
+
end
|
439
|
+
|
440
|
+
# 批量设置产品禁用状态
|
441
|
+
|
442
|
+
# @param request: Request instance for SetProductsForbiddenStatus.
|
443
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::SetProductsForbiddenStatusRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::SetProductsForbiddenStatusResponse`
|
445
|
+
def SetProductsForbiddenStatus(request)
|
446
|
+
body = send_request('SetProductsForbiddenStatus', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = SetProductsForbiddenStatusResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
320
464
|
# 设置设备上报的日志级别
|
321
465
|
|
322
466
|
# @param request: Request instance for UpdateDeviceLogLevel.
|
@@ -341,6 +485,30 @@ module TencentCloud
|
|
341
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
486
|
end
|
343
487
|
|
488
|
+
# 本接口(UpdateDevicePSK)用于更新设备的PSK
|
489
|
+
|
490
|
+
# @param request: Request instance for UpdateDevicePSK.
|
491
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::UpdateDevicePSKRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::UpdateDevicePSKResponse`
|
493
|
+
def UpdateDevicePSK(request)
|
494
|
+
body = send_request('UpdateDevicePSK', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = UpdateDevicePSKResponse.new
|
498
|
+
model.deserialize(response['Response'])
|
499
|
+
model
|
500
|
+
else
|
501
|
+
code = response['Response']['Error']['Code']
|
502
|
+
message = response['Response']['Error']['Message']
|
503
|
+
reqid = response['Response']['RequestId']
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
+
end
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
+
raise e
|
508
|
+
rescue StandardError => e
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
+
end
|
511
|
+
|
344
512
|
# 批量启用或者禁用设备
|
345
513
|
|
346
514
|
# @param request: Request instance for UpdateDevicesEnableState.
|
@@ -389,6 +557,54 @@ module TencentCloud
|
|
389
557
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
558
|
end
|
391
559
|
|
560
|
+
# 更新产品动态注册的配置
|
561
|
+
|
562
|
+
# @param request: Request instance for UpdateProductDynamicRegister.
|
563
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::UpdateProductDynamicRegisterRequest`
|
564
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::UpdateProductDynamicRegisterResponse`
|
565
|
+
def UpdateProductDynamicRegister(request)
|
566
|
+
body = send_request('UpdateProductDynamicRegister', request.serialize)
|
567
|
+
response = JSON.parse(body)
|
568
|
+
if response['Response'].key?('Error') == false
|
569
|
+
model = UpdateProductDynamicRegisterResponse.new
|
570
|
+
model.deserialize(response['Response'])
|
571
|
+
model
|
572
|
+
else
|
573
|
+
code = response['Response']['Error']['Code']
|
574
|
+
message = response['Response']['Error']['Message']
|
575
|
+
reqid = response['Response']['RequestId']
|
576
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
577
|
+
end
|
578
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
579
|
+
raise e
|
580
|
+
rescue StandardError => e
|
581
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
582
|
+
end
|
583
|
+
|
584
|
+
# 更新产品的私有CA
|
585
|
+
|
586
|
+
# @param request: Request instance for UpdateProductPrivateCA.
|
587
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20210408::UpdateProductPrivateCARequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20210408::UpdateProductPrivateCAResponse`
|
589
|
+
def UpdateProductPrivateCA(request)
|
590
|
+
body = send_request('UpdateProductPrivateCA', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = UpdateProductPrivateCAResponse.new
|
594
|
+
model.deserialize(response['Response'])
|
595
|
+
model
|
596
|
+
else
|
597
|
+
code = response['Response']['Error']['Code']
|
598
|
+
message = response['Response']['Error']['Message']
|
599
|
+
reqid = response['Response']['RequestId']
|
600
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
+
end
|
602
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
+
raise e
|
604
|
+
rescue StandardError => e
|
605
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
+
end
|
607
|
+
|
392
608
|
|
393
609
|
end
|
394
610
|
end
|
data/lib/v20210408/models.rb
CHANGED
@@ -60,6 +60,50 @@ module TencentCloud
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
+
# CLS日志
|
64
|
+
class CLSLogItem < TencentCloud::Common::AbstractModel
|
65
|
+
# @param Content: 日志内容
|
66
|
+
# @type Content: String
|
67
|
+
# @param DeviceName: 设备名称
|
68
|
+
# @type DeviceName: String
|
69
|
+
# @param ProductId: 产品ID
|
70
|
+
# @type ProductId: String
|
71
|
+
# @param RequestId: 请求ID
|
72
|
+
# @type RequestId: String
|
73
|
+
# @param Result: 结果
|
74
|
+
# @type Result: String
|
75
|
+
# @param Scene: 模块
|
76
|
+
# @type Scene: String
|
77
|
+
# @param Time: 日志时间
|
78
|
+
# @type Time: String
|
79
|
+
# @param Userid: 腾讯云账号
|
80
|
+
# @type Userid: String
|
81
|
+
|
82
|
+
attr_accessor :Content, :DeviceName, :ProductId, :RequestId, :Result, :Scene, :Time, :Userid
|
83
|
+
|
84
|
+
def initialize(content=nil, devicename=nil, productid=nil, requestid=nil, result=nil, scene=nil, time=nil, userid=nil)
|
85
|
+
@Content = content
|
86
|
+
@DeviceName = devicename
|
87
|
+
@ProductId = productid
|
88
|
+
@RequestId = requestid
|
89
|
+
@Result = result
|
90
|
+
@Scene = scene
|
91
|
+
@Time = time
|
92
|
+
@Userid = userid
|
93
|
+
end
|
94
|
+
|
95
|
+
def deserialize(params)
|
96
|
+
@Content = params['Content']
|
97
|
+
@DeviceName = params['DeviceName']
|
98
|
+
@ProductId = params['ProductId']
|
99
|
+
@RequestId = params['RequestId']
|
100
|
+
@Result = params['Result']
|
101
|
+
@Scene = params['Scene']
|
102
|
+
@Time = params['Time']
|
103
|
+
@Userid = params['Userid']
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
63
107
|
# X509证书信息
|
64
108
|
class CertInfo < TencentCloud::Common::AbstractModel
|
65
109
|
# @param CertName: 证书名称
|
@@ -323,6 +367,38 @@ module TencentCloud
|
|
323
367
|
end
|
324
368
|
end
|
325
369
|
|
370
|
+
# DeleteProductPrivateCA请求参数结构体
|
371
|
+
class DeleteProductPrivateCARequest < TencentCloud::Common::AbstractModel
|
372
|
+
# @param ProductId: 产品ID
|
373
|
+
# @type ProductId: String
|
374
|
+
|
375
|
+
attr_accessor :ProductId
|
376
|
+
|
377
|
+
def initialize(productid=nil)
|
378
|
+
@ProductId = productid
|
379
|
+
end
|
380
|
+
|
381
|
+
def deserialize(params)
|
382
|
+
@ProductId = params['ProductId']
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
386
|
+
# DeleteProductPrivateCA返回参数结构体
|
387
|
+
class DeleteProductPrivateCAResponse < TencentCloud::Common::AbstractModel
|
388
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
389
|
+
# @type RequestId: String
|
390
|
+
|
391
|
+
attr_accessor :RequestId
|
392
|
+
|
393
|
+
def initialize(requestid=nil)
|
394
|
+
@RequestId = requestid
|
395
|
+
end
|
396
|
+
|
397
|
+
def deserialize(params)
|
398
|
+
@RequestId = params['RequestId']
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
326
402
|
# DeleteProduct请求参数结构体
|
327
403
|
class DeleteProductRequest < TencentCloud::Common::AbstractModel
|
328
404
|
# @param ProductId: 需要删除的产品 ID
|
@@ -438,12 +514,15 @@ module TencentCloud
|
|
438
514
|
# @param FirmwareUpdateTime: 设备固件更新时间
|
439
515
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
440
516
|
# @type FirmwareUpdateTime: Integer
|
517
|
+
# @param CreateUserId: 创建者账号ID
|
518
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
519
|
+
# @type CreateUserId: Integer
|
441
520
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
442
521
|
# @type RequestId: String
|
443
522
|
|
444
|
-
attr_accessor :DeviceName, :Online, :LoginTime, :Version, :LastUpdateTime, :DeviceCert, :DevicePsk, :Tags, :DeviceType, :Imei, :Isp, :ConnIP, :NbiotDeviceID, :LoraDevEui, :LoraMoteType, :LogLevel, :FirstOnlineTime, :LastOfflineTime, :CreateTime, :CertState, :EnableState, :Labels, :ClientIP, :FirmwareUpdateTime, :RequestId
|
523
|
+
attr_accessor :DeviceName, :Online, :LoginTime, :Version, :LastUpdateTime, :DeviceCert, :DevicePsk, :Tags, :DeviceType, :Imei, :Isp, :ConnIP, :NbiotDeviceID, :LoraDevEui, :LoraMoteType, :LogLevel, :FirstOnlineTime, :LastOfflineTime, :CreateTime, :CertState, :EnableState, :Labels, :ClientIP, :FirmwareUpdateTime, :CreateUserId, :RequestId
|
445
524
|
|
446
|
-
def initialize(devicename=nil, online=nil, logintime=nil, version=nil, lastupdatetime=nil, devicecert=nil, devicepsk=nil, tags=nil, devicetype=nil, imei=nil, isp=nil, connip=nil, nbiotdeviceid=nil, loradeveui=nil, loramotetype=nil, loglevel=nil, firstonlinetime=nil, lastofflinetime=nil, createtime=nil, certstate=nil, enablestate=nil, labels=nil, clientip=nil, firmwareupdatetime=nil, requestid=nil)
|
525
|
+
def initialize(devicename=nil, online=nil, logintime=nil, version=nil, lastupdatetime=nil, devicecert=nil, devicepsk=nil, tags=nil, devicetype=nil, imei=nil, isp=nil, connip=nil, nbiotdeviceid=nil, loradeveui=nil, loramotetype=nil, loglevel=nil, firstonlinetime=nil, lastofflinetime=nil, createtime=nil, certstate=nil, enablestate=nil, labels=nil, clientip=nil, firmwareupdatetime=nil, createuserid=nil, requestid=nil)
|
447
526
|
@DeviceName = devicename
|
448
527
|
@Online = online
|
449
528
|
@LoginTime = logintime
|
@@ -468,6 +547,7 @@ module TencentCloud
|
|
468
547
|
@Labels = labels
|
469
548
|
@ClientIP = clientip
|
470
549
|
@FirmwareUpdateTime = firmwareupdatetime
|
550
|
+
@CreateUserId = createuserid
|
471
551
|
@RequestId = requestid
|
472
552
|
end
|
473
553
|
|
@@ -510,6 +590,7 @@ module TencentCloud
|
|
510
590
|
end
|
511
591
|
@ClientIP = params['ClientIP']
|
512
592
|
@FirmwareUpdateTime = params['FirmwareUpdateTime']
|
593
|
+
@CreateUserId = params['CreateUserId']
|
513
594
|
@RequestId = params['RequestId']
|
514
595
|
end
|
515
596
|
end
|
@@ -986,6 +1067,269 @@ module TencentCloud
|
|
986
1067
|
end
|
987
1068
|
end
|
988
1069
|
|
1070
|
+
# ListLogPayload请求参数结构体
|
1071
|
+
class ListLogPayloadRequest < TencentCloud::Common::AbstractModel
|
1072
|
+
# @param MinTime: 日志开始时间
|
1073
|
+
# @type MinTime: Integer
|
1074
|
+
# @param MaxTime: 日志结束时间
|
1075
|
+
# @type MaxTime: Integer
|
1076
|
+
# @param Keywords: 查询关键字,可以同时支持键值查询和文本查询,例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。键值或文本可以包含多个,以空格隔开。其中可以索引的key比如:RequestID、ProductID、DeviceName等。
|
1077
|
+
# 一个典型的查询示例:ProductID:ABCDE12345 DeviceName:test publish
|
1078
|
+
# @type Keywords: String
|
1079
|
+
# @param Context: 日志检索上下文
|
1080
|
+
# @type Context: String
|
1081
|
+
# @param MaxNum: 日志最大条数
|
1082
|
+
# @type MaxNum: Integer
|
1083
|
+
|
1084
|
+
attr_accessor :MinTime, :MaxTime, :Keywords, :Context, :MaxNum
|
1085
|
+
|
1086
|
+
def initialize(mintime=nil, maxtime=nil, keywords=nil, context=nil, maxnum=nil)
|
1087
|
+
@MinTime = mintime
|
1088
|
+
@MaxTime = maxtime
|
1089
|
+
@Keywords = keywords
|
1090
|
+
@Context = context
|
1091
|
+
@MaxNum = maxnum
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
def deserialize(params)
|
1095
|
+
@MinTime = params['MinTime']
|
1096
|
+
@MaxTime = params['MaxTime']
|
1097
|
+
@Keywords = params['Keywords']
|
1098
|
+
@Context = params['Context']
|
1099
|
+
@MaxNum = params['MaxNum']
|
1100
|
+
end
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# ListLogPayload返回参数结构体
|
1104
|
+
class ListLogPayloadResponse < TencentCloud::Common::AbstractModel
|
1105
|
+
# @param Context: 日志上下文
|
1106
|
+
# @type Context: String
|
1107
|
+
# @param Listover: 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
1108
|
+
# @type Listover: Boolean
|
1109
|
+
# @param Results: 日志列表
|
1110
|
+
# @type Results: Array
|
1111
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1112
|
+
# @type RequestId: String
|
1113
|
+
|
1114
|
+
attr_accessor :Context, :Listover, :Results, :RequestId
|
1115
|
+
|
1116
|
+
def initialize(context=nil, listover=nil, results=nil, requestid=nil)
|
1117
|
+
@Context = context
|
1118
|
+
@Listover = listover
|
1119
|
+
@Results = results
|
1120
|
+
@RequestId = requestid
|
1121
|
+
end
|
1122
|
+
|
1123
|
+
def deserialize(params)
|
1124
|
+
@Context = params['Context']
|
1125
|
+
@Listover = params['Listover']
|
1126
|
+
unless params['Results'].nil?
|
1127
|
+
@Results = []
|
1128
|
+
params['Results'].each do |i|
|
1129
|
+
payloadlogitem_tmp = PayloadLogItem.new
|
1130
|
+
payloadlogitem_tmp.deserialize(i)
|
1131
|
+
@Results << payloadlogitem_tmp
|
1132
|
+
end
|
1133
|
+
end
|
1134
|
+
@RequestId = params['RequestId']
|
1135
|
+
end
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
# ListLog请求参数结构体
|
1139
|
+
class ListLogRequest < TencentCloud::Common::AbstractModel
|
1140
|
+
# @param MinTime: 日志开始时间
|
1141
|
+
# @type MinTime: Integer
|
1142
|
+
# @param MaxTime: 日志结束时间
|
1143
|
+
# @type MaxTime: Integer
|
1144
|
+
# @param Keywords: 查询关键字,可以同时支持键值查询和文本查询,例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。键值或文本可以包含多个,以空格隔开。其中可以索引的key包括:requestid、productid、devicename、scene、content。
|
1145
|
+
# 一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW content:Device%20connect publish
|
1146
|
+
# @type Keywords: String
|
1147
|
+
# @param Context: 日志检索上下文
|
1148
|
+
# @type Context: String
|
1149
|
+
# @param MaxNum: 查询条数
|
1150
|
+
# @type MaxNum: Integer
|
1151
|
+
|
1152
|
+
attr_accessor :MinTime, :MaxTime, :Keywords, :Context, :MaxNum
|
1153
|
+
|
1154
|
+
def initialize(mintime=nil, maxtime=nil, keywords=nil, context=nil, maxnum=nil)
|
1155
|
+
@MinTime = mintime
|
1156
|
+
@MaxTime = maxtime
|
1157
|
+
@Keywords = keywords
|
1158
|
+
@Context = context
|
1159
|
+
@MaxNum = maxnum
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
def deserialize(params)
|
1163
|
+
@MinTime = params['MinTime']
|
1164
|
+
@MaxTime = params['MaxTime']
|
1165
|
+
@Keywords = params['Keywords']
|
1166
|
+
@Context = params['Context']
|
1167
|
+
@MaxNum = params['MaxNum']
|
1168
|
+
end
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
# ListLog返回参数结构体
|
1172
|
+
class ListLogResponse < TencentCloud::Common::AbstractModel
|
1173
|
+
# @param Context: 日志上下文
|
1174
|
+
# @type Context: String
|
1175
|
+
# @param Listover: 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
1176
|
+
# @type Listover: Boolean
|
1177
|
+
# @param Results: 日志列表
|
1178
|
+
# @type Results: Array
|
1179
|
+
# @param TotalCount: 日志总条数
|
1180
|
+
# @type TotalCount: Integer
|
1181
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1182
|
+
# @type RequestId: String
|
1183
|
+
|
1184
|
+
attr_accessor :Context, :Listover, :Results, :TotalCount, :RequestId
|
1185
|
+
|
1186
|
+
def initialize(context=nil, listover=nil, results=nil, totalcount=nil, requestid=nil)
|
1187
|
+
@Context = context
|
1188
|
+
@Listover = listover
|
1189
|
+
@Results = results
|
1190
|
+
@TotalCount = totalcount
|
1191
|
+
@RequestId = requestid
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
def deserialize(params)
|
1195
|
+
@Context = params['Context']
|
1196
|
+
@Listover = params['Listover']
|
1197
|
+
unless params['Results'].nil?
|
1198
|
+
@Results = []
|
1199
|
+
params['Results'].each do |i|
|
1200
|
+
clslogitem_tmp = CLSLogItem.new
|
1201
|
+
clslogitem_tmp.deserialize(i)
|
1202
|
+
@Results << clslogitem_tmp
|
1203
|
+
end
|
1204
|
+
end
|
1205
|
+
@TotalCount = params['TotalCount']
|
1206
|
+
@RequestId = params['RequestId']
|
1207
|
+
end
|
1208
|
+
end
|
1209
|
+
|
1210
|
+
# ListSDKLog请求参数结构体
|
1211
|
+
class ListSDKLogRequest < TencentCloud::Common::AbstractModel
|
1212
|
+
# @param MinTime: 日志开始时间
|
1213
|
+
# @type MinTime: Integer
|
1214
|
+
# @param MaxTime: 日志结束时间
|
1215
|
+
# @type MaxTime: Integer
|
1216
|
+
# @param Keywords: 查询关键字,可以同时支持键值查询和文本查询,
|
1217
|
+
# 例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。
|
1218
|
+
# 键值或文本可以包含多个,以空格隔开。
|
1219
|
+
# 其中可以索引的key包括:productid、devicename、loglevel
|
1220
|
+
# 一个典型的查询示例:productid:7JK1G72JNE devicename:name publish loglevel:WARN一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW publish
|
1221
|
+
# @type Keywords: String
|
1222
|
+
# @param Context: 日志检索上下文
|
1223
|
+
# @type Context: String
|
1224
|
+
# @param MaxNum: 查询条数
|
1225
|
+
# @type MaxNum: Integer
|
1226
|
+
|
1227
|
+
attr_accessor :MinTime, :MaxTime, :Keywords, :Context, :MaxNum
|
1228
|
+
|
1229
|
+
def initialize(mintime=nil, maxtime=nil, keywords=nil, context=nil, maxnum=nil)
|
1230
|
+
@MinTime = mintime
|
1231
|
+
@MaxTime = maxtime
|
1232
|
+
@Keywords = keywords
|
1233
|
+
@Context = context
|
1234
|
+
@MaxNum = maxnum
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
def deserialize(params)
|
1238
|
+
@MinTime = params['MinTime']
|
1239
|
+
@MaxTime = params['MaxTime']
|
1240
|
+
@Keywords = params['Keywords']
|
1241
|
+
@Context = params['Context']
|
1242
|
+
@MaxNum = params['MaxNum']
|
1243
|
+
end
|
1244
|
+
end
|
1245
|
+
|
1246
|
+
# ListSDKLog返回参数结构体
|
1247
|
+
class ListSDKLogResponse < TencentCloud::Common::AbstractModel
|
1248
|
+
# @param Context: 日志检索上下文
|
1249
|
+
# @type Context: String
|
1250
|
+
# @param Listover: 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
1251
|
+
# @type Listover: Boolean
|
1252
|
+
# @param Results: 日志列表
|
1253
|
+
# @type Results: Array
|
1254
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1255
|
+
# @type RequestId: String
|
1256
|
+
|
1257
|
+
attr_accessor :Context, :Listover, :Results, :RequestId
|
1258
|
+
|
1259
|
+
def initialize(context=nil, listover=nil, results=nil, requestid=nil)
|
1260
|
+
@Context = context
|
1261
|
+
@Listover = listover
|
1262
|
+
@Results = results
|
1263
|
+
@RequestId = requestid
|
1264
|
+
end
|
1265
|
+
|
1266
|
+
def deserialize(params)
|
1267
|
+
@Context = params['Context']
|
1268
|
+
@Listover = params['Listover']
|
1269
|
+
unless params['Results'].nil?
|
1270
|
+
@Results = []
|
1271
|
+
params['Results'].each do |i|
|
1272
|
+
sdklogitem_tmp = SDKLogItem.new
|
1273
|
+
sdklogitem_tmp.deserialize(i)
|
1274
|
+
@Results << sdklogitem_tmp
|
1275
|
+
end
|
1276
|
+
end
|
1277
|
+
@RequestId = params['RequestId']
|
1278
|
+
end
|
1279
|
+
end
|
1280
|
+
|
1281
|
+
# 内容日志项
|
1282
|
+
class PayloadLogItem < TencentCloud::Common::AbstractModel
|
1283
|
+
# @param Uin: 账号id
|
1284
|
+
# @type Uin: String
|
1285
|
+
# @param ProductId: 产品id
|
1286
|
+
# @type ProductId: String
|
1287
|
+
# @param DeviceName: 设备名称
|
1288
|
+
# @type DeviceName: String
|
1289
|
+
# @param SrcType: 来源类型
|
1290
|
+
# @type SrcType: String
|
1291
|
+
# @param SrcName: 来源名称
|
1292
|
+
# @type SrcName: String
|
1293
|
+
# @param Topic: 消息topic
|
1294
|
+
# @type Topic: String
|
1295
|
+
# @param PayloadFormatType: 内容格式类型
|
1296
|
+
# @type PayloadFormatType: String
|
1297
|
+
# @param Payload: 内容信息
|
1298
|
+
# @type Payload: String
|
1299
|
+
# @param RequestId: 请求ID
|
1300
|
+
# @type RequestId: String
|
1301
|
+
# @param DateTime: 日期时间
|
1302
|
+
# @type DateTime: String
|
1303
|
+
|
1304
|
+
attr_accessor :Uin, :ProductId, :DeviceName, :SrcType, :SrcName, :Topic, :PayloadFormatType, :Payload, :RequestId, :DateTime
|
1305
|
+
|
1306
|
+
def initialize(uin=nil, productid=nil, devicename=nil, srctype=nil, srcname=nil, topic=nil, payloadformattype=nil, payload=nil, requestid=nil, datetime=nil)
|
1307
|
+
@Uin = uin
|
1308
|
+
@ProductId = productid
|
1309
|
+
@DeviceName = devicename
|
1310
|
+
@SrcType = srctype
|
1311
|
+
@SrcName = srcname
|
1312
|
+
@Topic = topic
|
1313
|
+
@PayloadFormatType = payloadformattype
|
1314
|
+
@Payload = payload
|
1315
|
+
@RequestId = requestid
|
1316
|
+
@DateTime = datetime
|
1317
|
+
end
|
1318
|
+
|
1319
|
+
def deserialize(params)
|
1320
|
+
@Uin = params['Uin']
|
1321
|
+
@ProductId = params['ProductId']
|
1322
|
+
@DeviceName = params['DeviceName']
|
1323
|
+
@SrcType = params['SrcType']
|
1324
|
+
@SrcName = params['SrcName']
|
1325
|
+
@Topic = params['Topic']
|
1326
|
+
@PayloadFormatType = params['PayloadFormatType']
|
1327
|
+
@Payload = params['Payload']
|
1328
|
+
@RequestId = params['RequestId']
|
1329
|
+
@DateTime = params['DateTime']
|
1330
|
+
end
|
1331
|
+
end
|
1332
|
+
|
989
1333
|
# 产品元数据
|
990
1334
|
class ProductMetadata < TencentCloud::Common::AbstractModel
|
991
1335
|
# @param CreationDate: 产品创建时间
|
@@ -1079,6 +1423,122 @@ module TencentCloud
|
|
1079
1423
|
end
|
1080
1424
|
end
|
1081
1425
|
|
1426
|
+
# PublishBroadcastMessage请求参数结构体
|
1427
|
+
class PublishBroadcastMessageRequest < TencentCloud::Common::AbstractModel
|
1428
|
+
# @param ProductId: 产品ID
|
1429
|
+
# @type ProductId: String
|
1430
|
+
# @param Payload: 消息内容
|
1431
|
+
# @type Payload: String
|
1432
|
+
# @param Qos: 消息质量等级
|
1433
|
+
# @type Qos: Integer
|
1434
|
+
# @param PayloadEncoding: Payload内容的编码格式,取值为base64或空。base64表示云端将收到的请求数据进行base64解码后下发到设备,空则直接将原始内容下发到设备
|
1435
|
+
# @type PayloadEncoding: String
|
1436
|
+
|
1437
|
+
attr_accessor :ProductId, :Payload, :Qos, :PayloadEncoding
|
1438
|
+
|
1439
|
+
def initialize(productid=nil, payload=nil, qos=nil, payloadencoding=nil)
|
1440
|
+
@ProductId = productid
|
1441
|
+
@Payload = payload
|
1442
|
+
@Qos = qos
|
1443
|
+
@PayloadEncoding = payloadencoding
|
1444
|
+
end
|
1445
|
+
|
1446
|
+
def deserialize(params)
|
1447
|
+
@ProductId = params['ProductId']
|
1448
|
+
@Payload = params['Payload']
|
1449
|
+
@Qos = params['Qos']
|
1450
|
+
@PayloadEncoding = params['PayloadEncoding']
|
1451
|
+
end
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
# PublishBroadcastMessage返回参数结构体
|
1455
|
+
class PublishBroadcastMessageResponse < TencentCloud::Common::AbstractModel
|
1456
|
+
# @param TaskId: 广播消息任务ID
|
1457
|
+
# @type TaskId: Integer
|
1458
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1459
|
+
# @type RequestId: String
|
1460
|
+
|
1461
|
+
attr_accessor :TaskId, :RequestId
|
1462
|
+
|
1463
|
+
def initialize(taskid=nil, requestid=nil)
|
1464
|
+
@TaskId = taskid
|
1465
|
+
@RequestId = requestid
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
def deserialize(params)
|
1469
|
+
@TaskId = params['TaskId']
|
1470
|
+
@RequestId = params['RequestId']
|
1471
|
+
end
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
# SDK日志项
|
1475
|
+
class SDKLogItem < TencentCloud::Common::AbstractModel
|
1476
|
+
# @param ProductId: 产品ID
|
1477
|
+
# @type ProductId: String
|
1478
|
+
# @param DeviceName: 设备名称
|
1479
|
+
# @type DeviceName: String
|
1480
|
+
# @param Level: 日志等级
|
1481
|
+
# @type Level: String
|
1482
|
+
# @param DateTime: 日志时间
|
1483
|
+
# @type DateTime: String
|
1484
|
+
# @param Content: 日志内容
|
1485
|
+
# @type Content: String
|
1486
|
+
|
1487
|
+
attr_accessor :ProductId, :DeviceName, :Level, :DateTime, :Content
|
1488
|
+
|
1489
|
+
def initialize(productid=nil, devicename=nil, level=nil, datetime=nil, content=nil)
|
1490
|
+
@ProductId = productid
|
1491
|
+
@DeviceName = devicename
|
1492
|
+
@Level = level
|
1493
|
+
@DateTime = datetime
|
1494
|
+
@Content = content
|
1495
|
+
end
|
1496
|
+
|
1497
|
+
def deserialize(params)
|
1498
|
+
@ProductId = params['ProductId']
|
1499
|
+
@DeviceName = params['DeviceName']
|
1500
|
+
@Level = params['Level']
|
1501
|
+
@DateTime = params['DateTime']
|
1502
|
+
@Content = params['Content']
|
1503
|
+
end
|
1504
|
+
end
|
1505
|
+
|
1506
|
+
# SetProductsForbiddenStatus请求参数结构体
|
1507
|
+
class SetProductsForbiddenStatusRequest < TencentCloud::Common::AbstractModel
|
1508
|
+
# @param ProductId: 要设置禁用状态的产品列表
|
1509
|
+
# @type ProductId: Array
|
1510
|
+
# @param Status: 0启用,1禁用
|
1511
|
+
# @type Status: Integer
|
1512
|
+
|
1513
|
+
attr_accessor :ProductId, :Status
|
1514
|
+
|
1515
|
+
def initialize(productid=nil, status=nil)
|
1516
|
+
@ProductId = productid
|
1517
|
+
@Status = status
|
1518
|
+
end
|
1519
|
+
|
1520
|
+
def deserialize(params)
|
1521
|
+
@ProductId = params['ProductId']
|
1522
|
+
@Status = params['Status']
|
1523
|
+
end
|
1524
|
+
end
|
1525
|
+
|
1526
|
+
# SetProductsForbiddenStatus返回参数结构体
|
1527
|
+
class SetProductsForbiddenStatusResponse < TencentCloud::Common::AbstractModel
|
1528
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1529
|
+
# @type RequestId: String
|
1530
|
+
|
1531
|
+
attr_accessor :RequestId
|
1532
|
+
|
1533
|
+
def initialize(requestid=nil)
|
1534
|
+
@RequestId = requestid
|
1535
|
+
end
|
1536
|
+
|
1537
|
+
def deserialize(params)
|
1538
|
+
@RequestId = params['RequestId']
|
1539
|
+
end
|
1540
|
+
end
|
1541
|
+
|
1082
1542
|
# UpdateDeviceLogLevel请求参数结构体
|
1083
1543
|
class UpdateDeviceLogLevelRequest < TencentCloud::Common::AbstractModel
|
1084
1544
|
# @param ProductId: 产品ID
|
@@ -1119,6 +1579,46 @@ module TencentCloud
|
|
1119
1579
|
end
|
1120
1580
|
end
|
1121
1581
|
|
1582
|
+
# UpdateDevicePSK请求参数结构体
|
1583
|
+
class UpdateDevicePSKRequest < TencentCloud::Common::AbstractModel
|
1584
|
+
# @param ProductId: 产品名
|
1585
|
+
# @type ProductId: String
|
1586
|
+
# @param DeviceName: 设备名
|
1587
|
+
# @type DeviceName: String
|
1588
|
+
# @param Psk: 设备的psk
|
1589
|
+
# @type Psk: String
|
1590
|
+
|
1591
|
+
attr_accessor :ProductId, :DeviceName, :Psk
|
1592
|
+
|
1593
|
+
def initialize(productid=nil, devicename=nil, psk=nil)
|
1594
|
+
@ProductId = productid
|
1595
|
+
@DeviceName = devicename
|
1596
|
+
@Psk = psk
|
1597
|
+
end
|
1598
|
+
|
1599
|
+
def deserialize(params)
|
1600
|
+
@ProductId = params['ProductId']
|
1601
|
+
@DeviceName = params['DeviceName']
|
1602
|
+
@Psk = params['Psk']
|
1603
|
+
end
|
1604
|
+
end
|
1605
|
+
|
1606
|
+
# UpdateDevicePSK返回参数结构体
|
1607
|
+
class UpdateDevicePSKResponse < TencentCloud::Common::AbstractModel
|
1608
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1609
|
+
# @type RequestId: String
|
1610
|
+
|
1611
|
+
attr_accessor :RequestId
|
1612
|
+
|
1613
|
+
def initialize(requestid=nil)
|
1614
|
+
@RequestId = requestid
|
1615
|
+
end
|
1616
|
+
|
1617
|
+
def deserialize(params)
|
1618
|
+
@RequestId = params['RequestId']
|
1619
|
+
end
|
1620
|
+
end
|
1621
|
+
|
1122
1622
|
# UpdateDevicesEnableState请求参数结构体
|
1123
1623
|
class UpdateDevicesEnableStateRequest < TencentCloud::Common::AbstractModel
|
1124
1624
|
# @param ProductId: 设备所属产品id
|
@@ -1199,6 +1699,94 @@ module TencentCloud
|
|
1199
1699
|
end
|
1200
1700
|
end
|
1201
1701
|
|
1702
|
+
# UpdateProductDynamicRegister请求参数结构体
|
1703
|
+
class UpdateProductDynamicRegisterRequest < TencentCloud::Common::AbstractModel
|
1704
|
+
# @param ProductId: 产品Id
|
1705
|
+
# @type ProductId: String
|
1706
|
+
# @param RegisterType: 动态注册类型,0-关闭 1-预创建设备 2-自动创建设备
|
1707
|
+
# @type RegisterType: Integer
|
1708
|
+
# @param RegisterLimit: 动态注册设备上限
|
1709
|
+
# @type RegisterLimit: Integer
|
1710
|
+
|
1711
|
+
attr_accessor :ProductId, :RegisterType, :RegisterLimit
|
1712
|
+
|
1713
|
+
def initialize(productid=nil, registertype=nil, registerlimit=nil)
|
1714
|
+
@ProductId = productid
|
1715
|
+
@RegisterType = registertype
|
1716
|
+
@RegisterLimit = registerlimit
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
def deserialize(params)
|
1720
|
+
@ProductId = params['ProductId']
|
1721
|
+
@RegisterType = params['RegisterType']
|
1722
|
+
@RegisterLimit = params['RegisterLimit']
|
1723
|
+
end
|
1724
|
+
end
|
1725
|
+
|
1726
|
+
# UpdateProductDynamicRegister返回参数结构体
|
1727
|
+
class UpdateProductDynamicRegisterResponse < TencentCloud::Common::AbstractModel
|
1728
|
+
# @param RegisterType: 动态注册类型,0-关闭 1-预创建设备 2-自动创建设备
|
1729
|
+
# @type RegisterType: Integer
|
1730
|
+
# @param ProductSecret: 动态注册产品密钥
|
1731
|
+
# @type ProductSecret: String
|
1732
|
+
# @param RegisterLimit: 动态注册设备上限
|
1733
|
+
# @type RegisterLimit: Integer
|
1734
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1735
|
+
# @type RequestId: String
|
1736
|
+
|
1737
|
+
attr_accessor :RegisterType, :ProductSecret, :RegisterLimit, :RequestId
|
1738
|
+
|
1739
|
+
def initialize(registertype=nil, productsecret=nil, registerlimit=nil, requestid=nil)
|
1740
|
+
@RegisterType = registertype
|
1741
|
+
@ProductSecret = productsecret
|
1742
|
+
@RegisterLimit = registerlimit
|
1743
|
+
@RequestId = requestid
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
def deserialize(params)
|
1747
|
+
@RegisterType = params['RegisterType']
|
1748
|
+
@ProductSecret = params['ProductSecret']
|
1749
|
+
@RegisterLimit = params['RegisterLimit']
|
1750
|
+
@RequestId = params['RequestId']
|
1751
|
+
end
|
1752
|
+
end
|
1753
|
+
|
1754
|
+
# UpdateProductPrivateCA请求参数结构体
|
1755
|
+
class UpdateProductPrivateCARequest < TencentCloud::Common::AbstractModel
|
1756
|
+
# @param ProductId: 产品ID
|
1757
|
+
# @type ProductId: String
|
1758
|
+
# @param CertName: 私有CA证书名称
|
1759
|
+
# @type CertName: String
|
1760
|
+
|
1761
|
+
attr_accessor :ProductId, :CertName
|
1762
|
+
|
1763
|
+
def initialize(productid=nil, certname=nil)
|
1764
|
+
@ProductId = productid
|
1765
|
+
@CertName = certname
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
def deserialize(params)
|
1769
|
+
@ProductId = params['ProductId']
|
1770
|
+
@CertName = params['CertName']
|
1771
|
+
end
|
1772
|
+
end
|
1773
|
+
|
1774
|
+
# UpdateProductPrivateCA返回参数结构体
|
1775
|
+
class UpdateProductPrivateCAResponse < TencentCloud::Common::AbstractModel
|
1776
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1777
|
+
# @type RequestId: String
|
1778
|
+
|
1779
|
+
attr_accessor :RequestId
|
1780
|
+
|
1781
|
+
def initialize(requestid=nil)
|
1782
|
+
@RequestId = requestid
|
1783
|
+
end
|
1784
|
+
|
1785
|
+
def deserialize(params)
|
1786
|
+
@RequestId = params['RequestId']
|
1787
|
+
end
|
1788
|
+
end
|
1789
|
+
|
1202
1790
|
end
|
1203
1791
|
end
|
1204
1792
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-iotcloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.290
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|