tccli 3.0.1318.1__py2.py3-none-any.whl → 3.0.1320.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 (51) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +0 -3
  3. tccli/services/ams/v20201229/api.json +109 -113
  4. tccli/services/batch/v20170312/api.json +2 -2
  5. tccli/services/billing/v20180709/api.json +6 -6
  6. tccli/services/cdwdoris/v20211228/api.json +30 -0
  7. tccli/services/cls/v20201016/api.json +13 -13
  8. tccli/services/cvm/v20170312/api.json +24 -24
  9. tccli/services/cynosdb/v20190107/api.json +2 -2
  10. tccli/services/dbbrain/v20210527/api.json +7 -3
  11. tccli/services/dlc/v20210125/api.json +112 -0
  12. tccli/services/dlc/v20210125/examples.json +3 -3
  13. tccli/services/dnspod/v20210323/api.json +0 -27
  14. tccli/services/domain/v20180808/api.json +3 -3
  15. tccli/services/domain/v20180808/examples.json +1 -1
  16. tccli/services/dsgc/dsgc_client.py +247 -1042
  17. tccli/services/dsgc/v20190723/api.json +0 -360
  18. tccli/services/dsgc/v20190723/examples.json +1 -127
  19. tccli/services/emr/v20190103/api.json +6 -6
  20. tccli/services/emr/v20190103/examples.json +7 -7
  21. tccli/services/es/v20180416/api.json +10 -0
  22. tccli/services/ess/v20201111/api.json +11 -11
  23. tccli/services/ess/v20201111/examples.json +10 -4
  24. tccli/services/essbasic/v20210526/api.json +8 -8
  25. tccli/services/live/v20180801/api.json +10 -0
  26. tccli/services/lke/v20231130/api.json +1 -1
  27. tccli/services/lkeap/v20240522/api.json +1 -1
  28. tccli/services/monitor/v20180724/api.json +8 -11
  29. tccli/services/mps/v20190612/api.json +20 -9
  30. tccli/services/mps/v20190612/examples.json +6 -0
  31. tccli/services/postgres/v20170312/api.json +9 -9
  32. tccli/services/redis/v20180412/api.json +1 -1
  33. tccli/services/ses/v20201002/api.json +9 -0
  34. tccli/services/tcb/v20180608/api.json +3 -3
  35. tccli/services/tdid/v20210519/examples.json +1 -1
  36. tccli/services/tione/tione_client.py +53 -0
  37. tccli/services/tione/v20211111/api.json +316 -1
  38. tccli/services/tione/v20211111/examples.json +8 -0
  39. tccli/services/tke/v20220501/api.json +11 -0
  40. tccli/services/trtc/v20190722/api.json +9 -0
  41. tccli/services/tts/v20190823/api.json +2 -2
  42. tccli/services/vpc/v20170312/api.json +3 -3
  43. {tccli-3.0.1318.1.dist-info → tccli-3.0.1320.1.dist-info}/METADATA +2 -2
  44. {tccli-3.0.1318.1.dist-info → tccli-3.0.1320.1.dist-info}/RECORD +47 -51
  45. tccli/services/apcas/__init__.py +0 -4
  46. tccli/services/apcas/apcas_client.py +0 -525
  47. tccli/services/apcas/v20201127/api.json +0 -733
  48. tccli/services/apcas/v20201127/examples.json +0 -61
  49. {tccli-3.0.1318.1.dist-info → tccli-3.0.1320.1.dist-info}/WHEEL +0 -0
  50. {tccli-3.0.1318.1.dist-info → tccli-3.0.1320.1.dist-info}/entry_points.txt +0 -0
  51. {tccli-3.0.1318.1.dist-info → tccli-3.0.1320.1.dist-info}/license_files/LICENSE +0 -0
@@ -239,9 +239,9 @@
239
239
  "status": "online"
240
240
  },
241
241
  "DescribeDBBackups": {
242
- "document": "本接口(DescribeDBBackups)用于查询实例备份列表。本接口已废弃,推荐使用接口[DescribeBaseBackups](https://cloud.tencent.com/document/api/409/89022)替代。",
242
+ "document": "本接口(DescribeDBBackups)用于查询实例备份列表。**本接口属于早期接口,已停止功能迭代,推荐使用接口**[DescribeBaseBackups](https://cloud.tencent.com/document/api/409/89022)**替代**。",
243
243
  "input": "DescribeDBBackupsRequest",
244
- "name": "查询实例备份列表(废弃)",
244
+ "name": "查询实例备份列表",
245
245
  "output": "DescribeDBBackupsResponse",
246
246
  "status": "online"
247
247
  },
@@ -309,9 +309,9 @@
309
309
  "status": "online"
310
310
  },
311
311
  "DescribeDBXlogs": {
312
- "document": "本接口(DescribeDBXlogs)用于获取实例Xlog列表。本接口已废弃,推荐使用接口[DescribeLogBackups](https://cloud.tencent.com/document/api/409/89021)替代。",
312
+ "document": "本接口(DescribeDBXlogs)用于获取实例Xlog列表。 **本接口属于早期接口,已停止功能迭代,推荐使用接口**[DescribeLogBackups](https://cloud.tencent.com/document/api/409/89021)**替代**。",
313
313
  "input": "DescribeDBXlogsRequest",
314
- "name": "获取实例Xlog列表(废弃)",
314
+ "name": "获取实例Xlog列表",
315
315
  "output": "DescribeDBXlogsResponse",
316
316
  "status": "online"
317
317
  },
