tccli 3.0.1325.1__py2.py3-none-any.whl → 3.0.1326.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.
Files changed (38) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/cfs/v20190719/api.json +15 -15
  3. tccli/services/cfs/v20190719/examples.json +2 -2
  4. tccli/services/cme/v20191029/api.json +16 -19
  5. tccli/services/cme/v20191029/examples.json +12 -12
  6. tccli/services/dlc/dlc_client.py +53 -0
  7. tccli/services/dlc/v20210125/api.json +51 -0
  8. tccli/services/dlc/v20210125/examples.json +8 -0
  9. tccli/services/domain/v20180808/api.json +1 -1
  10. tccli/services/emr/v20190103/api.json +10 -0
  11. tccli/services/es/es_client.py +4 -57
  12. tccli/services/es/v20250101/api.json +0 -207
  13. tccli/services/es/v20250101/examples.json +0 -8
  14. tccli/services/ess/v20201111/api.json +3 -3
  15. tccli/services/essbasic/v20210526/api.json +1 -1
  16. tccli/services/gs/gs_client.py +106 -0
  17. tccli/services/gs/v20191118/api.json +145 -0
  18. tccli/services/gs/v20191118/examples.json +16 -0
  19. tccli/services/hai/v20230812/api.json +5 -5
  20. tccli/services/lke/lke_client.py +0 -53
  21. tccli/services/lke/v20231130/api.json +0 -113
  22. tccli/services/lke/v20231130/examples.json +0 -8
  23. tccli/services/lkeap/v20240522/api.json +1 -1
  24. tccli/services/monitor/monitor_client.py +53 -0
  25. tccli/services/monitor/v20180724/api.json +54 -1
  26. tccli/services/monitor/v20180724/examples.json +8 -0
  27. tccli/services/mrs/v20200910/api.json +4 -4
  28. tccli/services/postgres/postgres_client.py +0 -53
  29. tccli/services/postgres/v20170312/api.json +0 -235
  30. tccli/services/postgres/v20170312/examples.json +0 -8
  31. tccli/services/privatedns/v20201028/api.json +1 -1
  32. tccli/services/pts/v20210728/api.json +18 -0
  33. tccli/services/redis/v20180412/api.json +1 -1
  34. {tccli-3.0.1325.1.dist-info → tccli-3.0.1326.1.dist-info}/METADATA +2 -2
  35. {tccli-3.0.1325.1.dist-info → tccli-3.0.1326.1.dist-info}/RECORD +38 -38
  36. {tccli-3.0.1325.1.dist-info → tccli-3.0.1326.1.dist-info}/WHEEL +0 -0
  37. {tccli-3.0.1325.1.dist-info → tccli-3.0.1326.1.dist-info}/entry_points.txt +0 -0
  38. {tccli-3.0.1325.1.dist-info → tccli-3.0.1326.1.dist-info}/license_files/LICENSE +0 -0
@@ -732,6 +732,14 @@
732
732
  "title": "查询表信息"
733
733
  }
734
734
  ],
