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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdn/v20180606/DescribeHttpsPackages.md +19 -18
  3. tccli/examples/cdn/v20180606/DescribeTrafficPackages.md +16 -14
  4. tccli/examples/cfs/v20190719/DescribeCfsFileSystems.md +31 -31
  5. tccli/examples/cfs/v20190719/UpdateCfsPGroup.md +1 -1
  6. tccli/examples/cms/v20190321/CreateKeywordsSamples.md +10 -0
  7. tccli/examples/cms/v20190321/DeleteLibSamples.md +2 -1
  8. tccli/examples/cms/v20190321/DescribeLibSamples.md +2 -1
  9. tccli/examples/cvm/v20170312/DescribeImportImageOs.md +1 -1
  10. tccli/examples/cynosdb/v20190107/AddInstances.md +8 -8
  11. tccli/examples/cynosdb/v20190107/DescribeParamTemplates.md +2 -2
  12. tccli/examples/ecm/v20190719/AllocateIpv6AddressesBandwidth.md +25 -0
  13. tccli/examples/ecm/v20190719/AssignIpv6CidrBlock.md +23 -0
  14. tccli/examples/ecm/v20190719/AssignIpv6CidrBlocks.md +29 -0
  15. tccli/examples/ecm/v20190719/AssignIpv6SubnetCidrBlock.md +29 -0
  16. tccli/examples/ecm/v20190719/DescribeRegionIpv6Addresses.md +41 -0
  17. tccli/examples/ecm/v20190719/ModifyIpv6AddressesBandwidth.md +22 -0
  18. tccli/examples/ecm/v20190719/QueryVpcTaskResult.md +22 -0
  19. tccli/examples/ecm/v20190719/ReleaseIpv6AddressesBandwidth.md +22 -0
  20. tccli/examples/ecm/v20190719/UnassignIpv6SubnetCidrBlock.md +23 -0
  21. tccli/examples/emr/v20190103/InquiryPriceRenewInstance.md +32 -1
  22. tccli/examples/es/v20180416/ModifyEsVipSecurityGroup.md +21 -0
  23. tccli/examples/ess/v20201111/CreateFlowGroupByFiles.md +118 -0
  24. tccli/examples/ess/v20201111/CreateFlowGroupByTemplates.md +61 -0
  25. tccli/examples/ess/v20201111/CreateFlowReminds.md +3 -3
  26. tccli/examples/ess/v20201111/CreateFlowSignReview.md +2 -2
  27. tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByTemplates.md +49 -0
  28. tccli/examples/lcic/v20220817/DescribeDocument.md +52 -16
  29. tccli/examples/live/v20180801/DeleteLiveTranscodeTemplate.md +1 -1
  30. tccli/examples/monitor/v20180724/DeletePrometheusScrapeJobs.md +4 -4
  31. tccli/examples/monitor/v20180724/DescribeExporterIntegrations.md +5 -5
  32. tccli/examples/monitor/v20180724/DescribePrometheusAgents.md +10 -10
  33. tccli/examples/monitor/v20180724/DescribePrometheusScrapeJobs.md +8 -8
  34. tccli/examples/ocr/v20181119/DriverLicenseOCR.md +2 -2
  35. tccli/examples/smh/v20210712/DeleteLibrary.md +1 -1
  36. tccli/examples/sqlserver/v20180328/InquiryPriceRenewDBInstance.md +1 -1
  37. tccli/examples/sqlserver/v20180328/InquiryPriceUpgradeDBInstance.md +1 -1
  38. tccli/examples/ssl/v20191205/DescribeDeployedResources.md +5 -5
  39. tccli/examples/tchd/v20230306/DescribeEvents.md +35 -0
  40. tccli/examples/tdmq/v20200217/CreateTopic.md +1 -1
  41. tccli/examples/vod/v20180717/CreateRebuildMediaTemplate.md +2 -2
  42. tccli/examples/vod/v20180717/DeleteRebuildMediaTemplate.md +2 -2
  43. tccli/examples/vod/v20180717/DescribeRebuildMediaTemplates.md +2 -2
  44. tccli/examples/vod/v20180717/ModifyRebuildMediaTemplate.md +2 -2
  45. tccli/examples/vod/v20180717/RebuildMedia.md +2 -2
  46. tccli/examples/vod/v20180717/RebuildMediaByTemplate.md +2 -2
  47. tccli/examples/vpc/v20170312/DescribeSecurityGroups.md +1 -1
  48. tccli/examples/wav/v20210129/QueryClueInfoList.md +1 -0
  49. tccli/examples/wedata/v20210820/DescribeColumnLineage.md +77 -0
  50. tccli/examples/wedata/v20210820/DescribeTableLineage.md +79 -0
  51. tccli/services/__init__.py +3 -0
  52. tccli/services/autoscaling/v20180419/api.json +1 -1
  53. tccli/services/cdn/v20180606/api.json +49 -67
  54. tccli/services/cdn/v20180606/examples.json +3 -3
  55. tccli/services/cfs/v20190719/api.json +65 -26
  56. tccli/services/cfs/v20190719/examples.json +3 -3
  57. tccli/services/cls/v20201016/api.json +7 -2
  58. tccli/services/cms/v20190321/api.json +37 -2
  59. tccli/services/cms/v20190321/examples.json +3 -3
  60. tccli/services/cvm/v20170312/api.json +2 -0
  61. tccli/services/cvm/v20170312/examples.json +2 -2
  62. tccli/services/cynosdb/v20190107/api.json +58 -73
  63. tccli/services/cynosdb/v20190107/examples.json +3 -3
  64. tccli/services/ecm/ecm_client.py +493 -16
  65. tccli/services/ecm/v20190719/api.json +657 -26
  66. tccli/services/ecm/v20190719/examples.json +72 -0
  67. tccli/services/emr/v20190103/api.json +5 -12
  68. tccli/services/emr/v20190103/examples.json +7 -1
  69. tccli/services/es/es_client.py +65 -12
  70. tccli/services/es/v20180416/api.json +43 -0
  71. tccli/services/es/v20180416/examples.json +8 -0
  72. tccli/services/ess/ess_client.py +145 -39
  73. tccli/services/ess/v20201111/api.json +417 -41
  74. tccli/services/ess/v20201111/examples.json +19 -3
  75. tccli/services/essbasic/essbasic_client.py +53 -0
  76. tccli/services/essbasic/v20210526/api.json +105 -3
  77. tccli/services/essbasic/v20210526/examples.json +8 -0
  78. tccli/services/lcic/v20220817/api.json +27 -16
  79. tccli/services/lcic/v20220817/examples.json +10 -4
  80. tccli/services/live/v20180801/api.json +3 -3
  81. tccli/services/live/v20180801/examples.json +1 -1
  82. tccli/services/monitor/v20180724/api.json +20 -24
  83. tccli/services/monitor/v20180724/examples.json +11 -11
  84. tccli/services/ocr/v20181119/api.json +22 -5
  85. tccli/services/ocr/v20181119/examples.json +1 -1
  86. tccli/services/smh/v20210712/api.json +1 -1
  87. tccli/services/smh/v20210712/examples.json +2 -2
  88. tccli/services/sqlserver/v20180328/api.json +8 -15
  89. tccli/services/sqlserver/v20180328/examples.json +2 -2
  90. tccli/services/ssl/v20191205/api.json +1 -0
  91. tccli/services/ssl/v20191205/examples.json +2 -2
  92. tccli/services/tcb/v20180608/api.json +33 -39
  93. tccli/services/tchd/__init__.py +4 -0
  94. tccli/services/tchd/tchd_client.py +194 -0
  95. tccli/services/tchd/v20230306/api.json +167 -0
  96. tccli/services/tchd/v20230306/examples.json +13 -0
  97. tccli/services/tdmq/v20200217/api.json +7 -14
  98. tccli/services/tdmq/v20200217/examples.json +1 -1
  99. tccli/services/tke/v20180525/api.json +33 -20
  100. tccli/services/trtc/trtc_client.py +8 -61
  101. tccli/services/trtc/v20190722/api.json +0 -240
  102. tccli/services/trtc/v20190722/examples.json +0 -8
  103. tccli/services/tse/v20201207/api.json +20 -39
  104. tccli/services/tts/v20190823/api.json +1 -1
  105. tccli/services/vod/v20180717/api.json +40 -36
  106. tccli/services/vod/v20180717/examples.json +12 -12
  107. tccli/services/vpc/v20170312/api.json +21 -7
  108. tccli/services/vpc/v20170312/examples.json +1 -1
  109. tccli/services/wav/v20210129/api.json +10 -0
  110. tccli/services/wav/v20210129/examples.json +1 -1
  111. tccli/services/wedata/v20210820/api.json +1146 -211
  112. tccli/services/wedata/v20210820/examples.json +16 -0
  113. tccli/services/wedata/wedata_client.py +106 -0
  114. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/METADATA +82 -3
  115. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/RECORD +118 -98
  116. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/WHEEL +0 -0
  117. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/entry_points.txt +0 -0
  118. {tccli-3.0.908.1.dist-info → tccli-3.0.910.1.dist-info}/license_files/LICENSE +0 -0
