tencentcloud-sdk-iotcloud 1.0.315 → 1.0.316

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 467738abdb93c4143bc8298e92f1b241409b7d11
4
- data.tar.gz: 3363cd35ff484a0db4898e8aa1ce112eeca416b9
3
+ metadata.gz: 8f5e348ed5053b86ef55425e4c639a60f905f05d
4
+ data.tar.gz: 76d853c7b1edc181f01dc89f892d24b1f8547648
5
5
  SHA512:
6
- metadata.gz: 46bc2215e66be2e422b0e2f70d0d32f3c526da62205e033dca156d69a8c5fae9ba0f60edb8aaf4fc3a9da099eaf46eac93e5f2a5cb5a9b8aaa83c5a7808fcb3f
7
- data.tar.gz: 213e791d8d234b3e71f1f8280bd764375d15b53a0b3551e5bd301821501cbbc005f8d2576a6f1dbb131af2c4e3e257a997901f935ca8d769ae6b504f6356a1e4
6
+ metadata.gz: 6759e6b664b468cb869c7427e98948d65d388c4ddcee7dbd066fb923196f4bac0078c05e65e3b09b648dec271b36d257ba73ef3ee6bee9765087a1fc3571b4b4
7
+ data.tar.gz: 4a7ead8611351cb77eefc4426f70ddca078db08b26eb4a1fa79f07c5fa4455babc1528ab108f8fab6a6d45c786eb9916224492592dcefa87d3659fb957f9f58d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.315
1
+ 1.0.316
@@ -1109,6 +1109,30 @@ module TencentCloud
1109
1109
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1110
1110
  end
1111
1111
 
1112
+ # 本接口(GetAllVersion)用于获取所有的版本列表
1113
+
1114
+ # @param request: Request instance for GetAllVersion.
1115
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::GetAllVersionRequest`
1116
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::GetAllVersionResponse`
1117
+ def GetAllVersion(request)
1118
+ body = send_request('GetAllVersion', request.serialize)
1119
+ response = JSON.parse(body)
1120
+ if response['Response'].key?('Error') == false
1121
+ model = GetAllVersionResponse.new
1122
+ model.deserialize(response['Response'])
1123
+ model
1124
+ else
1125
+ code = response['Response']['Error']['Code']
1126
+ message = response['Response']['Error']['Message']
1127
+ reqid = response['Response']['RequestId']
1128
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1129
+ end
1130
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1131
+ raise e
1132
+ rescue StandardError => e
1133
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1134
+ end
1135
+
1112
1136
  # 本接口(GetCOSURL)用于获取固件存储在COS的URL
1113
1137
 
1114
1138
  # @param request: Request instance for GetCOSURL.
@@ -1157,6 +1181,30 @@ module TencentCloud
1157
1181
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1158
1182
  end
1159
1183
 
1184
+ # 本接口(ListFirmwares)用于获取固件列表
1185
+
1186
+ # @param request: Request instance for ListFirmwares.
1187
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::ListFirmwaresRequest`
1188
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::ListFirmwaresResponse`
1189
+ def ListFirmwares(request)
1190
+ body = send_request('ListFirmwares', request.serialize)
1191
+ response = JSON.parse(body)
1192
+ if response['Response'].key?('Error') == false
1193
+ model = ListFirmwaresResponse.new
1194
+ model.deserialize(response['Response'])
1195
+ model
1196
+ else
1197
+ code = response['Response']['Error']['Code']
1198
+ message = response['Response']['Error']['Message']
1199
+ reqid = response['Response']['RequestId']
1200
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1201
+ end
1202
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1203
+ raise e
1204
+ rescue StandardError => e
1205
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1206
+ end
1207
+
1160
1208
  # 本接口(ListLog)用于查看日志信息
1161
1209
 
1162
1210
  # @param request: Request instance for ListLog.
@@ -2882,6 +2882,50 @@ module TencentCloud
2882
2882
  end
2883
2883
  end
2884
2884
 
2885
+ # 设备固件详细信息
2886
+ class FirmwareInfo < TencentCloud::Common::AbstractModel
2887
+ # @param Version: 固件版本
2888
+ # @type Version: String
2889
+ # @param Md5sum: 固件MD5值
2890
+ # @type Md5sum: String
2891
+ # @param CreateTime: 固件创建时间
2892
+ # @type CreateTime: Integer
2893
+ # @param ProductName: 产品名称
2894
+ # 注意:此字段可能返回 null,表示取不到有效值。
2895
+ # @type ProductName: String
2896
+ # @param Name: 固件名称
2897
+ # 注意:此字段可能返回 null,表示取不到有效值。
2898
+ # @type Name: String
2899
+ # @param Description: 固件描述
2900
+ # 注意:此字段可能返回 null,表示取不到有效值。
2901
+ # @type Description: String
2902
+ # @param ProductId: 产品ID
2903
+ # 注意:此字段可能返回 null,表示取不到有效值。
2904
+ # @type ProductId: String
2905
+
2906
+ attr_accessor :Version, :Md5sum, :CreateTime, :ProductName, :Name, :Description, :ProductId
2907
+
2908
+ def initialize(version=nil, md5sum=nil, createtime=nil, productname=nil, name=nil, description=nil, productid=nil)
2909
+ @Version = version
2910
+ @Md5sum = md5sum
2911
+ @CreateTime = createtime
2912
+ @ProductName = productname
2913
+ @Name = name
2914
+ @Description = description
2915
+ @ProductId = productid
2916
+ end
2917
+
2918
+ def deserialize(params)
2919
+ @Version = params['Version']
2920
+ @Md5sum = params['Md5sum']
2921
+ @CreateTime = params['CreateTime']
2922
+ @ProductName = params['ProductName']
2923
+ @Name = params['Name']
2924
+ @Description = params['Description']
2925
+ @ProductId = params['ProductId']
2926
+ end
2927
+ end
2928
+
2885
2929
  # 固件升级任务信息