@@ -393,9 +393,9 @@
393
393
  "status": "online"
394
394
  },
395
395
  "DescribeProductConfig": {
396
- "document": "本接口(DescribeProductConfig)用于查询售卖规格配置。本接口已废弃,推荐使用新接口[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)",
396
+ "document": "本接口(DescribeProductConfig)用于查询售卖规格配置。**本接口属于早期接口,已停止功能迭代,推荐使用新接口**[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)**替代**。",
397
397
  "input": "DescribeProductConfigRequest",
398
- "name": "查询售卖规格配置(废弃)",
398
+ "name": "查询售卖规格配置",
399
399
  "output": "DescribeProductConfigResponse",
400
400
  "status": "online"
401
401
  },
@@ -5330,7 +5330,7 @@
5330
5330
  {
5331
5331
  "disabled": false,
5332
5332
  "document": "备份列表",
5333
- "example": "[ { \"SetId\": \"f77ecd1a-087c-5c66-8c35-95c835d7ec24\", \"Status\": 2, \"InternalAddr\": \"http://172.16.16.30:8366/download/20180622015612.tar.gz?giz7Z4LlMjascFkshSSB4+B1gaI0F3HAQIZcFPDbIsdfgfJdfs+89qfhuYQ5wC0ooTcDIdUwB4iJlL1by8xfKkcMAv8nr8g67P6hhg5YOnk=\", \"StartTime\": \"2018-06-22 01:56:01.181971\", \"ExternalAddr\": \"https://gz-dl-postgres.cloud.tencent.com/download/20180622015612.tar.gz?giz7Z4LlMjascFkshSSB4+B1gaI0F3HAQIZcFPDbIsdfgfJdfs+89qfhuYQ5wC0ooTcDIdUwB4iJlL1by8xfKkcMAv8nr8g67P6hhg5YOnk=\", \"Strategy\": 1, \"DbList\": [ \"db1\" ], \"Way\": 1, \"EndTime\": \"2018-06-22 01:56:55.071181\", \"Type\": 1, \"Id\": 450, \"Size\": 3654968 } ]",
5333
+ "example": "",
5334
5334
  "member": "DBBackup",
5335
5335
  "name": "BackupList",
5336
5336
  "output_required": true,
@@ -6007,7 +6007,7 @@
6007
6007
  {
6008
6008
  "disabled": false,
6009
6009
  "document": "Xlog列表",
6010
- "example": "[ { \"StartTime\": \"2018-06-22 01:56:46\", \"InternalAddr\": \"http://172.16.16.30:8366/download/20180622015646_20180622015653.tar.gz?giz7Z4LlMjal0S0oJY6+5JbQ1MfhjybTALKlriBmLUrmJMxzi1C3EagZ/IhOQeSGyXm+Qr3D3I2GL1G4RV69vLVylUaeIJ+zH+CEG5Ast0GoDmpzjJ5Jaw==\", \"EndTime\": \"2018-06-22 01:56:53\", \"ExternalAddr\": \"https://gz-dl-postgres.cloud.tencent.com/download/20180622015646_20180622015653.tar.gz?giz7Z4LlMjal0S0oJY6+5JbQ1MfhjybTALKlriBmLUrmJMxzi1C3EagZ/IhOQeSGyXm+Qr3D3I2GL1G4RV69vLVylUaeIJ+zH+CEG5Ast0GoDmpzjJ5Jaw==\", \"Id\": 450, \"Size\": 247967 }, { \"StartTime\": \"2018-06-22 01:56:17\", \"InternalAddr\": \"http://172.16.16.30:8366/download/20180622015617_20180622015645.tar.gz?giz7Z4LlMjal0S0oJY6+5JbQ1MfhjybTALKlriBmLUrmJMxzi1C3Eamxg5sq4mNUSXLgasiI8P5xiJVUBOrLUPKLYacTxFWP8y56/f36byxdYH5+PGMzOA==\", \"EndTime\": \"2018-06-22 01:56:45\", \"ExternalAddr\": \"https://gz-dl-postgres.cloud.tencent.com/download/20180622015617_20180622015645.tar.gz?giz7Z4LlMjal0S0oJY6+5JbQ1MfhjybTALKlriBmLUrmJMxzi1C3Eamxg5sq4mNUSXLgasiI8P5xiJVUBOrLUPKLYacTxFWP8y56/f36byxdYH5+PGMzOA==\", \"Id\": 450, \"Size\": 899618 } ]",
6010
+ "example": "",
6011
6011
  "member": "Xlog",
6012
6012
  "name": "XlogList",
6013
6013
  "output_required": true,
@@ -6810,7 +6810,7 @@
6810
6810
  {
6811
6811
  "disabled": false,
6812
6812
  "document": "售卖规格列表。",
6813
- "example": "[ { \"Region\": \"ap-guangzhou\", \"Zone\": \"ap-guangzhou-2\", \"SupportKMSRegions\": [ \"ap-guangzhou\" ], \"SpecItemInfoList\": [ { \"SpecCode\": \"pg.it.2xlarge16\", \"Version\": \"10.4\", \"VersionName\": \"PostgreSQL 10\", \"Cpu\": 1, \"Memory\": 2048, \"MaxStorage\": 1000, \"MinStorage\": 10, \"Qps\": 2100, \"Pid\": 11004, \"Type\": \"TS85\", \"KernelVersion\": \"v10.4_r1.0\", \"MajorVersion\": \"10\", \"IsSupportTDE\": 1 } ] } ]",
6813
+ "example": "",
6814
6814
  "member": "SpecInfo",
6815
6815
  "name": "SpecInfoList",
6816
6816
  "output_required": true,
@@ -12443,7 +12443,7 @@
12443
12443
  },
12444
12444
  {
12445
12445
  "disabled": false,
12446
- "document": "切换时间。 \n- 1:维护时间窗操作:在设置的维护时间窗内执行操作。请通过接口[DescribeMaintenanceWindow](https://cloud.tencent.com/document/product/239/46336)查询设置的维护时间窗时间段。缩副本、扩缩分片、扩内存均支持在维护时间窗执行操作。\n- 2:立即操作:默认切换时刻。操作将立即执行,无需等待维护时间窗。",
12446
+ "document": "切换时间。 \n- 1:维护时间窗操作:指升级规格在设置的维护时间窗内执行。请通过接口[DescribeMaintenanceWindow](https://cloud.tencent.com/document/product/239/46336)查询设置的维护时间窗时间段。增减副本、增减分片、扩缩内存均支持在维护时间窗执行操作。维护时间窗升级规格正在分地域逐步测试发布中,部分区域已支持,未覆盖地域若需紧急接入,请[提交工单](https://console.cloud.tencent.com/workorder/category)申请白名单。\n- 2:立即操作:操作将立即执行,无需等待维护时间窗。系统默认设置为立即操作。",
12447
12447
  "example": "2",
12448
12448
  "member": "uint64",
12449
12449
  "name": "SwitchOption",
@@ -619,6 +619,15 @@
619
619
  "name": "EmailIdentity",
620
620
  "required": true,
621
621
  "type": "string"
622
+ },
623
+ {
624
+ "disabled": false,
625
+ "document": "生成的dkim密钥长度。0:1024,1:2048",
626
+ "example": "0",
627
+ "member": "uint64",
628
+ "name": "DKIMOption",
629
+ "required": false,
630
+ "type": "int"
622
631
  }
623
632
  ],
624
633
  "type": "object"
@@ -7054,8 +7054,8 @@
7054
7054
  },
