tccli 3.0.1003.1__py2.py3-none-any.whl → 3.0.1005.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 (111) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cvm/v20170312/CreateLaunchTemplate.md +1 -1
  3. tccli/examples/cvm/v20170312/DescribeInstancesModification.md +1 -0
  4. tccli/examples/cvm/v20170312/RenewInstances.md +2 -2
  5. tccli/examples/cvm/v20170312/ResetInstancesPassword.md +1 -1
  6. tccli/examples/cvm/v20170312/StopInstances.md +1 -1
  7. tccli/examples/cwp/v20180228/DescribeMachineInfo.md +20 -20
  8. tccli/examples/cynosdb/v20190107/CreateClusterDatabase.md +9 -9
  9. tccli/examples/cynosdb/v20190107/DescribeClusterParams.md +18 -28
  10. tccli/examples/cynosdb/v20190107/DescribeClusters.md +70 -77
  11. tccli/examples/cynosdb/v20190107/DescribeZones.md +27 -29
  12. tccli/examples/cynosdb/v20190107/ModifyAccountHost.md +5 -5
  13. tccli/examples/cynosdb/v20190107/ModifyProxyDesc.md +4 -4
  14. tccli/examples/cynosdb/v20190107/ReloadBalanceProxyNode.md +5 -5
  15. tccli/examples/essbasic/v20210526/OperateChannelTemplate.md +22 -22
  16. tccli/examples/hai/v20230812/DescribeApplications.md +2 -1
  17. tccli/examples/ocr/v20181119/MLIDPassportOCR.md +14 -0
  18. tccli/examples/sqlserver/v20180328/BalanceReadOnlyGroup.md +21 -0
  19. tccli/examples/sqlserver/v20180328/DeleteRestoreTask.md +21 -0
  20. tccli/examples/sqlserver/v20180328/DescribeAccountPrivilegeByDB.md +31 -0
  21. tccli/examples/sqlserver/v20180328/DescribeCollationTimeZone.md +24 -0
  22. tccli/examples/sqlserver/v20180328/DescribeCrossRegions.md +27 -0
  23. tccli/examples/sqlserver/v20180328/DescribeDBPrivilegeByAccount.md +46 -0
  24. tccli/examples/sqlserver/v20180328/DescribeDBRestoreTime.md +31 -0
  25. tccli/examples/sqlserver/v20180328/DescribeDatabaseNames.md +27 -0
  26. tccli/examples/sqlserver/v20180328/DescribeInquiryPriceParameter.md +30 -0
  27. tccli/examples/sqlserver/v20180328/DescribeInstanceTasks.md +36 -0
  28. tccli/examples/sqlserver/v20180328/DescribeInstanceTradeParameter.md +37 -0
  29. tccli/examples/sqlserver/v20180328/DescribeProductSpec.md +81 -0
  30. tccli/examples/sqlserver/v20180328/DescribeReadOnlyGroupAutoWeight.md +60 -0
  31. tccli/examples/sqlserver/v20180328/DescribeRestoreTask.md +46 -0
  32. tccli/examples/sqlserver/v20180328/DescribeSpecSellStatus.md +124 -0
  33. tccli/examples/sqlserver/v20180328/DescribeUpgradeInstanceCheck.md +71 -0
  34. tccli/examples/sqlserver/v20180328/ModifyCloseWanIp.md +21 -0
  35. tccli/examples/sqlserver/v20180328/ModifyDBInstanceNote.md +21 -0
  36. tccli/examples/sqlserver/v20180328/ModifyOpenWanIp.md +21 -0
  37. tccli/examples/sqlserver/v20180328/ModifyPublishSubscribe.md +51 -0
  38. tccli/examples/tbaas/v20180416/DescribeFabricBlock.md +37 -0
  39. tccli/examples/tbaas/v20180416/DescribeFabricTransaction.md +33 -0
  40. tccli/examples/tbaas/v20180416/InvokeFabricChaincode.md +28 -0
  41. tccli/examples/tbaas/v20180416/QueryFabricChaincode.md +27 -0
  42. tccli/examples/tcss/v20201101/AddEditImageAutoAuthorizedRule.md +1 -1
  43. tccli/examples/tcss/v20201101/CreateAssetImageScanSetting.md +4 -4
  44. tccli/examples/tcss/v20201101/DescribeAssetImageDetail.md +28 -27
  45. tccli/examples/tcss/v20201101/DescribeImageAutoAuthorizedRule.md +2 -2
  46. tccli/examples/tcss/v20201101/RenewImageAuthorizeState.md +2 -2
  47. tccli/examples/tke/v20180525/DescribeClusterEndpoints.md +1 -0
  48. tccli/examples/tke/v20180525/DescribeClusterExtraArgs.md +31 -0
  49. tccli/examples/tke/v20180525/DescribeExternalNodeSupportConfig.md +81 -0
  50. tccli/examples/tke/v20180525/DescribeIPAMD.md +26 -0
  51. tccli/examples/trocket/v20230308/ImportSourceClusterConsumerGroups.md +23 -0
  52. tccli/examples/trocket/v20230308/ImportSourceClusterTopics.md +25 -0
  53. tccli/examples/wedata/v20210820/BatchCreateTaskVersionDs.md +1408 -0
  54. tccli/examples/wedata/v20210820/CreateTaskVersionDs.md +55 -0
  55. tccli/examples/wedata/v20210820/DescribeApproveList.md +98 -0
  56. tccli/examples/wedata/v20210820/DescribeApproveTypeList.md +64 -0
  57. tccli/examples/wedata/v20210820/ModifyApproveStatus.md +52 -0
  58. tccli/services/__init__.py +1 -5
  59. tccli/services/autoscaling/v20180419/api.json +21 -21
  60. tccli/services/billing/v20180709/api.json +12 -12
  61. tccli/services/cdb/v20170320/api.json +10 -1
  62. tccli/services/cloudstudio/cloudstudio_client.py +30 -1042
  63. tccli/services/cvm/v20170312/api.json +84 -84
  64. tccli/services/cvm/v20170312/examples.json +5 -5
  65. tccli/services/cwp/v20180228/api.json +20 -0
  66. tccli/services/cwp/v20180228/examples.json +1 -1
  67. tccli/services/cynosdb/v20190107/api.json +10 -11
  68. tccli/services/cynosdb/v20190107/examples.json +14 -14
  69. tccli/services/dsgc/v20190723/api.json +48 -41
  70. tccli/services/ess/v20201111/api.json +9 -9
  71. tccli/services/essbasic/v20210526/api.json +10 -10
  72. tccli/services/essbasic/v20210526/examples.json +6 -6
  73. tccli/services/hai/v20230812/api.json +69 -69
  74. tccli/services/hai/v20230812/examples.json +1 -1
  75. tccli/services/ocr/v20181119/api.json +146 -10
  76. tccli/services/ocr/v20181119/examples.json +1 -1
  77. tccli/services/sqlserver/sqlserver_client.py +1418 -358
  78. tccli/services/sqlserver/v20180328/api.json +2426 -172
  79. tccli/services/sqlserver/v20180328/examples.json +166 -0
  80. tccli/services/ssl/v20191205/api.json +1 -1
  81. tccli/services/tbaas/tbaas_client.py +273 -61
  82. tccli/services/tbaas/v20180416/api.json +539 -0
  83. tccli/services/tbaas/v20180416/examples.json +32 -0
  84. tccli/services/tchd/v20230306/api.json +1 -1
  85. tccli/services/tcss/v20201101/api.json +443 -87
  86. tccli/services/tcss/v20201101/examples.json +7 -7
  87. tccli/services/tdmq/v20200217/api.json +9 -9
  88. tccli/services/tke/tke_client.py +159 -0
  89. tccli/services/tke/v20180525/api.json +375 -0
  90. tccli/services/tke/v20180525/examples.json +25 -1
  91. tccli/services/trocket/trocket_client.py +171 -65
  92. tccli/services/trocket/v20230308/api.json +230 -0
  93. tccli/services/trocket/v20230308/examples.json +16 -0
  94. tccli/services/tse/v20201207/api.json +57 -35
  95. tccli/services/vrs/v20200824/api.json +10 -0
  96. tccli/services/waf/v20180125/api.json +201 -54
  97. tccli/services/wedata/v20210820/api.json +4369 -184
  98. tccli/services/wedata/v20210820/examples.json +76 -0
  99. tccli/services/wedata/wedata_client.py +326 -61
  100. tccli/services/weilingwith/v20230427/api.json +13 -13
  101. {tccli-3.0.1003.1.dist-info → tccli-3.0.1005.1.dist-info}/METADATA +2 -2
  102. {tccli-3.0.1003.1.dist-info → tccli-3.0.1005.1.dist-info}/RECORD +105 -77
  103. tccli/services/casb/__init__.py +0 -4
  104. tccli/services/casb/casb_client.py +0 -194
  105. tccli/services/casb/v20200507/api.json +0 -110
  106. tccli/services/casb/v20200507/examples.json +0 -19
  107. tccli/services/cloudstudio/v20210524/api.json +0 -2604
  108. tccli/services/cloudstudio/v20210524/examples.json +0 -205
  109. {tccli-3.0.1003.1.dist-info → tccli-3.0.1005.1.dist-info}/WHEEL +0 -0
  110. {tccli-3.0.1003.1.dist-info → tccli-3.0.1005.1.dist-info}/entry_points.txt +0 -0
  111. {tccli-3.0.1003.1.dist-info → tccli-3.0.1005.1.dist-info}/license_files/LICENSE +0 -0
