tccli 3.0.1095.1__py2.py3-none-any.whl → 3.0.1097.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 (92) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/aiart/v20221229/QueryDrawPortraitJob.md +30 -0
  3. tccli/examples/aiart/v20221229/QueryTrainPortraitModelJob.md +24 -0
  4. tccli/examples/aiart/v20221229/SubmitDrawPortraitJob.md +23 -0
  5. tccli/examples/aiart/v20221229/SubmitTrainPortraitModelJob.md +20 -0
  6. tccli/examples/aiart/v20221229/UploadTrainPortraitImages.md +25 -0
  7. tccli/examples/ccc/v20200210/ModifyStaffPassword.md +22 -0
  8. tccli/examples/cls/v20201016/DeleteKafkaRecharge.md +3 -3
  9. tccli/examples/cls/v20201016/ModifyKafkaRecharge.md +23 -13
  10. tccli/examples/cls/v20201016/PreviewKafkaRecharge.md +47 -15
  11. tccli/examples/csip/v20221121/DescribeAlertList.md +176 -0
  12. tccli/examples/cynosdb/v20190107/AddClusterSlaveZone.md +2 -1
  13. tccli/examples/cynosdb/v20190107/DescribeClusterDetail.md +9 -2
  14. tccli/examples/cynosdb/v20190107/DescribeTasks.md +12 -0
  15. tccli/examples/cynosdb/v20190107/ModifyClusterSlaveZone.md +2 -1
  16. tccli/examples/cynosdb/v20190107/ModifyInstanceUpgradeLimitDays.md +22 -0
  17. tccli/examples/dcdb/v20180411/DescribeDCDBInstances.md +4 -3
  18. tccli/examples/dlc/v20210125/DescribeNotebookSessionStatementSqlResult.md +3 -1
  19. tccli/examples/lke/v20231130/GetEmbedding.md +4 -1
  20. tccli/examples/lke/v20231130/QueryParseDocResult.md +4 -1
  21. tccli/examples/lke/v20231130/QueryRewrite.md +6 -1
  22. tccli/examples/mariadb/v20170312/DescribeDBInstanceDetail.md +2 -1
  23. tccli/examples/mariadb/v20170312/DescribeDBInstances.md +4 -3
  24. tccli/examples/mps/v20190612/CreateAdaptiveDynamicStreamingTemplate.md +1 -1
  25. tccli/examples/mps/v20190612/ModifyAdaptiveDynamicStreamingTemplate.md +1 -1
  26. tccli/examples/organization/v20210331/DescribeEffectivePolicy.md +25 -0
  27. tccli/examples/organization/v20210331/ListNonCompliantResource.md +43 -0
  28. tccli/examples/ssl/v20191205/DescribeDeleteCertificatesTaskResult.md +72 -0
  29. tccli/examples/tdmq/v20200217/DescribeRabbitMQQueueDetail.md +25 -22
  30. tccli/examples/trocket/v20230308/DescribeMQTTClient.md +57 -49
  31. tccli/examples/trocket/v20230308/DescribeMQTTInsPublicEndpoints.md +38 -6
  32. tccli/examples/trocket/v20230308/DescribeMQTTInsVPCEndpoints.md +14 -12
  33. tccli/examples/trocket/v20230308/DescribeMQTTInstanceList.md +1 -121
  34. tccli/examples/trocket/v20230308/DescribeMQTTProductSKUList.md +0 -47
  35. tccli/examples/trocket/v20230308/DescribeMQTTUserList.md +1 -1
  36. tccli/examples/vpc/v20170312/DisableVpnGatewaySslClientCert.md +2 -2
  37. tccli/services/aiart/aiart_client.py +269 -4
  38. tccli/services/aiart/v20221229/api.json +405 -1
  39. tccli/services/aiart/v20221229/examples.json +40 -0
  40. tccli/services/billing/v20180709/api.json +30 -0
  41. tccli/services/bma/v20221115/api.json +4 -6
  42. tccli/services/ccc/ccc_client.py +53 -0
  43. tccli/services/ccc/v20200210/api.json +57 -5
  44. tccli/services/ccc/v20200210/examples.json +8 -0
  45. tccli/services/cdb/v20170320/api.json +9 -0
  46. tccli/services/cdn/v20180606/api.json +1 -1
  47. tccli/services/cls/v20201016/api.json +49 -49
  48. tccli/services/cls/v20201016/examples.json +13 -7
  49. tccli/services/csip/csip_client.py +53 -0
  50. tccli/services/csip/v20221121/api.json +1468 -7
  51. tccli/services/csip/v20221121/examples.json +8 -0
  52. tccli/services/cynosdb/cynosdb_client.py +53 -0
  53. tccli/services/cynosdb/v20190107/api.json +126 -0
  54. tccli/services/cynosdb/v20190107/examples.json +12 -4
  55. tccli/services/dcdb/v20180411/api.json +45 -3
  56. tccli/services/dcdb/v20180411/examples.json +1 -1
  57. tccli/services/dlc/v20210125/api.json +30 -0
  58. tccli/services/dlc/v20210125/examples.json +1 -1
  59. tccli/services/essbasic/v20210526/api.json +9 -0
  60. tccli/services/faceid/v20180301/api.json +22 -3
  61. tccli/services/hunyuan/v20230901/api.json +14 -14
  62. tccli/services/iotexplorer/v20190423/api.json +1 -1
  63. tccli/services/lighthouse/v20200324/api.json +2 -2
  64. tccli/services/live/v20180801/api.json +16 -7
  65. tccli/services/lke/v20231130/api.json +82 -6
  66. tccli/services/lke/v20231130/examples.json +3 -3
  67. tccli/services/mariadb/v20170312/api.json +45 -2
  68. tccli/services/mariadb/v20170312/examples.json +2 -2
  69. tccli/services/mps/v20190612/api.json +172 -92
  70. tccli/services/mps/v20190612/examples.json +2 -2
  71. tccli/services/ocr/v20181119/api.json +1 -1
  72. tccli/services/omics/v20221128/api.json +20 -2
  73. tccli/services/organization/organization_client.py +106 -0
  74. tccli/services/organization/v20210331/api.json +258 -0
  75. tccli/services/organization/v20210331/examples.json +16 -0
  76. tccli/services/ssl/ssl_client.py +53 -0
  77. tccli/services/ssl/v20191205/api.json +160 -9
  78. tccli/services/ssl/v20191205/examples.json +8 -0
  79. tccli/services/ssm/v20190923/api.json +1 -1
  80. tccli/services/tdmq/v20200217/api.json +65 -26
  81. tccli/services/tdmq/v20200217/examples.json +2 -2
  82. tccli/services/trocket/v20230308/api.json +226 -108
  83. tccli/services/trocket/v20230308/examples.json +13 -25
  84. tccli/services/trtc/v20190722/api.json +34 -15
  85. tccli/services/vpc/v20170312/api.json +20 -5
  86. tccli/services/vpc/v20170312/examples.json +2 -2
  87. tccli/services/weilingwith/v20230427/api.json +11 -11
  88. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/METADATA +2 -2
  89. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/RECORD +92 -81
  90. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/WHEEL +0 -0
  91. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/entry_points.txt +0 -0
  92. {tccli-3.0.1095.1.dist-info → tccli-3.0.1097.1.dist-info}/license_files/LICENSE +0 -0