7055
7055
  {
7056
7056
  "disabled": false,
7057
- "document": "Dockefile的路径",
7058
- "example": "Dockefile",
7057
+ "document": "Dockerfile的路径",
7058
+ "example": "Dockerfile",
7059
7059
  "member": "string",
7060
7060
  "name": "DockerfilePath",
7061
7061
  "output_required": true,
@@ -7095,7 +7095,7 @@
7095
7095
  {
7096
7096
  "disabled": false,
7097
7097
  "document": "策略类型",
7098
- "example": "Dockefile",
7098
+ "example": "Dockerfile",
7099
7099
  "member": "string",
7100
7100
  "name": "PolicyType",
7101
7101
  "output_required": true,
@@ -128,7 +128,7 @@
128
128
  "title": "无需凭证鉴权首次更新凭证链上状态"
129
129
  },
130
130
  {
131
- "document": "用于颁发凭证的DID标识是非本腾讯云账号创建的场景\n由于凭证颁发凭证的DID为非本账号创建,默认无设置凭证状态的权限,因此需要临时凭证进行操作鉴权\nOriginCredentialt和CredentialStatus不需设置,OperateCredential携带建操作鉴权临时凭证,凭证通过IssueCredential接口颁发,凭证参数说明如下:\n1. 凭证模板 id (cpt)固定为 1\n2. claim需三个字段:\n(1) action: 固定为updateCredentialState \n(2) originCredential: 携带待更新状态的凭证原始内容\n(3) credentialStatus: 凭证状态结构的json字符串,包括3个字段:\nId: 凭证 id,对应凭证的 id 字段 \nissuer: 凭证颁发者 Did \nStatus: 凭证状态(0:吊销;1:有效) \n3. ExpirationDate过期时间根据操作凭证创建时间和调用更新凭证状态接口的时间差来设置,通常状态实时更新,过期时间在1分钟内即可",
131
+ "document": "用于颁发凭证的DID标识是非本腾讯云账号创建的场景\n由于凭证颁发凭证的DID为非本账号创建,默认无设置凭证状态的权限,因此需要临时凭证进行操作鉴权\nOriginCredential和CredentialStatus不需设置,OperateCredential携带建操作鉴权临时凭证,凭证通过IssueCredential接口颁发,凭证参数说明如下:\n1. 凭证模板 id (cpt)固定为 1\n2. claim需三个字段:\n(1) action: 固定为updateCredentialState \n(2) originCredential: 携带待更新状态的凭证原始内容\n(3) credentialStatus: 凭证状态结构的json字符串,包括3个字段:\nId: 凭证 id,对应凭证的 id 字段 \nissuer: 凭证颁发者 Did \nStatus: 凭证状态(0:吊销;1:有效) \n3. ExpirationDate过期时间根据操作凭证创建时间和调用更新凭证状态接口的时间差来设置,通常状态实时更新,过期时间在1分钟内即可",
132
132
  "input": "POST / HTTP/1.1\nHost: tdid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateCredentialState\n<公共请求参数>\n\n{\n \"DAPId\": 5,\n \"OperateCredential\": \"{\\n\\t\\\"cptId\\\": 1,\\n\\t\\\"issuer\\\": \\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\",\\n\\t\\\"expirationDate\\\": \\\"2023-12-01T10:00:00+08:00\\\",\\n\\t\\\"issuanceDate\\\": \\\"2023-09-19T20:13:36+08:00\\\",\\n\\t\\\"context\\\": \\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\",\\n\\t\\\"id\\\": \\\"fw1652844bee8e5ecf1b404242b83f1b\\\",\\n\\t\\\"type\\\": [\\\"VerifiableCredential\\\"],\\n\\t\\\"credentialSubject\\\": {\\n\\t\\t\\\"CredentialStatus\\\": {\\n\\t\\t\\t\\\"id\\\": \\\"8818fdd61eb84e4a745a3b04c96e5237\\\",\\n\\t\\t\\t\\\"issuer\\\": \\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\",\\n\\t\\t\\t\\\"status\\\": 1\\n\\t\\t},\\n\\t\\t\\\"action\\\": \\\"updateCredentialState\\\",\\n\\t\\t\\\"originCredential\\\": \\\"{\\\\\\\"cptId\\\\\\\":1,\\\\\\\"issuer\\\\\\\":\\\\\\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb\\\\\\\",\\\\\\\"expirationDate\\\\\\\":\\\\\\\"2023-12-01T10:00:00+08:00\\\\\\\",\\\\\\\"issuanceDate\\\\\\\":\\\\\\\"2023-09-19T20:04:20+08:00\\\\\\\",\\\\\\\"context\\\\\\\":\\\\\\\"https://github.com/TencentCloud-Blockchain/TDID/blob/main/context/v1\\\\\\\",\\\\\\\"id\\\\\\\":\\\\\\\"8818fdd61eb84e4a745a3b04c96e5237\\\\\\\",\\\\\\\"type\\\\\\\":[\\\\\\\"VerifiableCredential\\\\\\\"],\\\\\\\"credentialSubject\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"updateCredentialState\\\\\\\"},\\\\\\\"proof\\\\\\\":{\\\\\\\"created\\\\\\\":\\\\\\\"2023-09-19T20:04:20+08:00\\\\\\\",\\\\\\\"creator\\\\\\\":\\\\\\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0\\\\\\\",\\\\\\\"signatureValue\\\\\\\":\\\\\\\"MEUCIQDUneIwlLbh5AFjQt9HJhIZAQshT45/Em8hVOUjHcdu0QIgL3rg3A99qGGNszstF+GTV5IU4vT9OnI1lqM3f0w1JmI=\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"Secp256r1\\\\\\\",\\\\\\\"metaDigest\\\\\\\":\\\\\\\"6a216f84cb9w1b6170cb017cccd6w1d0b81aad200d5691914d6045471d0dd1ad\\\\\\\",\\\\\\\"vcDigest\\\\\\\":\\\\\\\"c7e13w1bcfa879c922f9141d085facc0ce1973e8d27d48238130739c1a332dcf\\\\\\\",\\\\\\\"privacy\\\\\\\":\\\\\\\"Public\\\\\\\",\\\\\\\"salt\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"HZdDU\\\\\\\"}}}\\\"\\n\\t},\\n\\t\\\"proof\\\": {\\n\\t\\t\\\"created\\\": \\\"2023-09-19T20:13:36+08:00\\\",\\n\\t\\t\\\"creator\\\": \\\"did:tdid:w1:0xe0fd109747937fbaf68ef1f615c2cd8e87d22ffb#keys-0\\\",\\n\\t\\t\\\"signatureValue\\\": \\\"MEUCIDkLg6EqmwvEHYLtjumpeqKz/hIi6EROMDXPPpNIxORHAiEA8T0LMI59tkBTz+llu/GkjToj5M8k5SwXFoU3fnjQ3mo=\\\",\\n\\t\\t\\\"type\\\": \\\"Secp256r1\\\",\\n\\t\\t\\\"metaDigest\\\": \\\"46894b7f54365d685ba587608d2b74f800404ebb76f5c32dd90bc3916e844ae2\\\",\\n\\t\\t\\\"vcDigest\\\": \\\"d086ba831ab3185971c168w125bf2bd487d7eced3ede8d623b30cfe9da03bcaf\\\",\\n\\t\\t\\\"privacy\\\": \\\"Public\\\",\\n\\t\\t\\\"salt\\\": {\\n\\t\\t\\t\\\"CredentialStatus\\\": {\\n\\t\\t\\t\\t\\\"id\\\": \\\"4dPOH\\\",\\n\\t\\t\\t\\t\\\"issuer\\\": \\\"OJH5M\\\",\\n\\t\\t\\t\\t\\\"status\\\": \\\"lm2W4\\\"\\n\\t\\t\\t},\\n\\t\\t\\t\\\"action\\\": \\\"r95wA\\\",\\n\\t\\t\\t\\\"orignCredential\\\": \\\"b3H4j\\\"\\n\\t\\t}\\n\\t}\\n}\"\n}",
133
133
  "output": "{\n \"Response\": {\n \"RequestId\": \"f5e12d37-100a-4b82-b522-7b76c519ed70\",\n \"Result\": true\n }\n}",
134
134
  "title": "需要凭证鉴权首次更新凭证链上状态"
@@ -487,6 +487,58 @@ def doDescribeTrainingTasks(args, parsed_globals):
487
487
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
488
488
 
489
489
 
490
+ def doDescribeEvents(args, parsed_globals):
491
+ g_param = parse_global_arg(parsed_globals)
492
+
493
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
494
+ cred = credential.CVMRoleCredential()
495
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
496
+ cred = credential.STSAssumeRoleCredential(
497
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
498
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
499
+ )
500
+ 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):
501
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
502
+ else:
503
+ cred = credential.Credential(
504
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
505
+ )
506
+ http_profile = HttpProfile(
507
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
508
+ reqMethod="POST",
509
+ endpoint=g_param[OptionsDefine.Endpoint],
510
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
511
+ )
512
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
513
+ if g_param[OptionsDefine.Language]:
514
+ profile.language = g_param[OptionsDefine.Language]
515
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
516
+ client = mod.TioneClient(cred, g_param[OptionsDefine.Region], profile)
517
+ client._sdkVersion += ("_CLI_" + __version__)
518
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
519
+ model = models.DescribeEventsRequest()
520
+ model.from_json_string(json.dumps(args))
521
+ start_time = time.time()
522
+ while True:
523
+ rsp = client.DescribeEvents(model)
524
+ result = rsp.to_json_string()
525
+ try:
526
+ json_obj = json.loads(result)
527
+ except TypeError as e:
528
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
529
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
530
+ break
531
+ cur_time = time.time()
532
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
533
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
534
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
535
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
536
+ else:
537
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
538
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
539
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
540
+
541
+
490
542
  def doDescribeBuildInImages(args, parsed_globals):
491
543
  g_param = parse_global_arg(parsed_globals)
492
544
 
@@ -3525,6 +3577,7 @@ ACTION_MAP = {
3525
3577
  "CreateTrainingModel": doCreateTrainingModel,
3526
3578
  "UpdateNotebookInstance": doUpdateNotebookInstance,
3527
3579
  "DescribeTrainingTasks": doDescribeTrainingTasks,
3580
+ "DescribeEvents": doDescribeEvents,
3528
3581
  "DescribeBuildInImages": doDescribeBuildInImages,
3529
3582
  "DescribeNotebookLifecycleScripts": doDescribeNotebookLifecycleScripts,
3530
3583
  "StopTrainingJob": doStopTrainingJob,
@@ -147,6 +147,13 @@
147
147
  "output": "DescribeDatasetsResponse",
148
148
  "status": "online"
149
149
  },
150
+ "DescribeEvents": {
151
+ "document": "获取任务式建模训练任务,Notebook,在线服务和批量预测任务的事件API",
152
+ "input": "DescribeEventsRequest",
153
+ "name": "获取事件",
154
+ "output": "DescribeEventsResponse",
155
+ "status": "online"
156
+ },
150
157
  "DescribeInferTemplates": {
151
158
  "document": "已废弃,收敛到统一接口\n\n查询推理镜像模板",
152
159
  "input": "DescribeInferTemplatesRequest",
@@ -1357,6 +1364,24 @@
1357
1364
  "name": "HealthProbe",
1358
1365
  "required": false,
1359
1366
  "type": "object"
1367
+ },
1368
+ {
1369
+ "disabled": false,
1370
+ "document": "滚动更新策略",
1371
+ "example": "无",
1372
+ "member": "RollingUpdate",
1373
+ "name": "RollingUpdate",
1374
+ "required": false,
1375
+ "type": "object"
1376
+ },
1377
+ {
1378
+ "disabled": false,
1379
+ "document": "sidecar配置",
1380
+ "example": "无",
1381
+ "member": "SidecarSpec",
1382
+ "name": "Sidecar",
1383
+ "required": false,
1384
+ "type": "object"
1360
1385
  }
1361
1386
  ],
