tccli 3.0.1132.1__py2.py3-none-any.whl → 3.0.1133.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 (52) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +1 -0
  3. tccli/services/apm/v20210622/examples.json +1 -1
  4. tccli/services/cdwch/v20200915/api.json +9 -9
  5. tccli/services/cdwch/v20200915/examples.json +1 -1
  6. tccli/services/cdwdoris/v20211228/api.json +18 -0
  7. tccli/services/cfw/v20190904/api.json +4 -4
  8. tccli/services/ckafka/v20190819/api.json +130 -74
  9. tccli/services/ckafka/v20190819/examples.json +17 -17
  10. tccli/services/cms/v20190321/api.json +2 -0
  11. tccli/services/cms/v20190321/examples.json +1 -1
  12. tccli/services/csip/v20221121/api.json +137 -42
  13. tccli/services/csip/v20221121/examples.json +4 -4
  14. tccli/services/cynosdb/v20190107/api.json +340 -0
  15. tccli/services/dlc/dlc_client.py +53 -0
  16. tccli/services/dlc/v20210125/api.json +34 -0
  17. tccli/services/dlc/v20210125/examples.json +8 -0
  18. tccli/services/dsgc/v20190723/api.json +20 -18
  19. tccli/services/dsgc/v20190723/examples.json +5 -5
  20. tccli/services/eb/v20210416/examples.json +1 -1
  21. tccli/services/emr/v20190103/api.json +1 -1
  22. tccli/services/essbasic/v20210526/api.json +2 -2
  23. tccli/services/gaap/v20180529/api.json +1 -1
  24. tccli/services/gaap/v20180529/examples.json +0 -6
  25. tccli/services/iecp/v20210914/api.json +40 -40
  26. tccli/services/ims/v20201229/api.json +2 -2
  27. tccli/services/lke/lke_client.py +171 -12
  28. tccli/services/lke/v20231130/api.json +524 -0
  29. tccli/services/lke/v20231130/examples.json +24 -0
  30. tccli/services/monitor/v20180724/api.json +47 -19
  31. tccli/services/monitor/v20180724/examples.json +4 -4
  32. tccli/services/pts/v20210728/api.json +1 -1
  33. tccli/services/pts/v20210728/examples.json +1 -1
  34. tccli/services/rum/v20210622/api.json +2 -0
  35. tccli/services/rum/v20210622/examples.json +1 -1
  36. tccli/services/sms/v20210111/api.json +26 -26
  37. tccli/services/tcr/v20190924/api.json +13 -10
  38. tccli/services/tcr/v20190924/examples.json +2 -2
  39. tccli/services/tke/tke_client.py +53 -0
  40. tccli/services/tke/v20180525/api.json +227 -41
  41. tccli/services/tke/v20180525/examples.json +26 -0
  42. tccli/services/tse/v20201207/api.json +13 -2
  43. tccli/services/tsf/v20180326/api.json +10 -8
  44. tccli/services/tsf/v20180326/examples.json +3 -3
  45. tccli/services/waf/v20180125/api.json +65 -9
  46. tccli/services/waf/v20180125/examples.json +1 -1
  47. tccli/services/wedata/v20210820/api.json +30 -19
  48. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/METADATA +2 -2
  49. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/RECORD +52 -52
  50. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/WHEEL +0 -0
  51. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/entry_points.txt +0 -0
  52. {tccli-3.0.1132.1.dist-info → tccli-3.0.1133.1.dist-info}/license_files/LICENSE +0 -0
@@ -537,6 +537,58 @@ def doDeleteRejectedQuestion(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
+ def doGetReconstructDocumentResult(args, parsed_globals):
541
+ g_param = parse_global_arg(parsed_globals)
542
+
543
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
544
+ cred = credential.CVMRoleCredential()
545
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
546
+ cred = credential.STSAssumeRoleCredential(
547
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
548
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
549
+ )
550
+ 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):
551
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
552
+ else:
553
+ cred = credential.Credential(
554
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
555
+ )
556
+ http_profile = HttpProfile(
557
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
558
+ reqMethod="POST",
559
+ endpoint=g_param[OptionsDefine.Endpoint],
560
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
561
+ )
562
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
563
+ if g_param[OptionsDefine.Language]:
564
+ profile.language = g_param[OptionsDefine.Language]
565
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
566
+ client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
567
+ client._sdkVersion += ("_CLI_" + __version__)
568
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
+ model = models.GetReconstructDocumentResultRequest()
570
+ model.from_json_string(json.dumps(args))
571
+ start_time = time.time()
572
+ while True:
573
+ rsp = client.GetReconstructDocumentResult(model)
574
+ result = rsp.to_json_string()
575
+ try:
576
+ json_obj = json.loads(result)
577
+ except TypeError as e:
578
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
579
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
580
+ break
581
+ cur_time = time.time()
582
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
583
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
584
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
585
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
586
+ else:
587
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
588
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
589
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
+
591
+
540
592
  def doListSelectDoc(args, parsed_globals):
