tencentcloud-sdk-hai 3.0.978 → 3.0.979

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: 69c509a04eb8ba2d8065b456dc6ccad0554073a6
4
- data.tar.gz: 2fdba96f63f0319ade5a82ba28fb2c505d38a7f4
3
+ metadata.gz: 19f345143d130848bbc147c60ad03af6d439abb8
4
+ data.tar.gz: 70f82db05d4a4675d9b34a1cedb2ac5b78de29fd
5
5
  SHA512:
6
- metadata.gz: e977529d3cf953d7713363d454c5f73e2c23f3634306d81eaae9bcea5a8c6caf31203c1bb0db90bd9fbf164ba94ce20dd3bc6258a9a0d80e0b61cd723b6a00da
7
- data.tar.gz: 0cb7e519993d6aed315ded6169637a0871f679160dddda3c96eb1811daf07c59984cf775f51486a0097a1c2b787a21e5e262cef49ab25b0c3d94e6a2e1b495b2
6
+ metadata.gz: f04bcc0e8639327d14d440f3f574b892d1612f7ca6e88e02598056826ee665b2535fe518cde0d7c7f98eaa8c3b5cc8d0c044ce4dff16063af474dfc694627cb5
7
+ data.tar.gz: 08470682761dce35a2d37b954a3183465329c4860f6d45cdd993f6329fa4648670dfc2c00f684e7ee28fbd0598f9743218176fcaa6ef7e8da6a6b196dbc46c08
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.978
1
+ 3.0.979
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 获取prompt任务列表
129
+
130
+ # @param request: Request instance for DescribeMuskPrompts.
131
+ # @type request: :class:`Tencentcloud::hai::V20230812::DescribeMuskPromptsRequest`
132
+ # @rtype: :class:`Tencentcloud::hai::V20230812::DescribeMuskPromptsResponse`
133
+ def DescribeMuskPrompts(request)
134
+ body = send_request('DescribeMuskPrompts', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeMuskPromptsResponse.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
+
128
152
  # 查询地域列表
129
153
 
130
154
  # @param request: Request instance for DescribeRegions.
@@ -321,6 +321,76 @@ module TencentCloud
321
321
  end
322
322
  end
323
323
 
324
+ # DescribeMuskPrompts请求参数结构体
325
+ class DescribeMuskPromptsRequest < TencentCloud::Common::AbstractModel
326
+ # @param WorkgroupId: workgroup id
327
+ # @type WorkgroupId: String
328
+ # @param WorkflowId: workflow id
329
+ # @type WorkflowId: String
330
+ # @param Offset: offset
331
+ # @type Offset: Integer
332
+ # @param Limit: limit
333
+ # @type Limit: Integer
334
+ # @param Filters: 过滤参数 支持过滤的键值: PromptId,Status
335
+ # @type Filters: Array
336
+
337
+ attr_accessor :WorkgroupId, :WorkflowId, :Offset, :Limit, :Filters
338
+
339
+ def initialize(workgroupid=nil, workflowid=nil, offset=nil, limit=nil, filters=nil)
340
+ @WorkgroupId = workgroupid
341
+ @WorkflowId = workflowid
342
+ @Offset = offset
343
+ @Limit = limit
344
+ @Filters = filters
345
+ end
346
+
347
+ def deserialize(params)
348
+ @WorkgroupId = params['WorkgroupId']
349
+ @WorkflowId = params['WorkflowId']
350
+ @Offset = params['Offset']
351
+ @Limit = params['Limit']
352
+ unless params['Filters'].nil?
353
+ @Filters = []
354
+ params['Filters'].each do |i|
355
+ filter_tmp = Filter.new
356
+ filter_tmp.deserialize(i)
357
+ @Filters << filter_tmp
358
+ end
359
+ end
360
+ end
361
+ end
362
+
363
+ # DescribeMuskPrompts返回参数结构体
364
+ class DescribeMuskPromptsResponse < TencentCloud::Common::AbstractModel
365
+ # @param TotalCount: total count
366
+ # @type TotalCount: Integer
367
+ # @param MuskPromptInfos: prompt列表详情
368
+ # @type MuskPromptInfos: Array
369
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
370
+ # @type RequestId: String
371
+
372
+ attr_accessor :TotalCount, :MuskPromptInfos, :RequestId
373
+
374
+ def initialize(totalcount=nil, muskpromptinfos=nil, requestid=nil)
375
+ @TotalCount = totalcount
376
+ @MuskPromptInfos = muskpromptinfos
377
+ @RequestId = requestid
378
+ end
379
+
380
+ def deserialize(params)
381
+ @TotalCount = params['TotalCount']
382
+ unless params['MuskPromptInfos'].nil?
383
+ @MuskPromptInfos = []
384
+ params['MuskPromptInfos'].each do |i|
385
+ muskpromptinfo_tmp = MuskPromptInfo.new
386
+ muskpromptinfo_tmp.deserialize(i)
387
+ @MuskPromptInfos << muskpromptinfo_tmp
388
+ end
389
+ end
390
+ @RequestId = params['RequestId']
391
+ end
392
+ end
393
+
324
394
  # DescribeRegions请求参数结构体
325
395
  class DescribeRegionsRequest < TencentCloud::Common::AbstractModel
326
396
 
@@ -847,6 +917,57 @@ module TencentCloud
847
917
  end
848
918
  end
849
919
 
920
+ # musk prompt详情
921
+ class MuskPromptInfo < TencentCloud::Common::AbstractModel
922
+ # @param WorkflowId: workflow id
923
+ # @type WorkflowId: String
924
+ # @param WorkgroupId: workgroup id
925
+ # @type WorkgroupId: String
926
+ # @param PromptId: prompt id
927
+ # @type PromptId: String
928
+ # @param OutputResource: 生成的内容
929
+ # @type OutputResource: Array
930
+ # @param Status: prompt status
931
+ # 0: 执行中
932
+ # 1: 执行成功
933
+ # 2: 执行失败
934
+ # @type Status: Integer
935
+ # @param CreateTime: 创建时间
936
+ # @type CreateTime: String
937
+ # @param UpdateTime: 更新时间
938
+ # @type UpdateTime: String
939
+ # @param Cost: 任务执行耗时,单位毫秒
940
+ # @type Cost: Integer
941
+ # @param ErrorMessage: 任务执行失败错误信息
942
+ # @type ErrorMessage: String
943
+
944
+ attr_accessor :WorkflowId, :WorkgroupId, :PromptId, :OutputResource, :Status, :CreateTime, :UpdateTime, :Cost, :ErrorMessage
945
+
946
+ def initialize(workflowid=nil, workgroupid=nil, promptid=nil, outputresource=nil, status=nil, createtime=nil, updatetime=nil, cost=nil, errormessage=nil)
947
+ @WorkflowId = workflowid
948
+ @WorkgroupId = workgroupid
949
+ @PromptId = promptid
950
+ @OutputResource = outputresource
951
+ @Status = status
952
+ @CreateTime = createtime
953
+ @UpdateTime = updatetime
954
+ @Cost = cost
955
+ @ErrorMessage = errormessage
956
+ end
957
+
958
+ def deserialize(params)
959
+ @WorkflowId = params['WorkflowId']
960
+ @WorkgroupId = params['WorkgroupId']
961
+ @PromptId = params['PromptId']
962
+ @OutputResource = params['OutputResource']
963
+ @Status = params['Status']
964
+ @CreateTime = params['CreateTime']
965
+ @UpdateTime = params['UpdateTime']
966
+ @Cost = params['Cost']
967
+ @ErrorMessage = params['ErrorMessage']
968
+ end
969
+ end
970
+
850
971
  # HAI 实例的网络配置和消耗情况
851
972
  class NetworkStatus < TencentCloud::Common::AbstractModel
852
973
  # @param InstanceId: HAI 的实例 ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-hai
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.978
4
+ version: 3.0.979
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-01-08 00:00:00.000000000 Z
11
+ date: 2025-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common