@@ -1213,6 +1213,58 @@ def doCreateHiveTable(args, parsed_globals):
1213
1213
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
1214
 
1215
1215
 
1216
+ def doDescribeDrInstancePage(args, parsed_globals):
1217
+ g_param = parse_global_arg(parsed_globals)
1218
+
1219
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1220
+ cred = credential.CVMRoleCredential()
1221
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1222
+ cred = credential.STSAssumeRoleCredential(
1223
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1224
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1225
+ )
1226
+ 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):
1227
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1228
+ else:
1229
+ cred = credential.Credential(
1230
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1231
+ )
1232
+ http_profile = HttpProfile(
1233
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1234
+ reqMethod="POST",
1235
+ endpoint=g_param[OptionsDefine.Endpoint],
1236
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1237
+ )
1238
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1239
+ if g_param[OptionsDefine.Language]:
1240
+ profile.language = g_param[OptionsDefine.Language]
1241
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1242
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
1243
+ client._sdkVersion += ("_CLI_" + __version__)
1244
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1245
+ model = models.DescribeDrInstancePageRequest()
1246
+ model.from_json_string(json.dumps(args))
1247
+ start_time = time.time()
1248
+ while True:
1249
+ rsp = client.DescribeDrInstancePage(model)
1250
+ result = rsp.to_json_string()
1251
+ try:
1252
+ json_obj = json.loads(result)
1253
+ except TypeError as e:
1254
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1255
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1256
+ break
1257
+ cur_time = time.time()
1258
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1259
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1260
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1261
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1262
+ else:
1263
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1264
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1265
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
+
1267
+
1216
1268
  def doDescribeClusterNamespaceList(args, parsed_globals):