1362
1387
  "type": "object"
@@ -3941,6 +3966,125 @@
3941
3966
  ],
3942
3967
  "type": "object"
3943
3968
  },
3969
+ "DescribeEventsRequest": {
3970
+ "document": "DescribeEvents请求参数结构体",
3971
+ "members": [
3972
+ {
3973
+ "disabled": false,
3974
+ "document": "服务类型,TRAIN为任务式建模, NOTEBOOK为Notebook, INFER为在线服务, BATCH为批量预测\n枚举值:\n- TRAIN\n- NOTEBOOK\n- INFER\n- BATCH",
3975
+ "example": "TRAIN",
3976
+ "member": "string",
3977
+ "name": "Service",
3978
+ "required": true,
3979
+ "type": "string"
3980
+ },
3981
+ {
3982
+ "disabled": false,
3983
+ "document": "服务ID,和Service参数对应,不同Service的服务ID获取方式不同,具体如下:\n- Service类型为TRAIN:\n 调用[DescribeTrainingTask接口](/document/product/851/75089)查询训练任务详情,ServiceId为接口返回值中Response.TrainingTaskDetail.LatestInstanceId\n- Service类型为NOTEBOOK:\n 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,ServiceId为接口返回值中Response.NotebookDetail.PodName\n- Service类型为INFER:\n 调用[DescribeModelServiceGroup接口](/document/product/851/82285)查询服务组详情,ServiceId为接口返回值中Response.ServiceGroup.Services.ServiceId\n- Service类型为BATCH:\n 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,ServiceId为接口返回值中Response.BatchTaskDetail.LatestInstanceId",
3984
+ "example": "train-fsdjl-1",
3985
+ "member": "string",
3986
+ "name": "ServiceId",
3987
+ "required": false,
3988
+ "type": "string"
3989
+ },
3990
+ {
3991
+ "disabled": false,
3992
+ "document": "查询事件最早发生的时间(RFC3339格式的时间字符串),默认值为当前时间的前一天",
3993
+ "example": "2021-11-30T16:22:09+08:00",
3994
+ "member": "string",
3995
+ "name": "StartTime",
3996
+ "required": false,
3997
+ "type": "string"
3998
+ },
3999
+ {
4000
+ "disabled": false,
4001
+ "document": "查询事件最晚发生的时间(RFC3339格式的时间字符串),默认值为当前时间",
4002
+ "example": "2021-11-30T16:22:09+08:00",
4003
+ "member": "string",
4004
+ "name": "EndTime",
4005
+ "required": false,
4006
+ "type": "string"
4007
+ },
4008
+ {
4009
+ "disabled": false,
4010
+ "document": "分页Limit,默认值为100,最大值为100",
4011
+ "example": "100",
4012
+ "member": "uint64",
4013
+ "name": "Limit",
4014
+ "required": false,
4015
+ "type": "int"
4016
+ },
4017
+ {
4018
+ "disabled": false,
4019
+ "document": "分页Offset,默认值为0",
4020
+ "example": "1",
4021
+ "member": "uint64",
4022
+ "name": "Offset",
4023
+ "required": false,
4024
+ "type": "int"
4025
+ },
4026
+ {
4027
+ "disabled": false,
4028
+ "document": "排列顺序(可选值为ASC, DESC ),默认为DESC",
4029
+ "example": "DESC",
4030
+ "member": "string",
4031
+ "name": "Order",
4032
+ "required": false,
4033
+ "type": "string"
4034
+ },
4035
+ {
4036
+ "disabled": false,
4037
+ "document": "排序的依据字段(可选值为FirstTimestamp, LastTimestamp),默认值为LastTimestamp",
4038
+ "example": "LastTimestamp",
4039
+ "member": "string",
4040
+ "name": "OrderField",
4041
+ "required": false,
4042
+ "type": "string"
4043
+ },
4044
+ {
4045
+ "disabled": false,
4046
+ "document": "过滤条件\n注意: \n1. Filter.Name:目前支持ResourceKind(按事件关联的资源类型过滤);Type(按事件类型过滤)\n2. Filter.Values:\n对于Name为ResourceKind,Values的可选取值为Deployment, Replicaset, Pod等K8S资源类型;\n对于Name为Type,Values的可选取值仅为Normal或者Warning;\nValues为多个的时候表示同时满足\n3. Filter. Negative和Filter. Fuzzy没有使用",
4047
+ "example": "无",
4048
+ "member": "Filter",
4049
+ "name": "Filters",
4050
+ "required": false,
4051
+ "type": "list"
4052
+ }
4053
+ ],
4054
+ "type": "object"
4055
+ },
4056
+ "DescribeEventsResponse": {
4057
+ "document": "DescribeEvents返回参数结构体",
4058
+ "members": [
4059
+ {
4060
+ "disabled": false,
4061
+ "document": "事件的列表\n注意:此字段可能返回 null,表示取不到有效值。",
4062
+ "example": "无",
4063
+ "member": "Event",
4064
+ "name": "Events",
4065
+ "output_required": true,
4066
+ "type": "list",
4067
+ "value_allowed_null": true
4068
+ },
4069
+ {
4070
+ "disabled": false,
4071
+ "document": "此次查询的事件的个数\n注意:此字段可能返回 null,表示取不到有效值。",
4072
+ "example": "10",
4073
+ "member": "uint64",
4074
+ "name": "TotalCount",
4075
+ "output_required": true,
4076
+ "type": "int",
4077
+ "value_allowed_null": true
4078
+ },
4079
+ {
4080
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4081
+ "member": "string",
4082
+ "name": "RequestId",
4083
+ "type": "string"
4084
+ }
4085
+ ],
4086
+ "type": "object"
4087
+ },
3944
4088
  "DescribeInferTemplatesRequest": {
3945
4089
  "document": "DescribeInferTemplates请求参数结构体",
3946
4090
  "members": [],
@@ -5038,6 +5182,92 @@
5038
5182
  ],
