tencentcloud-sdk-iotexplorer 3.0.1039 → 3.0.1041

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40e4103b02e2fea022a8cafb12b3362050c39cd9
4
- data.tar.gz: 8f37abf633504bb8141c21e1782c1053ae9b3511
3
+ metadata.gz: 476cf9941deb25ed3a54cf6b25e4c5300532fe5f
4
+ data.tar.gz: 7317282ab3d575b5d1e285fc0700e6c7ba877380
5
5
  SHA512:
6
- metadata.gz: 1447a93054511cc929049e51425479d6ce6d72a96eee3765d94cd9a5b2e514d24a5734a4cf80ed4d5e59d83cdf724fb9c737390e244547e86a79235d24a414ed
7
- data.tar.gz: 2d4edb2318c36b751987cd2995db23d36e492ff1be3857597f82bf85162aecf3f584b8ef99b5b56ab2314d40520d1ed0f4ee73cdb71e5d171c9b8b3a85e66b25
6
+ metadata.gz: 53a3e6c9197812dd7140625f7420545fef0861d266493ecfccf9f28a41e67ba447fed4598b1af791f3dc348d6ee67e76201498d99ce74f5dab94b6c873d9c3c3
7
+ data.tar.gz: 47ba45e6bd8125ea551b20fe3a54f4bf82a10d6835f0a99c7f816aecbf633a0682808198f82d4a08b3d8de117ed57ad1096371c9a8db4a8bbb3b20be79b33113
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1039
1
+ 3.0.1041
@@ -653,6 +653,30 @@ module TencentCloud
653
653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
654
  end
655
655
 
