tccli 3.0.1304.1__py2.py3-none-any.whl → 3.0.1307.1__py2.py3-none-any.whl
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.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +44 -42
- tccli/services/aiart/v20221229/examples.json +11 -11
- tccli/services/ams/v20201229/api.json +28 -34
- tccli/services/ams/v20201229/examples.json +2 -8
- tccli/services/autoscaling/v20180419/api.json +57 -57
- tccli/services/autoscaling/v20180419/examples.json +6 -6
- tccli/services/bi/v20220105/api.json +9 -0
- tccli/services/bi/v20220105/examples.json +1 -1
- tccli/services/cbs/v20170312/api.json +75 -54
- tccli/services/ccc/v20200210/api.json +10 -0
- tccli/services/cdb/v20170320/api.json +9 -9
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/cdn/v20180606/api.json +61 -58
- tccli/services/cdn/v20180606/examples.json +8 -8
- tccli/services/cfs/v20190719/api.json +12 -2
- tccli/services/cfs/v20190719/examples.json +2 -2
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +539 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/chc/v20230418/api.json +56 -1
- tccli/services/ckafka/ckafka_client.py +53 -0
- tccli/services/ckafka/v20190819/api.json +242 -8
- tccli/services/ckafka/v20190819/examples.json +8 -0
- tccli/services/clb/v20180317/api.json +120 -111
- tccli/services/clb/v20180317/examples.json +7 -7
- tccli/services/cvm/v20170312/api.json +130 -21
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +18 -18
- tccli/services/dbbrain/v20191016/api.json +11 -10
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +1 -1
- tccli/services/dc/v20180410/api.json +16 -6
- tccli/services/dc/v20180410/examples.json +4 -4
- tccli/services/dlc/v20210125/api.json +19 -0
- tccli/services/domain/v20180808/api.json +213 -213
- tccli/services/domain/v20180808/examples.json +38 -38
- tccli/services/drm/v20181115/api.json +52 -65
- tccli/services/drm/v20181115/examples.json +1 -1
- tccli/services/dsgc/v20190723/api.json +10 -0
- tccli/services/dts/v20211206/api.json +0 -9
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/ecdn/v20191012/api.json +12 -12
- tccli/services/emr/v20190103/api.json +10 -0
- tccli/services/es/v20250101/api.json +45 -45
- tccli/services/essbasic/v20210526/examples.json +7 -1
- tccli/services/gs/gs_client.py +53 -0
- tccli/services/gs/v20191118/api.json +75 -3
- tccli/services/gs/v20191118/examples.json +15 -7
- tccli/services/gwlb/v20240906/api.json +28 -28
- tccli/services/hai/hai_client.py +53 -0
- tccli/services/hai/v20230812/api.json +62 -0
- tccli/services/hai/v20230812/examples.json +8 -0
- tccli/services/hunyuan/v20230901/api.json +4 -4
- tccli/services/ims/v20201229/api.json +14 -5
- tccli/services/ims/v20201229/examples.json +2 -2
- tccli/services/ioa/v20220601/api.json +13 -2
- tccli/services/iotexplorer/v20190423/api.json +62 -3
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/iotvideoindustry/v20201201/api.json +29 -19
- tccli/services/iotvideoindustry/v20201201/examples.json +2 -2
- tccli/services/iss/iss_client.py +273 -8
- tccli/services/iss/v20230517/api.json +586 -0
- tccli/services/iss/v20230517/examples.json +46 -0
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/live/v20180801/api.json +18 -18
- tccli/services/lke/v20231130/api.json +50 -6
- tccli/services/lkeap/v20240522/api.json +124 -1
- tccli/services/lowcode/v20210108/api.json +10 -1
- tccli/services/monitor/v20180724/api.json +1 -1
- tccli/services/mps/v20190612/api.json +283 -290
- tccli/services/mps/v20190612/examples.json +9 -9
- tccli/services/ocr/v20181119/api.json +133 -114
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/postgres/v20170312/api.json +140 -121
- tccli/services/postgres/v20170312/examples.json +1 -1
- tccli/services/redis/v20180412/api.json +94 -4
- tccli/services/redis/v20180412/examples.json +3 -3
- tccli/services/ses/v20201002/api.json +9 -0
- tccli/services/soe/v20180724/api.json +13 -13
- tccli/services/soe/v20180724/examples.json +2 -2
- tccli/services/tat/v20201028/api.json +19 -19
- tccli/services/tcss/v20201101/api.json +27 -0
- tccli/services/teo/v20220901/api.json +14 -3
- tccli/services/tione/tione_client.py +53 -0
- tccli/services/tione/v20211111/api.json +49 -1
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +37 -37
- tccli/services/trtc/v20190722/api.json +5 -5
- tccli/services/tse/v20201207/api.json +30 -0
- tccli/services/tsf/v20180326/api.json +2 -2
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vm/v20210922/api.json +21 -30
- tccli/services/vm/v20210922/examples.json +2 -2
- tccli/services/vod/v20180717/api.json +15 -6
- tccli/services/vod/v20180717/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +170 -143
- tccli/services/vpc/v20170312/examples.json +5 -5
- tccli/services/vrs/v20200824/api.json +52 -52
- tccli/services/vrs/v20200824/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +218 -19
- tccli/services/wedata/v20210820/examples.json +11 -3
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/RECORD +109 -109
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1304.1.dist-info → tccli-3.0.1307.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,46 +1,46 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
3
|
"DescribeDomains": {
|
4
|
-
"document": "本接口(DescribeDomains)用于查询CDN域名基本信息,包括项目id,状态,业务类型,创建时间,更新时间等。\n\n>? 若您的业务已迁移至 CDN 控制台,请参考<a href=\"https://cloud.tencent.com/document/api/228/41118\"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。",
|
4
|
+
"document": "ECDN平台下线,接口开始预下线处理\n\n本接口(DescribeDomains)用于查询CDN域名基本信息,包括项目id,状态,业务类型,创建时间,更新时间等。\n\n>? 若您的业务已迁移至 CDN 控制台,请参考<a href=\"https://cloud.tencent.com/document/api/228/41118\"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。",
|
5
5
|
"input": "DescribeDomainsRequest",
|
6
6
|
"name": "查询域名基本信息",
|
7
7
|
"output": "DescribeDomainsResponse",
|
8
|
-
"status": "
|
8
|
+
"status": "deprecated"
|
9
9
|
},
|
10
10
|
"DescribeDomainsConfig": {
|
11
|
-
"document": "本接口(DescribeDomainsConfig)用于查询CDN加速域名详细配置信息。\n\n>? 若您的业务已迁移至 CDN 控制台,请参考<a href=\"https://cloud.tencent.com/document/api/228/41117\"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。",
|
11
|
+
"document": "ECDN平台下线,接口开始预下线处理\n\n本接口(DescribeDomainsConfig)用于查询CDN加速域名详细配置信息。\n\n>? 若您的业务已迁移至 CDN 控制台,请参考<a href=\"https://cloud.tencent.com/document/api/228/41117\"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。",
|
12
12
|
"input": "DescribeDomainsConfigRequest",
|
13
13
|
"name": "查询域名详细配置",
|
14
14
|
"output": "DescribeDomainsConfigResponse",
|
15
|
-
"status": "
|
15
|
+
"status": "deprecated"
|
16
16
|
},
|
17
17
|
"DescribeEcdnDomainLogs": {
|
18
|
-
"document": "本接口(DescribeEcdnDomainLogs)用于查询域名的访问日志下载地址。",
|
18
|
+
"document": "ECDN平台下线,接口开始预下线处理\n\n本接口(DescribeEcdnDomainLogs)用于查询域名的访问日志下载地址。",
|
19
19
|
"input": "DescribeEcdnDomainLogsRequest",
|
20
20
|
"name": "查询域名日志下载链接",
|
21
21
|
"output": "DescribeEcdnDomainLogsResponse",
|
22
|
-
"status": "
|
22
|
+
"status": "deprecated"
|
23
23
|
},
|
24
24
|
"DescribeEcdnDomainStatistics": {
|
25
|
-
"document": "本接口(DescribeEcdnDomainStatistics)用于查询指定时间段内的域名访问统计指标。\n\n>? 若您的业务已迁移至 CDN 控制台,请参考<a href=\"https://cloud.tencent.com/document/api/228/30986\"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。",
|
25
|
+
"document": "ECDN平台下线,接口开始预下线处理\n\n本接口(DescribeEcdnDomainStatistics)用于查询指定时间段内的域名访问统计指标。\n\n>? 若您的业务已迁移至 CDN 控制台,请参考<a href=\"https://cloud.tencent.com/document/api/228/30986\"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。",
|
26
26
|
"input": "DescribeEcdnDomainStatisticsRequest",
|
27
27
|
"name": "域名统计指标查询",
|
28
28
|
"output": "DescribeEcdnDomainStatisticsResponse",
|
29
|
-
"status": "
|
29
|
+
"status": "deprecated"
|
30
30
|
},
|
31
31
|
"DescribeEcdnStatistics": {
|
32
|
-
"document": "
|
32
|
+
"document": "ECDN平台下线,接口开始预下线处理\n\nDescribeEcdnStatistics用于查询 ECDN 实时访问监控数据,支持以下指标查询:\n\n+ 流量(单位为 byte)\n+ 带宽(单位为 bps)\n+ 请求数(单位为 次)\n+ 状态码 2xx 汇总及各 2 开头状态码明细(单位为 个)\n+ 状态码 3xx 汇总及各 3 开头状态码明细(单位为 个)\n+ 状态码 4xx 汇总及各 4 开头状态码明细(单位为 个)\n+ 状态码 5xx 汇总及各 5 开头状态码明细(单位为 个)",
|
33
33
|
"input": "DescribeEcdnStatisticsRequest",
|
34
34
|
"name": "访问数据查询",
|
35
35
|
"output": "DescribeEcdnStatisticsResponse",
|
36
|
-
"status": "
|
36
|
+
"status": "deprecated"
|
37
37
|
},
|
38
38
|
"DescribeIpStatus": {
|
39
|
-
"document": "
|
39
|
+
"document": "ECDN平台下线,接口开始预下线处理\n\nDescribeIpStatus 用于查询域名所在加速平台的所有节点信息, 如果您的源站有白名单设置,可以通过本接口获取ECDN服务的节点IP进行加白, 本接口为内测接口,请联系腾讯云工程师开白。\n\n由于产品服务节点常有更新,对于源站开白的使用场景,请定期调用接口获取最新节点信息,若新增服务节点发布7日后您尚未更新加白导致回源失败等问题,ECDN侧不对此承担责任。",
|
40
40
|
"input": "DescribeIpStatusRequest",
|
41
41
|
"name": "查询平台服务节点IP",
|
42
42
|
"output": "DescribeIpStatusResponse",
|
43
|
-
"status": "
|
43
|
+
"status": "deprecated"
|
44
44
|
},
|
45
45
|
"DescribePurgeTasks": {
|
46
46
|
"document": "ECDN即将下线,如需要动态加速请使用EdgeOne\n\nDescribePurgeTasks 用于查询刷新任务提交历史记录及执行进度。\n\n>? 若您的业务已迁移至 CDN 控制台,请参考<a href=\"https://cloud.tencent.com/document/api/228/37873\"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。",
|
@@ -13229,6 +13229,16 @@
|
|
13229
13229
|
"output_required": false,
|
13230
13230
|
"type": "string",
|
13231
13231
|
"value_allowed_null": false
|
13232
|
+
},
|
13233
|
+
{
|
13234
|
+
"disabled": false,
|
13235
|
+
"document": "新挂磁盘时可支持配置的服务名称列表",
|
13236
|
+
"example": "[\"HDFS\",\"YARN\"]",
|
13237
|
+
"member": "string",
|
13238
|
+
"name": "ConfigurableServices",
|
13239
|
+
"output_required": false,
|
13240
|
+
"type": "list",
|
13241
|
+
"value_allowed_null": false
|
13232
13242
|
}
|
13233
13243
|
],
|
13234
13244
|
"usage": "out"
|
@@ -8,16 +8,16 @@
|
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
10
|
"ChunkDocument": {
|
11
|
-
"document": "
|
11
|
+
"document": "文本切片是将长文本分割为短片段的技术,用于适配模型输入、提升处理效率或信息检索,平衡片段长度与语义连贯性,适用于NLP、数据分析等场景。\n本接口为分隔符规则切片接口,有单账号调用上限控制,如您有提高并发限制的需求请 [联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
|
12
12
|
"input": "ChunkDocumentRequest",
|
13
|
-
"name": "
|
13
|
+
"name": "在线文本切片",
|
14
14
|
"output": "ChunkDocumentResponse",
|
15
15
|
"status": "online"
|
16
16
|
},
|
17
17
|
"ChunkDocumentAsync": {
|
18
18
|
"document": "文本切片是将长文本分割为短片段的技术,用于适配模型输入、提升处理效率或信息检索,平衡片段长度与语义连贯性,适用于NLP、数据分析等场景。\n本接口为异步接口,有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
|
19
19
|
"input": "ChunkDocumentAsyncRequest",
|
20
|
-
"name": "
|
20
|
+
"name": "文档切片(异步)",
|
21
21
|
"output": "ChunkDocumentAsyncResponse",
|
22
22
|
"status": "online"
|
23
23
|
},
|
@@ -45,19 +45,19 @@
|
|
45
45
|
"ParseDocument": {
|
46
46
|
"document": "本服务可将各类格式文档精准转换为标准格式,满足企业知识库建设、技术文档迁移、内容平台结构化存储等需求。\n本接口有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service)。",
|
47
47
|
"input": "ParseDocumentRequest",
|
48
|
-
"name": "
|
48
|
+
"name": "实时文档解析",
|
49
49
|
"output": "ParseDocumentResponse",
|
50
50
|
"status": "online"
|
51
51
|
},
|
52
52
|
"ParseDocumentAsync": {
|
53
53
|
"document": "本服务可将各类格式文档精准转换为标准格式,满足企业知识库建设、技术文档迁移、内容平台结构化存储等需求。\n本接口为异步接口,有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
|
54
54
|
"input": "ParseDocumentAsyncRequest",
|
55
|
-
"name": "
|
55
|
+
"name": "文档解析(异步)",
|
56
56
|
"output": "ParseDocumentAsyncResponse",
|
57
57
|
"status": "online"
|
58
58
|
},
|
59
59
|
"RunRerank": {
|
60
|
-
"document": "
|
60
|
+
"document": "重排是指在 RAG 过程中,通过评估文档与查询之间的相关性,将最相关的文档放在前面,确保语言模型在生成回答时优先考虑排名靠前的上下文,提高生成结果的准确性和可信度,也可以通过这种方式进行过滤,减少大模型成本。\n本接口有单账号调用上限控制,如您有提高并发限制的需求请[联系我们](https://cloud.tencent.com/act/event/Online_service) 。",
|
61
61
|
"input": "RunRerankRequest",
|
62
62
|
"name": "重排序",
|
63
63
|
"output": "RunRerankResponse",
|
@@ -83,7 +83,7 @@
|
|
83
83
|
"members": [
|
84
84
|
{
|
85
85
|
"disabled": false,
|
86
|
-
"document": "
|
86
|
+
"document": "会话内容,按对话时间从旧到新在数组中排列,长度受模型窗口大小限制。",
|
87
87
|
"example": "[{}]",
|
88
88
|
"member": "Message",
|
89
89
|
"name": "Messages",
|
@@ -92,8 +92,8 @@
|
|
92
92
|
},
|
93
93
|
{
|
94
94
|
"disabled": false,
|
95
|
-
"document": "
|
96
|
-
"example": "hunyuan",
|
95
|
+
"document": "模型名称,可选模型列表:hunyuan-turbo,hunyuan-large,hunyuan-large-longcontext,hunyuan-standard,hunyuan-standard-256K,deepseek-r1,deepseek-v3,deepseek-r1-distill-qwen-32b。",
|
96
|
+
"example": "hunyuan-turbo",
|
97
97
|
"member": "string",
|
98
98
|
"name": "ModelName",
|
99
99
|
"required": true,
|
@@ -101,7 +101,7 @@
|
|
101
101
|
},
|
102
102
|
{
|
103
103
|
"disabled": false,
|
104
|
-
"document": "是否以流式接口的形式返回数据,默认true",
|
104
|
+
"document": "是否以流式接口的形式返回数据,默认true。",
|
105
105
|
"example": "是否以流式接口的形式返回数据,默认false",
|
106
106
|
"member": "bool",
|
107
107
|
"name": "Stream",
|
@@ -110,7 +110,7 @@
|
|
110
110
|
},
|
111
111
|
{
|
112
112
|
"disabled": false,
|
113
|
-
"document": "取值区间为[0.0, 1.0], 非必要不建议使用, 不合理的取值会影响效果 ",
|
113
|
+
"document": "取值区间为[0.0, 1.0], 非必要不建议使用, 不合理的取值会影响效果 。",
|
114
114
|
"example": "0.1",
|
115
115
|
"member": "float",
|
116
116
|
"name": "TopP",
|
@@ -119,7 +119,7 @@
|
|
119
119
|
},
|
120
120
|
{
|
121
121
|
"disabled": false,
|
122
|
-
"document": "取值区间为[0.0, 2.0], 非必要不建议使用, 不合理的取值会影响效果 ",
|
122
|
+
"document": "取值区间为[0.0, 2.0], 非必要不建议使用, 不合理的取值会影响效果 。",
|
123
123
|
"example": "1.1",
|
124
124
|
"member": "float",
|
125
125
|
"name": "Temperature",
|
@@ -294,7 +294,7 @@
|
|
294
294
|
"members": [
|
295
295
|
{
|
296
296
|
"disabled": false,
|
297
|
-
"document": "
|
297
|
+
"document": "文件类型,支持 MD,TXT 格式。",
|
298
298
|
"example": "MD",
|
299
299
|
"member": "string",
|
300
300
|
"name": "FileType",
|
@@ -305,7 +305,7 @@
|
|
305
305
|
},
|
306
306
|
{
|
307
307
|
"disabled": false,
|
308
|
-
"document": "
|
308
|
+
"document": "文本原文,使用字符串格式输入。",
|
309
309
|
"example": "53847824487347829",
|
310
310
|
"member": "string",
|
311
311
|
"name": "FileContent",
|
@@ -322,7 +322,7 @@
|
|
322
322
|
"members": [
|
323
323
|
{
|
324
324
|
"disabled": false,
|
325
|
-
"document": "
|
325
|
+
"document": "文件信息。",
|
326
326
|
"example": "{\"FileType\":\"TXT\"}",
|
327
327
|
"member": "Document",
|
328
328
|
"name": "Document",
|
@@ -331,7 +331,7 @@
|
|
331
331
|
},
|
332
332
|
{
|
333
333
|
"disabled": false,
|
334
|
-
"document": "
|
334
|
+
"document": "模型名称,可选模型列表:doc-tree-chunk。",
|
335
335
|
"example": "doc-tree-chunk",
|
336
336
|
"member": "string",
|
337
337
|
"name": "ModelName",
|
@@ -340,7 +340,7 @@
|
|
340
340
|
},
|
341
341
|
{
|
342
342
|
"disabled": false,
|
343
|
-
"document": "
|
343
|
+
"document": "文件切片配置。",
|
344
344
|
"example": "{\"MaxChunkSize\":\"20\"}",
|
345
345
|
"member": "ChunkConfigAsync",
|
346
346
|
"name": "Config",
|
@@ -377,7 +377,7 @@
|
|
377
377
|
"members": [
|
378
378
|
{
|
379
379
|
"disabled": false,
|
380
|
-
"document": "
|
380
|
+
"document": "切片文件信息。",
|
381
381
|
"example": "Document",
|
382
382
|
"member": "ChunkDocument",
|
383
383
|
"name": "Document",
|
@@ -386,7 +386,7 @@
|
|
386
386
|
},
|
387
387
|
{
|
388
388
|
"disabled": false,
|
389
|
-
"document": "
|
389
|
+
"document": "模型名称,可选模型列表:doc-chunk。",
|
390
390
|
"example": "doc-chunk",
|
391
391
|
"member": "string",
|
392
392
|
"name": "ModelName",
|
@@ -395,7 +395,7 @@
|
|
395
395
|
},
|
396
396
|
{
|
397
397
|
"disabled": false,
|
398
|
-
"document": "
|
398
|
+
"document": "文件切片配置。",
|
399
399
|
"example": "Config",
|
400
400
|
"member": "ChunkConfig",
|
401
401
|
"name": "Config",
|
@@ -551,7 +551,7 @@
|
|
551
551
|
"members": [
|
552
552
|
{
|
553
553
|
"disabled": false,
|
554
|
-
"document": "
|
554
|
+
"document": "任务状态,-1:失败,0:运行中,1:成功。",
|
555
555
|
"example": "1",
|
556
556
|
"member": "int64",
|
557
557
|
"name": "Status",
|
@@ -561,8 +561,8 @@
|
|
561
561
|
},
|
562
562
|
{
|
563
563
|
"disabled": false,
|
564
|
-
"document": "
|
565
|
-
"example": "
|
564
|
+
"document": "切片结果文件。",
|
565
|
+
"example": "https://ai-search-doc-bj-xxxxx.cos.ap-beijing.myqcloud.com/&2 F1257780094/2013/81e11a5472dd4288a0b998c032b4df26.zip",
|
566
566
|
"member": "string",
|
567
567
|
"name": "DocumentChunkResultUrl",
|
568
568
|
"output_required": false,
|
@@ -571,7 +571,7 @@
|
|
571
571
|
},
|
572
572
|
{
|
573
573
|
"disabled": false,
|
574
|
-
"document": "
|
574
|
+
"document": "Token用量。",
|
575
575
|
"example": "{\"TotalTokens\":12}",
|
576
576
|
"member": "DocumentChunkUsage",
|
577
577
|
"name": "Usage",
|
@@ -608,7 +608,7 @@
|
|
608
608
|
"members": [
|
609
609
|
{
|
610
610
|
"disabled": false,
|
611
|
-
"document": "
|
611
|
+
"document": "任务状态,-1:失败,0:运行中,1:成功。",
|
612
612
|
"example": "1",
|
613
613
|
"member": "int64",
|
614
614
|
"name": "Status",
|
@@ -618,8 +618,8 @@
|
|
618
618
|
},
|
619
619
|
{
|
620
620
|
"disabled": false,
|
621
|
-
"document": "
|
622
|
-
"example": "
|
621
|
+
"document": "结果文件。",
|
622
|
+
"example": "https://ai-search-doc-bj-xxxxx.cos.ap-beijing.myqcloud.com/&2 F1257780094/2013/81e11a5472dd4288a0b998c032b4df26.zip",
|
623
623
|
"member": "string",
|
624
624
|
"name": "DocumentParseResultUrl",
|
625
625
|
"output_required": false,
|
@@ -628,7 +628,7 @@
|
|
628
628
|
},
|
629
629
|
{
|
630
630
|
"disabled": false,
|
631
|
-
"document": "
|
631
|
+
"document": "失败的页码。\n注意:此字段可能返回 null,表示取不到有效值。",
|
632
632
|
"example": "1,2",
|
633
633
|
"member": "int64",
|
634
634
|
"name": "FailedPages",
|
@@ -650,7 +650,7 @@
|
|
650
650
|
"members": [
|
651
651
|
{
|
652
652
|
"disabled": false,
|
653
|
-
"document": "
|
653
|
+
"document": "模型名称,可选模型列表:bge-base-zh-v1.5,conan-embedding-v1,bge-m3,KaLM-embedding-multilingual-mini-v1。",
|
654
654
|
"example": "bge-base-zh-v1.5",
|
655
655
|
"member": "string",
|
656
656
|
"name": "ModelName",
|
@@ -659,7 +659,7 @@
|
|
659
659
|
},
|
660
660
|
{
|
661
661
|
"disabled": false,
|
662
|
-
"document": "
|
662
|
+
"document": "需进行向量化的文本集。",
|
663
663
|
"example": "[\"今天天气怎样\"]",
|
664
664
|
"member": "string",
|
665
665
|
"name": "Texts",
|
@@ -684,7 +684,7 @@
|
|
684
684
|
},
|
685
685
|
{
|
686
686
|
"disabled": false,
|
687
|
-
"document": "
|
687
|
+
"document": "向量化消耗的token数量。",
|
688
688
|
"example": "无",
|
689
689
|
"member": "Usage",
|
690
690
|
"name": "Usage",
|
@@ -829,7 +829,7 @@
|
|
829
829
|
"members": [
|
830
830
|
{
|
831
831
|
"disabled": false,
|
832
|
-
"document": "
|
832
|
+
"document": "文件信息。",
|
833
833
|
"example": "{ \"FileType\": \"TXT\", \"FileUrl\": \"\", \"FileContent\": \"data:text/plain;base64,SGVsbG8sIFdvcmxkIQ==\", \"FileName\": \"test.txt\" }",
|
834
834
|
"member": "Document",
|
835
835
|
"name": "Document",
|
@@ -838,7 +838,7 @@
|
|
838
838
|
},
|
839
839
|
{
|
840
840
|
"disabled": false,
|
841
|
-
"document": "
|
841
|
+
"document": "模型名称,可选模型列表:doc-llm。",
|
842
842
|
"example": "doc-llm",
|
843
843
|
"member": "string",
|
844
844
|
"name": "ModelName",
|
@@ -884,7 +884,7 @@
|
|
884
884
|
},
|
885
885
|
{
|
886
886
|
"disabled": false,
|
887
|
-
"document": "
|
887
|
+
"document": "模型名称,doc-llm。",
|
888
888
|
"example": "doc-llm",
|
889
889
|
"member": "string",
|
890
890
|
"name": "ModelName",
|
@@ -899,7 +899,7 @@
|
|
899
899
|
"members": [
|
900
900
|
{
|
901
901
|
"disabled": false,
|
902
|
-
"document": "
|
902
|
+
"document": "进度:0-100。",
|
903
903
|
"example": "100",
|
904
904
|
"member": "string",
|
905
905
|
"name": "Progress",
|
@@ -909,7 +909,7 @@
|
|
909
909
|
},
|
910
910
|
{
|
911
911
|
"disabled": false,
|
912
|
-
"document": "
|
912
|
+
"document": " 解析文件结果。",
|
913
913
|
"example": "https://ai-search-doc-bj-xxxxx.cos.ap-beijing.myqcloud.com/&2 F1257780094/2013/81e11a5472dd4288a0b998c032b4df26.zip",
|
914
914
|
"member": "string",
|
915
915
|
"name": "DocumentParseResultUrl",
|
@@ -919,7 +919,7 @@
|
|
919
919
|
},
|
920
920
|
{
|
921
921
|
"disabled": false,
|
922
|
-
"document": "
|
922
|
+
"document": "失败页码。",
|
923
923
|
"example": "[1]",
|
924
924
|
"member": "int64",
|
925
925
|
"name": "FailedPages",
|
@@ -977,8 +977,8 @@
|
|
977
977
|
"members": [
|
978
978
|
{
|
979
979
|
"disabled": false,
|
980
|
-
"document": "
|
981
|
-
"example": "bge-
|
980
|
+
"document": "模型名称,可选模型列表:bge-reranker-large,bge-reranker-v2-m3。",
|
981
|
+
"example": "bge-reranker-large",
|
982
982
|
"member": "string",
|
983
983
|
"name": "ModelName",
|
984
984
|
"required": true,
|
@@ -986,7 +986,7 @@
|
|
986
986
|
},
|
987
987
|
{
|
988
988
|
"disabled": false,
|
989
|
-
"document": "
|
989
|
+
"document": "查询文本。",
|
990
990
|
"example": "今天天气怎样",
|
991
991
|
"member": "string",
|
992
992
|
"name": "Query",
|
@@ -995,7 +995,7 @@
|
|
995
995
|
},
|
996
996
|
{
|
997
997
|
"disabled": false,
|
998
|
-
"document": "待排序的候选doc
|
998
|
+
"document": "待排序的候选doc列表。",
|
999
999
|
"example": "[\"今天是晴天\"]",
|
1000
1000
|
"member": "string",
|
1001
1001
|
"name": "Documents",
|
@@ -1004,7 +1004,7 @@
|
|
1004
1004
|
},
|
1005
1005
|
{
|
1006
1006
|
"disabled": false,
|
1007
|
-
"document": "排序返回的top文档数量, 如果没有指定则返回全部候选doc,如果指定的top_n值大于输入的候选doc数量,返回全部doc",
|
1007
|
+
"document": "排序返回的top文档数量, 如果没有指定则返回全部候选doc,如果指定的top_n值大于输入的候选doc数量,返回全部doc。",
|
1008
1008
|
"example": "5",
|
1009
1009
|
"member": "int64",
|
1010
1010
|
"name": "TopN",
|
@@ -1013,7 +1013,7 @@
|
|
1013
1013
|
},
|
1014
1014
|
{
|
1015
1015
|
"disabled": false,
|
1016
|
-
"document": "返回的排序结果列表里面是否返回每一条document原文,默认值False",
|
1016
|
+
"document": "返回的排序结果列表里面是否返回每一条document原文,默认值False。",
|
1017
1017
|
"example": "true",
|
1018
1018
|
"member": "bool",
|
1019
1019
|
"name": "ReturnDocuments",
|
@@ -1028,7 +1028,7 @@
|
|
1028
1028
|
"members": [
|
1029
1029
|
{
|
1030
1030
|
"disabled": false,
|
1031
|
-
"document": "
|
1031
|
+
"document": "输出结果集。",
|
1032
1032
|
"example": "无",
|
1033
1033
|
"member": "RerankResult",
|
1034
1034
|
"name": "Data",
|
@@ -1038,7 +1038,7 @@
|
|
1038
1038
|
},
|
1039
1039
|
{
|
1040
1040
|
"disabled": false,
|
1041
|
-
"document": "消耗token
|
1041
|
+
"document": "消耗token数量。",
|
1042
1042
|
"example": "224",
|
1043
1043
|
"member": "Usage",
|
1044
1044
|
"name": "Usage",
|
@@ -343,7 +343,7 @@
|
|
343
343
|
},
|
344
344
|
{
|
345
345
|
"document": "1. 入参中FlowFileInfos有三个元素, 表示三个合同组成此合同组\n2. 每个合同都是B2C合同\n3.三份子合同均指定一方为动态签署方(即不指定具体签署人,FillType=1),可在发起后再进行补充。",
|
346
|
-
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreateFlowGroupByFiles\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOperator\": {\n \"OpenId\": \"kevin\"\n },\n \"ProxyOrganizationOpenId\": \"zk_online_org\",\n \"AppId\": \"394fc83e7a1cc97ba27c3342f425c836\"\n },\n \"FlowGroupName\": \"采购合同\",\n \"FlowFileInfos\": [\n {\n \"FileIds\": [\n \"yDR1nUU06b46rUy0fKyKocxqVM6QwE88\"\n ],\n \"FlowName\": \"番茄的采购合同\",\n \"Deadline\": 0,\n \"FlowDescription\": \"2023年番茄的采购50吨合同\",\n \"FlowType\": \"采购合同\",\n \"FlowApprovers\": [\n {\n \"ApproverType\": \"
|
346
|
+
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ChannelCreateFlowGroupByFiles\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOperator\": {\n \"OpenId\": \"kevin\"\n },\n \"ProxyOrganizationOpenId\": \"zk_online_org\",\n \"AppId\": \"394fc83e7a1cc97ba27c3342f425c836\"\n },\n \"FlowGroupName\": \"采购合同\",\n \"FlowFileInfos\": [\n {\n \"FileIds\": [\n \"yDR1nUU06b46rUy0fKyKocxqVM6QwE88\"\n ],\n \"FlowName\": \"番茄的采购合同\",\n \"Deadline\": 0,\n \"FlowDescription\": \"2023年番茄的采购50吨合同\",\n \"FlowType\": \"采购合同\",\n \"FlowApprovers\": [\n {\n \"ApproverType\": \"ORGANIZATION\",\n \"ApproverOption\": {\n \"FillType\": 1\n },\n \"SignComponents\": [\n {\n \"ComponentWidth\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"ComponentPage\": 1,\n \"ComponentRequired\": true,\n \"ComponentPosX\": 100,\n \"ComponentPosY\": 100,\n \"ComponentHeight\": 100,\n \"ComponentValue\": \"yDR1kUU0zproxUy0fKyKg4XBzdcXcTBg\"\n }\n ]\n },\n {\n \"Name\": \"典子谦\",\n \"ApproverType\": \"PERSON\",\n \"Mobile\": \"13200000000\",\n \"SignComponents\": [\n {\n \"ComponentWidth\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SIGNATURE\",\n \"ComponentPage\": 1,\n \"ComponentRequired\": true,\n \"ComponentPosX\": 100,\n \"ComponentPosY\": 200,\n \"ComponentHeight\": 100\n }\n ]\n }\n ],\n \"CustomerData\": \"5ZCI5ZCM5Lus5ZCI5ZCM5Lus\",\n \"Unordered\": true,\n \"NeedSignReview\": false\n },\n {\n \"FileIds\": [\n \"yDR1nUU06b46rUy0fKyKocxqVM6QwE88\"\n ],\n \"FlowName\": \"黄瓜的采购合同\",\n \"Deadline\": 0,\n \"FlowDescription\": \"2023年黄瓜的采购50吨合同\",\n \"FlowType\": \"采购合同\",\n \"FlowApprovers\": [\n {\n \"ApproverType\": \"ORGANIZATION\",\n \"ApproverOption\": {\n \"FillType\": 1\n },\n \"SignComponents\": [\n {\n \"ComponentWidth\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"ComponentPage\": 1,\n \"ComponentRequired\": true,\n \"ComponentPosX\": 100,\n \"ComponentPosY\": 100,\n \"ComponentHeight\": 100,\n \"ComponentValue\": \"yDR1kUU0zproxUy0fKyKg4XBzdcXcTBg\"\n }\n ]\n },\n {\n \"Name\": \"典子谦\",\n \"ApproverType\": \"PERSON\",\n \"Mobile\": \"13200000000\",\n \"SignComponents\": [\n {\n \"ComponentWidth\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SIGNATURE\",\n \"ComponentPage\": 1,\n \"ComponentRequired\": true,\n \"ComponentPosX\": 100,\n \"ComponentPosY\": 200,\n \"ComponentHeight\": 100\n }\n ]\n }\n ],\n \"CustomerData\": \"5paw55qE5a2Q5ZCI5ZCMMg==\",\n \"Unordered\": true,\n \"NeedSignReview\": false\n },\n {\n \"FileIds\": [\n \"yDR1nUU06b46rUy0fKyKocxqVM6QwE88\"\n ],\n \"FlowName\": \"马铃薯的采购合同\",\n \"Deadline\": 0,\n \"FlowDescription\": \"2023年马铃薯的采购50吨合同\",\n \"FlowType\": \"采购合同\",\n \"FlowApprovers\": [\n {\n \"ApproverType\": \"ORGANIZATION\",\n \"ApproverOption\": {\n \"FillType\": 1\n },\n \"SignComponents\": [\n {\n \"ComponentWidth\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SEAL\",\n \"ComponentPage\": 1,\n \"ComponentRequired\": true,\n \"ComponentPosX\": 100,\n \"ComponentPosY\": 100,\n \"ComponentHeight\": 100,\n \"ComponentValue\": \"yDR1kUU0zproxUy0fKyKg4XBzdcXcTBg\"\n }\n ]\n },\n {\n \"Name\": \"典子谦\",\n \"ApproverType\": \"PERSON\",\n \"Mobile\": \"13200000000\",\n \"SignComponents\": [\n {\n \"ComponentWidth\": 100,\n \"FileIndex\": 0,\n \"ComponentType\": \"SIGN_SIGNATURE\",\n \"ComponentPage\": 1,\n \"ComponentRequired\": true,\n \"ComponentPosX\": 100,\n \"ComponentPosY\": 200,\n \"ComponentHeight\": 100\n }\n ]\n }\n ],\n \"CustomerData\": \"5paw55qE5a2Q5ZCI5ZCMMw==\",\n \"Unordered\": true,\n \"NeedSignReview\": false\n }\n ]\n}",
|
347
347
|
"output": "{\n \"Response\": {\n \"Approvers\": [\n {\n \"Approvers\": [\n {\n \"ApproverRoleName\": \"\",\n \"RecipientId\": \"yDCVHUUckpwbqu2fUuyXGHSxNMdtKoFQ\",\n \"SignId\": \"yDCVHUUckpwbqu2xUuyXGHS1pifZeuEM\"\n },\n {\n \"ApproverRoleName\": \"\",\n \"RecipientId\": \"yDCVHUUckpwbqu24UuyXGHSwSOzFjmPR\",\n \"SignId\": \"yDCVHUUckpwbqu2bUuyXGHSyMBsyo35X\"\n }\n ],\n \"FlowId\": \"yDCVHUUckpwbqu2eUuyXGHSubvJWEDif\"\n },\n {\n \"Approvers\": [\n {\n \"ApproverRoleName\": \"\",\n \"RecipientId\": \"yDCVHUUckpwbqu2mUuyXGHSx4AVZuJkj\",\n \"SignId\": \"yDCVHUUckpwbqu29UuyXGHSS9mARSyFZ\"\n },\n {\n \"ApproverRoleName\": \"\",\n \"RecipientId\": \"yDCVHUUckpwbqu27UuyXGHSR81vG2CR9\",\n \"SignId\": \"yDCVHUUckpwbqu2uUuyXGHS8JfqC4sho\"\n }\n ],\n \"FlowId\": \"yDCVHUUckpwbqu2zUuyXGHSBho2CDwGz\"\n },\n {\n \"Approvers\": [\n {\n \"ApproverRoleName\": \"\",\n \"RecipientId\": \"yDCVHUUckpwbqu28UuyXGHS1CLfd5m1g\",\n \"SignId\": \"yDCVHUUckpwbqu22UuyXGHS8gj9IYCTL\"\n },\n {\n \"ApproverRoleName\": \"\",\n \"RecipientId\": \"yDCVHUUckpwbqu2rUuyXGHSw7ZeJH7Dk\",\n \"SignId\": \"yDCVHUUckpwbqu25UuyXGHSu11RucwZR\"\n }\n ],\n \"FlowId\": \"yDCVHUUckpwbqu2qUuyXGHSvEB4yY7su\"\n }\n ],\n \"FlowGroupId\": \"yDCVHUUckpwbquhgUuyXGHSxM3rGJCM3\",\n \"FlowIds\": [\n \"yDCVHUUckpwbqu2eUuyXGHSubvJWEDif\",\n \"yDCVHUUckpwbqu2zUuyXGHSBho2CDwGz\",\n \"yDCVHUUckpwbqu2qUuyXGHSvEB4yY7su\"\n ],\n \"RequestId\": \"s1711351873868654231\"\n }\n}",
|
348
348
|
"title": "创建三个合同组成的合同组,指定每个子合同第一方为动态签署方"
|
349
349
|
}
|
@@ -968,6 +968,12 @@
|
|
968
968
|
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowsByTemplates\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOrganizationOpenId\": \"d7c13a8b***********68c0ee248f04\",\n \"ProxyOperator\": {\n \"OpenId\": \"00498cc***********3aff766cac\"\n },\n \"AppId\": \"65fb0c59***********a382cc5ed0e\"\n },\n \"FlowInfos\": [\n {\n \"FlowName\": \"测试流程一\",\n \"TemplateId\": \"005c***********4f7f64e8c\",\n \"FlowDescription\": \"测试流程一的描述信息\",\n \"FlowType\": \"合同\",\n \"Deadline\": 1604910797,\n \"FormFields\": [\n {\n \"ComponentName\": \"姓名\",\n \"ComponentValue\": \"李四\"\n }\n ],\n \"FlowApprovers\": [\n {\n \"ApproverType\": \"ORGANIZATION\",\n \"ApproverRoleName\": \"企业签署方\",\n \"RecipientId\": \"yDxjbUU***********zjEuCkSaxt8n\",\n \"ApproverOption\": {\n \"FillType\": 1\n }\n },\n {\n \"ApproverType\": \"PERSON\",\n \"ApproverRoleName\": \"个人签署方\",\n \"RecipientId\": \"yDxjbUU***********ChJBkK7qS\",\n \"ApproverOption\": {\n \"FillType\": 1\n }\n }\n ]\n }\n ]\n}",
|
969
969
|
"output": "{\n \"Response\": {\n \"CustomerData\": [\n \"\"\n ],\n \"FlowIds\": [\n \"yDxMqU***********vaigGvi\"\n ],\n \"PreviewUrls\": [\n \"\"\n ],\n \"ErrorMessages\": [\n \"\"\n ],\n \"TaskInfos\": [\n {\n \"TaskId\": \"taskid\",\n \"TaskStatus\": \"status\"\n }\n ],\n \"FlowApprovers\": [\n {\n \"Approvers\": [\n {\n \"ApproverRoleName\": \"企业签署方\",\n \"RecipientId\": \"yDxjbUU***********zjEuCkSaxt8n\",\n \"SignId\": \"yDw7hUUckpkmtvenURxlqRxRcrWD0zVk\"\n },\n {\n \"ApproverRoleName\": \"个人签署方\",\n \"RecipientId\": \"yDxjbUU***********ChJBkK7qS\",\n \"SignId\": \"yDw7hUUckpkmtvegURxlqRxSV5qDMex1\"\n }\n ],\n \"FlowId\": \"yDxMqU***********vaigGvi\"\n }\n ],\n \"RequestId\": \"s16294xxxxx0001803\"\n }\n}",
|
970
970
|
"title": "创建含有动态签署人流程,签署方不指定具体的签署人"
|
971
|
+
},
|
972
|
+
{
|
973
|
+
"document": "使用本方自动签署模板创建签署流程。\n模板中本方企业设置了自动签署,发起合同后将会自动完成盖章。",
|
974
|
+
"input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFlowsByTemplates\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOrganizationOpenId\": \"org_dianziqian\",\n \"ProxyOperator\": {\n \"OpenId\": \"n9527\"\n },\n \"AppId\": \"yDwfwUUgygormhg1UuS2eARxjMT0mxAw\"\n },\n \"FlowInfos\": [\n {\n \"FlowName\": \"测试签署流程二\",\n \"TemplateId\": \"yDRS4UUgygqdcj56UuO4zjExBQcOiB68\",\n \"FlowDescription\": \"测试签署流程二的描述信息\",\n \"Deadline\": 1989688460,\n \"FlowApprovers\": [\n {\n \"Name\": \"张三\",\n \"ApproverType\": \"ORGANIZATION\",\n \"OrganizationOpenId\": \"ess_open_organization_1\",\n \"OrganizationName\": \"org_zhangsan\",\n \"Mobile\": \"18888888888\",\n \"OpenId\": \"n02468\",\n \"RecipientId\": \"yDwJ0UUckpk2077lUxgm9jJ9eZgZChJe\"\n }\n ]\n }\n ]\n}",
|
975
|
+
"output": "{\n \"Response\": {\n \"CustomerData\": [\n \"\"\n ],\n \"ErrorMessages\": [\n \"\"\n ],\n \"FlowApprovers\": [\n {\n \"Approvers\": [\n {\n \"ApproverRoleName\": \"张三示例企业\",\n \"RecipientId\": \"yDwJ0UUckpk2077lUxgm9jJ9eZgZChJe\",\n \"SignId\": \"yDCNsUUckpvsadtzUEEw4IgycXgrG82a\"\n }\n ],\n \"FlowId\": \"yDCNsUUckpvsadtiUEEw4Ig1G1ybk1QY\"\n }\n ],\n \"FlowIds\": [\n \"yDCNsUUckpvsadtiUEEw4Ig1G1yak1QY\"\n ],\n \"PreviewUrls\": [\n \"\"\n ],\n \"RequestId\": \"s1706111849162794392\",\n \"TaskInfos\": [\n {\n \"TaskId\": \"\",\n \"TaskStatus\": \"\"\n }\n ]\n }\n}",
|
976
|
+
"title": "创建合同,使用本方企业自动签署模板发起本方自动签署流程。"
|
971
977
|
}
|
972
978
|
],
|
973
979
|
"CreateLegalSealQrCode": [
|
tccli/services/gs/gs_client.py
CHANGED
@@ -1941,6 +1941,58 @@ def doStopAndroidInstancesApp(args, parsed_globals):
|
|
1941
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1942
1942
|
|
1943
1943
|
|
1944
|
+
def doRebootAndroidInstanceHosts(args, parsed_globals):
|
1945
|
+
g_param = parse_global_arg(parsed_globals)
|
1946
|
+
|
1947
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1948
|
+
cred = credential.CVMRoleCredential()
|
1949
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1950
|
+
cred = credential.STSAssumeRoleCredential(
|
1951
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1952
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1953
|
+
)
|
1954
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
1955
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1956
|
+
else:
|
1957
|
+
cred = credential.Credential(
|
1958
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1959
|
+
)
|
1960
|
+
http_profile = HttpProfile(
|
1961
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1962
|
+
reqMethod="POST",
|
1963
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1964
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1965
|
+
)
|
1966
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1967
|
+
if g_param[OptionsDefine.Language]:
|
1968
|
+
profile.language = g_param[OptionsDefine.Language]
|
1969
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1970
|
+
client = mod.GsClient(cred, g_param[OptionsDefine.Region], profile)
|
1971
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1972
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1973
|
+
model = models.RebootAndroidInstanceHostsRequest()
|
1974
|
+
model.from_json_string(json.dumps(args))
|
1975
|
+
start_time = time.time()
|
1976
|
+
while True:
|
1977
|
+
rsp = client.RebootAndroidInstanceHosts(model)
|
1978
|
+
result = rsp.to_json_string()
|
1979
|
+
try:
|
1980
|
+
json_obj = json.loads(result)
|
1981
|
+
except TypeError as e:
|
1982
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1983
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1984
|
+
break
|
1985
|
+
cur_time = time.time()
|
1986
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1987
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1988
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1989
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1990
|
+
else:
|
1991
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1992
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1993
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1994
|
+
|
1995
|
+
|
1944
1996
|
def doSwitchGameArchive(args, parsed_globals):
|
1945
1997
|
g_param = parse_global_arg(parsed_globals)
|
1946
1998
|
|
@@ -2925,6 +2977,7 @@ ACTION_MAP = {
|
|
2925
2977
|
"StopPublishStream": doStopPublishStream,
|
2926
2978
|
"StartAndroidInstances": doStartAndroidInstances,
|
2927
2979
|
"StopAndroidInstancesApp": doStopAndroidInstancesApp,
|
2980
|
+
"RebootAndroidInstanceHosts": doRebootAndroidInstanceHosts,
|
2928
2981
|
"SwitchGameArchive": doSwitchGameArchive,
|
2929
2982
|
"DeleteAndroidAppVersion": doDeleteAndroidAppVersion,
|
2930
2983
|
"DescribeAndroidInstanceLabels": doDescribeAndroidInstanceLabels,
|