tencentcloud-sdk-iotcloud 1.0.261 → 1.0.262
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 +84 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8db1e37c5b7a30037642185fb6ca1449136f4fb
|
4
|
+
data.tar.gz: e1673a5e51772b145a98246b649b7d236d44c4cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f31e9b10583ab9ef51a8d8413aab789dedbbd1de356daea0da25a5215d9afe704effa68e06b841a6451e491d99bbb4c3c4e41716717ccce5dc70e9e5a313ed49
|
7
|
+
data.tar.gz: 01c2a0b20342564caff6a7984a4515ba35448859150d7b8ef5da1be204f6794cf930ab9edbf76b27a4d02767e060931695969e7e7a90245aa055e4bf57715f04
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.262
|
data/lib/v20180614/client.rb
CHANGED
@@ -365,6 +365,30 @@ module TencentCloud
|
|
365
365
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
366
|
end
|
367
367
|
|
368
|
+
# 本接口(DeleteDeviceResource)用于删除设备资源
|
369
|
+
|
370
|
+
# @param request: Request instance for DeleteDeviceResource.
|
371
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20180614::DeleteDeviceResourceRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20180614::DeleteDeviceResourceResponse`
|
373
|
+
def DeleteDeviceResource(request)
|
374
|
+
body = send_request('DeleteDeviceResource', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = DeleteDeviceResourceResponse.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
|
+
|
368
392
|
# 删除lora类型的设备
|
369
393
|
|
370
394
|
# @param request: Request instance for DeleteLoraDevice.
|
@@ -1061,6 +1085,30 @@ module TencentCloud
|
|
1061
1085
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1062
1086
|
end
|
1063
1087
|
|
1088
|
+
# 本接口(DownloadDeviceResource)用于下载设备资源
|
1089
|
+
|
1090
|
+
# @param request: Request instance for DownloadDeviceResource.
|
1091
|
+
# @type request: :class:`Tencentcloud::iotcloud::V20180614::DownloadDeviceResourceRequest`
|
1092
|
+
# @rtype: :class:`Tencentcloud::iotcloud::V20180614::DownloadDeviceResourceResponse`
|
1093
|
+
def DownloadDeviceResource(request)
|
1094
|
+
body = send_request('DownloadDeviceResource', request.serialize)
|
1095
|
+
response = JSON.parse(body)
|
1096
|
+
if response['Response'].key?('Error') == false
|
1097
|
+
model = DownloadDeviceResourceResponse.new
|
1098
|
+
model.deserialize(response['Response'])
|
1099
|
+
model
|
1100
|
+
else
|
1101
|
+
code = response['Response']['Error']['Code']
|
1102
|
+
message = response['Response']['Error']['Message']
|
1103
|
+
reqid = response['Response']['RequestId']
|
1104
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1105
|
+
end
|
1106
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1107
|
+
raise e
|
1108
|
+
rescue StandardError => e
|
1109
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1110
|
+
end
|
1111
|
+
|
1064
1112
|
# 编辑固件信息
|
1065
1113
|
|
1066
1114
|
# @param request: Request instance for EditFirmware.
|
data/lib/v20180614/models.rb
CHANGED
@@ -874,6 +874,46 @@ module TencentCloud
|
|
874
874
|
end
|
875
875
|
end
|
876
876
|
|
877
|
+
# DeleteDeviceResource请求参数结构体
|
878
|
+
class DeleteDeviceResourceRequest < TencentCloud::Common::AbstractModel
|
879
|
+
# @param ProductID: 产品ID
|
880
|
+
# @type ProductID: String
|
881
|
+
# @param Name: 资源名称
|
882
|
+
# @type Name: String
|
883
|
+
# @param DeviceName: 设备名称
|
884
|
+
# @type DeviceName: String
|
885
|
+
|
886
|
+
attr_accessor :ProductID, :Name, :DeviceName
|
887
|
+
|
888
|
+
def initialize(productid=nil, name=nil, devicename=nil)
|
889
|
+
@ProductID = productid
|
890
|
+
@Name = name
|
891
|
+
@DeviceName = devicename
|
892
|
+
end
|
893
|
+
|
894
|
+
def deserialize(params)
|
895
|
+
@ProductID = params['ProductID']
|
896
|
+
@Name = params['Name']
|
897
|
+
@DeviceName = params['DeviceName']
|
898
|
+
end
|
899
|
+
end
|
900
|
+
|
901
|
+
# DeleteDeviceResource返回参数结构体
|
902
|
+
class DeleteDeviceResourceResponse < TencentCloud::Common::AbstractModel
|
903
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
904
|
+
# @type RequestId: String
|
905
|
+
|
906
|
+
attr_accessor :RequestId
|
907
|
+
|
908
|
+
def initialize(requestid=nil)
|
909
|
+
@RequestId = requestid
|
910
|
+
end
|
911
|
+
|
912
|
+
def deserialize(params)
|
913
|
+
@RequestId = params['RequestId']
|
914
|
+
end
|
915
|
+
end
|
916
|
+
|
877
917
|
# DeleteDevice返回参数结构体
|
878
918
|
class DeleteDeviceResponse < TencentCloud::Common::AbstractModel
|
879
919
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
@@ -2876,6 +2916,50 @@ module TencentCloud
|
|
2876
2916
|
end
|
2877
2917
|
end
|
2878
2918
|
|
2919
|
+
# DownloadDeviceResource请求参数结构体
|
2920
|
+
class DownloadDeviceResourceRequest < TencentCloud::Common::AbstractModel
|
2921
|
+
# @param ProductID: 产品ID
|
2922
|
+
# @type ProductID: String
|
2923
|
+
# @param Name: 资源名称
|
2924
|
+
# @type Name: String
|
2925
|
+
# @param DeviceName: 设备名称
|
2926
|
+
# @type DeviceName: String
|
2927
|
+
|
2928
|
+
attr_accessor :ProductID, :Name, :DeviceName
|
2929
|
+
|
2930
|
+
def initialize(productid=nil, name=nil, devicename=nil)
|
2931
|
+
@ProductID = productid
|
2932
|
+
@Name = name
|
2933
|
+
@DeviceName = devicename
|
2934
|
+
end
|
2935
|
+
|
2936
|
+
def deserialize(params)
|
2937
|
+
@ProductID = params['ProductID']
|
2938
|
+
@Name = params['Name']
|
2939
|
+
@DeviceName = params['DeviceName']
|
2940
|
+
end
|
2941
|
+
end
|
2942
|
+
|
2943
|
+
# DownloadDeviceResource返回参数结构体
|
2944
|
+
class DownloadDeviceResourceResponse < TencentCloud::Common::AbstractModel
|
2945
|
+
# @param Url: 设备资源的cos链接
|
2946
|
+
# @type Url: String
|
2947
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2948
|
+
# @type RequestId: String
|
2949
|
+
|
2950
|
+
attr_accessor :Url, :RequestId
|
2951
|
+
|
2952
|
+
def initialize(url=nil, requestid=nil)
|
2953
|
+
@Url = url
|
2954
|
+
@RequestId = requestid
|
2955
|
+
end
|
2956
|
+
|
2957
|
+
def deserialize(params)
|
2958
|
+
@Url = params['Url']
|
2959
|
+
@RequestId = params['RequestId']
|
2960
|
+
end
|
2961
|
+
end
|
2962
|
+
|
2879
2963
|
# EditFirmware请求参数结构体
|
2880
2964
|
class EditFirmwareRequest < TencentCloud::Common::AbstractModel
|
2881
2965
|
# @param ProductID: 产品ID。
|
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.262
|
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-02-
|
11
|
+
date: 2022-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|