735
+ "DescribeTablePartitions": [
736
+ {
737
+ "document": "示例一",
738
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTablePartitions\n<公共请求参数>\n\n{}",
739
+ "output": "{\n \"Response\": {\n \"RequestId\": \"8d15ab5d-164f-462a-b82c-ead5891c3b6c\"\n }\n}",
740
+ "title": "示例一"
741
+ }
742
+ ],
735
743
  "DescribeTables": [
736
744
  {
737
745
  "document": "查询数据表列表。",
@@ -1549,7 +1549,7 @@
1549
1549
  "members": [
1550
1550
  {
1551
1551
  "disabled": false,
1552
- "document": "域名ID\n可通过DescribeDomainList接口获取",
1552
+ "document": "域名ID\n可通过[DescribeDomainNameList](https://cloud.tencent.com/document/api/242/48941)接口获取",
1553
1553
  "example": "domain-ewqdskla",
1554
1554
  "member": "string",
1555
1555
  "name": "DomainId",
@@ -812,6 +812,16 @@
812
812
  "type": "list",
813
813
  "value_allowed_null": true
814
814
  },
815
+ {
816
+ "disabled": false,
817
+ "document": "流程id。大于0表示启动了流程;等于0表示没有启动流程",
818
+ "example": "123",
819
+ "member": "int64",
820
+ "name": "FlowId",
821
+ "output_required": false,
822
+ "type": "int",
823
+ "value_allowed_null": false
824
+ },
815
825
  {
816
826
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
817
827
  "member": "string",
@@ -2463,58 +2463,6 @@ def doUpdateIndex(args, parsed_globals):
2463
2463
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2464
2464
 
2465
2465
 
2466
- def doDescribeLogstashInstanceOperations(args, parsed_globals):
2467
- g_param = parse_global_arg(parsed_globals)
2468
-
2469
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2470
- cred = credential.CVMRoleCredential()
2471
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2472
- cred = credential.STSAssumeRoleCredential(
2473
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2474
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2475
- )
2476
- 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):
2477
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2478
- else:
2479
- cred = credential.Credential(
2480
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2481
- )
2482
- http_profile = HttpProfile(
2483
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2484
- reqMethod="POST",
2485
- endpoint=g_param[OptionsDefine.Endpoint],
2486
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2487
- )
2488
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2489
- if g_param[OptionsDefine.Language]:
2490
- profile.language = g_param[OptionsDefine.Language]
2491
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2492
- client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
2493
- client._sdkVersion += ("_CLI_" + __version__)
2494
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
2495
- model = models.DescribeLogstashInstanceOperationsRequest()
2496
- model.from_json_string(json.dumps(args))
2497
- start_time = time.time()
2498
- while True:
2499
- rsp = client.DescribeLogstashInstanceOperations(model)
2500
- result = rsp.to_json_string()
2501
- try:
2502
- json_obj = json.loads(result)
2503
- except TypeError as e:
2504
- json_obj = json.loads(result.decode('utf-8')) # python3.3
2505
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2506
- break
2507
- cur_time = time.time()
2508
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2509
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2510
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2511
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2512
- else:
2513
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2514
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2515
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2516
-
2517
-
2518
2466
  def doDescribeInstances(args, parsed_globals):
2519
2467
  g_param = parse_global_arg(parsed_globals)
2520
2468
 
@@ -3555,7 +3503,7 @@ def doChunkDocument(args, parsed_globals):
3555
3503
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3556
3504
 
3557
3505
 
3558
- def doWebSearch(args, parsed_globals):
3506
+ def doDescribeLogstashInstanceOperations(args, parsed_globals):
3559
3507
  g_param = parse_global_arg(parsed_globals)
3560
3508
 
3561
3509
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3584,11 +3532,11 @@ def doWebSearch(args, parsed_globals):
3584
3532
  client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
3585
3533
  client._sdkVersion += ("_CLI_" + __version__)
3586
3534
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3587
- model = models.WebSearchRequest()
3535
+ model = models.DescribeLogstashInstanceOperationsRequest()
3588
3536
  model.from_json_string(json.dumps(args))
3589
3537
  start_time = time.time()
3590
3538
  while True:
3591
- rsp = client.WebSearch(model)
3539
+ rsp = client.DescribeLogstashInstanceOperations(model)
3592
3540
  result = rsp.to_json_string()
3593
3541
  try:
3594
3542
  json_obj = json.loads(result)
@@ -3771,7 +3719,6 @@ ACTION_MAP = {
3771
3719
  "ParseDocument": doParseDocument,
3772
3720
  "UpdateDictionaries": doUpdateDictionaries,
3773
3721
  "UpdateIndex": doUpdateIndex,
3774
- "DescribeLogstashInstanceOperations": doDescribeLogstashInstanceOperations,
3775
3722
  "DescribeInstances": doDescribeInstances,
3776
3723
  "UpdateServerlessSpace": doUpdateServerlessSpace,
3777
3724
  "StartLogstashPipelines": doStartLogstashPipelines,
@@ -3792,7 +3739,7 @@ ACTION_MAP = {
3792
3739
  "DescribeIndexMeta": doDescribeIndexMeta,
3793
3740
  "ChatCompletions": doChatCompletions,
3794
3741
  "ChunkDocument": doChunkDocument,
3795
- "WebSearch": doWebSearch,
3742
+ "DescribeLogstashInstanceOperations": doDescribeLogstashInstanceOperations,
3796
3743
  "InquirePriceRenewInstance": doInquirePriceRenewInstance,
3797
3744
  "CreateClusterSnapshot": doCreateClusterSnapshot,
3798
3745
 
@@ -62,13 +62,6 @@
62
62
  "name": "重排序",
63
63
  "output": "RunRerankResponse",
64
64
  "status": "online"
65
- },
66
- "WebSearch": {
67
- "document": "WebSearch API 是一个网页搜索服务,支持多种搜索引擎,可以获取网页的标题、URL、摘要和正文内容。",
68
- "input": "WebSearchRequest",
69
- "name": "网页搜索",
70
- "output": "WebSearchResponse",
71
- "status": "online"
72
65
  }
73
66
  },
74
67
  "metadata": {
@@ -1185,206 +1178,6 @@
1185
1178
  }
1186
1179
  ],
1187
1180
  "usage": "out"
1188
- },
1189
- "WebPage": {
1190
- "document": "网页搜索结果",
1191
- "members": [
1192
- {
1193
- "disabled": false,
1194
- "document": "标题",
1195
- "example": "2025年政府财政改革报告",
1196
- "member": "string",
1197
- "name": "Title",
1198
- "output_required": true,
1199
- "required": false,
1200
- "type": "string",
1201
- "value_allowed_null": false
1202
- },
1203
- {
1204
- "disabled": false,
1205
- "document": "url",
1206
- "example": "www.example.com",
1207
- "member": "string",
1208
- "name": "Url",
1209
- "output_required": true,
1210
- "required": false,
1211
- "type": "string",
1212
- "value_allowed_null": false
1213
- },
1214
- {
1215
- "disabled": false,
1216
- "document": "网页摘要\n注意:此字段可能返回 null,表示取不到有效值。",
1217
- "example": "2025年财政改革措施为...",
1218
- "member": "string",
1219
- "name": "Summary",
1220
- "output_required": false,
1221
- "required": false,
1222
- "type": "string",
1223
- "value_allowed_null": true
1224
- },
1225
- {
1226
- "disabled": false,
1227
- "document": "网页收录时间。可能为空。\n注意:此字段可能返回 null,表示取不到有效值。",
1228
- "example": "2025年4月9日",
1229
- "member": "string",
1230
- "name": "Time",
1231
- "output_required": false,
1232
- "required": false,
1233
- "type": "string",
1234
- "value_allowed_null": true
1235
- },
1236
- {
1237
- "disabled": false,
1238
- "document": "Markdown 格式的网页正文\n注意:此字段可能返回 null,表示取不到有效值。",
1239
- "example": "2025年财政改革措施为...",
1240
- "member": "string",
1241
- "name": "Content",
1242
- "output_required": false,
1243
- "required": false,
1244
- "type": "string",
1245
- "value_allowed_null": true
1246
- }
1247
- ],
1248
- "usage": "both"
1249
- },
1250
- "WebSearchRequest": {
1251
- "document": "WebSearch请求参数结构体",
1252
- "members": [
1253
- {
1254
- "disabled": false,
1255
- "document": "查询",
1256
- "example": "2025年货币政策有哪些变化?",
1257
- "member": "string",
1258
- "name": "Query",
1259
- "required": true,
1260
- "type": "string"
1261
- },
1262
- {
1263
- "disabled": false,
1264
- "document": "搜索的网页数量,默认20",
1265
- "example": "20",
1266
- "member": "uint64",
1267
- "name": "Count",
1268
- "required": false,
1269
- "type": "int"
1270
- },
1271
- {
1272
- "disabled": false,
1273
- "document": "指定域名,gov.cn 可匹配 *.gov.cn的域名。",
1274
- "example": "gov.cn",
1275
- "member": "string",
1276
- "name": "Site",
1277
- "required": false,
1278
- "type": "string"
1279
- },
1280
- {
1281
- "disabled": false,
1282
- "document": "是否获取返回网页全文,默认 false。",
1283
- "example": "false",
1284
- "member": "bool",
1285
- "name": "FetchContent",
1286
- "required": false,
1287
- "type": "bool"
1288
- },
1289
- {
1290
- "disabled": false,
1291
- "document": "域名白名单,在不指定 Site 时,只保存匹配白名单域名的网页。",
1292
- "example": "[\"zhihu.com\"]",
1293
- "member": "string",
1294
- "name": "WhiteSites",
1295
- "required": false,
1296
- "type": "list"
1297
- },
1298
- {
1299
- "disabled": false,
1300
- "document": "域名黑名单,在不指定 Site 和白名单时,过滤黑名单中的域名。",
1301
- "example": "[\"baidu.com\"]",
1302
- "member": "string",
1303
- "name": "BlackSites",
1304
- "required": false,
1305
- "type": "list"
1306
- },
1307
- {
1308
- "disabled": false,
1309
- "document": "秒级时间戳,搜索网页的开始时间,默认不限制开始时间。",
1310
- "example": "1704038400",
1311
- "member": "uint64",
1312
- "name": "StartTime",
1313
- "required": false,
1314
- "type": "int"
1315
- },
1316
- {
1317
- "disabled": false,
1318
- "document": "秒级时间戳,搜索网页的结束时间,默认为现在。",
1319
- "example": "1712592000",
1320
- "member": "uint64",
1321
- "name": "EndTime",
1322
- "required": false,
1323
- "type": "int"
1324
- },
1325
- {
1326
- "disabled": false,
1327
- "document": "指定搜索引擎,可选混合搜索 mixed,或 bing, baidu, sogou, 默认为 sogou",
1328
- "example": "sogou",
1329
- "member": "string",
1330
- "name": "SearchEngine",
1331
- "required": false,
1332
- "type": "string"
1333
- }
1334
- ],
1335
- "type": "object"
1336
- },
1337
- "WebSearchResponse": {
1338
- "document": "WebSearch返回参数结构体",
1339
- "members": [
1340
- {
1341
- "disabled": false,
1342
- "document": "查询",
1343
- "example": "2025年货币政策有哪些变化?",
1344
- "member": "string",
1345
- "name": "Query",
1346
- "output_required": false,
1347
- "type": "string",
1348
- "value_allowed_null": false
1349
- },
1350
- {
1351
- "disabled": false,
1352
- "document": "响应状态",
1353
- "example": "completed",
1354
- "member": "string",
1355
- "name": "Status",
1356
- "output_required": false,
1357
- "type": "string",
1358
- "value_allowed_null": false
1359
- },
1360
- {
1361
- "disabled": false,
1362
- "document": "执行搜索的引擎",
1363
- "example": "sogou",
1364
- "member": "string",
1365
- "name": "SearchEngine",
1366
- "output_required": false,
1367
- "type": "string",
1368
- "value_allowed_null": false
1369
- },
1370
- {
1371
- "disabled": false,
1372
- "document": "搜索结果",
1373
- "example": "无",
1374
- "member": "WebPage",
1375
- "name": "Results",
1376
- "output_required": false,
1377
- "type": "list",
1378
- "value_allowed_null": false
1379
- },
1380
- {
1381
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1382
- "member": "string",
1383
- "name": "RequestId",
1384
- "type": "string"
1385
- }
1386
- ],
1387
- "type": "object"
1388
1181
  }
1389
1182
  },