541
593
  g_param = parse_global_arg(parsed_globals)
542
594
 
@@ -745,7 +797,7 @@ def doModifyDocAttrRange(args, parsed_globals):
745
797
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
798
 
747
799
 
748
- def doListQA(args, parsed_globals):
800
+ def doDescribeStorageCredential(args, parsed_globals):
749
801
  g_param = parse_global_arg(parsed_globals)
750
802
 
751
803
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -774,11 +826,11 @@ def doListQA(args, parsed_globals):
774
826
  client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
775
827
  client._sdkVersion += ("_CLI_" + __version__)
776
828
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
777
- model = models.ListQARequest()
829
+ model = models.DescribeStorageCredentialRequest()
778
830
  model.from_json_string(json.dumps(args))
779
831
  start_time = time.time()
780
832
  while True:
781
- rsp = client.ListQA(model)
833
+ rsp = client.DescribeStorageCredential(model)
782
834
  result = rsp.to_json_string()
783
835
  try:
784
836
  json_obj = json.loads(result)
@@ -1109,7 +1161,7 @@ def doRateMsgRecord(args, parsed_globals):
1109
1161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1110
1162
 
1111
1163
 
1112
- def doDescribeStorageCredential(args, parsed_globals):
1164
+ def doListQA(args, parsed_globals):
1113
1165
  g_param = parse_global_arg(parsed_globals)
1114
1166
 
1115
1167
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1138,11 +1190,11 @@ def doDescribeStorageCredential(args, parsed_globals):
1138
1190
  client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
1139
1191
  client._sdkVersion += ("_CLI_" + __version__)
1140
1192
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1141
- model = models.DescribeStorageCredentialRequest()
1193
+ model = models.ListQARequest()
1142
1194
  model.from_json_string(json.dumps(args))
1143
1195
  start_time = time.time()
1144
1196
  while True:
1145
- rsp = client.DescribeStorageCredential(model)
1197
+ rsp = client.ListQA(model)
1146
1198
  result = rsp.to_json_string()
1147
1199
  try:
1148
1200
  json_obj = json.loads(result)
@@ -1681,6 +1733,58 @@ def doDescribeCorp(args, parsed_globals):
1681
1733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1734
 
1683
1735
 
1736
+ def doCreateQA(args, parsed_globals):
1737
+ g_param = parse_global_arg(parsed_globals)
1738
+
1739
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1740
+ cred = credential.CVMRoleCredential()
1741
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1742
+ cred = credential.STSAssumeRoleCredential(
1743
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1744
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1745
+ )
1746
+ 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):
1747
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1748
+ else:
1749
+ cred = credential.Credential(
1750
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1751
+ )
1752
+ http_profile = HttpProfile(
1753
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1754
+ reqMethod="POST",
1755
+ endpoint=g_param[OptionsDefine.Endpoint],
1756
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1757
+ )
1758
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1759
+ if g_param[OptionsDefine.Language]:
1760
+ profile.language = g_param[OptionsDefine.Language]
1761
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1762
+ client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
1763
+ client._sdkVersion += ("_CLI_" + __version__)
1764
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
+ model = models.CreateQARequest()
1766
+ model.from_json_string(json.dumps(args))
1767
+ start_time = time.time()
1768
+ while True:
1769
+ rsp = client.CreateQA(model)
1770
+ result = rsp.to_json_string()
1771
+ try:
1772
+ json_obj = json.loads(result)
1773
+ except TypeError as e:
1774
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1775
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1776
+ break
1777
+ cur_time = time.time()
1778
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1779
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1780
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1781
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1782
+ else:
1783
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1784
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1785
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1786
+
1787
+
1684
1788
  def doCreateAttributeLabel(args, parsed_globals):
1685
1789
  g_param = parse_global_arg(parsed_globals)
1686
1790
 
@@ -2305,7 +2409,7 @@ def doCreateCorp(args, parsed_globals):
2305
2409
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2306
2410
 
2307
2411
 
2308
- def doCreateQA(args, parsed_globals):
2412
+ def doCreateReconstructDocumentFlow(args, parsed_globals):
2309
2413
  g_param = parse_global_arg(parsed_globals)
2310
2414
 
2311
2415
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2334,11 +2438,11 @@ def doCreateQA(args, parsed_globals):
2334
2438
  client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
2335
2439
  client._sdkVersion += ("_CLI_" + __version__)
2336
2440
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2337
- model = models.CreateQARequest()
2441
+ model = models.CreateReconstructDocumentFlowRequest()
2338
2442
  model.from_json_string(json.dumps(args))
2339
2443
  start_time = time.time()
2340
2444
  while True:
2341
- rsp = client.CreateQA(model)
2445
+ rsp = client.CreateReconstructDocumentFlow(model)
2342
2446
  result = rsp.to_json_string()
2343
2447
  try:
2344
2448
  json_obj = json.loads(result)
@@ -3657,6 +3761,58 @@ def doQueryParseDocResult(args, parsed_globals):
3657
3761
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3658
3762
 