1217
1269
  g_param = parse_global_arg(parsed_globals)
1218
1270
 
@@ -1681,6 +1733,58 @@ def doDescribeInstanceLogFile(args, parsed_globals):
1681
1733
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1734
 
1683
1735
 
1736
+ def doSubmitWorkflow(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('-', '_')]
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.WedataClient(cred, g_param[OptionsDefine.Region], profile)
1763
+ client._sdkVersion += ("_CLI_" + __version__)
1764
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1765
+ model = models.SubmitWorkflowRequest()
1766
+ model.from_json_string(json.dumps(args))
1767
+ start_time = time.time()
1768
+ while True:
1769
+ rsp = client.SubmitWorkflow(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 doCountOpsInstanceState(args, parsed_globals):
1685
1789
  g_param = parse_global_arg(parsed_globals)
1686
1790
 
@@ -2201,6 +2305,58 @@ def doDescribeInstanceLogList(args, parsed_globals):
2201
2305
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2202
2306
 
2203
2307
 
2308
+ def doCreateTaskVersionDs(args, parsed_globals):
2309
+ g_param = parse_global_arg(parsed_globals)
2310
+
2311
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2312
+ cred = credential.CVMRoleCredential()
2313
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2314
+ cred = credential.STSAssumeRoleCredential(
2315
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2316
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2317
+ )
2318
+ 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):
2319
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2320
+ else:
2321
+ cred = credential.Credential(
2322
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2323
+ )
2324
+ http_profile = HttpProfile(
2325
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2326
+ reqMethod="POST",
2327
+ endpoint=g_param[OptionsDefine.Endpoint],
2328
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2329
+ )
2330
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2331
+ if g_param[OptionsDefine.Language]:
2332
+ profile.language = g_param[OptionsDefine.Language]
2333
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2334
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
2335
+ client._sdkVersion += ("_CLI_" + __version__)
2336
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2337
+ model = models.CreateTaskVersionDsRequest()
2338
+ model.from_json_string(json.dumps(args))
2339
+ start_time = time.time()
2340
+ while True:
2341
+ rsp = client.CreateTaskVersionDs(model)
2342
+ result = rsp.to_json_string()
2343
+ try:
2344
+ json_obj = json.loads(result)
2345
+ except TypeError as e:
2346
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2347
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2348
+ break
2349
+ cur_time = time.time()
2350
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2351
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2352
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2353
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2354
+ else:
2355
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2356
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2357
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2358
+
2359
+
2204
2360
  def doBatchModifyOpsOwners(args, parsed_globals):