1390
1183
  "version": "1.0"
@@ -71,14 +71,6 @@
71
71
  "output": "{\n \"Response\": {\n \"Data\": [\n {\n \"Document\": \"\",\n \"Index\": 1,\n \"RelevanceScore\": 0.9998511075973511\n },\n {\n \"Document\": \"\",\n \"Index\": 0,\n \"RelevanceScore\": 0.9996849298477173\n }\n ],\n \"RequestId\": \"cf9c5598-9625-436d-bc81-8dd3900e63c0\",\n \"Usage\": {\n \"TotalTokens\": 10\n }\n }\n}",
72
72
  "title": "重排序"
73
73
  }
74
- ],
75
- "WebSearch": [
76
- {
77
- "document": "用户需要搜索 2025 年货币政策相关的网页内容,并指定来源为政府网站。",
78
- "input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: WebSearch\n<公共请求参数>\n\n{\n \"Query\": \"2025年货币政策有哪些变化?\",\n \"Count\": 20,\n \"Site\": \"gov.cn\",\n \"FetchContent\": false,\n \"StartTime\": 1704038400,\n \"EndTime\": 1712592000,\n \"SearchEngine\": \"sogou\"\n}",
79
- "output": "{\n \"Response\": {\n \"RequestId\": \"21739985-c9bf-4add-998b-7c5b055b3289\",\n \"Query\": \"2025年货币政策有哪些变化?\",\n \"Status\": \"completed\",\n \"SearchEngine\": \"sogou\",\n \"Results\": [\n {\n \"Title\": \"2025年政府财政改革报告\",\n \"Url\": \"www.example.gov.cn\",\n \"Summary\": \"2025年财政改革措施为...\",\n \"Time\": \"2025年4月9日\"\n }\n ]\n }\n}",
80
- "title": "联网搜索"
81
- }
82
74
  ]
