tencentcloud-sdk-lke 3.0.1077 → 3.0.1080
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20231130/client.rb +289 -0
- data/lib/v20231130/models.rb +1091 -6
- 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: 0d4a966d600c5f38cff1f9544078f2cc1128c32c
|
4
|
+
data.tar.gz: 114302d5fccdf9041731b6f60e3e9e2025599842
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a22a44ebd9663cda143300cb767519f8c0b04d2d6e9ab59c98529d4565d1f7add926a1f028896f8bdf38210e1714e24bd9dfd5765cb62fb39290fbb82d096664
|
7
|
+
data.tar.gz: 6b6daf98f45f56323041e7f70e601ffd040da6904fdb1275022170228c282823627703ebb00865c4936a7bd85b60ea68ee91a275819ade77378b489d1c0fa9a6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1080
|
data/lib/v20231130/client.rb
CHANGED
@@ -295,6 +295,30 @@ module TencentCloud
|
|
295
295
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
296
296
|
end
|
297
297
|
|
298
|
+
# 创建共享知识库。
|
299
|
+
|
300
|
+
# @param request: Request instance for CreateSharedKnowledge.
|
301
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::CreateSharedKnowledgeRequest`
|
302
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::CreateSharedKnowledgeResponse`
|
303
|
+
def CreateSharedKnowledge(request)
|
304
|
+
body = send_request('CreateSharedKnowledge', request.serialize)
|
305
|
+
response = JSON.parse(body)
|
306
|
+
if response['Response'].key?('Error') == false
|
307
|
+
model = CreateSharedKnowledgeResponse.new
|
308
|
+
model.deserialize(response['Response'])
|
309
|
+
model
|
310
|
+
else
|
311
|
+
code = response['Response']['Error']['Code']
|
312
|
+
message = response['Response']['Error']['Message']
|
313
|
+
reqid = response['Response']['RequestId']
|
314
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
315
|
+
end
|
316
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
317
|
+
raise e
|
318
|
+
rescue StandardError => e
|
319
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
320
|
+
end
|
321
|
+
|
298
322
|
# 创建变量
|
299
323
|
|
300
324
|
# @param request: Request instance for CreateVar.
|
@@ -319,6 +343,31 @@ module TencentCloud
|
|
319
343
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
320
344
|
end
|
321
345
|
|
346
|
+
# 本接口用来创建工作流的异步运行实例,创建成功后工作流会在后台异步运行,接口返回工作流运行实例ID(WorkflowRunId)等信息。后面可通过调用DescribeWorkflowRun接口查工作流运行的详情。
|
347
|
+
# 注意:工作流的异步运行是基于应用的,需要先把对应的应用配置成“单工作流模式”,并且打开“异步调用”的开关,才能创建成功。
|
348
|
+
|
349
|
+
# @param request: Request instance for CreateWorkflowRun.
|
350
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::CreateWorkflowRunRequest`
|
351
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::CreateWorkflowRunResponse`
|
352
|
+
def CreateWorkflowRun(request)
|
353
|
+
body = send_request('CreateWorkflowRun', request.serialize)
|
354
|
+
response = JSON.parse(body)
|
355
|
+
if response['Response'].key?('Error') == false
|
356
|
+
model = CreateWorkflowRunResponse.new
|
357
|
+
model.deserialize(response['Response'])
|
358
|
+
model
|
359
|
+
else
|
360
|
+
code = response['Response']['Error']['Code']
|
361
|
+
message = response['Response']['Error']['Message']
|
362
|
+
reqid = response['Response']['RequestId']
|
363
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
364
|
+
end
|
365
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
366
|
+
raise e
|
367
|
+
rescue StandardError => e
|
368
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
369
|
+
end
|
370
|
+
|
322
371
|
# 删除应用
|
323
372
|
|
324
373
|
# @param request: Request instance for DeleteApp.
|
@@ -487,6 +536,30 @@ module TencentCloud
|
|
487
536
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
488
537
|
end
|
489
538
|
|
539
|
+
# 删除共享知识库。
|
540
|
+
|
541
|
+
# @param request: Request instance for DeleteSharedKnowledge.
|
542
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::DeleteSharedKnowledgeRequest`
|
543
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::DeleteSharedKnowledgeResponse`
|
544
|
+
def DeleteSharedKnowledge(request)
|
545
|
+
body = send_request('DeleteSharedKnowledge', request.serialize)
|
546
|
+
response = JSON.parse(body)
|
547
|
+
if response['Response'].key?('Error') == false
|
548
|
+
model = DeleteSharedKnowledgeResponse.new
|
549
|
+
model.deserialize(response['Response'])
|
550
|
+
model
|
551
|
+
else
|
552
|
+
code = response['Response']['Error']['Code']
|
553
|
+
message = response['Response']['Error']['Message']
|
554
|
+
reqid = response['Response']['RequestId']
|
555
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
556
|
+
end
|
557
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
558
|
+
raise e
|
559
|
+
rescue StandardError => e
|
560
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
561
|
+
end
|
562
|
+
|
490
563
|
# 获取企业下应用详情
|
491
564
|
|
492
565
|
# @param request: Request instance for DescribeApp.
|
@@ -703,6 +776,30 @@ module TencentCloud
|
|
703
776
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
704
777
|
end
|
705
778
|
|
779
|
+
# 通过DescribeWorkflowRun接口获取了工作流异步运行的整体内容,其中包含了基本的节点信息,再通用本接口可查看节点的运行详情(包括输入、输出、日志等)。
|
780
|
+
|
781
|
+
# @param request: Request instance for DescribeNodeRun.
|
782
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::DescribeNodeRunRequest`
|
783
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::DescribeNodeRunResponse`
|
784
|
+
def DescribeNodeRun(request)
|
785
|
+
body = send_request('DescribeNodeRun', request.serialize)
|
786
|
+
response = JSON.parse(body)
|
787
|
+
if response['Response'].key?('Error') == false
|
788
|
+
model = DescribeNodeRunResponse.new
|
789
|
+
model.deserialize(response['Response'])
|
790
|
+
model
|
791
|
+
else
|
792
|
+
code = response['Response']['Error']['Code']
|
793
|
+
message = response['Response']['Error']['Message']
|
794
|
+
reqid = response['Response']['RequestId']
|
795
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
796
|
+
end
|
797
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
798
|
+
raise e
|
799
|
+
rescue StandardError => e
|
800
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
801
|
+
end
|
802
|
+
|
706
803
|
# 问答详情
|
707
804
|
|
708
805
|
# @param request: Request instance for DescribeQA.
|
@@ -871,6 +968,30 @@ module TencentCloud
|
|
871
968
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
872
969
|
end
|
873
970
|
|
971
|
+
# 查询共享知识库。
|
972
|
+
|
973
|
+
# @param request: Request instance for DescribeSharedKnowledge.
|
974
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::DescribeSharedKnowledgeRequest`
|
975
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::DescribeSharedKnowledgeResponse`
|
976
|
+
def DescribeSharedKnowledge(request)
|
977
|
+
body = send_request('DescribeSharedKnowledge', request.serialize)
|
978
|
+
response = JSON.parse(body)
|
979
|
+
if response['Response'].key?('Error') == false
|
980
|
+
model = DescribeSharedKnowledgeResponse.new
|
981
|
+
model.deserialize(response['Response'])
|
982
|
+
model
|
983
|
+
else
|
984
|
+
code = response['Response']['Error']['Code']
|
985
|
+
message = response['Response']['Error']['Message']
|
986
|
+
reqid = response['Response']['RequestId']
|
987
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
988
|
+
end
|
989
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
990
|
+
raise e
|
991
|
+
rescue StandardError => e
|
992
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
993
|
+
end
|
994
|
+
|
874
995
|
# 获取文件上传临时密钥
|
875
996
|
|
876
997
|
# @param request: Request instance for DescribeStorageCredential.
|
@@ -967,6 +1088,30 @@ module TencentCloud
|
|
967
1088
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
968
1089
|
end
|
969
1090
|
|
1091
|
+
# 创建了工作流的异步运行实例后,通过本接口可以查询整体的运行详情。
|
1092
|
+
|
1093
|
+
# @param request: Request instance for DescribeWorkflowRun.
|
1094
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::DescribeWorkflowRunRequest`
|
1095
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::DescribeWorkflowRunResponse`
|
1096
|
+
def DescribeWorkflowRun(request)
|
1097
|
+
body = send_request('DescribeWorkflowRun', request.serialize)
|
1098
|
+
response = JSON.parse(body)
|
1099
|
+
if response['Response'].key?('Error') == false
|
1100
|
+
model = DescribeWorkflowRunResponse.new
|
1101
|
+
model.deserialize(response['Response'])
|
1102
|
+
model
|
1103
|
+
else
|
1104
|
+
code = response['Response']['Error']['Code']
|
1105
|
+
message = response['Response']['Error']['Message']
|
1106
|
+
reqid = response['Response']['RequestId']
|
1107
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1108
|
+
end
|
1109
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1110
|
+
raise e
|
1111
|
+
rescue StandardError => e
|
1112
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1113
|
+
end
|
1114
|
+
|
970
1115
|
# 导出属性标签
|
971
1116
|
|
972
1117
|
# @param request: Request instance for ExportAttributeLabel.
|
@@ -1642,6 +1787,30 @@ module TencentCloud
|
|
1642
1787
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1643
1788
|
end
|
1644
1789
|
|
1790
|
+
# 查看应用引用了哪些共享知识库,可以看到共享知识库的基础信息,包括名称,id等
|
1791
|
+
|
1792
|
+
# @param request: Request instance for ListReferShareKnowledge.
|
1793
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::ListReferShareKnowledgeRequest`
|
1794
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::ListReferShareKnowledgeResponse`
|
1795
|
+
def ListReferShareKnowledge(request)
|
1796
|
+
body = send_request('ListReferShareKnowledge', request.serialize)
|
1797
|
+
response = JSON.parse(body)
|
1798
|
+
if response['Response'].key?('Error') == false
|
1799
|
+
model = ListReferShareKnowledgeResponse.new
|
1800
|
+
model.deserialize(response['Response'])
|
1801
|
+
model
|
1802
|
+
else
|
1803
|
+
code = response['Response']['Error']['Code']
|
1804
|
+
message = response['Response']['Error']['Message']
|
1805
|
+
reqid = response['Response']['RequestId']
|
1806
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1807
|
+
end
|
1808
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1809
|
+
raise e
|
1810
|
+
rescue StandardError => e
|
1811
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1812
|
+
end
|
1813
|
+
|
1645
1814
|
# 获取拒答问题
|
1646
1815
|
|
1647
1816
|
# @param request: Request instance for ListRejectedQuestion.
|
@@ -1810,6 +1979,30 @@ module TencentCloud
|
|
1810
1979
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1811
1980
|
end
|
1812
1981
|
|
1982
|
+
# 列举共享知识库。
|
1983
|
+
|
1984
|
+
# @param request: Request instance for ListSharedKnowledge.
|
1985
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::ListSharedKnowledgeRequest`
|
1986
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::ListSharedKnowledgeResponse`
|
1987
|
+
def ListSharedKnowledge(request)
|
1988
|
+
body = send_request('ListSharedKnowledge', request.serialize)
|
1989
|
+
response = JSON.parse(body)
|
1990
|
+
if response['Response'].key?('Error') == false
|
1991
|
+
model = ListSharedKnowledgeResponse.new
|
1992
|
+
model.deserialize(response['Response'])
|
1993
|
+
model
|
1994
|
+
else
|
1995
|
+
code = response['Response']['Error']['Code']
|
1996
|
+
message = response['Response']['Error']['Message']
|
1997
|
+
reqid = response['Response']['RequestId']
|
1998
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1999
|
+
end
|
2000
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2001
|
+
raise e
|
2002
|
+
rescue StandardError => e
|
2003
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2004
|
+
end
|
2005
|
+
|
1813
2006
|
# 查询不满意回复列表
|
1814
2007
|
|
1815
2008
|
# @param request: Request instance for ListUnsatisfiedReply.
|
@@ -1858,6 +2051,30 @@ module TencentCloud
|
|
1858
2051
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1859
2052
|
end
|
1860
2053
|
|
2054
|
+
# 此接口可查询已创建的所有工作流异步运行实例。
|
2055
|
+
|
2056
|
+
# @param request: Request instance for ListWorkflowRuns.
|
2057
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::ListWorkflowRunsRequest`
|
2058
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::ListWorkflowRunsResponse`
|
2059
|
+
def ListWorkflowRuns(request)
|
2060
|
+
body = send_request('ListWorkflowRuns', request.serialize)
|
2061
|
+
response = JSON.parse(body)
|
2062
|
+
if response['Response'].key?('Error') == false
|
2063
|
+
model = ListWorkflowRunsResponse.new
|
2064
|
+
model.deserialize(response['Response'])
|
2065
|
+
model
|
2066
|
+
else
|
2067
|
+
code = response['Response']['Error']['Code']
|
2068
|
+
message = response['Response']['Error']['Message']
|
2069
|
+
reqid = response['Response']['RequestId']
|
2070
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2071
|
+
end
|
2072
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2073
|
+
raise e
|
2074
|
+
rescue StandardError => e
|
2075
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2076
|
+
end
|
2077
|
+
|
1861
2078
|
# 修改应用请求结构体
|
1862
2079
|
|
1863
2080
|
# @param request: Request instance for ModifyApp.
|
@@ -2149,6 +2366,30 @@ module TencentCloud
|
|
2149
2366
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2150
2367
|
end
|
2151
2368
|
|
2369
|
+
# 应用引用共享知识库,可以引用一个或多个,每次都是全量覆盖
|
2370
|
+
|
2371
|
+
# @param request: Request instance for ReferShareKnowledge.
|
2372
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::ReferShareKnowledgeRequest`
|
2373
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::ReferShareKnowledgeResponse`
|
2374
|
+
def ReferShareKnowledge(request)
|
2375
|
+
body = send_request('ReferShareKnowledge', request.serialize)
|
2376
|
+
response = JSON.parse(body)
|
2377
|
+
if response['Response'].key?('Error') == false
|
2378
|
+
model = ReferShareKnowledgeResponse.new
|
2379
|
+
model.deserialize(response['Response'])
|
2380
|
+
model
|
2381
|
+
else
|
2382
|
+
code = response['Response']['Error']['Code']
|
2383
|
+
message = response['Response']['Error']['Message']
|
2384
|
+
reqid = response['Response']['RequestId']
|
2385
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2386
|
+
end
|
2387
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2388
|
+
raise e
|
2389
|
+
rescue StandardError => e
|
2390
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2391
|
+
end
|
2392
|
+
|
2152
2393
|
# 文档重命名
|
2153
2394
|
|
2154
2395
|
# @param request: Request instance for RenameDoc.
|
@@ -2322,6 +2563,54 @@ module TencentCloud
|
|
2322
2563
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2323
2564
|
end
|
2324
2565
|
|
2566
|
+
# 此接口用来停止正在进行的工作流异步运行实例。
|
2567
|
+
|
2568
|
+
# @param request: Request instance for StopWorkflowRun.
|
2569
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::StopWorkflowRunRequest`
|
2570
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::StopWorkflowRunResponse`
|
2571
|
+
def StopWorkflowRun(request)
|
2572
|
+
body = send_request('StopWorkflowRun', request.serialize)
|
2573
|
+
response = JSON.parse(body)
|
2574
|
+
if response['Response'].key?('Error') == false
|
2575
|
+
model = StopWorkflowRunResponse.new
|
2576
|
+
model.deserialize(response['Response'])
|
2577
|
+
model
|
2578
|
+
else
|
2579
|
+
code = response['Response']['Error']['Code']
|
2580
|
+
message = response['Response']['Error']['Message']
|
2581
|
+
reqid = response['Response']['RequestId']
|
2582
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2583
|
+
end
|
2584
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2585
|
+
raise e
|
2586
|
+
rescue StandardError => e
|
2587
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2588
|
+
end
|
2589
|
+
|
2590
|
+
# 更新共享知识库。
|
2591
|
+
|
2592
|
+
# @param request: Request instance for UpdateSharedKnowledge.
|
2593
|
+
# @type request: :class:`Tencentcloud::lke::V20231130::UpdateSharedKnowledgeRequest`
|
2594
|
+
# @rtype: :class:`Tencentcloud::lke::V20231130::UpdateSharedKnowledgeResponse`
|
2595
|
+
def UpdateSharedKnowledge(request)
|
2596
|
+
body = send_request('UpdateSharedKnowledge', request.serialize)
|
2597
|
+
response = JSON.parse(body)
|
2598
|
+
if response['Response'].key?('Error') == false
|
2599
|
+
model = UpdateSharedKnowledgeResponse.new
|
2600
|
+
model.deserialize(response['Response'])
|
2601
|
+
model
|
2602
|
+
else
|
2603
|
+
code = response['Response']['Error']['Code']
|
2604
|
+
message = response['Response']['Error']['Message']
|
2605
|
+
reqid = response['Response']['RequestId']
|
2606
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2607
|
+
end
|
2608
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2609
|
+
raise e
|
2610
|
+
rescue StandardError => e
|
2611
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2612
|
+
end
|
2613
|
+
|
2325
2614
|
# 上传导入属性标签
|
2326
2615
|
|
2327
2616
|
# @param request: Request instance for UploadAttributeLabel.
|