5039
5183
  "usage": "both"
5040
5184
  },
5185
+ "Event": {
5186
+ "document": "K8s的Event",
5187
+ "members": [
5188
+ {
5189
+ "disabled": false,
5190
+ "document": "事件的id\n注意:此字段可能返回 null,表示取不到有效值。",
5191
+ "example": "xxx-xxx",
5192
+ "member": "string",
5193
+ "name": "Id",
5194
+ "required": true,
5195
+ "type": "string",
5196
+ "value_allowed_null": true
5197
+ },
5198
+ {
5199
+ "disabled": false,
5200
+ "document": "事件的具体信息\n注意:此字段可能返回 null,表示取不到有效值。",
5201
+ "example": "Created pod: ti-log-event-server-9f7dc5598-xxx",
5202
+ "member": "string",
5203
+ "name": "Message",
5204
+ "required": true,
5205
+ "type": "string",
5206
+ "value_allowed_null": true
5207
+ },
5208
+ {
5209
+ "disabled": false,
5210
+ "document": "事件第一次发生的时间\n注意:此字段可能返回 null,表示取不到有效值。",
5211
+ "example": "2021-11-30T16:22:09+08:00",
5212
+ "member": "string",
5213
+ "name": "FirstTimestamp",
5214
+ "required": true,
5215
+ "type": "string",
5216
+ "value_allowed_null": true
5217
+ },
5218
+ {
5219
+ "disabled": false,
5220
+ "document": "事件最后一次发生的时间\n注意:此字段可能返回 null,表示取不到有效值。",
5221
+ "example": "2021-11-30T16:22:09+08:00",
5222
+ "member": "string",
5223
+ "name": "LastTimestamp",
5224
+ "required": true,
5225
+ "type": "string",
5226
+ "value_allowed_null": true
5227
+ },
5228
+ {
5229
+ "disabled": false,
5230
+ "document": "事件发生的次数\n注意:此字段可能返回 null,表示取不到有效值。",
5231
+ "example": "12",
5232
+ "member": "uint64",
5233
+ "name": "Count",
5234
+ "required": true,
5235
+ "type": "int",
5236
+ "value_allowed_null": true
5237
+ },
5238
+ {
5239
+ "disabled": false,
5240
+ "document": "事件的类型\n注意:此字段可能返回 null,表示取不到有效值。",
5241
+ "example": "Normal",
5242
+ "member": "string",
5243
+ "name": "Type",
5244
+ "required": true,
5245
+ "type": "string",
5246
+ "value_allowed_null": true
5247
+ },
5248
+ {
5249
+ "disabled": false,
5250
+ "document": "事件关联的资源的类型\n注意:此字段可能返回 null,表示取不到有效值。",
5251
+ "example": "Pod",
5252
+ "member": "string",
5253
+ "name": "ResourceKind",
5254
+ "required": true,
5255
+ "type": "string",
5256
+ "value_allowed_null": true
5257
+ },
5258
+ {
5259
+ "disabled": false,
5260
+ "document": "事件关联的资源的名字\n注意:此字段可能返回 null,表示取不到有效值。",
5261
+ "example": "ti-log-event-server-9f7dc5598-xxx",
5262
+ "member": "string",
5263
+ "name": "ResourceName",
5264
+ "required": true,
5265
+ "type": "string",
5266
+ "value_allowed_null": true
5267
+ }
5268
+ ],
5269
+ "usage": "out"
5270
+ },
5041
5271
  "ExecAction": {
5042
5272
  "document": "执行命令探针检查行为",
5043
5273
  "members": [
@@ -7293,6 +7523,24 @@
7293
7523
  "name": "HealthProbe",
7294
7524
  "required": false,
7295
7525
  "type": "object"
7526
+ },
7527
+ {
7528
+ "disabled": false,
7529
+ "document": "滚动更新策略",
7530
+ "example": "无",
7531
+ "member": "RollingUpdate",
7532
+ "name": "RollingUpdate",
7533
+ "required": false,
7534
+ "type": "object"
7535
+ },
7536
+ {
7537
+ "disabled": false,
7538
+ "document": "sidecar配置",
7539
+ "example": "无",
7540
+ "member": "SidecarSpec",
7541
+ "name": "Sidecar",
7542
+ "required": false,
7543
+ "type": "object"
7296
7544
  }
7297
7545
  ],
