tccli 3.0.908.1__py2.py3-none-any.whl → 3.0.910.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdn/v20180606/DescribeHttpsPackages.md +19 -18
  3. tccli/examples/cdn/v20180606/DescribeTrafficPackages.md +16 -14
  4. tccli/examples/cfs/v20190719/DescribeCfsFileSystems.md +31 -31
  5. tccli/examples/cfs/v20190719/UpdateCfsPGroup.md +1 -1
  6. tccli/examples/cms/v20190321/CreateKeywordsSamples.md +10 -0
  7. tccli/examples/cms/v20190321/DeleteLibSamples.md +2 -1
  8. tccli/examples/cms/v20190321/DescribeLibSamples.md +2 -1
  9. tccli/examples/cvm/v20170312/DescribeImportImageOs.md +1 -1
  10. tccli/examples/cynosdb/v20190107/AddInstances.md +8 -8
  11. tccli/examples/cynosdb/v20190107/DescribeParamTemplates.md +2 -2
  12. tccli/examples/ecm/v20190719/AllocateIpv6AddressesBandwidth.md +25 -0
  13. tccli/examples/ecm/v20190719/AssignIpv6CidrBlock.md +23 -0
  14. tccli/examples/ecm/v20190719/AssignIpv6CidrBlocks.md +29 -0
  15. tccli/examples/ecm/v20190719/AssignIpv6SubnetCidrBlock.md +29 -0
  16. tccli/examples/ecm/v20190719/DescribeRegionIpv6Addresses.md +41 -0
  17. tccli/examples/ecm/v20190719/ModifyIpv6AddressesBandwidth.md +22 -0
  18. tccli/examples/ecm/v20190719/QueryVpcTaskResult.md +22 -0
  19. tccli/examples/ecm/v20190719/ReleaseIpv6AddressesBandwidth.md +22 -0
  20. tccli/examples/ecm/v20190719/UnassignIpv6SubnetCidrBlock.md +23 -0
  21. tccli/examples/emr/v20190103/InquiryPriceRenewInstance.md +32 -1
  22. tccli/examples/es/v20180416/ModifyEsVipSecurityGroup.md +21 -0
  23. tccli/examples/ess/v20201111/CreateFlowGroupByFiles.md +118 -0
  24. tccli/examples/ess/v20201111/CreateFlowGroupByTemplates.md +61 -0
  25. tccli/examples/ess/v20201111/CreateFlowReminds.md +3 -3
  26. tccli/examples/ess/v20201111/CreateFlowSignReview.md +2 -2
  27. tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByTemplates.md +49 -0
  28. tccli/examples/lcic/v20220817/DescribeDocument.md +52 -16
  29. tccli/examples/live/v20180801/DeleteLiveTranscodeTemplate.md +1 -1
  30. tccli/examples/monitor/v20180724/DeletePrometheusScrapeJobs.md +4 -4
  31. tccli/examples/monitor/v20180724/DescribeExporterIntegrations.md +5 -5
  32. tccli/examples/monitor/v20180724/DescribePrometheusAgents.md +10 -10
  33. tccli/examples/monitor/v20180724/DescribePrometheusScrapeJobs.md +8 -8
  34. tccli/examples/ocr/v20181119/DriverLicenseOCR.md +2 -2
  35. tccli/examples/smh/v20210712/DeleteLibrary.md +1 -1
  36. tccli/examples/sqlserver/v20180328/InquiryPriceRenewDBInstance.md +1 -1
  37. tccli/examples/sqlserver/v20180328/InquiryPriceUpgradeDBInstance.md +1 -1
  38. tccli/examples/ssl/v20191205/DescribeDeployedResources.md +5 -5
  39. tccli/examples/tchd/v20230306/DescribeEvents.md +35 -0
  40. tccli/examples/tdmq/v20200217/CreateTopic.md +1 -1
  41. tccli/examples/vod/v20180717/CreateRebuildMediaTemplate.md +2 -2
  42. tccli/examples/vod/v20180717/DeleteRebuildMediaTemplate.md +2 -2
  43. tccli/examples/vod/v20180717/DescribeRebuildMediaTemplates.md +2 -2
  44. tccli/examples/vod/v20180717/ModifyRebuildMediaTemplate.md +2 -2
  45. tccli/examples/vod/v20180717/RebuildMedia.md +2 -2
  46. tccli/examples/vod/v20180717/RebuildMediaByTemplate.md +2 -2
  47. tccli/examples/vpc/v20170312/DescribeSecurityGroups.md +1 -1
  48. tccli/examples/wav/v20210129/QueryClueInfoList.md +1 -0
  49. tccli/examples/wedata/v20210820/DescribeColumnLineage.md +77 -0
  50. tccli/examples/wedata/v20210820/DescribeTableLineage.md +79 -0
  51. tccli/services/__init__.py +3 -0
  52. tccli/services/autoscaling/v20180419/api.json +1 -1
  53. tccli/services/cdn/v20180606/api.json +49 -67
  54. tccli/services/cdn/v20180606/examples.json +3 -3
  55. tccli/services/cfs/v20190719/api.json +65 -26
  56. tccli/services/cfs/v20190719/examples.json +3 -3
  57. tccli/services/cls/v20201016/api.json +7 -2
  58. tccli/services/cms/v20190321/api.json +37 -2
  59. tccli/services/cms/v20190321/examples.json +3 -3
  60. tccli/services/cvm/v20170312/api.json +2 -0
  61. tccli/services/cvm/v20170312/examples.json +2 -2
  62. tccli/services/cynosdb/v20190107/api.json +58 -73
  63. tccli/services/cynosdb/v20190107/examples.json +3 -3
  64. tccli/services/ecm/ecm_client.py +493 -16
  65. tccli/services/ecm/v20190719/api.json +657 -26
  66. tccli/services/ecm/v20190719/examples.json +72 -0
  67. tccli/services/emr/v20190103/api.json +5 -12
  68. tccli/services/emr/v20190103/examples.json +7 -1
  69. tccli/services/es/es_client.py +65 -12
  70. tccli/services/es/v20180416/api.json +43 -0
  71. tccli/services/es/v20180416/examples.json +8 -0
  72. tccli/services/ess/ess_client.py +145 -39
  73. tccli/services/ess/v20201111/api.json +417 -41
  74. tccli/services/ess/v20201111/examples.json +19 -3
  75. tccli/services/essbasic/essbasic_client.py +53 -0
  76. tccli/services/essbasic/v20210526/api.json +105 -3
  77. tccli/services/essbasic/v20210526/examples.json +8 -0
  78. tccli/services/lcic/v20220817/api.json +27 -16
  79. tccli/services/lcic/v20220817/examples.json +10 -4
  80. tccli/services/live/v20180801/api.json +3 -3
  81. tccli/services/live/v20180801/examples.json +1 -1
  82. tccli/services/monitor/v20180724/api.json +20 -24
  83. tccli/services/monitor/v20180724/examples.json +11 -11
  84. tccli/services/ocr/v20181119/api.json +22 -5
  85. tccli/services/ocr/v20181119/examples.json +1 -1
  86. tccli/services/smh/v20210712/api.json +1 -1
  87. tccli/services/smh/v20210712/examples.json +2 -2
  88. tccli/services/sqlserver/v20180328/api.json +8 -15
  89. tccli/services/sqlserver/v20180328/examples.json +2 -2
  90. tccli/services/ssl/v20191205/api.json +1 -0
  91. tccli/services/ssl/v20191205/examples.json +2 -2
  92. tccli/services/tcb/v20180608/api.json +33 -39
  93. tccli/services/tchd/__init__.py +4 -0
  94. tccli/services/tchd/tchd_client.py +194 -0
  95. tccli/services/tchd/v20230306/api.json +167 -0
  96. tccli/services/tchd/v20230306/examples.json +13 -0
  97. tccli/services/tdmq/v20200217/api.json +7 -14
  98. tccli/services/tdmq/v20200217/examples.json +1 -1
  99. tccli/services/tke/v20180525/api.json +33 -20
  100. tccli/services/trtc/trtc_client.py +8 -61
  101. tccli/services/trtc/v20190722/api.json +0 -240
  102. tccli/services/trtc/v20190722/examples.json +0 -8
  103. tccli/services/tse/v20201207/api.json +20 -39
  104. tccli/services/tts/v20190823/api.json +1 -1
  105. tccli/services/vod/v20180717/api.json +40 -36
  106. tccli/services/vod/v20180717/examples.json +12 -12
  107. tccli/services/vpc/v20170312/api.json +21 -7
  108. tccli/services/vpc/v20170312/examples.json +1 -1
  109. tccli/services/wav/v20210129/api.json +10 -0
  110. tccli/services/wav/v20210129/examples.json +1 -1
  111. tccli/services/wedata/v20210820/api.json +1146 -211
  112. tccli/services/wedata/v20210820/examples.json +16 -0
  113. tccli/services/wedata/wedata_client.py +106 -0
  114. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/METADATA +82 -3
  115. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/RECORD +118 -98
  116. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/WHEEL +0 -0
  117. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/entry_points.txt +0 -0
  118. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/license_files/LICENSE +0 -0
