tccli 3.0.1363.1__py2.py3-none-any.whl → 3.0.1364.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 (31) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/bi/v20220105/api.json +97 -5
  3. tccli/services/bi/v20220105/examples.json +5 -5
  4. tccli/services/cam/cam_client.py +61 -8
  5. tccli/services/cam/v20190116/api.json +96 -0
  6. tccli/services/cam/v20190116/examples.json +8 -0
  7. tccli/services/cdb/v20170320/api.json +35 -35
  8. tccli/services/cdb/v20170320/examples.json +3 -3
  9. tccli/services/cfs/cfs_client.py +817 -128
  10. tccli/services/cfs/v20190719/api.json +2241 -833
  11. tccli/services/cfs/v20190719/examples.json +104 -0
  12. tccli/services/clb/v20180317/api.json +29 -9
  13. tccli/services/cls/v20201016/api.json +59 -59
  14. tccli/services/cls/v20201016/examples.json +3 -3
  15. tccli/services/ctem/v20231128/api.json +331 -97
  16. tccli/services/ctem/v20231128/examples.json +8 -8
  17. tccli/services/kms/v20190118/api.json +2 -2
  18. tccli/services/live/v20180801/api.json +1 -1
  19. tccli/services/lowcode/lowcode_client.py +212 -0
  20. tccli/services/lowcode/v20210108/api.json +239 -0
  21. tccli/services/lowcode/v20210108/examples.json +32 -0
  22. tccli/services/ssl/v20191205/api.json +35 -25
  23. tccli/services/teo/v20220901/api.json +21 -1
  24. tccli/services/wedata/v20210820/api.json +191 -11
  25. tccli/services/wedata/v20210820/examples.json +10 -2
  26. tccli/services/wedata/wedata_client.py +53 -0
  27. {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/METADATA +2 -2
  28. {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/RECORD +31 -31
  29. {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/WHEEL +0 -0
  30. {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/entry_points.txt +0 -0
  31. {tccli-3.0.1363.1.dist-info → tccli-3.0.1364.1.dist-info}/license_files/LICENSE +0 -0
@@ -114,10 +114,10 @@
114
114
  ],
115
115
  "DescribeHttps": [
116
116
  {
117
- "document": "查看http数据",
118
- "input": "POST / HTTP/1.1\nHost: ctem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeHttps\n<公共请求参数>\n\n{}",
119
- "output": "{\n \"Response\": {\n \"List\": [\n {\n \"Api\": \"\",\n \"Code\": 200,\n \"Content\": \"\",\n \"ContentLength\": 0,\n \"DisplayToolCommon\": {\n \"CreateAt\": \"2024-06-06 17:15:10\",\n \"CustomerId\": 100081,\n \"CustomerName\": \"5555\",\n \"Detail\": \"\",\n \"EnterpriseName\": \"\",\n \"EnterpriseUid\": \"\",\n \"Ignored\": false,\n \"JobId\": 0,\n \"JobRecordId\": 0,\n \"JobStageId\": 0,\n \"Md5\": \"1879dc192f156097b5511fbf9b1bd145\",\n \"UpdateAt\": \"2024-06-06 17:15:10\"\n },\n \"Id\": 3248,\n \"Ip\": \"1.1.1.1\",\n \"ScreenshotThumbUrl\": \"\",\n \"ScreenshotUrl\": \"\",\n \"Ssl\": \"\",\n \"SslExpiredTime\": \"\",\n \"Title\": \"test\",\n \"Url\": \"a.test.com\"\n }\n ],\n \"RequestId\": \"f1935acd-4fcf-4972-9b9c-82d4661c2347\",\n \"Total\": 1\n }\n}",
120
- "title": "查看http数据"
117
+ "document": "查询网站资产",
118
+ "input": "POST / HTTP/1.1\nHost: ctem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeHttps\n<公共请求参数>\n\n{\n \"CustomerIdList\": [\n 100275\n ]\n}",
119
+ "output": "{\n \"Response\": {\n \"List\": [],\n \"RequestId\": \"b36ee1c7-f40e-4f17-8db7-6e14ee8ea556\",\n \"Total\": 0\n }\n}",
120
+ "title": "查询网站资产"
121
121
  }
122
122
  ],
123
123
  "DescribeJobRecordDetails": [
@@ -250,10 +250,10 @@
250
250
  ],
251
251
  "ModifyLabel": [
252
252
  {
253
- "document": "编辑标签",
254
- "input": "POST / HTTP/1.1\nHost: ctem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyLabel\n<公共请求参数>\n\n{\n \"Id\": 8706,\n \"CustomerId\": 100162,\n \"Module\": \"asset\",\n \"Labels\": \"{\\\"user_input_123\\\":[\\\"测试\\\"]}\"\n}",
255
- "output": "{\n \"Response\": {\n \"RequestId\": \"fe8d21e4-73e7-425a-aebf-4a97396af03b\"\n }\n}",
256
- "title": "编辑标签"
253
+ "document": "修改标签",
254
+ "input": "POST / HTTP/1.1\nHost: ctem.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyLabel\n<公共请求参数>\n\n{\n \"Module\": \"asset\",\n \"CustomerIdList\": [\n 100275\n ],\n \"Labels\": \"{}\",\n \"Ids\": [\n 10097\n ]\n}",
255
+ "output": "{\n \"Response\": {\n \"RequestId\": \"24b299a2-e517-4225-bdc8-b7c16b5626fd\"\n }\n}",
256
+ "title": "修改标签"
257
257
  }
258
258
  ],
259
259
  "StopJobRecord": [
@@ -827,7 +827,7 @@
827
827
  },
828
828
  {
829
829
  "disabled": false,
830
- "document": "指定key的用途,默认为 \"ENCRYPT_DECRYPT\" 表示创建对称加解密密钥,其它支持用途 “ASYMMETRIC_DECRYPT_RSA_2048” 表示创建用于加解密的RSA2048非对称密钥,“ASYMMETRIC_DECRYPT_SM2” 表示创建用于加解密的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_SM2” 表示创建用于签名验签的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECC” 表示创建用于签名验签的ECC非对称密钥,“ASYMMETRIC_SIGN_VERIFY_RSA_2048” 表示创建用于签名验签的RSA_2048非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECDSA384”表示创建用于签名验签的 ECDSA384 非对称秘钥。完整的秘钥用途与算法支持列表可通过 ListAlgorithms 接口获取。",
830
+ "document": "指定key的用途,默认为 \"ENCRYPT_DECRYPT\" 表示创建对称加解密密钥,其它支持用途 “ASYMMETRIC_DECRYPT_RSA_2048” 表示创建用于加解密的RSA2048非对称密钥,“ASYMMETRIC_DECRYPT_SM2” 表示创建用于加解密的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_SM2” 表示创建用于签名验签的SM2非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECC” 表示创建用于签名验签的ECC非对称密钥,“ASYMMETRIC_SIGN_VERIFY_RSA_2048” 表示创建用于签名验签的RSA_2048非对称密钥,“ASYMMETRIC_SIGN_VERIFY_ECDSA384”表示创建用于签名验签的 ECDSA384 非对称密钥。完整的密钥用途与算法支持列表可通过 ListAlgorithms 接口获取。",
831
831
  "example": "ENCRYPT_DECRYPT",
832
832
  "member": "string",
833
833
  "name": "KeyUsage",
@@ -1516,7 +1516,7 @@
1516
1516
  {
1517
1517
  "disabled": false,
1518
1518
  "document": "密钥属性信息",
1519
- "example": "{\"Alias\":\"test11lzc\",\"CreateTime\":1730357927,\"CreatorUin\":700001224419,\"DeletionDate\":0,\"Description\":\"倒入外部密钥\",\"HsmClusterId\":\"\",\"KeyId\":\"93866e69-9755-11ef-8e65-52540089bc41\",\"KeyRotationEnabled\":false}",
1519
+ "example": "",
1520
1520
  "member": "KeyMetadata",
1521
1521
  "name": "KeyMetadata",
1522
1522
  "output_required": true,
@@ -6473,7 +6473,7 @@
6473
6473
  },
6474
6474
  {
6475
6475
  "disabled": false,
6476
- "document": "关键帧间隔,单位:秒。\n默认原始的间隔\n范围2-6",
6476
+ "document": "关键帧间隔,单位:秒。\n默认原始的间隔\n范围1-6",
6477
6477
  "example": "2",
6478
6478
  "member": "int64",
6479
6479
  "name": "Gop",
@@ -69,6 +69,58 @@ def doCreateKnowledgeSet(args, parsed_globals):
69
69
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
70
 
71
71
 
72
+ def doCheckDeployApp(args, parsed_globals):
73
+ g_param = parse_global_arg(parsed_globals)
74
+
75
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
76
+ cred = credential.CVMRoleCredential()
77
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
78
+ cred = credential.STSAssumeRoleCredential(
79
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
80
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
81
+ )
82
+ 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):
83
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
84
+ else:
85
+ cred = credential.Credential(
86
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
87
+ )
88
+ http_profile = HttpProfile(
89
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
90
+ reqMethod="POST",
91
+ endpoint=g_param[OptionsDefine.Endpoint],
92
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
93
+ )
94
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
95
+ if g_param[OptionsDefine.Language]:
96
+ profile.language = g_param[OptionsDefine.Language]
97
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
98
+ client = mod.LowcodeClient(cred, g_param[OptionsDefine.Region], profile)
99
+ client._sdkVersion += ("_CLI_" + __version__)
100
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
+ model = models.CheckDeployAppRequest()
102
+ model.from_json_string(json.dumps(args))
103
+ start_time = time.time()
104
+ while True:
105
+ rsp = client.CheckDeployApp(model)
106
+ result = rsp.to_json_string()
107
+ try:
108
+ json_obj = json.loads(result)
109
+ except TypeError as e:
110
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
111
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
112
+ break
113
+ cur_time = time.time()
114
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
115
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
116
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
117
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
118
+ else:
119
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
120
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
121
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
+
123
+
72
124
  def doUpdateKnowledgeSet(args, parsed_globals):
73
125
  g_param = parse_global_arg(parsed_globals)
74
126
 
@@ -433,6 +485,58 @@ def doUploadKnowledgeDocumentSet(args, parsed_globals):
433
485
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
486
 
435
487
 
488
+ def doDeleteAppBindWxApp(args, parsed_globals):
489
+ g_param = parse_global_arg(parsed_globals)
490
+
491
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
492
+ cred = credential.CVMRoleCredential()
493
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
494
+ cred = credential.STSAssumeRoleCredential(
495
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
496
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
497
+ )
498
+ 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):
499
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
500
+ else:
501
+ cred = credential.Credential(
502
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
503
+ )
504
+ http_profile = HttpProfile(
505
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
506
+ reqMethod="POST",
507
+ endpoint=g_param[OptionsDefine.Endpoint],
508
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
509
+ )
510
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
511
+ if g_param[OptionsDefine.Language]:
512
+ profile.language = g_param[OptionsDefine.Language]
513
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
514
+ client = mod.LowcodeClient(cred, g_param[OptionsDefine.Region], profile)
515
+ client._sdkVersion += ("_CLI_" + __version__)
516
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
517
+ model = models.DeleteAppBindWxAppRequest()
518
+ model.from_json_string(json.dumps(args))
519
+ start_time = time.time()
520
+ while True:
521
+ rsp = client.DeleteAppBindWxApp(model)
522
+ result = rsp.to_json_string()
523
+ try:
524
+ json_obj = json.loads(result)
525
+ except TypeError as e:
526
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
527
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
528
+ break
529
+ cur_time = time.time()
530
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
531
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
532
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
533
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
534
+ else:
535
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
536
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
537
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
+
539
+
436
540
  def doDescribeKnowledgeDocumentSetList(args, parsed_globals):
437
541
  g_param = parse_global_arg(parsed_globals)
438
542
 
@@ -485,6 +589,110 @@ def doDescribeKnowledgeDocumentSetList(args, parsed_globals):
485
589
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
590
 
487
591
 
592
+ def doDeployApp(args, parsed_globals):
593
+ g_param = parse_global_arg(parsed_globals)
594
+
595
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
596
+ cred = credential.CVMRoleCredential()
597
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
598
+ cred = credential.STSAssumeRoleCredential(
599
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
600
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
601
+ )
602
+ 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):
603
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
604
+ else:
605
+ cred = credential.Credential(
606
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
607
+ )
608
+ http_profile = HttpProfile(
609
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
610
+ reqMethod="POST",
611
+ endpoint=g_param[OptionsDefine.Endpoint],
612
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
613
+ )
614
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
615
+ if g_param[OptionsDefine.Language]:
616
+ profile.language = g_param[OptionsDefine.Language]
617
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
618
+ client = mod.LowcodeClient(cred, g_param[OptionsDefine.Region], profile)
619
+ client._sdkVersion += ("_CLI_" + __version__)
620
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
621
+ model = models.DeployAppRequest()
622
+ model.from_json_string(json.dumps(args))
623
+ start_time = time.time()
624
+ while True:
625
+ rsp = client.DeployApp(model)
626
+ result = rsp.to_json_string()
627
+ try:
628
+ json_obj = json.loads(result)
629
+ except TypeError as e:
630
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
631
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
632
+ break
633
+ cur_time = time.time()
634
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
635
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
636
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
637
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
638
+ else:
639
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
640
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
641
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
+
643
+
644
+ def doPutWxAppIdToWeApp(args, parsed_globals):
645
+ g_param = parse_global_arg(parsed_globals)
646
+
647
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
648
+ cred = credential.CVMRoleCredential()
649
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
650
+ cred = credential.STSAssumeRoleCredential(
651
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
652
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
653
+ )
654
+ 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):
655
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
656
+ else:
657
+ cred = credential.Credential(
658
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
659
+ )
660
+ http_profile = HttpProfile(
661
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
662
+ reqMethod="POST",
663
+ endpoint=g_param[OptionsDefine.Endpoint],
664
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
665
+ )
666
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
667
+ if g_param[OptionsDefine.Language]:
668
+ profile.language = g_param[OptionsDefine.Language]
669
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
670
+ client = mod.LowcodeClient(cred, g_param[OptionsDefine.Region], profile)
671
+ client._sdkVersion += ("_CLI_" + __version__)
672
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
+ model = models.PutWxAppIdToWeAppRequest()
674
+ model.from_json_string(json.dumps(args))
675
+ start_time = time.time()
676
+ while True:
677
+ rsp = client.PutWxAppIdToWeApp(model)
678
+ result = rsp.to_json_string()
679
+ try:
680
+ json_obj = json.loads(result)
681
+ except TypeError as e:
682
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
683
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
684
+ break
685
+ cur_time = time.time()
686
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
687
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
688
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
689
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
690
+ else:
691
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
692
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
693
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
+
695
+
488
696
  def doDeleteKnowledgeSet(args, parsed_globals):
489
697
  g_param = parse_global_arg(parsed_globals)
490
698
 
@@ -549,6 +757,7 @@ MODELS_MAP = {
549
757
 
550
758
  ACTION_MAP = {
551
759
  "CreateKnowledgeSet": doCreateKnowledgeSet,
760
+ "CheckDeployApp": doCheckDeployApp,
552
761
  "UpdateKnowledgeSet": doUpdateKnowledgeSet,
553
762
  "SearchDocList": doSearchDocList,
554
763
  "DescribeKnowledgeSetList": doDescribeKnowledgeSetList,
@@ -556,7 +765,10 @@ ACTION_MAP = {
556
765
  "DeleteKnowledgeDocumentSet": doDeleteKnowledgeDocumentSet,
557
766
  "DescribeKnowledgeDocumentSetDetail": doDescribeKnowledgeDocumentSetDetail,
558
767
  "UploadKnowledgeDocumentSet": doUploadKnowledgeDocumentSet,
768
+ "DeleteAppBindWxApp": doDeleteAppBindWxApp,
559
769
  "DescribeKnowledgeDocumentSetList": doDescribeKnowledgeDocumentSetList,
770
+ "DeployApp": doDeployApp,
771
+ "PutWxAppIdToWeApp": doPutWxAppIdToWeApp,
560
772
  "DeleteKnowledgeSet": doDeleteKnowledgeSet,
561
773
 
562
774
  }
@@ -1,5 +1,12 @@
1
1
  {
2
2
  "actions": {
3
+ "CheckDeployApp": {
4
+ "document": "检查应用发布状态",
5
+ "input": "CheckDeployAppRequest",
6
+ "name": "检查应用发布状态",
7
+ "output": "CheckDeployAppResponse",
8
+ "status": "online"
9
+ },
3
10
  "CreateKnowledgeSet": {
4
11
  "document": "创建知识库",
5
12
  "input": "CreateKnowledgeSetRequest",
@@ -7,6 +14,13 @@
7
14
  "output": "CreateKnowledgeSetResponse",
8
15
  "status": "online"
9
16
  },
17
+ "DeleteAppBindWxApp": {
18
+ "document": "删除应用绑定小程序",
19
+ "input": "DeleteAppBindWxAppRequest",
20
+ "name": "删除应用绑定小程序",
21
+ "output": "DeleteAppBindWxAppResponse",
22
+ "status": "online"
23
+ },
10
24
  "DeleteKnowledgeDocumentSet": {
11
25
  "document": "删除知识库下文档",
12
26
  "input": "DeleteKnowledgeDocumentSetRequest",
@@ -21,6 +35,13 @@
21
35
  "output": "DeleteKnowledgeSetResponse",
22
36
  "status": "online"
23
37
  },
38
+ "DeployApp": {
39
+ "document": "发布应用",
40
+ "input": "DeployAppRequest",
41
+ "name": "发布应用",
42
+ "output": "DeployAppResponse",
43
+ "status": "online"
44
+ },
24
45
  "DescribeDataSourceList": {
25
46
  "document": "获取数据源详情列表",
26
47
  "input": "DescribeDataSourceListRequest",
@@ -49,6 +70,13 @@
49
70
  "output": "DescribeKnowledgeSetListResponse",
50
71
  "status": "online"
51
72
  },
73
+ "PutWxAppIdToWeApp": {
74
+ "document": "接口提供应用绑定微信ID功能。",
75
+ "input": "PutWxAppIdToWeAppRequest",
76
+ "name": "应用绑定微信ID",
77
+ "output": "PutWxAppIdToWeAppResponse",
78
+ "status": "online"
79
+ },
52
80
  "SearchDocList": {
53
81
  "document": "知识库文档搜索接口",
54
82
  "input": "SearchDocListRequest",
@@ -78,6 +106,61 @@
78
106
  "serviceShortName": "lowcode"
79
107
  },
80
108
  "objects": {
109
+ "CheckDeployAppRequest": {
110
+ "document": "CheckDeployApp请求参数结构体",
111
+ "members": [
112
+ {
113
+ "disabled": false,
114
+ "document": "环境ID",
115
+ "example": "lowcode-5gzbnlvd93",
116
+ "member": "string",
117
+ "name": "EnvId",
118
+ "required": true,
119
+ "type": "string"
120
+ },
121
+ {
122
+ "disabled": false,
123
+ "document": "应用id",
124
+ "example": "app-k82WCPM8",
125
+ "member": "string",
126
+ "name": "Id",
127
+ "required": true,
128
+ "type": "string"
129
+ },
130
+ {
131
+ "disabled": false,
132
+ "document": "构建 Id",
133
+ "example": "4f12-b62b-c1c6f403d6e1",
134
+ "member": "string",
135
+ "name": "BuildId",
136
+ "required": true,
137
+ "type": "string"
138
+ }
139
+ ],
140
+ "type": "object"
141
+ },
142
+ "CheckDeployAppResponse": {
143
+ "document": "CheckDeployApp返回参数结构体",
144
+ "members": [
145
+ {
146
+ "disabled": false,
147
+ "document": "状态:success、building、reviewFail、releaseSuccess、underReview",
148
+ "example": "building",
149
+ "member": "string",
150
+ "name": "Status",
151
+ "output_required": false,
152
+ "type": "string",
153
+ "value_allowed_null": false
154
+ },
155
+ {
156
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
157
+ "member": "string",
158
+ "name": "RequestId",
159
+ "type": "string"
160
+ }
161
+ ],
162
+ "type": "object"
163
+ },
81
164
  "CreateKnowledgeSetRequest": {
82
165
  "document": "CreateKnowledgeSet请求参数结构体",
83
166
  "members": [
@@ -643,6 +726,33 @@
643
726
  ],
644
727
  "usage": "in"
645
728
  },
729
+ "DeleteAppBindWxAppRequest": {
730
+ "document": "DeleteAppBindWxApp请求参数结构体",
731
+ "members": [
732
+ {
733
+ "disabled": false,
734
+ "document": "应用id",
735
+ "example": "app-dfa",
736
+ "member": "string",
737
+ "name": "WeappId",
738
+ "required": true,
739
+ "type": "string"
740
+ }
741
+ ],
742
+ "type": "object"
743
+ },
744
+ "DeleteAppBindWxAppResponse": {
745
+ "document": "DeleteAppBindWxApp返回参数结构体",
746
+ "members": [
747
+ {
748
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
749
+ "member": "string",
750
+ "name": "RequestId",
751
+ "type": "string"
752
+ }
753
+ ],
754
+ "type": "object"
755
+ },
646
756
  "DeleteKnowledgeDocumentSetRequest": {
647
757
  "document": "DeleteKnowledgeDocumentSet请求参数结构体",
648
758
  "members": [
@@ -750,6 +860,99 @@
750
860
  ],
751
861
  "type": "object"
752
862
  },
863
+ "DeployAppRequest": {
864
+ "document": "DeployApp请求参数结构体",
865
+ "members": [
866
+ {
867
+ "disabled": false,
868
+ "document": "环境ID",
869
+ "example": "lowcode-5gzbnlvd93",
870
+ "member": "string",
871
+ "name": "EnvId",
872
+ "required": true,
873
+ "type": "string"
874
+ },
875
+ {
876
+ "disabled": false,
877
+ "document": "应用id",
878
+ "example": "app-k82WCPM8",
879
+ "member": "string",
880
+ "name": "Id",
881
+ "required": true,
882
+ "type": "string"
883
+ },
884
+ {
885
+ "disabled": false,
886
+ "document": "发布体验preview/正式upload",
887
+ "example": "upload",
888
+ "member": "string",
889
+ "name": "Mode",
890
+ "required": false,
891
+ "type": "string"
892
+ },
893
+ {
894
+ "disabled": false,
895
+ "document": "构建类型:mp、pc、web、adminPortal",
896
+ "example": "web",
897
+ "member": "string",
898
+ "name": "BuildType",
899
+ "required": false,
900
+ "type": "string"
901
+ },
902
+ {
903
+ "disabled": false,
904
+ "document": "子包数组",
905
+ "example": "[\"sub-7x28cST\"]",
906
+ "member": "string",
907
+ "name": "SubAppIds",
908
+ "required": false,
909
+ "type": "list"
910
+ }
911
+ ],
912
+ "type": "object"
913
+ },
914
+ "DeployAppResponse": {
915
+ "document": "DeployApp返回参数结构体",
916
+ "members": [
917
+ {
918
+ "disabled": false,
919
+ "document": "构建id",
920
+ "example": "bcad608f-9293-4f12-b62b",
921
+ "member": "string",
922
+ "name": "BuildId",
923
+ "output_required": false,
924
+ "type": "string",
925
+ "value_allowed_null": false
926
+ },
927
+ {
928
+ "disabled": false,
929
+ "document": "发布错误code",
930
+ "example": "0",
931
+ "member": "uint64",
932
+ "name": "DeployErrCode",
933
+ "output_required": false,
934
+ "type": "int",
935
+ "value_allowed_null": false
936
+ },
937
+ {
938
+ "disabled": false,
939
+ "document": "发布错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
940
+ "example": "发布错误",
941
+ "member": "string",
942
+ "name": "DeployErrMsg",
943
+ "output_required": false,
944
+ "type": "string",
945
+ "value_allowed_null": true
946
+ },
947
+ {
948
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
949
+ "member": "string",
950
+ "name": "RequestId",
951
+ "type": "string"
952
+ }
953
+ ],
954
+ "type": "object"
955
+ },
753
956
  "DescribeDataSourceListRequest": {
754
957
  "document": "DescribeDataSourceList请求参数结构体",
755
958
  "members": [
@@ -1636,6 +1839,42 @@
1636
1839
  ],
1637
1840
  "usage": "in"
1638
1841
  },
1842
+ "PutWxAppIdToWeAppRequest": {
1843
+ "document": "PutWxAppIdToWeApp请求参数结构体",
1844
+ "members": [
1845
+ {
1846
+ "disabled": false,
1847
+ "document": "应用ID",
1848
+ "example": "app-xxx",
1849
+ "member": "string",
1850
+ "name": "WeAppId",
1851
+ "required": true,
1852
+ "type": "string"
1853
+ },
1854
+ {
1855
+ "disabled": false,
1856
+ "document": "微信AppId",
1857
+ "example": "无",
1858
+ "member": "string",
1859
+ "name": "WxAppId",
1860
+ "required": true,
1861
+ "type": "string"
1862
+ }
1863
+ ],
1864
+ "type": "object"
1865
+ },
1866
+ "PutWxAppIdToWeAppResponse": {
1867
+ "document": "PutWxAppIdToWeApp返回参数结构体",
1868
+ "members": [
1869
+ {
1870
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
1871
+ "member": "string",
1872
+ "name": "RequestId",
1873
+ "type": "string"
1874
+ }
1875
+ ],
1876
+ "type": "object"
1877
+ },
1639
1878
  "QureyKnowledgeDocumentSet": {
1640
1879
  "document": "搜索数据的集合",
1641
1880
  "members": [
@@ -1,5 +1,13 @@
1
1
  {
2
2
  "actions": {
3
+ "CheckDeployApp": [
4
+ {
5
+ "document": "",
6
+ "input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckDeployApp\n<公共请求参数>\n\n\n\n{\n \"EnvId\": \"lowcode-5gzbnlvd9\",\n \"Id\": \"app-k82WCPM\",\n \"BuildId\": \"b62b-c1c6f403d6e1\"\n}",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b722653b-c49a-46bd-8ff0-6d8ba61a37d1\",\n \"Status\": \"building\"\n }\n}",
8
+ "title": "检查应用发布状态"
9
+ }
10
+ ],
3
11
  "CreateKnowledgeSet": [
4
12
  {
5
13
  "document": "创建微搭知识库",
@@ -8,6 +16,14 @@
8
16
  "title": "创建知识库"
9
17
  }
10
18
  ],
19
+ "DeleteAppBindWxApp": [
20
+ {
21
+ "document": "",
22
+ "input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteAppBindWxApp\n<公共请求参数>\n\n{\n \"WeappId\": \"字符串\"\n}",
23
+ "output": "{\n \"Response\": {\n \"RequestId\": \"e0b18129-45b8-4fc5-99ee-721d5ba79fcc\"\n }\n}",
24
+ "title": "t1"
25
+ }
26
+ ],
11
27
  "DeleteKnowledgeDocumentSet": [
12
28
  {
13
29
  "document": "删除知识库下文档",
@@ -24,6 +40,14 @@
24
40
  "title": "删除知识库"
25
41
  }
26
42
  ],
43
+ "DeployApp": [
44
+ {
45
+ "document": "",
46
+ "input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeployApp\n<公共请求参数>\n\n\n\n{\n \"BuildType\": \"web\",\n \"Id\": \"app-k82WCM8\",\n \"Mode\": \"upload\",\n \"EnvId\": \"lowcode-5gzbnlv393348d\",\n \"SubAppIds\": [\n \"sub-7x2cST\"\n ]\n}",
47
+ "output": "{\n \"Response\": {\n \"BuildId\": \"bcad608f-962b-c1c6f403d6e1\",\n \"DeployErrCode\": 0,\n \"DeployErrMsg\": \"\",\n \"RequestId\": \"1cfaee37-93e8c08c47d\"\n }\n}",
48
+ "title": "发布应用"
49
+ }
50
+ ],
27
51
  "DescribeDataSourceList": [
28
52
  {
29
53
  "document": "查询数据源列表",
@@ -56,6 +80,14 @@
56
80
  "title": "查询环境下的知识库列表"
57
81
  }
58
82
  ],
83
+ "PutWxAppIdToWeApp": [
84
+ {
85
+ "document": "请求成功成功",
86
+ "input": "POST / HTTP/1.1\nHost: lowcode.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PutWxAppIdToWeApp\n<公共请求参数>\n\n{\n \"WeAppId\": \"app-xxx\",\n \"WxAppId\": \"wxappidinfo1\"\n}",
87
+ "output": "{\n \"Response\": {\n \"RequestId\": \"03178f\"\n }\n}",
88
+ "title": "应用绑定微信ID"
89
+ }
90
+ ],
59
91
  "SearchDocList": [
60
92
  {
61
93
  "document": "根据关键字搜索知识库文档",