2205
2361
  g_param = parse_global_arg(parsed_globals)
2206
2362
 
@@ -4021,6 +4177,58 @@ def doModifyBaselineTaskAlarmStatus(args, parsed_globals):
4021
4177
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4022
4178
 
4023
4179
 
4180
+ def doDescribeApproveTypeList(args, parsed_globals):
4181
+ g_param = parse_global_arg(parsed_globals)
4182
+
4183
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4184
+ cred = credential.CVMRoleCredential()
4185
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4186
+ cred = credential.STSAssumeRoleCredential(
4187
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4188
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4189
+ )
4190
+ 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):
4191
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4192
+ else:
4193
+ cred = credential.Credential(
4194
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4195
+ )
4196
+ http_profile = HttpProfile(
4197
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4198
+ reqMethod="POST",
4199
+ endpoint=g_param[OptionsDefine.Endpoint],
4200
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4201
+ )
4202
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4203
+ if g_param[OptionsDefine.Language]:
4204
+ profile.language = g_param[OptionsDefine.Language]
4205
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4206
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
4207
+ client._sdkVersion += ("_CLI_" + __version__)
4208
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4209
+ model = models.DescribeApproveTypeListRequest()
4210
+ model.from_json_string(json.dumps(args))
4211
+ start_time = time.time()
4212
+ while True:
4213
+ rsp = client.DescribeApproveTypeList(model)
4214
+ result = rsp.to_json_string()
4215
+ try:
4216
+ json_obj = json.loads(result)
4217
+ except TypeError as e:
4218
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4219
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4220
+ break
4221
+ cur_time = time.time()
4222
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4223
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4224
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4225
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4226
+ else:
4227
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4228
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4229
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4230
+
4231
+
4024
4232
  def doCommitRuleGroupExecResult(args, parsed_globals):
4025
4233
  g_param = parse_global_arg(parsed_globals)
4026
4234
 
@@ -4177,7 +4385,7 @@ def doMakeUpOpsTasks(args, parsed_globals):
4177
4385
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4178
4386
 
4179
4387
 
4180
- def doDescribeDrInstancePage(args, parsed_globals):
4388
+ def doDescribeApproveList(args, parsed_globals):
4181
4389
  g_param = parse_global_arg(parsed_globals)
4182
4390
 
4183
4391
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -4206,11 +4414,11 @@ def doDescribeDrInstancePage(args, parsed_globals):
4206
4414
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
4207
4415
  client._sdkVersion += ("_CLI_" + __version__)
4208
4416
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
4209
- model = models.DescribeDrInstancePageRequest()
4417
+ model = models.DescribeApproveListRequest()
4210
4418
  model.from_json_string(json.dumps(args))
4211
4419
  start_time = time.time()
4212
4420
  while True:
4213
- rsp = client.DescribeDrInstancePage(model)
4421
+ rsp = client.DescribeApproveList(model)
4214
4422
  result = rsp.to_json_string()