@@ -849,7 +849,7 @@ def doCreateFlowApprovers(args, parsed_globals):
849
849
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
850
 
851
851
 
852
- def doModifyIntegrationDepartment(args, parsed_globals):
852
+ def doDeleteIntegrationRoleUsers(args, parsed_globals):
853
853
  g_param = parse_global_arg(parsed_globals)
854
854
 
855
855
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -878,11 +878,11 @@ def doModifyIntegrationDepartment(args, parsed_globals):
878
878
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
879
879
  client._sdkVersion += ("_CLI_" + __version__)
880
880
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
881
- model = models.ModifyIntegrationDepartmentRequest()
881
+ model = models.DeleteIntegrationRoleUsersRequest()
882
882
  model.from_json_string(json.dumps(args))
883
883
  start_time = time.time()
884
884
  while True:
885
- rsp = client.ModifyIntegrationDepartment(model)
885
+ rsp = client.DeleteIntegrationRoleUsers(model)
886
886
  result = rsp.to_json_string()
887
887
  try:
888
888
  json_obj = json.loads(result)
@@ -901,7 +901,7 @@ def doModifyIntegrationDepartment(args, parsed_globals):
901
901
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
902
 
903
903
 
904
- def doDeleteIntegrationRoleUsers(args, parsed_globals):
904
+ def doCreateFlowSignReview(args, parsed_globals):
905
905
  g_param = parse_global_arg(parsed_globals)