7298
7546
  "type": "object"
@@ -8113,6 +8361,16 @@
8113
8361
  "type": "object",
8114
8362
  "value_allowed_null": true
8115
8363
  },
8364
+ {
8365
+ "disabled": false,
8366
+ "document": "子用户ID\n注意:此字段可能返回 null,表示取不到有效值。",
8367
+ "example": "100032979603",
8368
+ "member": "string",
8369
+ "name": "SubUin",
8370
+ "output_required": false,
8371
+ "type": "string",
8372
+ "value_allowed_null": true
8373
+ },
8116
8374
  {
8117
8375
  "disabled": false,
8118
8376
  "document": "子用户名称",
@@ -8362,12 +8620,22 @@
8362
8620
  {
8363
8621
  "disabled": false,
8364
8622
  "document": "pod资源配置\n注意:此字段可能返回 null,表示取不到有效值。",
8365
- "example": "{ \"Role\": \"WORKER\", \"Cpu\": 180000, \"Memory\": 921600, \"GpuType\": \"HCC-A100\", \"Gpu\": 800, \"InstanceType\": \"\", \"InstanceTypeAlias\": \"\", \"InstanceNum\": 2, \"RDMAConfig\": { \"Enable\": true }, \"ExtendedResourceList\": {}, \"ArchType\": \"\" }",
8623
+ "example": "{\"Role\": \"WORKER\", \"Cpu\": 180000,\"Memory\": 921600,\"GpuType\": \"HCC-A100\",\"Gpu\": 800, \"InstanceType\": \"\",\"InstanceTypeAlias\": \"\", \"InstanceNum\": 2,\"RDMAConfig\": {\"Enable\": true }}",
8366
8624
  "member": "ResourceConfigInfo",
8367
8625
  "name": "ResourceConfigInfo",
8368
8626
  "output_required": false,
8369
8627
  "type": "object",
8370
8628
  "value_allowed_null": true
8629
+ },
8630
+ {
8631
+ "disabled": false,
8632
+ "document": "Pod所属任务的SubUin信息\n注意:此字段可能返回 null,表示取不到有效值。",
8633
+ "example": "100031385875",
8634
+ "member": "string",
8635
+ "name": "SubUin",
8636
+ "output_required": false,
8637
+ "type": "string",
8638
+ "value_allowed_null": true
8371
8639
  }
8372
8640
  ],