4215
4423
  try:
4216
4424
  json_obj = json.loads(result)
@@ -4385,6 +4593,58 @@ def doDryRunDIOfflineTask(args, parsed_globals):
4385
4593
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4386
4594
 
4387
4595
 
4596
+ def doBatchCreateTaskVersionDs(args, parsed_globals):
4597
+ g_param = parse_global_arg(parsed_globals)
4598
+
4599
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4600
+ cred = credential.CVMRoleCredential()
4601
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4602
+ cred = credential.STSAssumeRoleCredential(
4603
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4604
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
4605
+ )
4606
+ 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):
4607
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4608
+ else:
4609
+ cred = credential.Credential(
4610
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4611
+ )
4612
+ http_profile = HttpProfile(
4613
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4614
+ reqMethod="POST",
4615
+ endpoint=g_param[OptionsDefine.Endpoint],
4616
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4617
+ )
4618
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4619
+ if g_param[OptionsDefine.Language]:
4620
+ profile.language = g_param[OptionsDefine.Language]
4621
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4622
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
4623
+ client._sdkVersion += ("_CLI_" + __version__)
4624
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4625
+ model = models.BatchCreateTaskVersionDsRequest()
4626
+ model.from_json_string(json.dumps(args))
4627
+ start_time = time.time()
4628
+ while True:
4629
+ rsp = client.BatchCreateTaskVersionDs(model)
4630
+ result = rsp.to_json_string()
4631
+ try:
4632
+ json_obj = json.loads(result)
4633
+ except TypeError as e:
4634
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4635
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4636
+ break
4637
+ cur_time = time.time()
4638
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4639
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4640
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4641
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4642
+ else:
4643
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4644
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4645
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4646
+
4647
+
4388
4648
  def doDescribeDimensionScore(args, parsed_globals):
4389
4649
  g_param = parse_global_arg(parsed_globals)
4390
4650
 
@@ -10365,6 +10625,58 @@ def doDescribeFolderList(args, parsed_globals):
10365
10625
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
10366
10626
 
10367
10627
 
10628
+ def doModifyApproveStatus(args, parsed_globals):
10629
+ g_param = parse_global_arg(parsed_globals)
10630
+
10631
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
10632
+ cred = credential.CVMRoleCredential()
10633
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
10634
+ cred = credential.STSAssumeRoleCredential(
10635
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
10636
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
10637
+ )
10638
+ 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):
10639
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
10640
+ else:
10641
+ cred = credential.Credential(
10642
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
10643
+ )
10644
+ http_profile = HttpProfile(
10645
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
10646
+ reqMethod="POST",
10647
+ endpoint=g_param[OptionsDefine.Endpoint],
10648
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
10649
+ )
10650
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
10651
+ if g_param[OptionsDefine.Language]:
10652
+ profile.language = g_param[OptionsDefine.Language]
10653
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
10654
+ client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
10655
+ client._sdkVersion += ("_CLI_" + __version__)
10656
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
10657
+ model = models.ModifyApproveStatusRequest()
10658
+ model.from_json_string(json.dumps(args))
10659
+ start_time = time.time()
10660
+ while True:
10661
+ rsp = client.ModifyApproveStatus(model)
10662
+ result = rsp.to_json_string()
10663
+ try:
10664
+ json_obj = json.loads(result)
10665
+ except TypeError as e:
10666
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
10667
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
10668
+ break
10669
+ cur_time = time.time()
10670
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
10671
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
10672
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
10673
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
10674
+ else:
10675
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
10676
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
10677
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
10678
+
10679
+
10368
10680
  def doDescribeDataSourceWithoutInfo(args, parsed_globals):
10369
10681
  g_param = parse_global_arg(parsed_globals)
10370
10682
 
@@ -11561,7 +11873,7 @@ def doCheckDuplicateTemplateName(args, parsed_globals):
11561
11873
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11562
11874
 
11563
11875
 
11564
- def doSubmitWorkflow(args, parsed_globals):
11876
+ def doDescribeQualityScoreTrend(args, parsed_globals):
11565
11877
  g_param = parse_global_arg(parsed_globals)