@@ -1473,6 +1473,58 @@ def doCreateDomainAndIp(args, parsed_globals):
1473
1473
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1474
1474
 
1475
1475
 
1476
+ def doDescribeAlertList(args, parsed_globals):
1477
+ g_param = parse_global_arg(parsed_globals)
1478
+
1479
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1480
+ cred = credential.CVMRoleCredential()
1481
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1482
+ cred = credential.STSAssumeRoleCredential(
1483
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1484
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1485
+ )
1486
+ 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):
1487
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1488
+ else:
1489
+ cred = credential.Credential(
1490
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1491
+ )
1492
+ http_profile = HttpProfile(
1493
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1494
+ reqMethod="POST",
1495
+ endpoint=g_param[OptionsDefine.Endpoint],
1496
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1497
+ )
1498
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1499
+ if g_param[OptionsDefine.Language]:
1500
+ profile.language = g_param[OptionsDefine.Language]
1501
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1502
+ client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
1503
+ client._sdkVersion += ("_CLI_" + __version__)
1504
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1505
+ model = models.DescribeAlertListRequest()
1506
+ model.from_json_string(json.dumps(args))
1507
+ start_time = time.time()
1508
+ while True:
1509
+ rsp = client.DescribeAlertList(model)
1510
+ result = rsp.to_json_string()
1511
+ try:
1512
+ json_obj = json.loads(result)
1513
+ except TypeError as e:
1514
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1515
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1516
+ break
1517
+ cur_time = time.time()
1518
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1519
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1520
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1521
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1522
+ else:
1523
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1524
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1525
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1526
+
1527
+
1476
1528
  def doDescribeScanTaskList(args, parsed_globals):
1477
1529
  g_param = parse_global_arg(parsed_globals)
1478
1530
 
@@ -2032,6 +2084,7 @@ ACTION_MAP = {
2032
2084
  "DescribeTaskLogList": doDescribeTaskLogList,
2033
2085
  "DescribeScanReportList": doDescribeScanReportList,
2034
2086
  "CreateDomainAndIp": doCreateDomainAndIp,
2087
+ "DescribeAlertList": doDescribeAlertList,
2035
2088
  "DescribeScanTaskList": doDescribeScanTaskList,
2036
2089
  "DescribeDbAssets": doDescribeDbAssets,
2037
2090
  "DescribeRiskCenterPortViewPortRiskList": doDescribeRiskCenterPortViewPortRiskList,