83
75
  },
84
76
  "version": "1.0"
@@ -2251,7 +2251,7 @@
2251
2251
  },
2252
2252
  {
2253
2253
  "disabled": false,
2254
- "document": "**web嵌入发起合同场景下**,是否禁止移动和删除填写和签署控件\n<ul><li> <b>false(默认)</b> :不禁止移动和删除控件</li>\n<li> <b>true</b> : 可以移动和删除控件</li></ul>",
2254
+ "document": "**web嵌入发起合同场景下**,是否禁止移动和删除填写和签署控件\n<ul><li> <b>false(默认)</b> :可以移动和删除控件</li>\n<li> <b>true</b> : 禁止移动和删除控件</li></ul>",
2255
2255
  "example": "false",
2256
2256
  "member": "bool",
2257
2257
  "name": "ForbidMoveAndDelete",
@@ -4659,7 +4659,7 @@
4659
4659
  },
4660
4660
  {
4661
4661
  "disabled": false,
4662
- "document": "在发起流程的可嵌入页面要隐藏的控件列表,和 ShowComponentTypes 参数 只能二选一使用,具体的控件类型如下\n<ul><li>SIGN_SIGNATURE : 个人签名/印章</li>\n<li>SIGN_SEAL : 企业印章</li>\n<li>SIGN_PAGING_SEAL : 骑缝章</li>\n<li>SIGN_LEGAL_PERSON_SEAL : 法定代表人章</li>\n<li>SIGN_APPROVE : 签批</li>\n<li>SIGN_OPINION : 签署意见</li>\n<li>BUSI-FULL-NAME : 企业全称</li>\n<li>BUSI-CREDIT-CODE : 统一社会信用代码</li>\n<li>BUSI-LEGAL-NAME : 法人/经营者姓名</li>\n<li>PERSONAL-NAME : 签署人姓名</li>\n<li>PERSONAL-MOBILE : 签署人手机号</li>\n<li>PERSONAL-IDCARD-TYPE : 签署人证件类型</li>\n<li>PERSONAL-IDCARD : 签署人证件号</li>\n<li>TEXT : 单行文本</li>\n<li>MULTI_LINE_TEXT : 多行文本</li>\n<li>CHECK_BOX : 勾选框</li>\n<li>SELECTOR : 选择器</li>\n<li>DIGIT : 数字</li>\n<li>DATE : 日期</li>\n<li>FILL_IMAGE : 图片</li>\n<li>ATTACHMENT : 附件</li>\n<li>EMAIL : 邮箱</li>\n<li>LOCATION : 地址</li>\n<li>EDUCATION : 学历</li>\n<li>GENDER : 性别</li>\n<li>DISTRICT : 省市区</li></ul>",
4662
+ "document": "在发起流程的可嵌入页面要隐藏的控件列表,和 ShowComponentTypes 参数 只能二选一使用(注: \n<font color='red'>空数组代表未指定</font>),具体的控件类型如下\n\n<ul><li>SIGN_SIGNATURE : 个人签名/印章</li>\n<li>SIGN_SEAL : 企业印章</li>\n<li>SIGN_PAGING_SEAL : 骑缝章</li>\n<li>SIGN_LEGAL_PERSON_SEAL : 法定代表人章</li>\n<li>SIGN_APPROVE : 签批</li>\n<li>SIGN_OPINION : 签署意见</li>\n<li>SIGN_PAGING_SIGNATURE : 手写签名骑缝控件</li>\n<li>BUSI-FULL-NAME : 企业全称</li>\n<li>BUSI-CREDIT-CODE : 统一社会信用代码</li>\n<li>BUSI-LEGAL-NAME : 法人/经营者姓名</li>\n<li>PERSONAL-NAME : 签署人姓名</li>\n<li>PERSONAL-MOBILE : 签署人手机号</li>\n<li>PERSONAL-IDCARD-TYPE : 签署人证件类型</li>\n<li>PERSONAL-IDCARD : 签署人证件号</li>\n<li>TEXT : 单行文本</li>\n<li>MULTI_LINE_TEXT : 多行文本</li>\n<li>CHECK_BOX : 勾选框</li>\n<li>SELECTOR : 选择器</li>\n<li>DIGIT : 数字</li>\n<li>DATE : 日期</li>\n<li>FILL_IMAGE : 图片</li>\n<li>ATTACHMENT : 附件</li>\n<li>EMAIL : 邮箱</li>\n<li>LOCATION : 地址</li>\n<li>EDUCATION : 学历</li>\n<li>GENDER : 性别</li>\n<li>DISTRICT : 省市区</li></ul>",
4663
4663
  "example": "[\"MULTI_LINE_TEXT\"]",
4664
4664
  "member": "string",
4665
4665
  "name": "HideComponentTypes",
@@ -4668,7 +4668,7 @@
4668
4668
  },