906
906
 
907
907
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -930,11 +930,11 @@ def doDeleteIntegrationRoleUsers(args, parsed_globals):
930
930
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
931
931
  client._sdkVersion += ("_CLI_" + __version__)
932
932
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
933
- model = models.DeleteIntegrationRoleUsersRequest()
933
+ model = models.CreateFlowSignReviewRequest()
934
934
  model.from_json_string(json.dumps(args))
935
935
  start_time = time.time()
936
936
  while True:
937
- rsp = client.DeleteIntegrationRoleUsers(model)
937
+ rsp = client.CreateFlowSignReview(model)
938
938
  result = rsp.to_json_string()
939
939
  try:
940
940
  json_obj = json.loads(result)
@@ -953,7 +953,7 @@ def doDeleteIntegrationRoleUsers(args, parsed_globals):
953
953
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
954
954
 
955
955
 
956
- def doCreateFlowSignReview(args, parsed_globals):
956
+ def doCreatePrepareFlow(args, parsed_globals):
957
957
  g_param = parse_global_arg(parsed_globals)
958
958
 
959
959
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -982,11 +982,11 @@ def doCreateFlowSignReview(args, parsed_globals):
982
982
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
983
983
  client._sdkVersion += ("_CLI_" + __version__)
984
984
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
985
- model = models.CreateFlowSignReviewRequest()
985
+ model = models.CreatePrepareFlowRequest()
986
986
  model.from_json_string(json.dumps(args))
987
987
  start_time = time.time()
988
988
  while True:
989
- rsp = client.CreateFlowSignReview(model)
989
+ rsp = client.CreatePrepareFlow(model)
990
990
  result = rsp.to_json_string()
991
991
  try:
992
992
  json_obj = json.loads(result)
@@ -1005,7 +1005,7 @@ def doCreateFlowSignReview(args, parsed_globals):
1005
1005
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1006
1006
 