3659
3763
 
3764
+ def doReconstructDocument(args, parsed_globals):
3765
+ g_param = parse_global_arg(parsed_globals)
3766
+
3767
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3768
+ cred = credential.CVMRoleCredential()
3769
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3770
+ cred = credential.STSAssumeRoleCredential(
3771
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3772
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3773
+ )
3774
+ 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):
3775
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3776
+ else:
3777
+ cred = credential.Credential(
3778
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3779
+ )
3780
+ http_profile = HttpProfile(
3781
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3782
+ reqMethod="POST",
3783
+ endpoint=g_param[OptionsDefine.Endpoint],
3784
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3785
+ )
3786
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3787
+ if g_param[OptionsDefine.Language]:
3788
+ profile.language = g_param[OptionsDefine.Language]
3789
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3790
+ client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
3791
+ client._sdkVersion += ("_CLI_" + __version__)
3792
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3793
+ model = models.ReconstructDocumentRequest()
3794
+ model.from_json_string(json.dumps(args))
3795
+ start_time = time.time()
3796
+ while True:
3797
+ rsp = client.ReconstructDocument(model)
3798
+ result = rsp.to_json_string()
3799
+ try:
3800
+ json_obj = json.loads(result)
3801
+ except TypeError as e:
3802
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3803
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3804
+ break
3805
+ cur_time = time.time()
3806
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3807
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3808
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3809
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3810
+ else:
3811
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3812
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3813
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3814
+
3815
+
3660
3816
  def doStopDocParse(args, parsed_globals):
3661
3817
  g_param = parse_global_arg(parsed_globals)
3662
3818
 
@@ -3938,18 +4094,19 @@ ACTION_MAP = {
3938
4094
  "ModifyQAAttrRange": doModifyQAAttrRange,
3939
4095
  "DescribeDoc": doDescribeDoc,
3940
4096
  "DeleteRejectedQuestion": doDeleteRejectedQuestion,
4097
+ "GetReconstructDocumentResult": doGetReconstructDocumentResult,
3941
4098
  "ListSelectDoc": doListSelectDoc,
3942
4099
  "QueryRewrite": doQueryRewrite,
3943
4100
  "DescribeUnsatisfiedReplyContext": doDescribeUnsatisfiedReplyContext,
3944
4101
  "ModifyDocAttrRange": doModifyDocAttrRange,
3945
- "ListQA": doListQA,
4102
+ "DescribeStorageCredential": doDescribeStorageCredential,
3946
4103
  "DeleteDoc": doDeleteDoc,
3947
4104
  "CreateRelease": doCreateRelease,
3948
4105
  "GetEmbedding": doGetEmbedding,
3949
4106
  "GetAppSecret": doGetAppSecret,
3950
4107
  "ModifyAttributeLabel": doModifyAttributeLabel,
3951
4108
  "RateMsgRecord": doRateMsgRecord,
3952
- "DescribeStorageCredential": doDescribeStorageCredential,
4109
+ "ListQA": doListQA,
3953
4110
  "DeleteQA": doDeleteQA,
3954
4111
  "DescribeRobotBizIDByAppKey": doDescribeRobotBizIDByAppKey,
3955
4112
  "ListReleaseQAPreview": doListReleaseQAPreview,
@@ -3960,6 +4117,7 @@ ACTION_MAP = {
3960
4117
  "IgnoreUnsatisfiedReply": doIgnoreUnsatisfiedReply,
3961
4118
  "CheckAttributeLabelRefer": doCheckAttributeLabelRefer,
3962
4119
  "DescribeCorp": doDescribeCorp,
4120
+ "CreateQA": doCreateQA,
3963
4121
  "CreateAttributeLabel": doCreateAttributeLabel,
3964
4122
  "RetryDocAudit": doRetryDocAudit,
3965
4123
  "UploadAttributeLabel": doUploadAttributeLabel,
@@ -3972,7 +4130,7 @@ ACTION_MAP = {
3972
4130
  "DescribeApp": doDescribeApp,
3973
4131
  "RetryDocParse": doRetryDocParse,
3974
4132
  "CreateCorp": doCreateCorp,
3975
- "CreateQA": doCreateQA,
4133
+ "CreateReconstructDocumentFlow": doCreateReconstructDocumentFlow,
3976
4134
  "ExportUnsatisfiedReply": doExportUnsatisfiedReply,
3977
4135
  "ResetSession": doResetSession,
3978
4136
  "ListQACate": doListQACate,
@@ -3998,6 +4156,7 @@ ACTION_MAP = {
3998
4156
  "CreateQACate": doCreateQACate,
3999
4157
  "RetryRelease": doRetryRelease,
4000
4158
  "QueryParseDocResult": doQueryParseDocResult,
4159
+ "ReconstructDocument": doReconstructDocument,
4001
4160
  "StopDocParse": doStopDocParse,
4002
4161
  "ExportAttributeLabel": doExportAttributeLabel,
4003
4162
  "VerifyQA": doVerifyQA,