4669
4669
  {
4670
4670
  "disabled": false,
4671
- "document": "在发起流程的可嵌入页面要显示的控件列表,和 HideComponentTypes 参数 只能二选一使用,具体的控件类型如下\n<ul><li>SIGN_SIGNATURE : 个人签名/印章</li>\n<li>SIGN_SEAL : 企业印章</li>\n<li>SIGN_PAGING_SEAL : 骑缝章</li>\n<li>SIGN_LEGAL_PERSON_SEAL : 法定代表人章</li>\n<li>SIGN_APPROVE : 签批</li>\n<li>SIGN_OPINION : 签署意见</li>\n<li>BUSI-FULL-NAME : 企业全称</li>\n<li>BUSI-CREDIT-CODE : 统一社会信用代码</li>\n<li>BUSI-LEGAL-NAME : 法人/经营者姓名</li>\n<li>PERSONAL-NAME : 签署人姓名</li>\n<li>PERSONAL-MOBILE : 签署人手机号</li>\n<li>PERSONAL-IDCARD-TYPE : 签署人证件类型</li>\n<li>PERSONAL-IDCARD : 签署人证件号</li>\n<li>TEXT : 单行文本</li>\n<li>MULTI_LINE_TEXT : 多行文本</li>\n<li>CHECK_BOX : 勾选框</li>\n<li>SELECTOR : 选择器</li>\n<li>DIGIT : 数字</li>\n<li>DATE : 日期</li>\n<li>FILL_IMAGE : 图片</li>\n<li>ATTACHMENT : 附件</li>\n<li>EMAIL : 邮箱</li>\n<li>LOCATION : 地址</li>\n<li>EDUCATION : 学历</li>\n<li>GENDER : 性别</li>\n<li>DISTRICT : 省市区</li></ul>",
4671
+ "document": "在发起流程的可嵌入页面要显示的控件列表,和 HideComponentTypes 参数 只能二选一使用(注: \n<font color='red'>空数组代表未指定</font>),具体的控件类型如下\n<ul><li>SIGN_SIGNATURE : 个人签名/印章</li>\n<li>SIGN_SEAL : 企业印章</li>\n<li>SIGN_PAGING_SEAL : 骑缝章</li>\n<li>SIGN_LEGAL_PERSON_SEAL : 法定代表人章</li>\n<li>SIGN_APPROVE : 签批</li>\n<li>SIGN_OPINION : 签署意见</li>\n<li>SIGN_PAGING_SIGNATURE : 手写签名骑缝控件</li>\n<li>BUSI-FULL-NAME : 企业全称</li>\n<li>BUSI-CREDIT-CODE : 统一社会信用代码</li>\n<li>BUSI-LEGAL-NAME : 法人/经营者姓名</li>\n<li>PERSONAL-NAME : 签署人姓名</li>\n<li>PERSONAL-MOBILE : 签署人手机号</li>\n<li>PERSONAL-IDCARD-TYPE : 签署人证件类型</li>\n<li>PERSONAL-IDCARD : 签署人证件号</li>\n<li>TEXT : 单行文本</li>\n<li>MULTI_LINE_TEXT : 多行文本</li>\n<li>CHECK_BOX : 勾选框</li>\n<li>SELECTOR : 选择器</li>\n<li>DIGIT : 数字</li>\n<li>DATE : 日期</li>\n<li>FILL_IMAGE : 图片</li>\n<li>ATTACHMENT : 附件</li>\n<li>EMAIL : 邮箱</li>\n<li>LOCATION : 地址</li>\n<li>EDUCATION : 学历</li>\n<li>GENDER : 性别</li>\n<li>DISTRICT : 省市区</li></ul>",
4672
4672
  "example": "[\"MULTI_LINE_TEXT\"]",
4673
4673
  "member": "string",
4674
4674
  "name": "ShowComponentTypes",
@@ -6426,7 +6426,7 @@
6426
6426
  },