656
+ # 创建 TWeSee 语义理解任务
657
+
658
+ # @param request: Request instance for CreateTWeSeeRecognitionTask.
659
+ # @type request: :class:`Tencentcloud::iotexplorer::V20190423::CreateTWeSeeRecognitionTaskRequest`
660
+ # @rtype: :class:`Tencentcloud::iotexplorer::V20190423::CreateTWeSeeRecognitionTaskResponse`
661
+ def CreateTWeSeeRecognitionTask(request)
662
+ body = send_request('CreateTWeSeeRecognitionTask', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = CreateTWeSeeRecognitionTaskResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
656
680
  # 本接口(CreateTopicPolicy)用于创建一个Topic
657
681
 
658
682
  # @param request: Request instance for CreateTopicPolicy.
@@ -2909,6 +2933,30 @@ module TencentCloud
2909
2933
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2910
2934
  end
2911
2935
 
2936
+ # 同步执行 TWeSee 语义理解任务
2937
+
2938
+ # @param request: Request instance for InvokeTWeSeeRecognitionTask.
2939
+ # @type request: :class:`Tencentcloud::iotexplorer::V20190423::InvokeTWeSeeRecognitionTaskRequest`
2940
+ # @rtype: :class:`Tencentcloud::iotexplorer::V20190423::InvokeTWeSeeRecognitionTaskResponse`
2941
+ def InvokeTWeSeeRecognitionTask(request)
2942
+ body = send_request('InvokeTWeSeeRecognitionTask', request.serialize)
2943
+ response = JSON.parse(body)
2944
+ if response['Response'].key?('Error') == false
2945
+ model = InvokeTWeSeeRecognitionTaskResponse.new
2946
+ model.deserialize(response['Response'])
2947
+ model
2948
+ else
2949
+ code = response['Response']['Error']['Code']
2950
+ message = response['Response']['Error']['Message']
2951
+ reqid = response['Response']['RequestId']
2952
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2953
+ end
2954
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2955
+ raise e
2956
+ rescue StandardError => e
2957
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2958
+ end
2959
+
2912
2960
  # 获取设备的历史事件
2913
2961
 
2914
2962
  # @param request: Request instance for ListEventHistory.
@@ -2114,6 +2114,88 @@ module TencentCloud
2114
2114
  end
2115
2115
  end
2116
2116
 
2117
+ # CreateTWeSeeRecognitionTask请求参数结构体
2118
+ class CreateTWeSeeRecognitionTaskRequest < TencentCloud::Common::AbstractModel
2119
+ # @param ProductId: 产品ID
2120
+ # @type ProductId: String
2121
+ # @param DeviceName: 设备名称
2122
+ # @type DeviceName: String
2123
+ # @param InputURL: 输入视频 / 图片的 URL
2124
+ # @type InputURL: String
2125
+ # @param CustomId: 自定义事件 ID
2126
+ # @type CustomId: String
2127
+ # @param EnableSearch: 是否保存该事件使其可被搜索
2128
+ # @type EnableSearch: Boolean
2129
+ # @param StartTimeMs: 事件起始时间事件起始时间(毫秒级 UNIX 时间戳,若不传则默认为接口调用时间)
2130
+ # @type StartTimeMs: Integer
2131
+ # @param EndTimeMs: 事件结束时间事件起始时间(毫秒级 UNIX 时间戳,若不传则默认为接口调用时间)
2132
+ # @type EndTimeMs: Integer
2133
+ # @param Config: 算法配置
2134
+ # @type Config: String
2135
+ # @param IsCustomDevice: 是否自定义设备,为 true 时不检查设备存在性,默认为 false
2136
+ # @type IsCustomDevice: Boolean
2137
+ # @param InputType: 输入类型。可选值:
2138
+
2139
+ # - `video`:视频(默认值)
2140
+ # - `image`:图片
2141
+ # @type InputType: String
2142
+ # @param SummaryQOS: 摘要服务质量。可选值:
2143
+
2144
+ # - `minutely`:分钟级(默认值)
2145
+ # - `immediate`:立即
2146
+ # @type SummaryQOS: String
2147
+
2148
+ attr_accessor :ProductId, :DeviceName, :InputURL, :CustomId, :EnableSearch, :StartTimeMs, :EndTimeMs, :Config, :IsCustomDevice, :InputType, :SummaryQOS
2149
+
2150
+ def initialize(productid=nil, devicename=nil, inputurl=nil, customid=nil, enablesearch=nil, starttimems=nil, endtimems=nil, config=nil, iscustomdevice=nil, inputtype=nil, summaryqos=nil)
2151
+ @ProductId = productid
2152
+ @DeviceName = devicename
2153
+ @InputURL = inputurl
2154
+ @CustomId = customid
2155
+ @EnableSearch = enablesearch
2156
+ @StartTimeMs = starttimems
2157
+ @EndTimeMs = endtimems
2158
+ @Config = config
2159
+ @IsCustomDevice = iscustomdevice
2160
+ @InputType = inputtype
2161
+ @SummaryQOS = summaryqos
2162
+ end
2163
+
2164
+ def deserialize(params)
2165
+ @ProductId = params['ProductId']
2166
+ @DeviceName = params['DeviceName']
2167
+ @InputURL = params['InputURL']
2168
+ @CustomId = params['CustomId']
2169
+ @EnableSearch = params['EnableSearch']
2170
+ @StartTimeMs = params['StartTimeMs']
2171
+ @EndTimeMs = params['EndTimeMs']
2172
+ @Config = params['Config']
2173
+ @IsCustomDevice = params['IsCustomDevice']
2174
+ @InputType = params['InputType']
2175
+ @SummaryQOS = params['SummaryQOS']
2176
+ end
2177
+ end
2178
+
2179
+ # CreateTWeSeeRecognitionTask返回参数结构体
2180
+ class CreateTWeSeeRecognitionTaskResponse < TencentCloud::Common::AbstractModel
2181
+ # @param TaskId: 任务 ID
2182
+ # @type TaskId: String
2183
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2184
+ # @type RequestId: String
2185
+
2186
+ attr_accessor :TaskId, :RequestId
2187
+
2188
+ def initialize(taskid=nil, requestid=nil)
2189
+ @TaskId = taskid
2190
+ @RequestId = requestid
2191
+ end
2192
+
2193
+ def deserialize(params)
2194
+ @TaskId = params['TaskId']
2195
+ @RequestId = params['RequestId']
2196
+ end
2197
+ end
2198
+
2117
2199
  # CreateTopicPolicy请求参数结构体
2118
2200
  class CreateTopicPolicyRequest < TencentCloud::Common::AbstractModel
2119
2201
  # @param ProductId: 产品ID
@@ -7804,6 +7886,99 @@ module TencentCloud
7804
7886
  end
7805
7887
  end
7806
7888
 
7889
+ # InvokeTWeSeeRecognitionTask请求参数结构体
7890
+ class InvokeTWeSeeRecognitionTaskRequest < TencentCloud::Common::AbstractModel
7891
+ # @param ProductId: 产品ID
7892
+ # @type ProductId: String
7893
+ # @param DeviceName: 设备名称
7894
+ # @type DeviceName: String
7895
+ # @param InputURL: 输入视频 / 图片的 URL
7896
+ # @type InputURL: String
7897
+ # @param CustomId: 自定义事件 ID
7898
+ # @type CustomId: String
7899
+ # @param EnableSearch: 是否保存该事件使其可被搜索
7900
+ # @type EnableSearch: Boolean
7901
+ # @param StartTimeMs: 事件起始时间事件起始时间(毫秒级 UNIX 时间戳,若不传则默认为接口调用时间)
7902
+ # @type StartTimeMs: Integer
7903
+ # @param EndTimeMs: 事件结束时间事件起始时间(毫秒级 UNIX 时间戳,若不传则默认为接口调用时间)
7904
+ # @type EndTimeMs: Integer
7905
+ # @param Config: 算法配置
7906
+ # @type Config: String
7907
+ # @param IsCustomDevice: 是否自定义设备,为 true 时不检查设备存在性,默认为 false
7908
+ # @type IsCustomDevice: Boolean
7909
+ # @param InputType: 输入类型。可选值:
7910
+
7911
+ # - `video`:视频(默认值)
7912
+ # - `image`:图片
7913
+ # @type InputType: String
7914
+ # @param SummaryQOS: 摘要服务质量。可选值:
7915
+
7916
+ # - `minutely`:分钟级(默认值)
7917
+ # - `immediate`:立即
7918
+ # @type SummaryQOS: String
7919
+
7920
+ attr_accessor :ProductId, :DeviceName, :InputURL, :CustomId, :EnableSearch, :StartTimeMs, :EndTimeMs, :Config, :IsCustomDevice, :InputType, :SummaryQOS
7921
+
7922
+ def initialize(productid=nil, devicename=nil, inputurl=nil, customid=nil, enablesearch=nil, starttimems=nil, endtimems=nil, config=nil, iscustomdevice=nil, inputtype=nil, summaryqos=nil)
7923
+ @ProductId = productid
7924
+ @DeviceName = devicename
7925
+ @InputURL = inputurl
7926
+ @CustomId = customid
7927
+ @EnableSearch = enablesearch
7928
+ @StartTimeMs = starttimems
7929
+ @EndTimeMs = endtimems
7930
+ @Config = config
7931
+ @IsCustomDevice = iscustomdevice
7932
+ @InputType = inputtype
7933
+ @SummaryQOS = summaryqos
7934
+ end
7935
+
7936
+ def deserialize(params)
7937
+ @ProductId = params['ProductId']
7938
+ @DeviceName = params['DeviceName']
7939
+ @InputURL = params['InputURL']
7940
+ @CustomId = params['CustomId']
7941
+ @EnableSearch = params['EnableSearch']
7942
+ @StartTimeMs = params['StartTimeMs']
7943
+ @EndTimeMs = params['EndTimeMs']
7944
+ @Config = params['Config']
7945
+ @IsCustomDevice = params['IsCustomDevice']
7946
+ @InputType = params['InputType']
7947
+ @SummaryQOS = params['SummaryQOS']
7948
+ end
7949
+ end
7950
+
7951
+ # InvokeTWeSeeRecognitionTask返回参数结构体
7952
+ class InvokeTWeSeeRecognitionTaskResponse < TencentCloud::Common::AbstractModel
7953
+ # @param TaskId: 任务 ID
7954
+ # @type TaskId: String
7955
+ # @param Completed: 任务是否执行完成
7956
+ # @type Completed: Boolean
7957
+ # @param Result: 语义理解任务结果(仅当 Completed 为 true 时包含该出参)
7958
+ # @type Result: :class:`Tencentcloud::Iotexplorer.v20190423.models.VisionRecognitionResult`
7959
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7960
+ # @type RequestId: String
7961
+
7962
+ attr_accessor :TaskId, :Completed, :Result, :RequestId
7963
+
7964
+ def initialize(taskid=nil, completed=nil, result=nil, requestid=nil)
7965
+ @TaskId = taskid
7966
+ @Completed = completed
7967
+ @Result = result
7968
+ @RequestId = requestid
7969
+ end
7970
+
7971
+ def deserialize(params)
7972
+ @TaskId = params['TaskId']
7973
+ @Completed = params['Completed']
7974
+ unless params['Result'].nil?
7975
+ @Result = VisionRecognitionResult.new
7976
+ @Result.deserialize(params['Result'])
7977
+ end
7978
+ @RequestId = params['RequestId']
7979
+ end
7980
+ end
7981
+
7807
7982
  # 应用信息
7808
7983
  class IotApplication < TencentCloud::Common::AbstractModel
7809
7984
  # @param IotAppID: 应用 ID
@@ -11027,6 +11202,39 @@ module TencentCloud
11027
11202
  end
11028
11203
  end
11029
11204
 
11205
+ # TWeSee 语义理解结果
11206
+ class VisionRecognitionResult < TencentCloud::Common::AbstractModel
11207
+ # @param Status: 任务状态(1:失败;2:成功但结果为空;3:成功且结果非空)
11208
+ # @type Status: Integer
11209
+ # @param DetectedClassifications: 识别到的目标类型。可能取值:
11210
+
11211
+ # - `person`:人
11212
+ # - `vehicle`:车辆
11213
+ # - `dog`:狗
11214
+ # - `cat`:猫
11215
+ # - `fire`:火焰
11216
+ # - `smoke`:烟雾
11217
+ # - `package`:快递包裹
11218
+ # - `license_plate`:车牌
11219
+ # @type DetectedClassifications: Array
11220
+ # @param Summary: 视频摘要文本
11221
+ # @type Summary: String
11222
+
11223
+ attr_accessor :Status, :DetectedClassifications, :Summary
11224
+
11225
+ def initialize(status=nil, detectedclassifications=nil, summary=nil)
11226
+ @Status = status
11227
+ @DetectedClassifications = detectedclassifications
11228
+ @Summary = summary
11229
+ end
11230
+
11231
+ def deserialize(params)
11232
+ @Status = params['Status']
11233
+ @DetectedClassifications = params['DetectedClassifications']
11234
+ @Summary = params['Summary']
11235
+ end
11236
+ end
11237
+
11030
11238
  # 微信硬件设备信息
11031
11239
  class WXDeviceInfo < TencentCloud::Common::AbstractModel
11032
11240
  # @param DeviceId: 设备ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-iotexplorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1039
4
+ version: 3.0.1041
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-13 00:00:00.000000000 Z
11
+ date: 2025-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common