1007
1007
 
1008
- def doCreatePrepareFlow(args, parsed_globals):
1008
+ def doModifyIntegrationDepartment(args, parsed_globals):
1009
1009
  g_param = parse_global_arg(parsed_globals)
1010
1010
 
1011
1011
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1034,11 +1034,11 @@ def doCreatePrepareFlow(args, parsed_globals):
1034
1034
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1035
1035
  client._sdkVersion += ("_CLI_" + __version__)
1036
1036
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1037
- model = models.CreatePrepareFlowRequest()
1037
+ model = models.ModifyIntegrationDepartmentRequest()
1038
1038
  model.from_json_string(json.dumps(args))
1039
1039
  start_time = time.time()
1040
1040
  while True:
1041
- rsp = client.CreatePrepareFlow(model)
1041
+ rsp = client.ModifyIntegrationDepartment(model)
1042
1042
  result = rsp.to_json_string()
1043
1043
  try:
1044
1044
  json_obj = json.loads(result)
@@ -1057,7 +1057,7 @@ def doCreatePrepareFlow(args, parsed_globals):
1057
1057
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1058
1058
 
1059
1059
 
1060
- def doCreateDocument(args, parsed_globals):
1060
+ def doDescribeFlowInfo(args, parsed_globals):
1061
1061
  g_param = parse_global_arg(parsed_globals)
1062
1062
 
1063
1063
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1086,11 +1086,11 @@ def doCreateDocument(args, parsed_globals):
1086
1086
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1087
1087
  client._sdkVersion += ("_CLI_" + __version__)
1088
1088
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1089
- model = models.CreateDocumentRequest()
1089
+ model = models.DescribeFlowInfoRequest()
1090
1090
  model.from_json_string(json.dumps(args))
1091
1091
  start_time = time.time()
1092
1092
  while True:
1093
- rsp = client.CreateDocument(model)
1093
+ rsp = client.DescribeFlowInfo(model)
1094
1094
  result = rsp.to_json_string()
1095
1095
  try:
1096
1096
  json_obj = json.loads(result)
@@ -1109,7 +1109,7 @@ def doCreateDocument(args, parsed_globals):
1109
1109
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1110
1110
 
1111
1111
 
1112
- def doDescribeFlowInfo(args, parsed_globals):
1112
+ def doCreateSealPolicy(args, parsed_globals):
1113
1113
  g_param = parse_global_arg(parsed_globals)
1114
1114
 
1115
1115
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1138,11 +1138,11 @@ def doDescribeFlowInfo(args, parsed_globals):
1138
1138
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1139
1139
  client._sdkVersion += ("_CLI_" + __version__)
1140
1140
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1141
- model = models.DescribeFlowInfoRequest()
1141
+ model = models.CreateSealPolicyRequest()
1142
1142
  model.from_json_string(json.dumps(args))
1143
1143
  start_time = time.time()
1144
1144
  while True:
1145
- rsp = client.DescribeFlowInfo(model)
1145
+ rsp = client.CreateSealPolicy(model)
1146
1146
  result = rsp.to_json_string()
1147
1147
  try:
1148
1148
  json_obj = json.loads(result)
@@ -1161,7 +1161,7 @@ def doDescribeFlowInfo(args, parsed_globals):
1161
1161
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1162
1162
 
1163
1163
 
1164
- def doCreateSealPolicy(args, parsed_globals):
1164
+ def doCreateFlow(args, parsed_globals):
1165
1165
  g_param = parse_global_arg(parsed_globals)
1166
1166
 
1167
1167
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1190,11 +1190,11 @@ def doCreateSealPolicy(args, parsed_globals):
1190
1190
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1191
1191
  client._sdkVersion += ("_CLI_" + __version__)
1192
1192
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1193
- model = models.CreateSealPolicyRequest()
1193
+ model = models.CreateFlowRequest()
1194
1194
  model.from_json_string(json.dumps(args))
1195
1195
  start_time = time.time()
1196
1196
  while True:
1197
- rsp = client.CreateSealPolicy(model)
1197
+ rsp = client.CreateFlow(model)
1198
1198
  result = rsp.to_json_string()
1199
1199
  try:
1200
1200
  json_obj = json.loads(result)
@@ -1213,7 +1213,7 @@ def doCreateSealPolicy(args, parsed_globals):
1213
1213
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
1214
 
1215
1215
 
1216
- def doCreateFlow(args, parsed_globals):
1216
+ def doCreateReleaseFlow(args, parsed_globals):
1217
1217
  g_param = parse_global_arg(parsed_globals)
1218
1218
 
1219
1219
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1242,11 +1242,11 @@ def doCreateFlow(args, parsed_globals):
1242
1242
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1243
1243
  client._sdkVersion += ("_CLI_" + __version__)
1244
1244
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1245
- model = models.CreateFlowRequest()
1245
+ model = models.CreateReleaseFlowRequest()
1246
1246
  model.from_json_string(json.dumps(args))
1247
1247
  start_time = time.time()
1248
1248
  while True:
1249
- rsp = client.CreateFlow(model)
1249
+ rsp = client.CreateReleaseFlow(model)
1250
1250
  result = rsp.to_json_string()
1251
1251
  try:
1252
1252
  json_obj = json.loads(result)
@@ -1265,7 +1265,7 @@ def doCreateFlow(args, parsed_globals):
1265
1265
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
1266
 
1267
1267
 
1268
- def doCreateReleaseFlow(args, parsed_globals):
1268
+ def doCreateSchemeUrl(args, parsed_globals):
1269
1269
  g_param = parse_global_arg(parsed_globals)
1270
1270
 
1271
1271
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1294,11 +1294,11 @@ def doCreateReleaseFlow(args, parsed_globals):
1294
1294
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1295
1295
  client._sdkVersion += ("_CLI_" + __version__)
1296
1296
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1297
- model = models.CreateReleaseFlowRequest()
1297
+ model = models.CreateSchemeUrlRequest()
1298
1298
  model.from_json_string(json.dumps(args))
1299
1299
  start_time = time.time()
1300
1300
  while True:
1301
- rsp = client.CreateReleaseFlow(model)
1301
+ rsp = client.CreateSchemeUrl(model)
1302
1302
  result = rsp.to_json_string()
1303
1303
  try:
1304
1304
  json_obj = json.loads(result)
@@ -1317,7 +1317,7 @@ def doCreateReleaseFlow(args, parsed_globals):
1317
1317
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
1318
 
1319
1319
 
1320
- def doCreateSchemeUrl(args, parsed_globals):
1320
+ def doDescribeUserAutoSignStatus(args, parsed_globals):
1321
1321
  g_param = parse_global_arg(parsed_globals)
1322
1322
 
1323
1323
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1346,11 +1346,11 @@ def doCreateSchemeUrl(args, parsed_globals):
1346
1346
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1347
1347
  client._sdkVersion += ("_CLI_" + __version__)
1348
1348
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1349
- model = models.CreateSchemeUrlRequest()
1349
+ model = models.DescribeUserAutoSignStatusRequest()
1350
1350
  model.from_json_string(json.dumps(args))
1351
1351
  start_time = time.time()
1352
1352
  while True:
1353
- rsp = client.CreateSchemeUrl(model)
1353
+ rsp = client.DescribeUserAutoSignStatus(model)
1354
1354
  result = rsp.to_json_string()
1355
1355
  try:
1356
1356
  json_obj = json.loads(result)
@@ -1369,7 +1369,7 @@ def doCreateSchemeUrl(args, parsed_globals):
1369
1369
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1370
1370
 
1371
1371
 
1372
- def doDescribeUserAutoSignStatus(args, parsed_globals):
1372
+ def doCreateFlowGroupByTemplates(args, parsed_globals):
1373
1373
  g_param = parse_global_arg(parsed_globals)
1374
1374
 
1375
1375
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1398,11 +1398,11 @@ def doDescribeUserAutoSignStatus(args, parsed_globals):
1398
1398
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1399
1399
  client._sdkVersion += ("_CLI_" + __version__)
1400
1400
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
- model = models.DescribeUserAutoSignStatusRequest()
1401
+ model = models.CreateFlowGroupByTemplatesRequest()
1402
1402
  model.from_json_string(json.dumps(args))
1403
1403
  start_time = time.time()