6427
6427
  {
6428
6428
  "disabled": false,
6429
- "document": "**web嵌入发起合同场景下**,是否禁止移动和删除填写和签署控件\n<ul><li> <b>false(默认)</b> :不禁止移动和删除控件</li>\n<li> <b>true</b> : 可以移动和删除控件</li></ul>",
6429
+ "document": "**web嵌入发起合同场景下**,是否禁止移动和删除填写和签署控件\n<ul><li> <b>false(默认)</b> :可以移动和删除控件</li>\n<li> <b>true</b> : 禁止移动和删除控件</li></ul>",
6430
6430
  "example": "false",
6431
6431
  "member": "bool",
6432
6432
  "name": "ForbidMoveAndDelete",
@@ -693,6 +693,58 @@ def doDescribeAndroidInstanceTasksStatus(args, parsed_globals):
693
693
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
694
 
695
695
 
696
+ def doDistributeFileToAndroidInstances(args, parsed_globals):
697
+ g_param = parse_global_arg(parsed_globals)
698
+
699
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
700
+ cred = credential.CVMRoleCredential()
701
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
702
+ cred = credential.STSAssumeRoleCredential(
703
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
704
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
705
+ )
706
+ 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):
707
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
708
+ else:
709
+ cred = credential.Credential(
710
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
711
+ )
712
+ http_profile = HttpProfile(
713
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
714
+ reqMethod="POST",
715
+ endpoint=g_param[OptionsDefine.Endpoint],
716
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
717
+ )
718
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
719
+ if g_param[OptionsDefine.Language]:
720
+ profile.language = g_param[OptionsDefine.Language]
721
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
722
+ client = mod.GsClient(cred, g_param[OptionsDefine.Region], profile)
723
+ client._sdkVersion += ("_CLI_" + __version__)
724
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
+ model = models.DistributeFileToAndroidInstancesRequest()
726
+ model.from_json_string(json.dumps(args))
727
+ start_time = time.time()
728
+ while True:
729
+ rsp = client.DistributeFileToAndroidInstances(model)
730
+ result = rsp.to_json_string()
731
+ try:
732
+ json_obj = json.loads(result)
733
+ except TypeError as e:
734
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
735
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
736
+ break
737
+ cur_time = time.time()
738
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
739
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
740
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
741
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
742
+ else:
743
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
744
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
745
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
+
747
+
696
748
  def doTrylockWorker(args, parsed_globals):