@@ -0,0 +1,13 @@
1
+ {
2
+ "actions": {
3
+ "DescribeEvents": [
4
+ {
5
+ "document": "查询2023年6月9日发生在广州和上海地域的所有云产品可用性事件",
6
+ "input": "POST / HTTP/1.1\nHost: tchd.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEvents\n<公共请求参数>\n\n{\n \"ProductIds\": [\n \"cvm\"\n ],\n \"RegionIds\": [\n \"ap-guangzhou\",\n \"ap-shanghai\"\n ],\n \"EventDate\": \"2023-06-09\"\n}",
7
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"EventList\": [\n {\n \"ProductId\": \"cvm\",\n \"ProductName\": \"云服务器\",\n \"RegionId\": \"ap-chongqing\",\n \"RegionName\": \"重庆\",\n \"StartTime\": \"2023-06-09 14:16:00\",\n \"EndTime\": \"2023-06-09 14:28:00\",\n \"CurrentStatus\": \"正常\"\n }\n ]\n },\n \"RequestId\": \"76a0ee91-c081-4a9c-9ba6-ad7e15f06ce4\"\n }\n}",
8
+ "title": "查询可用性事件列表"
9
+ }
10
+ ]
11
+ },
12
+ "version": "1.0"
13
+ }
@@ -4687,7 +4687,6 @@
4687
4687
  "document": "CreateTopic请求参数结构体",