2886
2930
  class FirmwareTaskInfo < TencentCloud::Common::AbstractModel
2887
2931
  # @param TaskId: 任务ID
@@ -2914,6 +2958,42 @@ module TencentCloud
2914
2958
  end
2915
2959
  end
2916
2960
 
2961
+ # GetAllVersion请求参数结构体
2962
+ class GetAllVersionRequest < TencentCloud::Common::AbstractModel
2963
+ # @param ProductId: 产品ID
2964
+ # @type ProductId: String
2965
+
2966
+ attr_accessor :ProductId
2967
+
2968
+ def initialize(productid=nil)
2969
+ @ProductId = productid
2970
+ end
2971
+
2972
+ def deserialize(params)
2973
+ @ProductId = params['ProductId']
2974
+ end
2975
+ end
2976
+
2977
+ # GetAllVersion返回参数结构体
2978
+ class GetAllVersionResponse < TencentCloud::Common::AbstractModel
2979
+ # @param Version: 版本号列表
2980
+ # @type Version: Array
2981
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2982
+ # @type RequestId: String
2983
+
2984
+ attr_accessor :Version, :RequestId
2985
+
2986
+ def initialize(version=nil, requestid=nil)
2987
+ @Version = version
2988
+ @RequestId = requestid
2989
+ end
2990
+
2991
+ def deserialize(params)
2992
+ @Version = params['Version']
2993
+ @RequestId = params['RequestId']
2994
+ end
2995
+ end
2996
+
2917
2997
  # GetCOSURL请求参数结构体
2918
2998
  class GetCOSURLRequest < TencentCloud::Common::AbstractModel
2919
2999
  # @param ProductId: 产品ID
@@ -2993,6 +3073,72 @@ module TencentCloud
2993
3073
  end
2994
3074
  end
2995
3075
 
3076
+ # ListFirmwares请求参数结构体
3077
+ class ListFirmwaresRequest < TencentCloud::Common::AbstractModel
3078
+ # @param PageNum: 获取的页数
3079
+ # @type PageNum: Integer
3080
+ # @param PageSize: 分页的大小
3081
+ # @type PageSize: Integer
3082
+ # @param ProductId: 产品ID
3083
+ # @type ProductId: String
3084
+ # @param Filters: 搜索过滤条件
3085
+ # @type Filters: Array
3086
+
3087
+ attr_accessor :PageNum, :PageSize, :ProductId, :Filters
3088
+
3089
+ def initialize(pagenum=nil, pagesize=nil, productid=nil, filters=nil)
3090
+ @PageNum = pagenum
3091
+ @PageSize = pagesize
3092
+ @ProductId = productid
3093
+ @Filters = filters
3094
+ end
3095
+
3096
+ def deserialize(params)
3097
+ @PageNum = params['PageNum']
3098
+ @PageSize = params['PageSize']
3099
+ @ProductId = params['ProductId']
3100
+ unless params['Filters'].nil?
3101
+ @Filters = []
3102
+ params['Filters'].each do |i|
3103
+ searchkeyword_tmp = SearchKeyword.new
3104
+ searchkeyword_tmp.deserialize(i)
3105
+ @Filters << searchkeyword_tmp
3106
+ end
3107
+ end
3108
+ end
3109
+ end
3110
+
3111
+ # ListFirmwares返回参数结构体
3112
+ class ListFirmwaresResponse < TencentCloud::Common::AbstractModel
3113
+ # @param TotalCount: 固件总数
3114
+ # @type TotalCount: Integer
3115
+ # @param Firmwares: 固件列表
3116
+ # @type Firmwares: Array
3117
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3118
+ # @type RequestId: String
3119
+
3120
+ attr_accessor :TotalCount, :Firmwares, :RequestId
3121
+
3122
+ def initialize(totalcount=nil, firmwares=nil, requestid=nil)
3123
+ @TotalCount = totalcount
3124
+ @Firmwares = firmwares
3125
+ @RequestId = requestid
3126
+ end
3127
+
3128
+ def deserialize(params)
3129
+ @TotalCount = params['TotalCount']
3130
+ unless params['Firmwares'].nil?
3131
+ @Firmwares = []
3132
+ params['Firmwares'].each do |i|
3133
+ firmwareinfo_tmp = FirmwareInfo.new
3134
+ firmwareinfo_tmp.deserialize(i)
3135
+ @Firmwares << firmwareinfo_tmp
3136
+ end
3137
+ end
3138
+ @RequestId = params['RequestId']
3139
+ end
3140
+ end
3141
+
2996
3142
  # ListLogPayload请求参数结构体
2997
3143
  class ListLogPayloadRequest < TencentCloud::Common::AbstractModel
2998
3144
  # @param MinTime: 日志开始时间,毫秒级时间戳
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-iotcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.315
4
+ version: 1.0.316
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud