tccli 3.0.1102.1__py2.py3-none-any.whl → 3.0.1104.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 (102) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/aiart/v20221229/ImageToImage.md +1 -1
  3. tccli/examples/csip/v20221121/DescribeDbAssets.md +7 -0
  4. tccli/examples/csip/v20221121/DescribeOrganizationUserInfo.md +12 -1
  5. tccli/examples/cwp/v20180228/DescribePublicProxyInstallCommand.md +4 -4
  6. tccli/examples/cynosdb/v20190107/CreateCLSDelivery.md +18 -0
  7. tccli/examples/cynosdb/v20190107/DeleteCLSDelivery.md +18 -0
  8. tccli/examples/cynosdb/v20190107/DescribeInstanceCLSLogDelivery.md +18 -0
  9. tccli/examples/cynosdb/v20190107/StartCLSDelivery.md +18 -0
  10. tccli/examples/cynosdb/v20190107/StopCLSDelivery.md +18 -0
  11. tccli/examples/ess/v20201111/CreateUserVerifyUrl.md +29 -0
  12. tccli/examples/ess/v20201111/DescribeUserVerifyStatus.md +23 -0
  13. tccli/examples/hai/v20230812/DescribeInstances.md +3 -2
  14. tccli/examples/hunyuan/v20230901/QueryHunyuanImageJob.md +33 -0
  15. tccli/examples/hunyuan/v20230901/SubmitHunyuanImageJob.md +21 -0
  16. tccli/examples/iotexplorer/v20190423/CreateTRTCSignaturesWithRoomId.md +30 -0
  17. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIServiceTask.md +36 -0
  18. tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIServiceTasks.md +3 -0
  19. tccli/examples/iotexplorer/v20190423/DismissRoomByStrRoomIdFromTRTC.md +20 -0
  20. tccli/examples/iotexplorer/v20190423/GenerateCloudStorageAIServiceTaskFileURL.md +24 -0
  21. tccli/examples/iotexplorer/v20190423/RemoveUserByRoomIdFromTRTC.md +21 -0
  22. tccli/examples/lighthouse/v20200324/DescribeInstancesDeniedActions.md +11 -6
  23. tccli/examples/live/v20180801/DescribeLivePadProcessorList.md +25 -0
  24. tccli/examples/live/v20180801/StopLivePadProcessor.md +23 -0
  25. tccli/examples/mrs/v20200910/DrugInstructionObject.md +98 -0
  26. tccli/examples/ssl/v20191205/DescribeDownloadCertificateUrl.md +23 -0
  27. tccli/examples/tke/v20220501/CreateNodePool.md +33 -0
  28. tccli/examples/tke/v20220501/DeleteNodePool.md +21 -0
  29. tccli/examples/tke/v20220501/DescribeNodePools.md +9 -3
  30. tccli/examples/tke/v20220501/ModifyNodePool.md +32 -0
  31. tccli/examples/waf/v20180125/CreateIpAccessControl.md +27 -0
  32. tccli/examples/waf/v20180125/DeleteIpAccessControlV2.md +25 -0
  33. tccli/examples/waf/v20180125/ImportIpAccessControl.md +30 -0
  34. tccli/examples/waf/v20180125/ModifyIpAccessControl.md +28 -0
  35. tccli/services/aiart/v20221229/api.json +3 -3
  36. tccli/services/aiart/v20221229/examples.json +1 -1
  37. tccli/services/apm/v20210622/api.json +1 -1
  38. tccli/services/batch/v20170312/api.json +1 -1
  39. tccli/services/billing/v20180709/api.json +2 -2
  40. tccli/services/captcha/v20190722/api.json +2 -2
  41. tccli/services/ccc/v20200210/api.json +3 -3
  42. tccli/services/cdb/v20170320/api.json +2 -2
  43. tccli/services/clb/v20180317/api.json +2 -2
  44. tccli/services/cls/v20201016/api.json +2 -2
  45. tccli/services/csip/v20221121/api.json +80 -2
  46. tccli/services/csip/v20221121/examples.json +4 -4
  47. tccli/services/cvm/v20170312/api.json +1 -1
  48. tccli/services/cwp/v20180228/api.json +17 -5
  49. tccli/services/cwp/v20180228/examples.json +2 -2
  50. tccli/services/cynosdb/cynosdb_client.py +269 -4
  51. tccli/services/cynosdb/v20190107/api.json +131 -0
  52. tccli/services/cynosdb/v20190107/examples.json +40 -0
  53. tccli/services/dlc/v20210125/api.json +70 -1
  54. tccli/services/ess/ess_client.py +110 -4
  55. tccli/services/ess/v20201111/api.json +185 -5
  56. tccli/services/ess/v20201111/examples.json +16 -0
  57. tccli/services/essbasic/v20210526/api.json +4 -4
  58. tccli/services/faceid/v20180301/api.json +1 -1
  59. tccli/services/fmu/v20191213/api.json +1 -1
  60. tccli/services/hai/v20230812/api.json +2 -2
  61. tccli/services/hai/v20230812/examples.json +1 -1
  62. tccli/services/hunyuan/hunyuan_client.py +110 -4
  63. tccli/services/hunyuan/v20230901/api.json +188 -4
  64. tccli/services/hunyuan/v20230901/examples.json +16 -0
  65. tccli/services/iotexplorer/iotexplorer_client.py +298 -33
  66. tccli/services/iotexplorer/v20190423/api.json +359 -20
  67. tccli/services/iotexplorer/v20190423/examples.json +41 -1
  68. tccli/services/iss/v20230517/api.json +10 -0
  69. tccli/services/lighthouse/v20200324/api.json +45 -33
  70. tccli/services/lighthouse/v20200324/examples.json +3 -3
  71. tccli/services/live/live_client.py +114 -8
  72. tccli/services/live/v20180801/api.json +124 -0
  73. tccli/services/live/v20180801/examples.json +16 -0
  74. tccli/services/lke/v20231130/api.json +109 -3
  75. tccli/services/mrs/mrs_client.py +53 -0
  76. tccli/services/mrs/v20200910/api.json +1649 -415
  77. tccli/services/mrs/v20200910/examples.json +8 -0
  78. tccli/services/ocr/v20181119/api.json +1 -1
  79. tccli/services/rce/rce_client.py +0 -53
  80. tccli/services/rce/v20201103/api.json +0 -197
  81. tccli/services/rce/v20201103/examples.json +0 -8
  82. tccli/services/ssl/ssl_client.py +57 -4
  83. tccli/services/ssl/v20191205/api.json +63 -0
  84. tccli/services/ssl/v20191205/examples.json +8 -0
  85. tccli/services/ssm/v20190923/api.json +1 -1
  86. tccli/services/tdmq/v20200217/api.json +40 -10
  87. tccli/services/teo/v20220901/api.json +34 -0
  88. tccli/services/tke/tke_client.py +171 -12
  89. tccli/services/tke/v20180525/api.json +1 -1
  90. tccli/services/tke/v20220501/api.json +1403 -86
  91. tccli/services/tke/v20220501/examples.json +25 -1
  92. tccli/services/trtc/v20190722/api.json +6 -9
  93. tccli/services/tse/v20201207/api.json +2 -2
  94. tccli/services/vpc/v20170312/api.json +1 -0
  95. tccli/services/waf/v20180125/api.json +396 -0
  96. tccli/services/waf/v20180125/examples.json +32 -0
  97. tccli/services/waf/waf_client.py +216 -4
  98. {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/METADATA +2 -2
  99. {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/RECORD +102 -77
  100. {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/WHEEL +0 -0
  101. {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/entry_points.txt +0 -0
  102. {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/license_files/LICENSE +0 -0
@@ -22,7 +22,7 @@
22
22
  "status": "online"
23
23
  },
24
24
  "AssociateInstancesKeyPairs": {
25
- "document": "本接口(AssociateInstancesKeyPairs)用于绑定用户指定密钥对到实例。\n* 只支持 [RUNNING, STOPPED] 状态的 LINUX_UNIX 操作系统的实例。处于 RUNNING 状态的实例会强制关机,然后绑定。\n* 将密钥的公钥写入到实例的 SSH 配置当中,用户就可以通过该密钥的私钥来登录实例。\n* 如果实例原来绑定过密钥,那么原来的密钥将失效。\n* 如果实例原来是通过密码登录,绑定密钥后无法使用密码登录。\n* 支持批量操作。每次请求批量实例的上限为 100。如果批量实例存在不允许操作的实例,操作会以特定错误码返回。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
25
+ "document": "本接口(AssociateInstancesKeyPairs)用于绑定用户指定密钥对到实例。\n* 只支持 [RUNNING, STOPPED] 状态的 LINUX_UNIX 操作系统的实例。处于 RUNNING 状态的实例会强制关机,然后绑定。\n* 将密钥的公钥写入到实例的 SSH 配置当中,用户就可以通过该密钥的私钥来登录实例。\n* 如果实例原来绑定过密钥,那么原来的密钥将失效。\n* 如果实例原来是通过密码登录,绑定密钥后无法使用密码登录。\n* 支持批量操作。每次请求批量实例的上限为 100。如果批量实例存在不允许操作的实例,操作会以特定错误码返回。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
26
26
  "input": "AssociateInstancesKeyPairsRequest",
27
27
  "name": "绑定密钥对",
28
28
  "output": "AssociateInstancesKeyPairsResponse",
@@ -155,7 +155,7 @@
155
155
  "status": "online"
156
156
  },
157
157
  "DeleteSnapshots": {
158
- "document": "本接口(DeleteSnapshots)用于删除快照。\n快照必须处于 NORMAL 状态,快照状态可以通过 DescribeSnapshots 接口查询,见输出参数中 SnapshotState 字段解释。",
158
+ "document": "本接口(DeleteSnapshots)用于删除快照。\n快照必须处于 NORMAL 状态,快照状态可以通过 <a href=\"https://cloud.tencent.com/document/product/1207/54388\" target=\"_blank\">DescribeSnapshots</a> 接口查询,见输出参数中 SnapshotState 字段解释。",
159
159
  "input": "DeleteSnapshotsRequest",
160
160
  "name": "删除快照",
161
161
  "output": "DeleteSnapshotsResponse",
@@ -456,7 +456,7 @@
456
456
  "status": "online"
457
457
  },
458
458
  "DisassociateInstancesKeyPairs": {
459
- "document": "本接口(DisassociateInstancesKeyPairs)用于解除实例与指定密钥对的绑定关系。\n\n* 只支持 [RUNNING, STOPPED] 状态的 LINUX_UNIX 操作系统的实例。处于 RUNNING 状态的实例会强制关机,然后解绑。\n* 解绑密钥后,实例可以通过原来设置的密码登录。\n* 如果原来没有设置密码,解绑后将无法使用 SSH 登录。可以调用 ResetInstancesPassword 接口来设置登录密码。\n* 支持批量操作。每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
459
+ "document": "本接口(DisassociateInstancesKeyPairs)用于解除实例与指定密钥对的绑定关系。\n\n* 只支持 [RUNNING, STOPPED] 状态的 LINUX_UNIX 操作系统的实例。处于 RUNNING 状态的实例会强制关机,然后解绑。\n* 解绑密钥后,实例可以通过原来设置的密码登录。\n* 如果原来没有设置密码,解绑后将无法使用 SSH 登录。可以调用 <a href=\"https://cloud.tencent.com/document/product/1207/55546\" target=\"_blank\">ResetInstancesPassword</a> 接口来设置登录密码。\n* 支持批量操作。每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
460
460
  "input": "DisassociateInstancesKeyPairsRequest",
461
461
  "name": "解绑密钥对",
462
462
  "output": "DisassociateInstancesKeyPairsResponse",
@@ -512,7 +512,7 @@
512
512
  "status": "online"
513
513
  },
514
514
  "IsolateInstances": {
515
- "document": "本接口(IsolateInstances)用于退还一个或多个轻量应用服务器实例。\n* 只有状态为 RUNNING 或 STOPPED 的实例才可以进行此操作。\n* 接口调用成功后,实例会进入SHUTDOWN 状态。\n* 支持批量操作。每次请求批量资源(包括实例与数据盘)的上限为 20。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
515
+ "document": "本接口(IsolateInstances)用于退还一个或多个轻量应用服务器实例。\n* 只有状态为 RUNNING 或 STOPPED 的实例才可以进行此操作。\n* 接口调用成功后,实例会进入SHUTDOWN 状态。\n* 支持批量操作。每次请求批量资源(包括实例与数据盘)的上限为 20。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
516
516
  "input": "IsolateInstancesRequest",
517
517
  "name": "隔离实例",
518
518
  "output": "IsolateInstancesResponse",
@@ -554,7 +554,7 @@
554
554
  "status": "online"
555
555
  },
556
556
  "ModifyDockerContainer": {
557
- "document": "修改实例内的Docker容器,之后可以通过返回的ActivityId调用DescribeDockerActivities接口查询重建情况。\n请注意:本接口会重新创建并运行实例内的Docker容器。",
557
+ "document": "修改实例内的Docker容器,之后可以通过返回的ActivityId调用<a href=\"https://cloud.tencent.com/document/product/1207/95476\" target=\"_blank\">DescribeDockerActivities</a>接口查询重建情况。\n请注意:本接口会重新创建并运行实例内的Docker容器。",
558
558
  "input": "ModifyDockerContainerRequest",
559
559
  "name": "修改实例内的Docker容器",
560
560
  "output": "ModifyDockerContainerResponse",
@@ -589,7 +589,7 @@
589
589
  "status": "online"
590
590
  },
591
591
  "ModifyInstancesBundle": {
592
- "document": "本接口(ModifyInstancesBundle)用于变更一个或多个轻量应用服务器实例套餐。\n* 只有状态为 RUNNING,STOPPED的实例才可以进行此操作。\n* 支持批量操作。每次请求批量实例的上限为 30。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
592
+ "document": "本接口(ModifyInstancesBundle)用于变更一个或多个轻量应用服务器实例套餐。\n* 只有状态为 RUNNING,STOPPED的实例才可以进行此操作。\n* 支持批量操作。每次请求批量实例的上限为 30。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
593
593
  "input": "ModifyInstancesBundleRequest",
594
594
  "name": "变更实例套餐",
595
595
  "output": "ModifyInstancesBundleResponse",
@@ -617,7 +617,7 @@
617
617
  "status": "online"
618
618
  },
619
619
  "RebootInstances": {
620
- "document": "本接口(RebootInstances)用于重启实例。\n\n* 只有状态为 RUNNING 的实例才可以进行此操作。\n* 接口调用成功时,实例会进入 REBOOTING 状态;重启实例成功时,实例会进入 RUNNING 状态。\n* 支持批量操作,每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
620
+ "document": "本接口(RebootInstances)用于重启实例。\n\n* 只有状态为 RUNNING 的实例才可以进行此操作。\n* 接口调用成功时,实例会进入 REBOOTING 状态;重启实例成功时,实例会进入 RUNNING 状态。\n* 支持批量操作,每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
621
621
  "input": "RebootInstancesRequest",
622
622
  "name": "重启实例",
623
623
  "output": "RebootInstancesResponse",
@@ -645,7 +645,7 @@
645
645
  "status": "online"
646
646
  },
647
647
  "RenewInstances": {
648
- "document": "本接口(RenewInstances)用于续费一个或多个轻量应用服务器实例。\n* 只有状态为 RUNNING,STOPPED 或 SHUTDOWN 的实例才可以进行此操作。\n* 支持批量操作。每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
648
+ "document": "本接口(RenewInstances)用于续费一个或多个轻量应用服务器实例。\n* 只有状态为 RUNNING,STOPPED 或 SHUTDOWN 的实例才可以进行此操作。\n* 支持批量操作。每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
649
649
  "input": "RenewInstancesRequest",
650
650
  "name": "续费实例",
651
651
  "output": "RenewInstancesResponse",
@@ -680,14 +680,14 @@
680
680
  "status": "online"
681
681
  },
682
682
  "ResetInstance": {
683
- "document": "本接口(ResetInstance)用于重装指定实例上的镜像。\n\n* 如果指定了 BlueprintId 参数,则使用指定的镜像重装;否则按照当前实例使用的镜像进行重装。\n* 系统盘将会被格式化,并重置;请确保系统盘中无重要文件。\n* 目前不支持实例使用该接口实现 LINUX_UNIX 和 WINDOWS 操作系统切换。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
683
+ "document": "本接口(ResetInstance)用于重装指定实例上的镜像。\n\n* 如果指定了 BlueprintId 参数,则使用指定的镜像重装;否则按照当前实例使用的镜像进行重装。\n* 系统盘将会被格式化,并重置;请确保系统盘中无重要文件。\n* 目前不支持实例使用该接口实现 LINUX_UNIX 和 WINDOWS 操作系统切换。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
684
684
  "input": "ResetInstanceRequest",
685
685
  "name": "重装系统",
686
686
  "output": "ResetInstanceResponse",
687
687
  "status": "online"
688
688
  },
689
689
  "ResetInstancesPassword": {
690
- "document": "本接口(ResetInstancesPassword)用于将实例操作系统的密码重置为用户指定的密码。\n* 只修改管理员账号的密码。实例的操作系统不同,管理员账号也会不一样(Windows 为 Administrator,Ubuntu 为 ubuntu ,其它系统为 root)。\n* 支持批量操作。将多个实例操作系统的密码重置为相同的密码。每次请求批量实例的上限为 100。\n* 建议对运行中的实例先手动关机,然后再进行密码重置。如实例处于运行中状态,本接口操作过程中会对实例进行关机操作,尝试正常关机失败后进行强制关机。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。\n注意:强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏。",
690
+ "document": "本接口(ResetInstancesPassword)用于将实例操作系统的密码重置为用户指定的密码。\n* 只修改管理员账号的密码。实例的操作系统不同,管理员账号也会不一样(Windows 为 Administrator,Ubuntu 为 ubuntu ,其它系统为 root)。\n* 支持批量操作。将多个实例操作系统的密码重置为相同的密码。每次请求批量实例的上限为 100。\n* 建议对运行中的实例先手动关机,然后再进行密码重置。如实例处于运行中状态,本接口操作过程中会对实例进行关机操作,尝试正常关机失败后进行强制关机。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。\n注意:强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏。",
691
691
  "input": "ResetInstancesPasswordRequest",
692
692
  "name": "重置实例密码",
693
693
  "output": "ResetInstancesPasswordResponse",
@@ -708,7 +708,7 @@
708
708
  "status": "online"
709
709
  },
710
710
  "RunDockerContainers": {
711
- "document": "创建并运行多个Docker容器,之后可以通过返回的ActivityIds调用DescribeDockerActivities接口查询创建情况。",
711
+ "document": "创建并运行多个Docker容器,之后可以通过返回的ActivityIds调用<a href=\"https://cloud.tencent.com/document/product/1207/95476\" target=\"_blank\">DescribeDockerActivities</a>接口查询创建情况。",
712
712
  "input": "RunDockerContainersRequest",
713
713
  "name": "创建并运行Docker容器",
714
714
  "output": "RunDockerContainersResponse",
@@ -729,7 +729,7 @@
729
729
  "status": "online"
730
730
  },
731
731
  "StartInstances": {
732
- "document": "本接口(StartInstances)用于启动一个或多个实例。\n\n* 只有状态为 STOPPED 的实例才可以进行此操作。\n* 接口调用成功时,实例会进入 STARTING 状态;启动实例成功时,实例会进入 RUNNING 状态。\n* 支持批量操作。每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
732
+ "document": "本接口(StartInstances)用于启动一个或多个实例。\n\n* 只有状态为 STOPPED 的实例才可以进行此操作。\n* 接口调用成功时,实例会进入 STARTING 状态;启动实例成功时,实例会进入 RUNNING 状态。\n* 支持批量操作。每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
733
733
  "input": "StartInstancesRequest",
734
734
  "name": "启动实例",
735
735
  "output": "StartInstancesResponse",
@@ -743,7 +743,7 @@
743
743
  "status": "online"
744
744
  },
745
745
  "StopInstances": {
746
- "document": "本接口(StopInstances)用于关闭一个或多个实例。\n* 只有状态为 RUNNING 的实例才可以进行此操作。\n* 接口调用成功时,实例会进入 STOPPING 状态;关闭实例成功时,实例会进入 STOPPED 状态。\n* 支持批量操作。每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
746
+ "document": "本接口(StopInstances)用于关闭一个或多个实例。\n* 只有状态为 RUNNING 的实例才可以进行此操作。\n* 接口调用成功时,实例会进入 STOPPING 状态;关闭实例成功时,实例会进入 STOPPED 状态。\n* 支持批量操作。每次请求批量实例的上限为 100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态(LatestOperationState)为“SUCCESS”,则代表操作成功。",
747
747
  "input": "StopInstancesRequest",
748
748
  "name": "关闭实例",
749
749
  "output": "StopInstancesResponse",
@@ -757,7 +757,7 @@
757
757
  "status": "online"
758
758
  },
759
759
  "TerminateInstances": {
760
- "document": "本接口 (TerminateInstances) 用于销毁实例。\n\n* 处于 SHUTDOWN 状态的实例,可通过本接口销毁,且不可恢复。\n* 支持批量操作,每次请求批量实例的上限为100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeInstances 接口查询,如果实例的最新操作状态 (LatestOperationState) 为“SUCCESS”,则代表操作成功。",
760
+ "document": "本接口 (TerminateInstances) 用于销毁实例。\n\n* 处于 SHUTDOWN 状态的实例,可通过本接口销毁,且不可恢复。\n* 支持批量操作,每次请求批量实例的上限为100。\n* 本接口为异步接口,请求发送成功后会返回一个 RequestId,此时操作并未立即完成。实例操作结果可以通过调用 <a href=\"https://cloud.tencent.com/document/product/1207/47573\" target=\"_blank\">DescribeInstances</a> 接口查询,如果实例的最新操作状态 (LatestOperationState) 为“SUCCESS”,则代表操作成功。",
761
761
  "input": "TerminateInstancesRequest",
762
762
  "name": "销毁实例",
763
763
  "output": "TerminateInstancesResponse",
@@ -2088,7 +2088,7 @@
2088
2088
  "members": [
2089
2089
  {
2090
2090
  "disabled": false,
2091
- "document": "套餐ID。可以通过调用 [查询套餐](https://cloud.tencent.com/document/api/1207/47575) 接口获取。",
2091
+ "document": "套餐ID。可以通过调用 [DescribeBundles](https://cloud.tencent.com/document/api/1207/47575) 接口获取。",
2092
2092
  "example": "bundle_gen_03",
2093
2093
  "member": "string",
2094
2094
  "name": "BundleId",
@@ -2097,7 +2097,7 @@
2097
2097
  },
2098
2098
  {
2099
2099
  "disabled": false,
2100
- "document": "镜像ID。可以通过调用 [查询镜像信息](https://cloud.tencent.com/document/api/1207/47689) 接口获取。",
2100
+ "document": "镜像ID。可以通过调用 [DescribeBlueprints](https://cloud.tencent.com/document/api/1207/47689) 接口获取。",
2101
2101
  "example": "lhbp-g0tn7djh",
2102
2102
  "member": "string",
2103
2103
  "name": "BlueprintId",
@@ -2534,8 +2534,8 @@
2534
2534
  "members": [
2535
2535
  {
2536
2536
  "disabled": false,
2537
- "document": "要删除的快照 ID 列表,可通过 DescribeSnapshots 查询。",
2538
- "example": "[\"lhsnap-nv6aqcv6\\n\"]",
2537
+ "document": "要删除的快照 ID 列表,可通过 <a href=\"https://cloud.tencent.com/document/product/1207/54388\" target=\"_blank\">DescribeSnapshots</a>查询。",
2538
+ "example": "[\"lhsnap-nv6aqcv6\"]",
2539
2539
  "member": "string",
2540
2540
  "name": "SnapshotIds",
2541
2541
  "required": true,
@@ -2938,8 +2938,8 @@
2938
2938
  "members": [
2939
2939
  {
2940
2940
  "disabled": false,
2941
- "document": "云硬盘备份点 ID 列表, 可通过 DescribeDiskBackups 接口查询。",
2942
- "example": "[\"lhbak-nuen5foj\\n\"] ",
2941
+ "document": "云硬盘备份点 ID 列表, 可通过<a href=\"https://cloud.tencent.com/document/product/1207/84379\" target=\"_blank\">DescribeDiskBackups</a>接口查询。",
2942
+ "example": "[\"lhbak-nuen5foj\"] ",
2943
2943
  "member": "string",
2944
2944
  "name": "DiskBackupIds",
2945
2945
  "required": true,
@@ -2957,7 +2957,7 @@
2957
2957
  "example": "无",
2958
2958
  "member": "DiskBackupDeniedActions",
2959
2959
  "name": "DiskBackupDeniedActionSet",
2960
- "required": true,
2960
+ "output_required": true,
2961
2961
  "type": "list",
2962
2962
  "value_allowed_null": false
2963
2963
  },
@@ -3084,7 +3084,7 @@
3084
3084
  "members": [
3085
3085
  {
3086
3086
  "disabled": false,
3087
- "document": "云硬盘类型, 取值: \"CLOUD_PREMIUM\"。",
3087
+ "document": "云硬盘类型, 取值范围: CLOUD_PREMIUM: 高性能云硬盘,CLOUD_SSD: SSD云硬盘",
3088
3088
  "example": "CLOUD_PREMIUM",
3089
3089
  "member": "string",
3090
3090
  "name": "DiskType",
@@ -3093,7 +3093,7 @@
3093
3093
  },
3094
3094
  {
3095
3095
  "disabled": false,
3096
- "document": "云硬盘大小。",
3096
+ "document": "云硬盘大小, 单位: GB。",
3097
3097
  "example": "50",
3098
3098
  "member": "int64",
3099
3099
  "name": "DiskSize",
@@ -3121,6 +3121,7 @@
3121
3121
  "example": "CNY",
3122
3122
  "member": "string",
3123
3123
  "name": "Currency",
3124
+ "output_required": true,
3124
3125
  "type": "string",
3125
3126
  "value_allowed_null": false
3126
3127
  },
@@ -3130,6 +3131,7 @@
3130
3131
  "example": "无",
3131
3132
  "member": "DiscountDetail",
3132
3133
  "name": "DiscountDetail",
3134
+ "output_required": true,
3133
3135
  "type": "list",
3134
3136
  "value_allowed_null": false
3135
3137
  },
@@ -4127,7 +4129,7 @@
4127
4129
  "example": "无",
4128
4130
  "member": "InstanceDeniedActions",
4129
4131
  "name": "InstanceDeniedActionSet",
4130
- "required": true,
4132
+ "output_required": true,
4131
4133
  "type": "list",
4132
4134
  "value_allowed_null": false
4133
4135
  },
@@ -4720,8 +4722,8 @@
4720
4722
  "members": [
4721
4723
  {
4722
4724
  "disabled": false,
4723
- "document": "快照 ID 列表, 可通过 DescribeSnapshots 查询。",
4724
- "example": "[\"lhsnap-nv6aqcv6\\n\"]",
4725
+ "document": "快照 ID 列表, 可通过 <a href=\"https://cloud.tencent.com/document/product/1207/54388\" target=\"_blank\">DescribeSnapshots</a> 查询。",
4726
+ "example": "[\"lhsnap-nv6aqcv6\"]",
4725
4727
  "member": "string",
4726
4728
  "name": "SnapshotIds",
4727
4729
  "required": true,
@@ -4739,7 +4741,7 @@
4739
4741
  "example": "无",
4740
4742
  "member": "SnapshotDeniedActions",
4741
4743
  "name": "SnapshotDeniedActionSet",
4742
- "required": true,
4744
+ "output_required": true,
4743
4745
  "type": "list",
4744
4746
  "value_allowed_null": false
4745
4747
  },
@@ -6953,6 +6955,16 @@
6953
6955
  "type": "string",
6954
6956
  "value_allowed_null": false
6955
6957
  },
6958
+ {
6959
+ "disabled": false,
6960
+ "document": "实例最新操作的开始时间。\n注意:此字段可能返回 null,表示取不到有效值。",
6961
+ "example": "2023-12-01T06:34:59Z",
6962
+ "member": "datetime_iso",
6963
+ "name": "LatestOperationStartedTime",
6964
+ "output_required": false,
6965
+ "type": "string",
6966
+ "value_allowed_null": true
6967
+ },
6956
6968
  {
6957
6969
  "disabled": false,
6958
6970
  "document": "隔离时间。按照 ISO8601 标准表示,并且使用 UTC 时间。 \n格式为: YYYY-MM-DDThh:mm:ssZ。\n注意:此字段可能返回 null,表示取不到有效值。",
@@ -7199,7 +7211,7 @@
7199
7211
  "example": "lhins-xxxxxx",
7200
7212
  "member": "string",
7201
7213
  "name": "InstanceId",
7202
- "required": false,
7214
+ "output_required": true,
7203
7215
  "type": "string",
7204
7216
  "value_allowed_null": true
7205
7217
  },
@@ -7209,7 +7221,7 @@
7209
7221
  "example": "无",
7210
7222
  "member": "InstancePrice",
7211
7223
  "name": "InstancePrice",
7212
- "required": false,
7224
+ "output_required": true,
7213
7225
  "type": "object",
7214
7226
  "value_allowed_null": true
7215
7227
  },
@@ -7219,7 +7231,7 @@
7219
7231
  "example": "无",
7220
7232
  "member": "DiscountDetail",
7221
7233
  "name": "DiscountDetail",
7222
- "required": false,
7234
+ "output_required": true,
7223
7235
  "type": "list",
7224
7236
  "value_allowed_null": true
7225
7237
  }
@@ -8122,7 +8134,7 @@
8122
8134
  "members": [
8123
8135
  {
8124
8136
  "disabled": false,
8125
- "document": "快照 ID, 可通过 DescribeSnapshots 查询。",
8137
+ "document": "快照 ID, 可通过 <a href=\"https://cloud.tencent.com/document/product/1207/54388\">DescribeSnapshots</a> 查询。",
8126
8138
  "example": "lhsnap-nv6aqcv6",
8127
8139
  "member": "string",
8128
8140
  "name": "SnapshotId",
@@ -8817,7 +8829,7 @@
8817
8829
  },
8818
8830
  {
8819
8831
  "disabled": false,
8820
- "document": "实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:\n`LINUX_UNIX` 实例密码必须 8-30 位,推荐使用 12 位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:<br><li>小写字母:[a-z]<br><li>大写字母:[A-Z]<br><li>数字:0-9<br><li>特殊字符: ()\\`\\~!@#$%^&\\*-+=\\_|{}[]:;' <>,.?/</li>\n`WINDOWS` 实例密码必须 12-30 位,不能以“/”开头且不包括用户名,至少包含以下字符中的三种不同字符<br><li>小写字母:[a-z]<br><li>大写字母:[A-Z]<br><li>数字: 0-9<br><li>特殊字符:()\\`~!@#$%^&\\*-+=\\_|{}[]:;' <>,.?/<br><li>如果实例即包含 `LINUX_UNIX` 实例又包含 `WINDOWS` 实例,则密码复杂度限制按照 `WINDOWS` 实例的限制。",
8832
+ "document": "实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:</br> `LINUX_UNIX` 实例密码必须 8-30 位,推荐使用 12 位以上密码,不能以“/”开头,至少包含以下字符中的三种不同字符,字符种类:</br> <li>小写字母:[a-z]</br></li> <li>大写字母:[A-Z]</br></li> <li>数字:0-9</br></li> <li>特殊字符: ()\\`\\~!@#$%^&\\*-+=\\_|{}[]:;' <>,.?/</li></br> `WINDOWS` 实例密码必须 12-30 位,不能以“/”开头且不包括用户名,至少包含以下字符中的三种不同字符</br> <li>小写字母:[a-z]</br></li> <li>大写字母:[A-Z]</br></li> <li>数字: 0-9</br></li> <li>特殊字符:()\\`~!@#$%^&\\*-+=\\_|{}[]:;' <>,.?/</br></li> <li>如果实例即包含 `LINUX_UNIX` 实例又包含 `WINDOWS` 实例,则密码复杂度限制按照 `WINDOWS` 实例的限制。</li>",
8821
8833
  "example": "xxxxxxxxxxx",
8822
8834
  "member": "string",
8823
8835
  "name": "Password",
@@ -9561,7 +9573,7 @@
9561
9573
  {
9562
9574
  "disabled": false,
9563
9575
  "document": "实例ID列表。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。",
9564
- "example": "[\"lhins-ruy9d2tw\\n\"]",
9576
+ "example": "[\"lhins-ruy9d2tw\"]",
9565
9577
  "member": "string",
9566
9578
  "name": "InstanceIds",
9567
9579
  "required": true,
@@ -416,9 +416,9 @@
416
416
  ],
417
417
  "DescribeInstancesDeniedActions": [
418
418
  {
419
- "document": "",
420
- "input": "https://lighthouse.tencentcloudapi.com/?Action=DescribeInstancesDeniedActions\n&InstanceIds.0=lhins-ruy9d2tw\n&<公共请求参数>",
421
- "output": "{\n \"Response\": {\n \"InstanceDeniedActionSet\": [\n {\n \"InstanceId\": \"lhins-ruy9d2tw\",\n \"DeniedActions\": [\n {\n \"Action\": \"StartInstances\",\n \"Code\": \"UnsupportedOperation.InvalidInstanceState\",\n \"Message\": \"The request does not support the instance `lhins-ruy9d2tw` which is in the state of `RUNNING`.\"\n }\n ]\n }\n ],\n \"RequestId\": \"ccfc8767-94e4-410a-a062-927e6ea79f0f\"\n }\n}",
419
+ "document": "查看实例操作限制列表",
420
+ "input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstancesDeniedActions\n<公共请求参数>\n\n{\n \"InstanceIds\": [\n \"lhins-pcynd6zp\"\n ]\n}",
421
+ "output": "{\n \"Response\": {\n \"InstanceDeniedActionSet\": [\n {\n \"DeniedActions\": [\n {\n \"Action\": \"StartInstances\",\n \"Code\": \"UnsupportedOperation.InvalidInstanceState\",\n \"Message\": \"实例 `lhins-pcynd6zp` 处于 `运行中` 状态中,不支持该操作。\"\n },\n {\n \"Action\": \"ExitRescueMode\",\n \"Code\": \"UnsupportedOperation.InvalidInstanceState\",\n \"Message\": \"实例 `lhins-pcynd6zp` 处于 `运行中` 状态中,不支持该操作。\"\n }\n ],\n \"InstanceId\": \"lhins-pcynd6zp\"\n }\n ],\n \"RequestId\": \"aa7e11d1-4fb5-421a-a1b6-608abcbf75bb\"\n }\n}",
422
422
  "title": "查看实例操作限制列表"
423
423
  }
424
424
  ],
@@ -1265,7 +1265,7 @@ def doCreateScreenshotTask(args, parsed_globals):
1265
1265
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
1266
 
1267
1267
 
1268
- def doDescribeLiveStreamMonitorList(args, parsed_globals):
1268
+ def doDescribeLiveRecordTemplates(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 doDescribeLiveStreamMonitorList(args, parsed_globals):
1294
1294
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
1295
1295
  client._sdkVersion += ("_CLI_" + __version__)
1296
1296
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1297
- model = models.DescribeLiveStreamMonitorListRequest()
1297
+ model = models.DescribeLiveRecordTemplatesRequest()
1298
1298
  model.from_json_string(json.dumps(args))
1299
1299
  start_time = time.time()
1300
1300
  while True:
1301
- rsp = client.DescribeLiveStreamMonitorList(model)
1301
+ rsp = client.DescribeLiveRecordTemplates(model)
1302
1302
  result = rsp.to_json_string()
1303
1303
  try:
1304
1304
  json_obj = json.loads(result)
@@ -5529,6 +5529,58 @@ def doDescribeScreenshotTask(args, parsed_globals):
5529
5529
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5530
5530
 
5531
5531
 
5532
+ def doDescribeLivePadProcessorList(args, parsed_globals):
5533
+ g_param = parse_global_arg(parsed_globals)
5534
+
5535
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5536
+ cred = credential.CVMRoleCredential()
5537
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5538
+ cred = credential.STSAssumeRoleCredential(
5539
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5540
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5541
+ )
5542
+ 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):
5543
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5544
+ else:
5545
+ cred = credential.Credential(
5546
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5547
+ )
5548
+ http_profile = HttpProfile(
5549
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5550
+ reqMethod="POST",
5551
+ endpoint=g_param[OptionsDefine.Endpoint],
5552
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5553
+ )
5554
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5555
+ if g_param[OptionsDefine.Language]:
5556
+ profile.language = g_param[OptionsDefine.Language]
5557
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5558
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
5559
+ client._sdkVersion += ("_CLI_" + __version__)
5560
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5561
+ model = models.DescribeLivePadProcessorListRequest()
5562
+ model.from_json_string(json.dumps(args))
5563
+ start_time = time.time()
5564
+ while True:
5565
+ rsp = client.DescribeLivePadProcessorList(model)
5566
+ result = rsp.to_json_string()
5567
+ try:
5568
+ json_obj = json.loads(result)
5569
+ except TypeError as e:
5570
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5571
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5572
+ break
5573
+ cur_time = time.time()
5574
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5575
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5576
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5577
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5578
+ else:
5579
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5580
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5581
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5582
+
5583
+
5532
5584
  def doDescribePushBandwidthAndFluxList(args, parsed_globals):
5533
5585
  g_param = parse_global_arg(parsed_globals)
5534
5586
 
@@ -6725,7 +6777,7 @@ def doDeleteLiveRecord(args, parsed_globals):
6725
6777
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6726
6778
 
6727
6779
 
6728
- def doDescribeLiveRecordTemplates(args, parsed_globals):
6780
+ def doDescribeLiveStreamMonitorList(args, parsed_globals):
6729
6781
  g_param = parse_global_arg(parsed_globals)
6730
6782
 
6731
6783
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -6754,11 +6806,11 @@ def doDescribeLiveRecordTemplates(args, parsed_globals):
6754
6806
  client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
6755
6807
  client._sdkVersion += ("_CLI_" + __version__)
6756
6808
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
6757
- model = models.DescribeLiveRecordTemplatesRequest()
6809
+ model = models.DescribeLiveStreamMonitorListRequest()
6758
6810
  model.from_json_string(json.dumps(args))
6759
6811
  start_time = time.time()
6760
6812
  while True:
6761
- rsp = client.DescribeLiveRecordTemplates(model)
6813
+ rsp = client.DescribeLiveStreamMonitorList(model)
6762
6814
  result = rsp.to_json_string()
6763
6815
  try:
6764
6816
  json_obj = json.loads(result)
@@ -7765,6 +7817,58 @@ def doCancelCommonMixStream(args, parsed_globals):
7765
7817
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7766
7818
 
7767
7819
 
7820
+ def doStopLivePadProcessor(args, parsed_globals):
7821
+ g_param = parse_global_arg(parsed_globals)
7822
+
7823
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
7824
+ cred = credential.CVMRoleCredential()
7825
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
7826
+ cred = credential.STSAssumeRoleCredential(
7827
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
7828
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
7829
+ )
7830
+ 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):
7831
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
7832
+ else:
7833
+ cred = credential.Credential(
7834
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
7835
+ )
7836
+ http_profile = HttpProfile(
7837
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
7838
+ reqMethod="POST",
7839
+ endpoint=g_param[OptionsDefine.Endpoint],
7840
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
7841
+ )
7842
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
7843
+ if g_param[OptionsDefine.Language]:
7844
+ profile.language = g_param[OptionsDefine.Language]
7845
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
7846
+ client = mod.LiveClient(cred, g_param[OptionsDefine.Region], profile)
7847
+ client._sdkVersion += ("_CLI_" + __version__)
7848
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
7849
+ model = models.StopLivePadProcessorRequest()
7850
+ model.from_json_string(json.dumps(args))
7851
+ start_time = time.time()
7852
+ while True:
7853
+ rsp = client.StopLivePadProcessor(model)
7854
+ result = rsp.to_json_string()
7855
+ try:
7856
+ json_obj = json.loads(result)
7857
+ except TypeError as e:
7858
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
7859
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
7860
+ break
7861
+ cur_time = time.time()
7862
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
7863
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
7864
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
7865
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
7866
+ else:
7867
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
7868
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
7869
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
7870
+
7871
+
7768
7872
  def doDescribeLivePackageInfo(args, parsed_globals):
7769
7873
  g_param = parse_global_arg(parsed_globals)
7770
7874
 
@@ -8060,7 +8164,7 @@ ACTION_MAP = {
8060
8164
  "DescribeTopClientIpSumInfoList": doDescribeTopClientIpSumInfoList,
8061
8165
  "ModifyPullStreamStatus": doModifyPullStreamStatus,
8062
8166
  "CreateScreenshotTask": doCreateScreenshotTask,
8063
- "DescribeLiveStreamMonitorList": doDescribeLiveStreamMonitorList,
8167
+ "DescribeLiveRecordTemplates": doDescribeLiveRecordTemplates,
8064
8168
  "AuthenticateDomainOwner": doAuthenticateDomainOwner,
8065
8169
  "ModifyLiveStreamMonitor": doModifyLiveStreamMonitor,
8066
8170
  "DescribeVisitTopSumInfoList": doDescribeVisitTopSumInfoList,
@@ -8142,6 +8246,7 @@ ACTION_MAP = {
8142
8246
  "DescribeLiveTimeShiftBillInfoList": doDescribeLiveTimeShiftBillInfoList,
8143
8247
  "DescribeLiveStreamPublishedList": doDescribeLiveStreamPublishedList,
8144
8248
  "DescribeScreenshotTask": doDescribeScreenshotTask,
8249
+ "DescribeLivePadProcessorList": doDescribeLivePadProcessorList,
8145
8250
  "DescribePushBandwidthAndFluxList": doDescribePushBandwidthAndFluxList,
8146
8251
  "DescribeLiveCallbackTemplate": doDescribeLiveCallbackTemplate,
8147
8252
  "DeleteScreenshotTask": doDeleteScreenshotTask,
@@ -8165,7 +8270,7 @@ ACTION_MAP = {
8165
8270
  "DescribeLiveWatermarkRules": doDescribeLiveWatermarkRules,
8166
8271
  "DescribeLivePadRules": doDescribeLivePadRules,
8167
8272
  "DeleteLiveRecord": doDeleteLiveRecord,
8168
- "DescribeLiveRecordTemplates": doDescribeLiveRecordTemplates,
8273
+ "DescribeLiveStreamMonitorList": doDescribeLiveStreamMonitorList,
8169
8274
  "CreateLiveSnapshotRule": doCreateLiveSnapshotRule,
8170
8275
  "CreateLiveTimeShiftTemplate": doCreateLiveTimeShiftTemplate,
8171
8276
  "DeleteLiveStreamMonitor": doDeleteLiveStreamMonitor,
@@ -8185,6 +8290,7 @@ ACTION_MAP = {
8185
8290
  "DescribeLiveTranscodeRules": doDescribeLiveTranscodeRules,
8186
8291
  "EnableLiveDomain": doEnableLiveDomain,
8187
8292
  "CancelCommonMixStream": doCancelCommonMixStream,
8293
+ "StopLivePadProcessor": doStopLivePadProcessor,
8188
8294
  "DescribeLivePackageInfo": doDescribeLivePackageInfo,
8189
8295
  "CreatePullStreamConfig": doCreatePullStreamConfig,
8190
8296
  "DescribeTranscodeTaskNum": doDescribeTranscodeTaskNum,