4688
4688
  "members": [
4689
4689
  {
4690
- "default": "",
4691
4690
  "disabled": false,
4692
4691
  "document": "环境(命名空间)名称。",
4693
4692
  "example": "default",
@@ -4697,7 +4696,6 @@
4697
4696
  "type": "string"
4698
4697
  },
4699
4698
  {
4700
- "default": "",
4701
4699
  "disabled": false,
4702
4700
  "document": "主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。",
4703
4701
  "example": "test_topic",
@@ -4707,7 +4705,6 @@
4707
4705
  "type": "string"
4708
4706
  },
4709
4707
  {
4710
- "default": "",
4711
4708
  "disabled": false,
4712
4709
  "document": "入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。",
4713
4710
  "example": "2",
@@ -4717,7 +4714,6 @@
4717
4714
  "type": "int"
4718
4715
  },
4719
4716
  {
4720
- "default": "",
4721
4717
  "disabled": false,
4722
4718
  "document": "备注,128字符以内。",
4723
4719
  "example": "2个分区的普通消息队列",
@@ -4727,17 +4723,15 @@
4727
4723
  "type": "string"
4728
4724
  },
4729
4725
  {
4730
- "default": "",
4731
4726
  "disabled": false,
4732
4727
  "document": "该入参将逐步弃用,可切换至PulsarTopicType参数\n0: 普通消息;\n1 :全局顺序消息;\n2 :局部顺序消息;\n3 :重试队列;\n4 :死信队列。",
4733
- "example": "0",
4728
+ "example": "TopicType 和 PulsarTopicType 两者不能同时为空,有一个必选",
4734
4729
  "member": "uint64",
4735
4730
  "name": "TopicType",
4736
4731
  "required": false,
4737
4732
  "type": "int"
4738
4733
  },
4739
4734
  {
4740
- "default": "",
4741
4735
  "disabled": false,
4742
4736
  "document": "Pulsar 集群的ID",
4743
4737
  "example": "pulsar-xxx",
@@ -4747,10 +4741,9 @@
4747
4741
  "type": "string"
4748
4742
  },
4749
4743
  {
4750
- "default": "",
4751
4744
  "disabled": false,
4752
4745
  "document": "Pulsar 主题类型\n0: 非持久非分区\n1: 非持久分区\n2: 持久非分区\n3: 持久分区",
4753
- "example": "0",
4746
+ "example": "TopicType 和 PulsarTopicType 两者不能同时为空,有一个必选",
4754
4747
  "member": "int64",
4755
4748
  "name": "PulsarTopicType",
4756
4749
  "required": false,
@@ -4768,7 +4761,7 @@
4768
4761
  "example": "default",
4769
4762
  "member": "string",
4770
4763
  "name": "EnvironmentId",
4771
- "required": true,
4764
+ "output_required": true,
4772
4765
  "type": "string",
4773
4766
  "value_allowed_null": false
4774
4767
  },
@@ -4778,7 +4771,7 @@
4778
4771
  "example": "test_topic",
4779
4772
  "member": "string",
4780
4773
  "name": "TopicName",
4781
- "required": true,
4774
+ "output_required": true,
4782
4775
  "type": "string",
4783
4776
  "value_allowed_null": false
4784
4777
  },