8373
8641
  "usage": "out"
@@ -10397,6 +10665,23 @@
10397
10665
  ],
10398
10666
  "usage": "both"
10399
10667
  },
10668
+ "SidecarSpec": {
10669
+ "document": "sidecar容器配置",
10670
+ "members": [
10671
+ {
10672
+ "disabled": false,
10673
+ "document": "镜像配置",
10674
+ "example": "无",
10675
+ "member": "ImageInfo",
10676
+ "name": "ImageInfo",
10677
+ "output_required": false,
10678
+ "required": false,
10679
+ "type": "object",
10680
+ "value_allowed_null": false
10681
+ }
10682
+ ],
10683
+ "usage": "both"
10684
+ },
10400
10685
  "Spec": {
10401
10686
  "document": "计费项内容",
10402
10687
  "members": [
@@ -11907,6 +12192,36 @@
11907
12192
  "output_required": true,
11908
12193
  "type": "string",
11909
12194
  "value_allowed_null": true
12195
+ },
12196
+ {
12197
+ "disabled": false,
12198
+ "document": "任务subUin信息\n注意:此字段可能返回 null,表示取不到有效值。",
12199
+ "example": "无",
12200
+ "member": "string",
12201
+ "name": "SubUin",
12202
+ "output_required": false,
12203
+ "type": "string",
12204
+ "value_allowed_null": true
12205
+ },
12206
+ {
12207
+ "disabled": false,
12208
+ "document": "任务创建者名称\n注意:此字段可能返回 null,表示取不到有效值。",
12209
+ "example": "user",
12210
+ "member": "string",
12211
+ "name": "SubUinName",
12212
+ "output_required": false,
12213
+ "type": "string",
12214
+ "value_allowed_null": true
12215
+ },
12216
+ {
12217
+ "disabled": false,
12218
+ "document": "任务AppId",
12219
+ "example": "1318247800",
12220
+ "member": "string",
12221
+ "name": "AppId",
12222
+ "output_required": false,
12223
+ "type": "string",
12224
+ "value_allowed_null": false
11910
12225
  }
11911
12226
  ],