1404
1404
  while True:
1405
- rsp = client.DescribeUserAutoSignStatus(model)
1405
+ rsp = client.CreateFlowGroupByTemplates(model)
1406
1406
  result = rsp.to_json_string()
1407
1407
  try:
1408
1408
  json_obj = json.loads(result)
@@ -1837,6 +1837,58 @@ def doGetTaskResultApi(args, parsed_globals):
1837
1837
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1838
1838
 
1839
1839
 
1840
+ def doDescribeThirdPartyAuthCode(args, parsed_globals):
1841
+ g_param = parse_global_arg(parsed_globals)
1842
+
1843
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1844
+ cred = credential.CVMRoleCredential()
1845
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1846
+ cred = credential.STSAssumeRoleCredential(
1847
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1848
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1849
+ )
1850
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
1851
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1852
+ else:
1853
+ cred = credential.Credential(
1854
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1855
+ )
1856
+ http_profile = HttpProfile(
1857
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1858
+ reqMethod="POST",
1859
+ endpoint=g_param[OptionsDefine.Endpoint],
1860
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1861
+ )
1862
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1863
+ if g_param[OptionsDefine.Language]:
1864
+ profile.language = g_param[OptionsDefine.Language]
1865
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1866
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
1867
+ client._sdkVersion += ("_CLI_" + __version__)
1868
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1869
+ model = models.DescribeThirdPartyAuthCodeRequest()
1870
+ model.from_json_string(json.dumps(args))
1871
+ start_time = time.time()
1872
+ while True:
1873
+ rsp = client.DescribeThirdPartyAuthCode(model)
1874
+ result = rsp.to_json_string()
1875
+ try:
1876
+ json_obj = json.loads(result)
1877
+ except TypeError as e:
1878
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1879
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1880
+ break
1881
+ cur_time = time.time()
1882
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1883
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1884
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1885
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1886
+ else:
1887
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1888
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1889
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1890
+
1891
+
1840
1892
  def doCancelMultiFlowSignQRCode(args, parsed_globals):
1841
1893
  g_param = parse_global_arg(parsed_globals)
1842
1894
 
@@ -2669,7 +2721,7 @@ def doDescribeIntegrationDepartments(args, parsed_globals):
2669
2721
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
2722
 
2671
2723
 
2672
- def doDescribeThirdPartyAuthCode(args, parsed_globals):
2724
+ def doCreateDocument(args, parsed_globals):
2673
2725
  g_param = parse_global_arg(parsed_globals)
2674
2726
 
2675
2727
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2698,11 +2750,11 @@ def doDescribeThirdPartyAuthCode(args, parsed_globals):
2698
2750
  client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
2699
2751
  client._sdkVersion += ("_CLI_" + __version__)
2700
2752
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2701
- model = models.DescribeThirdPartyAuthCodeRequest()
2753
+ model = models.CreateDocumentRequest()
2702
2754
  model.from_json_string(json.dumps(args))
2703
2755
  start_time = time.time()
2704
2756
  while True:
2705
- rsp = client.DescribeThirdPartyAuthCode(model)
2757
+ rsp = client.CreateDocument(model)
2706
2758
  result = rsp.to_json_string()
2707
2759
  try:
2708
2760
  json_obj = json.loads(result)
@@ -2825,6 +2877,58 @@ def doUpdateIntegrationEmployees(args, parsed_globals):
2825
2877
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2826
2878
 
2827
2879
 