11566
11878
 
11567
11879
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -11590,11 +11902,11 @@ def doSubmitWorkflow(args, parsed_globals):
11590
11902
  client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
11591
11903
  client._sdkVersion += ("_CLI_" + __version__)
11592
11904
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
11593
- model = models.SubmitWorkflowRequest()
11905
+ model = models.DescribeQualityScoreTrendRequest()
11594
11906
  model.from_json_string(json.dumps(args))
11595
11907
  start_time = time.time()
11596
11908
  while True:
11597
- rsp = client.SubmitWorkflow(model)
11909
+ rsp = client.DescribeQualityScoreTrend(model)
11598
11910
  result = rsp.to_json_string()
11599
11911
  try:
11600
11912
  json_obj = json.loads(result)
@@ -13693,58 +14005,6 @@ def doDescribeInstanceLastLog(args, parsed_globals):
13693
14005
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
13694
14006
 
13695
14007
 
13696
- def doDescribeQualityScoreTrend(args, parsed_globals):
13697
- g_param = parse_global_arg(parsed_globals)
13698
-
13699
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
13700
- cred = credential.CVMRoleCredential()
13701
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
13702
- cred = credential.STSAssumeRoleCredential(
13703
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
13704
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
13705
- )
13706
- 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):
13707
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
13708
- else:
13709
- cred = credential.Credential(
13710
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
13711
- )
13712
- http_profile = HttpProfile(
13713
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
13714
- reqMethod="POST",
13715
- endpoint=g_param[OptionsDefine.Endpoint],
13716
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
13717
- )
13718
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
13719
- if g_param[OptionsDefine.Language]:
13720
- profile.language = g_param[OptionsDefine.Language]
13721
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
13722
- client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
13723
- client._sdkVersion += ("_CLI_" + __version__)
13724
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
13725
- model = models.DescribeQualityScoreTrendRequest()
13726
- model.from_json_string(json.dumps(args))
13727
- start_time = time.time()
13728
- while True:
13729
- rsp = client.DescribeQualityScoreTrend(model)
13730
- result = rsp.to_json_string()
13731
- try:
13732
- json_obj = json.loads(result)
13733
- except TypeError as e:
13734
- json_obj = json.loads(result.decode('utf-8')) # python3.3
13735
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
13736
- break
13737
- cur_time = time.time()
13738
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
13739
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
13740
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
13741
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
13742
- else:
13743
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
13744
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
13745
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
13746
-
13747
-
13748
14008
  def doDescribeOperateOpsTaskDatasource(args, parsed_globals):
13749
14009
  g_param = parse_global_arg(parsed_globals)
13750
14010
 