697
749
  g_param = parse_global_arg(parsed_globals)
698
750
 
@@ -1317,6 +1369,58 @@ def doDescribeAndroidInstances(args, parsed_globals):
1317
1369
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
1370
 
1319
1371
 
1372
+ def doUploadFilesToAndroidInstances(args, parsed_globals):
1373
+ g_param = parse_global_arg(parsed_globals)
1374
+
1375
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1376
+ cred = credential.CVMRoleCredential()
1377
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1378
+ cred = credential.STSAssumeRoleCredential(
1379
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1380
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1381
+ )
1382
+ 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):
1383
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1384
+ else:
1385
+ cred = credential.Credential(
1386
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1387
+ )
1388
+ http_profile = HttpProfile(
1389
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1390
+ reqMethod="POST",
1391
+ endpoint=g_param[OptionsDefine.Endpoint],
1392
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1393
+ )
1394
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1395
+ if g_param[OptionsDefine.Language]:
1396
+ profile.language = g_param[OptionsDefine.Language]
1397
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1398
+ client = mod.GsClient(cred, g_param[OptionsDefine.Region], profile)
1399
+ client._sdkVersion += ("_CLI_" + __version__)
1400
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
+ model = models.UploadFilesToAndroidInstancesRequest()
1402
+ model.from_json_string(json.dumps(args))
1403
+ start_time = time.time()
1404
+ while True:
1405
+ rsp = client.UploadFilesToAndroidInstances(model)
1406
+ result = rsp.to_json_string()
1407
+ try:
1408
+ json_obj = json.loads(result)
1409
+ except TypeError as e:
1410
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1411
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1412
+ break
1413
+ cur_time = time.time()
1414
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1415
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1416
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1417
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1418
+ else:
1419
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1420
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1421
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
+
1423
+
1320
1424
  def doResetAndroidInstances(args, parsed_globals):