2880
+ def doCreateFlowGroupByFiles(args, parsed_globals):
2881
+ g_param = parse_global_arg(parsed_globals)
2882
+
2883
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2884
+ cred = credential.CVMRoleCredential()
2885
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2886
+ cred = credential.STSAssumeRoleCredential(
2887
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2888
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2889
+ )
2890
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
2891
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2892
+ else:
2893
+ cred = credential.Credential(
2894
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2895
+ )
2896
+ http_profile = HttpProfile(
2897
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2898
+ reqMethod="POST",
2899
+ endpoint=g_param[OptionsDefine.Endpoint],
2900
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2901
+ )
2902
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2903
+ if g_param[OptionsDefine.Language]:
2904
+ profile.language = g_param[OptionsDefine.Language]
2905
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2906
+ client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
2907
+ client._sdkVersion += ("_CLI_" + __version__)
2908
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2909
+ model = models.CreateFlowGroupByFilesRequest()
2910
+ model.from_json_string(json.dumps(args))
2911
+ start_time = time.time()
2912
+ while True:
2913
+ rsp = client.CreateFlowGroupByFiles(model)
2914
+ result = rsp.to_json_string()
2915
+ try:
2916
+ json_obj = json.loads(result)
2917
+ except TypeError as e:
2918
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2919
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2920
+ break
2921
+ cur_time = time.time()
2922
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2923
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2924
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2925
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2926
+ else:
2927
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2928
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2929
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2930
+
2931
+
2828
2932
  CLIENT_MAP = {
2829
2933
  "v20201111": ess_client_v20201111,
2830
2934
 
@@ -2852,17 +2956,17 @@ ACTION_MAP = {
2852
2956
  "BindEmployeeUserIdWithClientOpenId": doBindEmployeeUserIdWithClientOpenId,
2853
2957
  "CreatePreparedPersonalEsign": doCreatePreparedPersonalEsign,
2854
2958
  "CreateFlowApprovers": doCreateFlowApprovers,
2855
- "ModifyIntegrationDepartment": doModifyIntegrationDepartment,
2856
2959
  "DeleteIntegrationRoleUsers": doDeleteIntegrationRoleUsers,
2857
2960
  "CreateFlowSignReview": doCreateFlowSignReview,
2858
2961
  "CreatePrepareFlow": doCreatePrepareFlow,
2859
- "CreateDocument": doCreateDocument,
2962
+ "ModifyIntegrationDepartment": doModifyIntegrationDepartment,
2860
2963
  "DescribeFlowInfo": doDescribeFlowInfo,
2861
2964
  "CreateSealPolicy": doCreateSealPolicy,
2862
2965
  "CreateFlow": doCreateFlow,
2863
2966
  "CreateReleaseFlow": doCreateReleaseFlow,
2864
2967
  "CreateSchemeUrl": doCreateSchemeUrl,
2865
2968
  "DescribeUserAutoSignStatus": doDescribeUserAutoSignStatus,
2969
+ "CreateFlowGroupByTemplates": doCreateFlowGroupByTemplates,
2866
2970
  "DescribeExtendedServiceAuthInfos": doDescribeExtendedServiceAuthInfos,
2867
2971
  "CreateChannelSubOrganizationModifyQrCode": doCreateChannelSubOrganizationModifyQrCode,
2868
2972
  "DisableUserAutoSign": doDisableUserAutoSign,
@@ -2871,6 +2975,7 @@ ACTION_MAP = {
2871
2975
  "DescribeIntegrationRoles": doDescribeIntegrationRoles,
2872
2976
  "CreateMultiFlowSignQRCode": doCreateMultiFlowSignQRCode,
2873
2977
  "GetTaskResultApi": doGetTaskResultApi,
2978
+ "DescribeThirdPartyAuthCode": doDescribeThirdPartyAuthCode,
2874
2979
  "CancelMultiFlowSignQRCode": doCancelMultiFlowSignQRCode,
2875
2980
  "DescribeIntegrationEmployees": doDescribeIntegrationEmployees,
2876
2981
  "CreateFlowReminds": doCreateFlowReminds,
@@ -2887,9 +2992,10 @@ ACTION_MAP = {
2887
2992
  "CreateIntegrationDepartment": doCreateIntegrationDepartment,
2888
2993
  "CancelUserAutoSignEnableUrl": doCancelUserAutoSignEnableUrl,
2889
2994
  "DescribeIntegrationDepartments": doDescribeIntegrationDepartments,
2890
- "DescribeThirdPartyAuthCode": doDescribeThirdPartyAuthCode,
2995
+ "CreateDocument": doCreateDocument,
2891
2996
  "CreateIntegrationEmployees": doCreateIntegrationEmployees,
2892
2997
  "UpdateIntegrationEmployees": doUpdateIntegrationEmployees,
2998
+ "CreateFlowGroupByFiles": doCreateFlowGroupByFiles,
2893
2999
 
2894
3000
  }
2895
3001