@@ -16015,6 +16275,7 @@ ACTION_MAP = {
16015
16275
  "ModifyExecStrategy": doModifyExecStrategy,
16016
16276
  "DescribeIntegrationStatisticsTaskStatusTrend": doDescribeIntegrationStatisticsTaskStatusTrend,
16017
16277
  "CreateHiveTable": doCreateHiveTable,
16278
+ "DescribeDrInstancePage": doDescribeDrInstancePage,
16018
16279
  "DescribeClusterNamespaceList": doDescribeClusterNamespaceList,
16019
16280
  "DescribeOperateOpsTasks": doDescribeOperateOpsTasks,
16020
16281
  "DescribeInstanceByCycle": doDescribeInstanceByCycle,
@@ -16024,6 +16285,7 @@ ACTION_MAP = {
16024
16285
  "DescribeStandardRuleDetailInfoList": doDescribeStandardRuleDetailInfoList,
16025
16286
  "DescribeTaskByCycle": doDescribeTaskByCycle,
16026
16287
  "DescribeInstanceLogFile": doDescribeInstanceLogFile,
16288
+ "SubmitWorkflow": doSubmitWorkflow,
16027
16289
  "CountOpsInstanceState": doCountOpsInstanceState,
16028
16290
  "DescribeBaselineInstanceGantt": doDescribeBaselineInstanceGantt,
16029
16291
  "RemoveWorkflowDs": doRemoveWorkflowDs,
@@ -16034,6 +16296,7 @@ ACTION_MAP = {
16034
16296
  "DescribeIntegrationStatisticsAgentStatus": doDescribeIntegrationStatisticsAgentStatus,
16035
16297
  "StopBaseline": doStopBaseline,
16036
16298
  "DescribeInstanceLogList": doDescribeInstanceLogList,
16299
+ "CreateTaskVersionDs": doCreateTaskVersionDs,
16037
16300
  "BatchModifyOpsOwners": doBatchModifyOpsOwners,
16038
16301
  "CreateCustomFunction": doCreateCustomFunction,
16039
16302
  "DescribeExecStrategy": doDescribeExecStrategy,
@@ -16069,13 +16332,15 @@ ACTION_MAP = {
16069
16332
  "DescribeDsFolderTree": doDescribeDsFolderTree,
16070
16333
  "SubmitTaskTestRun": doSubmitTaskTestRun,
16071
16334
  "ModifyBaselineTaskAlarmStatus": doModifyBaselineTaskAlarmStatus,
16335
+ "DescribeApproveTypeList": doDescribeApproveTypeList,
16072
16336
  "CommitRuleGroupExecResult": doCommitRuleGroupExecResult,
16073
16337
  "DeleteFilePath": doDeleteFilePath,
16074
16338
  "MakeUpOpsTasks": doMakeUpOpsTasks,
16075
- "DescribeDrInstancePage": doDescribeDrInstancePage,
16339
+ "DescribeApproveList": doDescribeApproveList,
16076
16340
  "DescribeSuccessorOpsTaskInfos": doDescribeSuccessorOpsTaskInfos,
16077
16341
  "DescribeEventIsAlarmTypes": doDescribeEventIsAlarmTypes,
16078
16342
  "DryRunDIOfflineTask": doDryRunDIOfflineTask,
16343
+ "BatchCreateTaskVersionDs": doBatchCreateTaskVersionDs,
16079
16344
  "DescribeDimensionScore": doDescribeDimensionScore,
16080
16345
  "DescribeRuleGroupTable": doDescribeRuleGroupTable,
16081
16346
  "DeleteBaseline": doDeleteBaseline,
@@ -16191,6 +16456,7 @@ ACTION_MAP = {
16191
16456
  "DescribeRuleTemplatesByPage": doDescribeRuleTemplatesByPage,
16192
16457
  "DagInstances": doDagInstances,
16193
16458
  "DescribeFolderList": doDescribeFolderList,
16459
+ "ModifyApproveStatus": doModifyApproveStatus,
16194
16460
  "DescribeDataSourceWithoutInfo": doDescribeDataSourceWithoutInfo,
16195
16461
  "MakeUpWorkflowNew": doMakeUpWorkflowNew,
16196
16462
  "DescribeRuleExecResults": doDescribeRuleExecResults,
@@ -16214,7 +16480,7 @@ ACTION_MAP = {
16214
16480
  "StartIntegrationTask": doStartIntegrationTask,
16215
16481
  "DeleteResourceFiles": doDeleteResourceFiles,
16216
16482
  "CheckDuplicateTemplateName": doCheckDuplicateTemplateName,
16217
- "SubmitWorkflow": doSubmitWorkflow,
16483
+ "DescribeQualityScoreTrend": doDescribeQualityScoreTrend,
16218
16484
  "BatchDeleteIntegrationTasks": doBatchDeleteIntegrationTasks,
16219
16485
  "DescribeIntegrationTasks": doDescribeIntegrationTasks,
16220
16486
  "ModifyTaskScript": doModifyTaskScript,
@@ -16255,7 +16521,6 @@ ACTION_MAP = {
16255
16521
  "BatchDeleteOpsTasks": doBatchDeleteOpsTasks,
16256
16522
  "FreezeTasksByMultiWorkflow": doFreezeTasksByMultiWorkflow,
16257
16523
  "DescribeInstanceLastLog": doDescribeInstanceLastLog,
16258
- "DescribeQualityScoreTrend": doDescribeQualityScoreTrend,
16259
16524
  "DescribeOperateOpsTaskDatasource": doDescribeOperateOpsTaskDatasource,
16260
16525
  "RegisterEvent": doRegisterEvent,
16261
16526
  "DescribeOpsMakePlans": doDescribeOpsMakePlans,