1321
1425
  g_param = parse_global_arg(parsed_globals)
1322
1426
 
@@ -2953,6 +3057,7 @@ ACTION_MAP = {
2953
3057
  "ModifyAndroidInstancesInformation": doModifyAndroidInstancesInformation,
2954
3058
  "DeleteAndroidInstanceImages": doDeleteAndroidInstanceImages,
2955
3059
  "DescribeAndroidInstanceTasksStatus": doDescribeAndroidInstanceTasksStatus,
3060
+ "DistributeFileToAndroidInstances": doDistributeFileToAndroidInstances,
2956
3061
  "TrylockWorker": doTrylockWorker,
2957
3062
  "DescribeAndroidInstanceImages": doDescribeAndroidInstanceImages,
2958
3063
  "StartAndroidInstancesApp": doStartAndroidInstancesApp,
@@ -2965,6 +3070,7 @@ ACTION_MAP = {
2965
3070
  "CreateAndroidInstanceWebShell": doCreateAndroidInstanceWebShell,
2966
3071
  "StartPublishStream": doStartPublishStream,
2967
3072
  "DescribeAndroidInstances": doDescribeAndroidInstances,
3073
+ "UploadFilesToAndroidInstances": doUploadFilesToAndroidInstances,
2968
3074
  "ResetAndroidInstances": doResetAndroidInstances,
2969
3075
  "RebootAndroidInstances": doRebootAndroidInstances,
2970
3076
  "ModifyAndroidInstanceInformation": doModifyAndroidInstanceInformation,