@@ -4788,7 +4781,7 @@
4788
4781
  "example": "2",
4789
4782
  "member": "uint64",
4790
4783
  "name": "Partitions",
4791
- "required": true,
4784
+ "output_required": true,
4792
4785
  "type": "int",
4793
4786
  "value_allowed_null": false
4794
4787
  },
@@ -4798,7 +4791,7 @@
4798
4791
  "example": "2个分区的普通消息队列",
4799
4792
  "member": "string",
4800
4793
  "name": "Remark",
4801
- "required": true,
4794
+ "output_required": true,
4802
4795
  "type": "string",
4803
4796
  "value_allowed_null": true
4804
4797
  },
@@ -4808,7 +4801,7 @@
4808
4801
  "example": "0",
4809
4802
  "member": "uint64",
4810
4803
  "name": "TopicType",
4811
- "required": true,
4804
+ "output_required": true,
4812
4805
  "type": "int",
4813
4806
  "value_allowed_null": true
4814
4807
  },
@@ -198,7 +198,7 @@
198
198
  ],
199
199
  "CreateTopic": [
200
200
  {
201
- "document": "",
201
+ "document": "创建主题",
202
202
  "input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTopic\n<公共请求参数>\n\n{\n \"EnvironmentId\": \"default\",\n \"Remark\": \"2个分区的普通消息队列\",\n \"TopicType\": \"0\",\n \"TopicName\": \"test_topic\",\n \"Partitions\": \"2\"\n}",
203
203
  "output": "{\n \"Response\": {\n \"EnvironmentId\": \"default\",\n \"TopicName\": \"test_topic\",\n \"Partitions\": 2,\n \"TopicType\": 0,\n \"Remark\": \"2个分区的普通消息队列\",\n \"RequestId\": \"d9686bf9-8d7d-4e78-bb44-5140d70a1ffa\"\n }\n}",
204
204
  "title": "创建主题"
@@ -2932,137 +2932,150 @@
2932
2932
  "document": "集群弹性伸缩配置",
2933
2933
  "members": [
2934
2934
  {
2935
- "default": "",
2936
2935
  "disabled": false,
2937
2936
  "document": "是否开启缩容\n注意:此字段可能返回 null,表示取不到有效值。",
2937
+ "example": "无",
2938
2938
  "member": "bool",
2939
2939
  "name": "IsScaleDownEnabled",
2940
+ "output_required": true,
2940
2941
  "required": false,
2941
2942
  "type": "bool",
2942
2943
  "value_allowed_null": true
2943
2944
  },
2944
2945
  {
2945
- "default": "",
2946
2946
  "disabled": false,
2947
2947
  "document": "多伸缩组情况下扩容选择算法(random 随机选择,most-pods 最多类型的Pod least-waste 最少的资源浪费,默认为random)\n注意:此字段可能返回 null,表示取不到有效值。",
2948
+ "example": "无",
2948
2949
  "member": "string",
2949
2950
  "name": "Expander",
2951
+ "output_required": true,
2950
2952
  "required": false,
2951
2953
  "type": "string",
2952
2954
  "value_allowed_null": true
2953
2955
  },
2954
2956
  {
2955
- "default": "",
2956
2957
  "disabled": false,
2957
2958
  "document": "最大并发缩容数\n注意:此字段可能返回 null,表示取不到有效值。",
2959
+ "example": "无",
2958
2960
  "member": "int64",
2959
2961
  "name": "MaxEmptyBulkDelete",
2962
+ "output_required": true,
2960
2963
  "required": false,
2961
2964
  "type": "int",
2962
2965
  "value_allowed_null": true
2963
2966
  },
2964
2967
  {
2965
- "default": "",
2966
2968
  "disabled": false,
2967
2969
  "document": "集群扩容后多少分钟开始判断缩容(默认为10分钟)\n注意:此字段可能返回 null,表示取不到有效值。",
2970
+ "example": "无",
2968
2971
  "member": "int64",
2969
2972
  "name": "ScaleDownDelay",
2973
+ "output_required": true,
2970
2974
  "required": false,
2971
2975
  "type": "int",
2972
2976
  "value_allowed_null": true
2973
2977
  },
2974
2978
  {
2975
- "default": "",
2976
2979
  "disabled": false,
2977
2980
  "document": "节点连续空闲多少分钟后被缩容(默认为 10分钟)\n注意:此字段可能返回 null,表示取不到有效值。",
2981
+ "example": "无",
2978
2982
  "member": "int64",
2979
2983
  "name": "ScaleDownUnneededTime",
2984
+ "output_required": true,
2980
2985
  "required": false,
2981
2986
  "type": "int",
2982
2987
  "value_allowed_null": true
2983
2988
  },
2984
2989
  {
2985
- "default": "",
2986
2990
  "disabled": false,
2987
2991
  "document": "节点资源使用量低于多少(百分比)时认为空闲(默认: 50(百分比))\n注意:此字段可能返回 null,表示取不到有效值。",
2992
+ "example": "无",
2988
2993
  "member": "int64",
2989
2994
  "name": "ScaleDownUtilizationThreshold",
2995
+ "output_required": true,
2990
2996
  "required": false,
2991
2997
  "type": "int",
2992
2998
  "value_allowed_null": true
2993
2999
  },
2994
3000
  {
2995
- "default": "",
2996
3001
  "disabled": false,
2997
- "document": "含有本地存储Pod的节点是否不缩容(默认: FALSE)\n注意:此字段可能返回 null,表示取不到有效值。",
3002
+ "document": "含有本地存储Pod的节点是否不缩容(默认: true)\n注意:此字段可能返回 null,表示取不到有效值。",
3003
+ "example": "无",
2998
3004
  "member": "bool",
2999
3005
  "name": "SkipNodesWithLocalStorage",
3006
+ "output_required": true,
3000
3007
  "required": false,
3001
3008
  "type": "bool",
3002
3009
  "value_allowed_null": true
3003
3010
  },
3004
3011
  {
3005
- "default": "",
3006
3012
  "disabled": false,
3007
- "document": "含有kube-system namespace下非DaemonSet管理的Pod的节点是否不缩容 (默认: FALSE)\n注意:此字段可能返回 null,表示取不到有效值。",
3013
+ "document": "含有kube-system namespace下非DaemonSet管理的Pod的节点是否不缩容 (默认: true)\n注意:此字段可能返回 null,表示取不到有效值。",
3014
+ "example": "无",
3008
3015
  "member": "bool",
3009
3016
  "name": "SkipNodesWithSystemPods",
3017
+ "output_required": true,
3010
3018
  "required": false,
3011
3019
  "type": "bool",
3012
3020
  "value_allowed_null": true
3013
3021
  },
3014
3022
  {
3015
- "default": "",
3016
3023
  "disabled": false,
3017
3024
  "document": "计算资源使用量时是否默认忽略DaemonSet的实例(默认值: False,不忽略)\n注意:此字段可能返回 null,表示取不到有效值。",
3025
+ "example": "无",
3018
3026
  "member": "bool",
3019
3027
  "name": "IgnoreDaemonSetsUtilization",
3028
+ "output_required": true,
3020
3029
  "required": false,
3021
3030
  "type": "bool",
3022
3031
  "value_allowed_null": true
3023
3032
  },
3024
3033
  {
3025
- "default": "",
3026
3034
  "disabled": false,
3027
3035
  "document": "CA做健康性判断的个数,默认3,即超过OkTotalUnreadyCount个数后,CA会进行健康性判断。\n注意:此字段可能返回 null,表示取不到有效值。",
3036
+ "example": "无",
3028
3037
  "member": "int64",
3029
3038
  "name": "OkTotalUnreadyCount",
3030
- "required": true,
3039
+ "output_required": true,
3040
+ "required": false,
3031
3041
  "type": "int",
3032
3042
  "value_allowed_null": true
3033
3043
  },
3034
3044
  {
3035
- "default": "",
3036
3045
  "disabled": false,
3037
3046
  "document": "未就绪节点的最大百分比,此后CA会停止操作\n注意:此字段可能返回 null,表示取不到有效值。",
3047
+ "example": "无",
3038
3048
  "member": "int64",
3039
3049
  "name": "MaxTotalUnreadyPercentage",
3040
- "required": true,
3050
+ "output_required": true,
3051
+ "required": false,
3041
3052
  "type": "int",
3042
3053
  "value_allowed_null": true
3043
3054
  },
3044
3055
  {
3045
- "default": "",
3046
3056
  "disabled": false,
3047
3057
  "document": "表示未准备就绪的节点在有资格进行缩减之前应该停留多长时间\n注意:此字段可能返回 null,表示取不到有效值。",
3058
+ "example": "无",
3048
3059
  "member": "int64",
3049
3060
  "name": "ScaleDownUnreadyTime",
3050
- "required": true,
3061
+ "output_required": true,
3062
+ "required": false,
3051
3063
  "type": "int",
3052
3064
  "value_allowed_null": true
3053
3065
  },
3054
3066
  {
3055
- "default": "",
3056
3067
  "disabled": false,
3057
3068
  "document": "CA删除未在Kubernetes中注册的节点之前等待的时间\n注意:此字段可能返回 null,表示取不到有效值。",
3069
+ "example": "无",
3058
3070
  "member": "int64",
3059
3071
  "name": "UnregisteredNodeRemovalTime",
3060
- "required": true,
3072
+ "output_required": true,
3073
+ "required": false,
3061
3074
  "type": "int",
3062
3075
  "value_allowed_null": true
3063
3076
  }
3064
3077
  ],
3065
- "usage": "out"
3078
+ "usage": "both"
3066
3079
  },
3067
3080
  "ClusterBasicSettings": {
3068
3081
  "document": "描述集群的基本配置信息",
@@ -381,7 +381,7 @@ def doDescribeTRTCMarketScaleMetricData(args, parsed_globals):
381
381
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
382
 
383
383
 
384
- def doDescribeRecordingUsage(args, parsed_globals):
384
+ def doStartMCUMixTranscodeByStrRoomId(args, parsed_globals):
385
385
  g_param = parse_global_arg(parsed_globals)
386
386
 
387
387
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -410,11 +410,11 @@ def doDescribeRecordingUsage(args, parsed_globals):
410
410
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
411
411
  client._sdkVersion += ("_CLI_" + __version__)
412
412
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
413
- model = models.DescribeRecordingUsageRequest()
413
+ model = models.StartMCUMixTranscodeByStrRoomIdRequest()
414
414
  model.from_json_string(json.dumps(args))
415
415
  start_time = time.time()
416
416
  while True:
417
- rsp = client.DescribeRecordingUsage(model)
417
+ rsp = client.StartMCUMixTranscodeByStrRoomId(model)
418
418
  result = rsp.to_json_string()
419
419
  try:
420
420
  json_obj = json.loads(result)
@@ -849,58 +849,6 @@ def doCreateCloudRecording(args, parsed_globals):
849
849
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
850
 
851
851
 
852
- def doDescribeExternalTrtcMeasure(args, parsed_globals):
853
- g_param = parse_global_arg(parsed_globals)
854
-
855
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
856
- cred = credential.CVMRoleCredential()
857
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
858
- cred = credential.STSAssumeRoleCredential(
859
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
860
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
861
- )
862
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
863
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
864
- else:
865
- cred = credential.Credential(
866
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
867
- )
868
- http_profile = HttpProfile(
869
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
870
- reqMethod="POST",
871
- endpoint=g_param[OptionsDefine.Endpoint],
872
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
873
- )
874
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
875
- if g_param[OptionsDefine.Language]:
876
- profile.language = g_param[OptionsDefine.Language]
877
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
878
- client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
879
- client._sdkVersion += ("_CLI_" + __version__)
880
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
881
- model = models.DescribeExternalTrtcMeasureRequest()
882
- model.from_json_string(json.dumps(args))
883
- start_time = time.time()
884
- while True:
885
- rsp = client.DescribeExternalTrtcMeasure(model)
886
- result = rsp.to_json_string()
887
- try:
888
- json_obj = json.loads(result)
889
- except TypeError as e:
890
- json_obj = json.loads(result.decode('utf-8')) # python3.3
891
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
892
- break
893
- cur_time = time.time()
894
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
895
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
896
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
897
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
898
- else:
899
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
900
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
901
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
-
903
-
904
852
  def doDescribeScaleInfo(args, parsed_globals):
905
853
  g_param = parse_global_arg(parsed_globals)
906
854
 
@@ -1161,7 +1109,7 @@ def doStopMCUMixTranscodeByStrRoomId(args, parsed_globals):
1161
1109
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1162
1110
 
1163
1111
 
1164
- def doStartMCUMixTranscodeByStrRoomId(args, parsed_globals):
1112
+ def doDescribeRecordingUsage(args, parsed_globals):
1165
1113
  g_param = parse_global_arg(parsed_globals)
1166
1114
 
1167
1115
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1190,11 +1138,11 @@ def doStartMCUMixTranscodeByStrRoomId(args, parsed_globals):
1190
1138
  client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
1191
1139
  client._sdkVersion += ("_CLI_" + __version__)
1192
1140
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1193
- model = models.StartMCUMixTranscodeByStrRoomIdRequest()
1141
+ model = models.DescribeRecordingUsageRequest()
1194
1142
  model.from_json_string(json.dumps(args))
1195
1143
  start_time = time.time()
1196
1144
  while True:
1197
- rsp = client.StartMCUMixTranscodeByStrRoomId(model)
1145
+ rsp = client.DescribeRecordingUsage(model)
1198
1146
  result = rsp.to_json_string()
1199
1147
  try:
1200
1148
  json_obj = json.loads(result)
@@ -1959,7 +1907,7 @@ ACTION_MAP = {
1959
1907
  "DescribeCallDetailInfo": doDescribeCallDetailInfo,
1960
1908
  "StopMCUMixTranscode": doStopMCUMixTranscode,
1961
1909
  "DescribeTRTCMarketScaleMetricData": doDescribeTRTCMarketScaleMetricData,
1962
- "DescribeRecordingUsage": doDescribeRecordingUsage,
1910
+ "StartMCUMixTranscodeByStrRoomId": doStartMCUMixTranscodeByStrRoomId,
1963
1911
  "DeletePicture": doDeletePicture,
1964
1912
  "DescribeTRTCRealTimeQualityMetricData": doDescribeTRTCRealTimeQualityMetricData,
1965
1913
  "CreatePicture": doCreatePicture,
@@ -1968,13 +1916,12 @@ ACTION_MAP = {
1968
1916
  "DescribeUserEvent": doDescribeUserEvent,
1969
1917
  "StartMCUMixTranscode": doStartMCUMixTranscode,
1970
1918
  "CreateCloudRecording": doCreateCloudRecording,
1971
- "DescribeExternalTrtcMeasure": doDescribeExternalTrtcMeasure,
1972
1919
  "DescribeScaleInfo": doDescribeScaleInfo,
1973
1920
  "DescribeRelayUsage": doDescribeRelayUsage,
1974
1921
  "DescribeUserInfo": doDescribeUserInfo,
1975
1922
  "DescribeTrtcMcuTranscodeTime": doDescribeTrtcMcuTranscodeTime,
1976
1923
  "StopMCUMixTranscodeByStrRoomId": doStopMCUMixTranscodeByStrRoomId,
1977
- "StartMCUMixTranscodeByStrRoomId": doStartMCUMixTranscodeByStrRoomId,
1924
+ "DescribeRecordingUsage": doDescribeRecordingUsage,
1978
1925
  "RemoveUserByStrRoomId": doRemoveUserByStrRoomId,
1979
1926
  "DescribeMixTranscodingUsage": doDescribeMixTranscodingUsage,
1980
1927
  "DismissRoom": doDismissRoom,