11912
12227
  "usage": "out"
@@ -168,6 +168,14 @@
168
168
  "title": "查询数据集列表"
169
169
  }
170
170
  ],
171
+ "DescribeEvents": [
172
+ {
173
+ "document": "获取服务相关的事件(k8s事件)信息",
174
+ "input": "POST / HTTP/1.1\nHost: tione.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEvents\n<公共请求参数>\n\n{\n \"Service\": \"INFER\",\n \"Limit\": 10,\n \"Offset\": 0,\n \"Filters\": [\n {\n \"Name\": \"ResourceKind\",\n \"Values\": [\n \"Pod\"\n ]\n }\n ]\n}",
175
+ "output": "{\n \"Response\": {\n \"Events\": [\n {\n \"Id\": \"44b40fe5-9546-42fd-b75d-557802e0029d\",\n \"Message\": \"Created container sidecar-nginx\",\n \"FirstTimestamp\": \"2022-01-10T19:22:04+08:00\",\n \"LastTimestamp\": \"2022-01-10T19:22:04+08:00\",\n \"Count\": 1,\n \"Type\": \"Normal\",\n \"ResourceKind\": \"Pod\",\n \"ResourceName\": \"ms-cp6rgw9r-1-864587bdb4-p5cv6\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"090e057a-0d4e-488a-978b-83b1636fee99\"\n }\n}",
176
+ "title": "获取事件"
177
+ }
178
+ ],
171
179
  "DescribeInferTemplates": [
172
180
  {
173
181
  "document": "",
@@ -1165,6 +1165,17 @@
1165
1165
  "required": false,
1166
1166
  "type": "string",
1167
1167
  "value_allowed_null": false
1168
+ },
1169
+ {
1170
+ "disabled": false,
1171
+ "document": "云盘ID\n注意:此字段可能返回 null,表示取不到有效值。",
1172
+ "example": "disk-kped07j8",
1173
+ "member": "string",
1174
+ "name": "DiskId",
1175
+ "output_required": false,
1176
+ "required": false,
1177
+ "type": "string",
1178
+ "value_allowed_null": true
1168
1179
  }
1169
1180
  ],
1170
1181
  "usage": "both"
@@ -5475,6 +5475,15 @@
5475
5475
  "name": "HotWordList",
5476
5476
  "required": false,
5477
5477
  "type": "string"
5478
+ },
5479
+ {
5480
+ "disabled": false,
5481
+ "document": "语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。",
5482
+ "example": "1000",
5483
+ "member": "uint64",
5484
+ "name": "VadSilenceTime",
5485
+ "required": false,
5486
+ "type": "int"
5478
5487
  }
5479
5488
  ],
5480
5489
  "usage": "in"