tccli 3.0.1389.1__py2.py3-none-any.whl → 3.0.1391.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.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/ai3d/ai3d_client.py +216 -4
- tccli/services/ai3d/v20250513/api.json +326 -0
- tccli/services/ai3d/v20250513/examples.json +32 -0
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/batch/v20170312/api.json +3 -3
- tccli/services/batch/v20170312/examples.json +3 -3
- tccli/services/cam/v20190116/api.json +11 -1
- tccli/services/ccc/v20200210/api.json +10 -10
- tccli/services/cdb/v20170320/api.json +40 -2
- tccli/services/cdz/v20221123/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +31 -23
- tccli/services/ckafka/v20190819/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +20 -1
- tccli/services/cloudapp/cloudapp_client.py +53 -0
- tccli/services/cloudapp/v20220530/api.json +68 -0
- tccli/services/cloudapp/v20220530/examples.json +14 -0
- tccli/services/cls/cls_client.py +167 -8
- tccli/services/cls/v20201016/api.json +292 -2
- tccli/services/cls/v20201016/examples.json +24 -0
- tccli/services/dts/v20211206/api.json +15 -15
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/es/v20250101/api.json +99 -5
- tccli/services/ess/v20201111/api.json +145 -4
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/gme/v20180711/api.json +7 -7
- tccli/services/gs/gs_client.py +57 -4
- tccli/services/gs/v20191118/api.json +79 -0
- tccli/services/gs/v20191118/examples.json +8 -0
- tccli/services/gwlb/v20240906/api.json +117 -0
- tccli/services/igtm/v20231024/api.json +3 -3
- tccli/services/iotexplorer/v20190423/api.json +19 -1
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +53 -0
- tccli/services/lighthouse/v20200324/api.json +228 -35
- tccli/services/lighthouse/v20200324/examples.json +8 -0
- tccli/services/live/v20180801/api.json +2 -2
- tccli/services/lkeap/v20240522/api.json +25 -1
- tccli/services/lowcode/lowcode_client.py +163 -4
- tccli/services/lowcode/v20210108/api.json +1373 -96
- tccli/services/lowcode/v20210108/examples.json +24 -0
- tccli/services/mps/v20190612/api.json +804 -47
- tccli/services/ocr/v20181119/api.json +4 -4
- tccli/services/sqlserver/v20180328/api.json +4 -4
- tccli/services/tcbr/v20220217/api.json +51 -0
- tccli/services/tdai/__init__.py +4 -0
- tccli/services/tdai/tdai_client.py +1108 -0
- tccli/services/tdai/v20250717/api.json +1930 -0
- tccli/services/tdai/v20250717/examples.json +149 -0
- tccli/services/teo/teo_client.py +53 -0
- tccli/services/teo/v20220901/api.json +111 -3
- tccli/services/teo/v20220901/examples.json +8 -0
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tts/v20190823/api.json +11 -11
- tccli/services/vpc/v20170312/api.json +37 -7
- tccli/services/vpc/v20170312/examples.json +7 -7
- tccli/services/vtc/v20240223/api.json +10 -8
- tccli/services/vtc/v20240223/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +283 -6
- tccli/services/waf/v20180125/examples.json +24 -0
- tccli/services/waf/waf_client.py +159 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/RECORD +68 -64
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1389.1.dist-info → tccli-3.0.1391.1.dist-info}/license_files/LICENSE +0 -0
@@ -22,7 +22,7 @@
|
|
22
22
|
"status": "online"
|
23
23
|
},
|
24
24
|
"CreateAsyncRecognitionTask": {
|
25
|
-
"document": "本接口用于对语音流进行准实时识别,通过异步回调来返回识别结果。适用于直播审核等场景。\n<br>• 支持rtmp、rtsp等流媒体协议,以及各类基于http协议的直播流(不支持hls)\n<br>• 音频流时长无限制,服务会自动拉取音频流数据,若连续10
|
25
|
+
"document": "本接口用于对语音流进行准实时识别,通过异步回调来返回识别结果。适用于直播审核等场景。\n<br>• 支持rtmp、rtsp等流媒体协议,以及各类基于http协议的直播流(不支持hls)\n<br>• 音频流时长无限制,服务会自动拉取音频流数据,若连续10分钟拉不到流或流数据无人声时,服务会终止识别任务\n<br>• 服务通过回调的方式来提供识别结果,用户需要提供CallbackUrl。回调时机为一小段话(最长15秒)回调一次。\n<br>• 签名方法参考 [公共参数](https://cloud.tencent.com/document/api/1093/35640) 中签名方法v3。\n<br>• 默认单账号限制并发数为20路,如您有提高并发限制的需求,请提[工单](https://console.cloud.tencent.com/workorder/category)进行咨询。",
|
26
26
|
"input": "CreateAsyncRecognitionTaskRequest",
|
27
27
|
"name": "语音流异步识别任务创建",
|
28
28
|
"output": "CreateAsyncRecognitionTaskResponse",
|
@@ -2145,7 +2145,7 @@
|
|
2145
2145
|
{
|
2146
2146
|
"disabled": false,
|
2147
2147
|
"document": "可用区信息",
|
2148
|
-
"example": "ap-guangzhou-
|
2148
|
+
"example": "ap-guangzhou-6",
|
2149
2149
|
"member": "string",
|
2150
2150
|
"name": "Zone",
|
2151
2151
|
"output_required": true,
|
@@ -5047,8 +5047,8 @@
|
|
5047
5047
|
},
|
5048
5048
|
{
|
5049
5049
|
"disabled": false,
|
5050
|
-
"document": "系统盘ID。\n
|
5051
|
-
"example": "disk-
|
5050
|
+
"document": "系统盘ID。\n该参数目前仅用于 [DescribeInstances](https://cloud.tencent.com/document/product/213/15728) 等查询类接口的返回参数,不可用于 [RunInstances](https://cloud.tencent.com/document/product/213/15730) 等写接口的入参。",
|
5051
|
+
"example": "disk-xyzw1a3x",
|
5052
5052
|
"member": "string",
|
5053
5053
|
"name": "DiskId",
|
5054
5054
|
"output_required": false,
|
@@ -60,7 +60,7 @@
|
|
60
60
|
{
|
61
61
|
"document": "",
|
62
62
|
"input": "https://batch.tencentcloudapi.com/?Action=DescribeComputeEnv\n&EnvId=env-lcpcej85\n&<公共请求参数>",
|
63
|
-
"output": "{\n \"Response\": {\n \"EnvId\": \"env-lcpcej85\",\n \"ComputeNodeMetrics\": {\n \"CreatedCount\": 0,\n \"DeletingCount\": 0,\n \"CreationFailedCount\": 0,\n \"SubmittedCount\": 0,\n \"CreatingCount\": 0,\n \"AbnormalCount\": 1,\n \"RunningCount\": 1\n },\n \"ResourceType\": \"CVM\",\n \"EnvType\": \"MANAGED\",\n \"CreateTime\": \"2018-03-08T11:48:43Z\",\n \"EnvName\": \"test compute env\",\n \"NextAction\": \"\",\n \"Placement\": {\n \"ProjectId\": 0,\n \"Zone\": \"ap-guangzhou-
|
63
|
+
"output": "{\n \"Response\": {\n \"EnvId\": \"env-lcpcej85\",\n \"ComputeNodeMetrics\": {\n \"CreatedCount\": 0,\n \"DeletingCount\": 0,\n \"CreationFailedCount\": 0,\n \"SubmittedCount\": 0,\n \"CreatingCount\": 0,\n \"AbnormalCount\": 1,\n \"RunningCount\": 1\n },\n \"ResourceType\": \"CVM\",\n \"EnvType\": \"MANAGED\",\n \"CreateTime\": \"2018-03-08T11:48:43Z\",\n \"EnvName\": \"test compute env\",\n \"NextAction\": \"\",\n \"Placement\": {\n \"ProjectId\": 0,\n \"Zone\": \"ap-guangzhou-6\"\n },\n \"ComputeNodeSet\": [\n {\n \"ComputeNodeId\": \"node-noa8vefu\",\n \"ComputeNodeState\": \"ABNORMAL\",\n \"Mem\": 2,\n \"ResourceCreatedTime\": \"2018-03-08T11:49:17Z\",\n \"ResourceType\": \"CVM\",\n \"ResourceOrigin\": \"BATCH_CREATED\",\n \"ComputeNodeInstanceId\": \"ins-0kj3gz6s\",\n \"AgentVersion\": \"1.1.9\",\n \"TaskInstanceNumAvailable\": 1,\n \"Cpu\": 1,\n \"PublicIpAddresses\": [\n \"132.20.19.18\"\n ],\n \"PrivateIpAddresses\": [\n \"10.10.8.3\"\n ]\n },\n {\n \"ComputeNodeId\": \"node-9yzd5jei\",\n \"ComputeNodeState\": \"RUNNING\",\n \"Mem\": 2,\n \"ResourceCreatedTime\": \"2018-03-09T13:15:44Z\",\n \"ResourceType\": \"CVM\",\n \"ResourceOrigin\": \"BATCH_CREATED\",\n \"ComputeNodeInstanceId\": \"ins-jyafz2sk\",\n \"AgentVersion\": \"1.1.9\",\n \"TaskInstanceNumAvailable\": 1,\n \"Cpu\": 1,\n \"PublicIpAddresses\": [\n \"132.20.19.18\"\n ],\n \"PrivateIpAddresses\": [\n \"10.10.8.3\"\n ]\n }\n ],\n \"DesiredComputeNodeCount\": 2,\n \"AttachedComputeNodeCount\": 0,\n \"Tags\": [\n {\n \"Key\": \"batch-test-tag-env-key\",\n \"Value\": \"batch-test-tag-env-value1\"\n }\n ],\n \"RequestId\": \"274cbd4f-77d2-4bf6-9984-643318ed3ef8\"\n }\n}",
|
64
64
|
"title": "查看计算环境详细信息"
|
65
65
|
}
|
66
66
|
],
|
@@ -76,7 +76,7 @@
|
|
76
76
|
{
|
77
77
|
"document": "",
|
78
78
|
"input": "https://batch.tencentcloudapi.com/?Action=DescribeComputeEnvCreateInfo\n&EnvId=env-lcpcej85\n&<公共请求参数>",
|
79
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"578f3fae-6908-4521-ac07-17c2cffcd5ae\",\n \"EnvId\": \"env-lcx7qbbr\",\n \"Notifications\": [\n {\n \"EventConfigs\": [\n {\n \"EventName\": \"COMPUTE_ENV_CREATED_SUCCESS\",\n \"EventVars\": [\n {\n \"Name\": \"COMPUTE_ENV_CREATED_SUCCESS\",\n \"Value\": \"COMPUTE_ENV_CREATED_SUCCESS\"\n }\n ]\n }\n ],\n \"TopicName\": \"compute-env-topic\"\n }\n ],\n \"Tags\": [\n {\n \"Value\": \"demo-tag\",\n \"Key\": \"demo-env1\"\n }\n ],\n \"Authentications\": [\n {\n \"SecretKey\": \"AKIDUdi1************9ThAzpuXIjNx\",\n \"SecretId\": \"Udi16***********Q9ThAzpuXIjN\",\n \"Scene\": \"COS\"\n }\n ],\n \"EnvData\": {\n \"VirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-23syenxk\",\n \"AsVpcGateway\": true,\n \"Ipv6AddressCount\": 1,\n \"VpcId\": \"vpc-1xnwrxw2\",\n \"PrivateIpAddresses\": [\n \"10.10.2.29\"\n ]\n },\n \"LoginSettings\": {\n \"Password\": \"Aa12**5678\",\n \"KeepImageLogin\": \"True\",\n \"KeyIds\": [\n \"Qa123\"\n ]\n },\n \"InstanceMarketOptions\": {\n \"SpotOptions\": {\n \"SpotInstanceType\": \"one-time\",\n \"MaxPrice\": \"1\"\n },\n \"MarketType\": \"spot\"\n },\n \"SystemDisk\": {\n \"DiskSize\": 0,\n \"CdcId\": \"1\",\n \"DiskId\": \"disk-sdfk23nw\",\n \"DiskType\": \"CLOUD_SSD\"\n },\n \"InstanceTypes\": [\n \"S5.SMALL2\"\n ],\n \"Zones\": [\n \"ap-guangzhou-
|
79
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"578f3fae-6908-4521-ac07-17c2cffcd5ae\",\n \"EnvId\": \"env-lcx7qbbr\",\n \"Notifications\": [\n {\n \"EventConfigs\": [\n {\n \"EventName\": \"COMPUTE_ENV_CREATED_SUCCESS\",\n \"EventVars\": [\n {\n \"Name\": \"COMPUTE_ENV_CREATED_SUCCESS\",\n \"Value\": \"COMPUTE_ENV_CREATED_SUCCESS\"\n }\n ]\n }\n ],\n \"TopicName\": \"compute-env-topic\"\n }\n ],\n \"Tags\": [\n {\n \"Value\": \"demo-tag\",\n \"Key\": \"demo-env1\"\n }\n ],\n \"Authentications\": [\n {\n \"SecretKey\": \"AKIDUdi1************9ThAzpuXIjNx\",\n \"SecretId\": \"Udi16***********Q9ThAzpuXIjN\",\n \"Scene\": \"COS\"\n }\n ],\n \"EnvData\": {\n \"VirtualPrivateCloud\": {\n \"SubnetId\": \"subnet-23syenxk\",\n \"AsVpcGateway\": true,\n \"Ipv6AddressCount\": 1,\n \"VpcId\": \"vpc-1xnwrxw2\",\n \"PrivateIpAddresses\": [\n \"10.10.2.29\"\n ]\n },\n \"LoginSettings\": {\n \"Password\": \"Aa12**5678\",\n \"KeepImageLogin\": \"True\",\n \"KeyIds\": [\n \"Qa123\"\n ]\n },\n \"InstanceMarketOptions\": {\n \"SpotOptions\": {\n \"SpotInstanceType\": \"one-time\",\n \"MaxPrice\": \"1\"\n },\n \"MarketType\": \"spot\"\n },\n \"SystemDisk\": {\n \"DiskSize\": 0,\n \"CdcId\": \"1\",\n \"DiskId\": \"disk-sdfk23nw\",\n \"DiskType\": \"CLOUD_SSD\"\n },\n \"InstanceTypes\": [\n \"S5.SMALL2\"\n ],\n \"Zones\": [\n \"ap-guangzhou-6\"\n ],\n \"InstanceChargeType\": \"POSTPAID_BY_HOUR\",\n \"EnhancedService\": {\n \"SecurityService\": {\n \"Enabled\": true\n },\n \"MonitorService\": {\n \"Enabled\": true\n },\n \"AutomationService\": {\n \"Enabled\": true\n }\n },\n \"SecurityGroupIds\": [\n \"sg-1234t1\"\n ],\n \"InternetAccessible\": {\n \"PublicIpAssigned\": true,\n \"InternetChargeType\": \"POSTPAID_BY_HOUR\",\n \"BandwidthPackageId\": \"dcaew\",\n \"InternetMaxBandwidthOut\": 0\n },\n \"VirtualPrivateClouds\": [\n {\n \"SubnetId\": \"subnet-23syenxk\",\n \"AsVpcGateway\": true,\n \"Ipv6AddressCount\": 1,\n \"VpcId\": \"vpc-1xnwrxw2\",\n \"PrivateIpAddresses\": [\n \"10.10.2.29\"\n ]\n }\n ],\n \"ImageId\": \"img-3sdke3x2\",\n \"InstanceName\": \"test-env\",\n \"InstanceType\": \"S5.SMALL2\",\n \"InstanceTypeOptions\": {\n \"Memory\": 1,\n \"CPU\": 1,\n \"InstanceCategories\": [\n \"ALL\"\n ]\n },\n \"DataDisks\": [\n {\n \"DeleteWithInstance\": true,\n \"Encrypt\": true,\n \"CdcId\": \"2\",\n \"DiskType\": \"CLOUD_SSD\",\n \"ThroughputPerformance\": 0,\n \"KmsKeyId\": \"kms-213k73kx\",\n \"DiskSize\": 0,\n \"SnapshotId\": \"snap-fsdekxe2\",\n \"DiskId\": \"disk-ecqwbck\"\n }\n ]\n },\n \"EnvDescription\": \"test-env\",\n \"MountDataDisks\": [\n {\n \"FileSystemType\": \"EXT4\",\n \"LocalPath\": \"/mnt\"\n }\n ],\n \"DesiredComputeNodeCount\": 1,\n \"EnvName\": \"test-env\",\n \"InputMappings\": [\n {\n \"SourcePath\": \"cos://test-1111123424.cos.ap-guangzhou.myqcloud.com/batchtest/input/\",\n \"DestinationPath\": \"/opt/data\",\n \"MountOptionParameter\": \"\"\n }\n ],\n \"EnvType\": \"MANAGED\"\n }\n}",
|
80
80
|
"title": "查看计算环境的创建信息"
|
81
81
|
}
|
82
82
|
],
|
@@ -116,7 +116,7 @@
|
|
116
116
|
{
|
117
117
|
"document": "",
|
118
118
|
"input": "https://batch.tencentcloudapi.com/?Action=DescribeJob\n&JobId=job-97zcl3wt\n&<公共请求参数>",
|
119
|
-
"output": "{\n \"Response\": {\n \"JobState\": \"SUCCEED\",\n \"TaskSet\": [\n {\n \"EndTime\": \"2018-02-07T09:30:31Z\",\n \"TaskName\": \"A\",\n \"TaskState\": \"SUCCEED\",\n \"CreateTime\": \"2018-02-07T09:29:09Z\"\n },\n {\n \"EndTime\": \"2018-02-07T09:31:49Z\",\n \"TaskName\": \"B\",\n \"TaskState\": \"SUCCEED\",\n \"CreateTime\": \"2018-02-07T09:29:09Z\"\n },\n {\n \"EndTime\": \"2018-02-07T09:31:48Z\",\n \"TaskName\": \"C\",\n \"TaskState\": \"SUCCEED\",\n \"CreateTime\": \"2018-02-07T09:29:09Z\"\n },\n {\n \"EndTime\": \"2018-02-07T09:33:01Z\",\n \"TaskName\": \"D\",\n \"TaskState\": \"SUCCEED\",\n \"CreateTime\": \"2018-02-07T09:29:09Z\"\n }\n ],\n \"Zone\": \"ap-guangzhou-
|
119
|
+
"output": "{\n \"Response\": {\n \"JobState\": \"SUCCEED\",\n \"TaskSet\": [\n {\n \"EndTime\": \"2018-02-07T09:30:31Z\",\n \"TaskName\": \"A\",\n \"TaskState\": \"SUCCEED\",\n \"CreateTime\": \"2018-02-07T09:29:09Z\"\n },\n {\n \"EndTime\": \"2018-02-07T09:31:49Z\",\n \"TaskName\": \"B\",\n \"TaskState\": \"SUCCEED\",\n \"CreateTime\": \"2018-02-07T09:29:09Z\"\n },\n {\n \"EndTime\": \"2018-02-07T09:31:48Z\",\n \"TaskName\": \"C\",\n \"TaskState\": \"SUCCEED\",\n \"CreateTime\": \"2018-02-07T09:29:09Z\"\n },\n {\n \"EndTime\": \"2018-02-07T09:33:01Z\",\n \"TaskName\": \"D\",\n \"TaskState\": \"SUCCEED\",\n \"CreateTime\": \"2018-02-07T09:29:09Z\"\n }\n ],\n \"Zone\": \"ap-guangzhou-6\",\n \"TaskMetrics\": {\n \"PendingCount\": 0,\n \"FailedCount\": 0,\n \"StartingCount\": 0,\n \"SucceedCount\": 4,\n \"FailedInterruptedCount\": 0,\n \"SubmittedCount\": 0,\n \"RunnableCount\": 0,\n \"RunningCount\": 0\n },\n \"JobName\": \"test job\",\n \"JobId\": \"job-97zcl3wt\",\n \"Priority\": 1,\n \"StateReason\": \"\",\n \"TaskInstanceMetrics\": {\n \"PendingCount\": 0,\n \"FailedCount\": 0,\n \"StartingCount\": 0,\n \"SucceedCount\": 4,\n \"FailedInterruptedCount\": 0,\n \"SubmittedCount\": 0,\n \"RunnableCount\": 0,\n \"RunningCount\": 0\n },\n \"EndTime\": \"2018-02-07T09:33:01Z\",\n \"DependenceSet\": [\n {\n \"StartTask\": \"A\",\n \"EndTask\": \"B\"\n },\n {\n \"StartTask\": \"A\",\n \"EndTask\": \"C\"\n },\n {\n \"StartTask\": \"B\",\n \"EndTask\": \"D\"\n },\n {\n \"StartTask\": \"C\",\n \"EndTask\": \"D\"\n }\n ],\n \"CreateTime\": \"2018-02-07T09:29:09Z\",\n \"Tags\": [\n {\n \"Key\": \"batch-test-tag-job-key\",\n \"Value\": \"batch-test-tag-job-value\"\n }\n ],\n \"NextAction\": \"\",\n \"RequestId\": \"d1b08863-b8ee-49d4-aa08-f464499f97a0\"\n }\n}",
|
120
120
|
"title": "查询作业详细信息"
|
121
121
|
}
|
122
122
|
],
|
@@ -6190,7 +6190,7 @@
|
|
6190
6190
|
{
|
6191
6191
|
"disabled": false,
|
6192
6192
|
"document": "手机号码",
|
6193
|
-
"example": "132****
|
6193
|
+
"example": "132****0112",
|
6194
6194
|
"member": "string",
|
6195
6195
|
"name": "PhoneNumber",
|
6196
6196
|
"output_required": true,
|
@@ -6256,6 +6256,16 @@
|
|
6256
6256
|
"output_required": true,
|
6257
6257
|
"type": "int",
|
6258
6258
|
"value_allowed_null": false
|
6259
|
+
},
|
6260
|
+
{
|
6261
|
+
"disabled": false,
|
6262
|
+
"document": "国家代码",
|
6263
|
+
"example": "86",
|
6264
|
+
"member": "string",
|
6265
|
+
"name": "CountryCode",
|
6266
|
+
"output_required": false,
|
6267
|
+
"type": "string",
|
6268
|
+
"value_allowed_null": false
|
6259
6269
|
}
|
6260
6270
|
],
|
6261
6271
|
"usage": "out"
|
@@ -9652,7 +9652,7 @@
|
|
9652
9652
|
{
|
9653
9653
|
"disabled": false,
|
9654
9654
|
"document": "主叫号码",
|
9655
|
-
"example": "
|
9655
|
+
"example": "0086010xxxxxxxx",
|
9656
9656
|
"member": "string",
|
9657
9657
|
"name": "Caller",
|
9658
9658
|
"output_required": true,
|
@@ -9662,7 +9662,7 @@
|
|
9662
9662
|
{
|
9663
9663
|
"disabled": false,
|
9664
9664
|
"document": "被叫号码",
|
9665
|
-
"example": "
|
9665
|
+
"example": "0086130xxxxxxxx",
|
9666
9666
|
"member": "string",
|
9667
9667
|
"name": "Callee",
|
9668
9668
|
"output_required": true,
|
@@ -9732,7 +9732,7 @@
|
|
9732
9732
|
{
|
9733
9733
|
"disabled": false,
|
9734
9734
|
"document": "座席信息",
|
9735
|
-
"example": "
|
9735
|
+
"example": "无",
|
9736
9736
|
"member": "SeatUserInfo",
|
9737
9737
|
"name": "SeatUser",
|
9738
9738
|
"output_required": true,
|
@@ -9741,7 +9741,7 @@
|
|
9741
9741
|
},
|
9742
9742
|
{
|
9743
9743
|
"disabled": false,
|
9744
|
-
"document": "EndStatus与EndStatusString一一对应,具体枚举如下:\n\n**场景\t EndStatus\tEndStatusString\t状态说明**\n\n电话呼入&呼出\t1\t ok\t
|
9744
|
+
"document": "EndStatus与EndStatusString一一对应,具体枚举如下:\n\n**场景\t EndStatus\tEndStatusString\t状态说明**\n\n电话呼入&呼出\t1\t ok\t **正常通话**\n\n电话呼入\t 102\t ivrGiveUp\t **IVR期间用户放弃**\n\n电话呼入\t 103\t waitingGiveUp\t **排队时用户放弃**\n\n电话呼入\t 104\t ringingGiveUp\t **振铃时用户放弃**\n\n电话呼入\t 105\t noSeatOnline\t **无座席在线**\n\n电话呼入 106\t notWorkTime\t **非工作时间** \n\n电话呼入\t 107\t ivrEnd\t **IVR全自动结束(无人工介入)**\n\n电话呼入\t 100\t blackList **黑名单(系统侧)**\n\n电话呼出 108\t restrictedCallee\t**全局外呼风险号码拦截(系统侧)**\n\n电话呼出 109\t tooManyRequest\t **外呼频控拦截(系统侧)**\n\n电话呼出 110\t restrictedArea\t **外呼地域拦截(系统侧)**\n\n电话呼出 111\t restrictedTime\t**外呼时段拦截(系统侧)**\n \n电话呼出 202 notAnswer\t **被叫未接听**\n\n电话呼出 203\t userReject\t**被叫拒接挂断**\n\n电话呼出\t 204\t powerOff\t**被叫关机**\n\n电话呼出 205 numberNotExist\t**被叫空号**\n\n电话呼出\t 206\t busy\t**被叫忙**\n\n电话呼出 \t 207\t outOfCredit\t**被叫欠费**\n\n电话呼出\t 208\t operatorError\t**运营商线路异常**\n\n电话呼出 \t209\t callerCancel\t**主叫取消**\n\n电话呼出\t 210\t notInService\t**被叫不在服务区**\n\n电话呼入&呼出\t211 clientError **座席客户端错误**\n\n电话呼出 212 carrierBlocked **运营商拦截**\n\n电话呼出 213 callReminder **提示来电提醒**\n\n电话呼出 215 numberInvalid **被叫号码无效**\n\n电话呼出 216 callRestricted **提示呼叫受限**\n\n电话呼出 217 calleeRestricted **被叫黑名单受限**\n\n电话呼出 218 areaRestricted **被叫区域受限**\n\n电话呼出 219 promptCallForwarding **提示呼叫转移**\n\n电话呼出 220 callerCancelWhileRing **振铃中主叫取消**\n\n电话呼出 221 callerCancelWithoutRing **未振铃被叫号码异常**\n\n音频呼入 501 callConflict **VoIP用户呼叫冲突终止**\n\n音频呼入 502 clientTimeout **VoIP用户客户端超时**\n\n音频呼入 503 voipClientError **VoIP用户客户端错误**\n\n中文详情[参考](https://www.tencentcloud.com/zh/document/product/1229/71847)\n\n英文详情[参考](https://www.tencentcloud.com/document/product/1229/71847?lang=en)",
|
9745
9745
|
"example": "1",
|
9746
9746
|
"member": "int64",
|
9747
9747
|
"name": "EndStatus",
|
@@ -9832,7 +9832,7 @@
|
|
9832
9832
|
{
|
9833
9833
|
"disabled": false,
|
9834
9834
|
"document": "服务参与者列表",
|
9835
|
-
"example": "
|
9835
|
+
"example": "无",
|
9836
9836
|
"member": "ServeParticipant",
|
9837
9837
|
"name": "ServeParticipants",
|
9838
9838
|
"output_required": true,
|
@@ -9851,7 +9851,7 @@
|
|
9851
9851
|
},
|
9852
9852
|
{
|
9853
9853
|
"disabled": false,
|
9854
|
-
"document": "EndStatus
|
9854
|
+
"document": "参考 EndStatus 字段",
|
9855
9855
|
"example": "ok",
|
9856
9856
|
"member": "string",
|
9857
9857
|
"name": "EndStatusString",
|
@@ -9882,7 +9882,7 @@
|
|
9882
9882
|
{
|
9883
9883
|
"disabled": false,
|
9884
9884
|
"document": "后置IVR按键信息(e.g. [{\"Key\":\"1\",\"Label\":\"非常满意\"}])",
|
9885
|
-
"example": "
|
9885
|
+
"example": "无",
|
9886
9886
|
"member": "IVRKeyPressedElement",
|
9887
9887
|
"name": "PostIVRKeyPressed",
|
9888
9888
|
"output_required": true,
|
@@ -9912,7 +9912,7 @@
|
|
9912
9912
|
{
|
9913
9913
|
"disabled": false,
|
9914
9914
|
"document": "主叫号码保护ID,开启号码保护映射功能时有效,且Caller字段置空",
|
9915
|
-
"example": "
|
9915
|
+
"example": "0086130xxxxxxxx",
|
9916
9916
|
"member": "string",
|
9917
9917
|
"name": "ProtectedCaller",
|
9918
9918
|
"output_required": true,
|
@@ -9922,7 +9922,7 @@
|
|
9922
9922
|
{
|
9923
9923
|
"disabled": false,
|
9924
9924
|
"document": "被叫号码保护ID,开启号码保护映射功能时有效,且Callee字段置空",
|
9925
|
-
"example": "
|
9925
|
+
"example": "0086130xxxxxxxx",
|
9926
9926
|
"member": "string",
|
9927
9927
|
"name": "ProtectedCallee",
|
9928
9928
|
"output_required": true,
|
@@ -9952,7 +9952,7 @@
|
|
9952
9952
|
{
|
9953
9953
|
"disabled": false,
|
9954
9954
|
"document": "IVR按键信息(e.g. [{\"Key\":\"1\",\"Label\":\"非常满意\"}])",
|
9955
|
-
"example": "
|
9955
|
+
"example": "无",
|
9956
9956
|
"member": "IVRKeyPressedElement",
|
9957
9957
|
"name": "IVRKeyPressedEx",
|
9958
9958
|
"output_required": true,
|
@@ -1620,7 +1620,7 @@
|
|
1620
1620
|
{
|
1621
1621
|
"disabled": false,
|
1622
1622
|
"document": "读写权重分配。如果 WeightMode 传的是 system ,则传入的权重不生效,由系统分配默认权重。",
|
1623
|
-
"example": "
|
1623
|
+
"example": "无",
|
1624
1624
|
"member": "ProxyAllocation",
|
1625
1625
|
"name": "ProxyAllocation",
|
1626
1626
|
"required": false,
|
@@ -1643,6 +1643,24 @@
|
|
1643
1643
|
"name": "AccessMode",
|
1644
1644
|
"required": false,
|
1645
1645
|
"type": "string"
|
1646
|
+
},
|
1647
|
+
{
|
1648
|
+
"disabled": false,
|
1649
|
+
"document": "是否将libra节点当作普通RO节点",
|
1650
|
+
"example": "true",
|
1651
|
+
"member": "string",
|
1652
|
+
"name": "ApNodeAsRoNode",
|
1653
|
+
"required": false,
|
1654
|
+
"type": "string"
|
1655
|
+
},
|
1656
|
+
{
|
1657
|
+
"disabled": false,
|
1658
|
+
"document": "libra节点故障,是否转发给其他节点",
|
1659
|
+
"example": "true",
|
1660
|
+
"member": "string",
|
1661
|
+
"name": "ApQueryToOtherNode",
|
1662
|
+
"required": false,
|
1663
|
+
"type": "string"
|
1646
1664
|
}
|
1647
1665
|
],
|
1648
1666
|
"type": "object"
|
@@ -18595,7 +18613,7 @@
|
|
18595
18613
|
{
|
18596
18614
|
"disabled": false,
|
18597
18615
|
"document": "实例读权重分配",
|
18598
|
-
"example": "
|
18616
|
+
"example": "无",
|
18599
18617
|
"member": "ProxyAllocation",
|
18600
18618
|
"name": "ProxyAllocation",
|
18601
18619
|
"output_required": true,
|
@@ -18621,6 +18639,26 @@
|
|
18621
18639
|
"output_required": false,
|
18622
18640
|
"type": "bool",
|
18623
18641
|
"value_allowed_null": false
|
18642
|
+
},
|
18643
|
+
{
|
18644
|
+
"disabled": false,
|
18645
|
+
"document": "是否把libra当作ro节点",
|
18646
|
+
"example": "false",
|
18647
|
+
"member": "bool",
|
18648
|
+
"name": "ApNodeAsRoNode",
|
18649
|
+
"output_required": false,
|
18650
|
+
"type": "bool",
|
18651
|
+
"value_allowed_null": false
|
18652
|
+
},
|
18653
|
+
{
|
18654
|
+
"disabled": false,
|
18655
|
+
"document": "libra节点故障,是否转发给其他节点",
|
18656
|
+
"example": "false",
|
18657
|
+
"member": "bool",
|
18658
|
+
"name": "ApQueryToOtherNode",
|
18659
|
+
"output_required": false,
|
18660
|
+
"type": "bool",
|
18661
|
+
"value_allowed_null": false
|
18624
18662
|
}
|
18625
18663
|
],
|
18626
18664
|
"usage": "out"
|
@@ -294,7 +294,7 @@
|
|
294
294
|
{
|
295
295
|
"disabled": false,
|
296
296
|
"document": "资源水位扩展信息",
|
297
|
-
"example": "
|
297
|
+
"example": "无",
|
298
298
|
"member": "ExtraInfo",
|
299
299
|
"name": "ExtraInfo",
|
300
300
|
"output_required": false,
|
@@ -472,7 +472,7 @@
|
|
472
472
|
"DescribeUser": {
|
473
473
|
"document": "查询用户信息",
|
474
474
|
"input": "DescribeUserRequest",
|
475
|
-
"name": "查询用户信息",
|
475
|
+
"name": "根据实例id查询用户信息",
|
476
476
|
"output": "DescribeUserResponse",
|
477
477
|
"status": "online"
|
478
478
|
},
|
@@ -3223,7 +3223,7 @@
|
|
3223
3223
|
{
|
3224
3224
|
"disabled": false,
|
3225
3225
|
"document": "任务名称,只能以字母起始,允许包含字母、数字、- 、. 、 下划线且长度不超过64 (、为分割符号规则不包含)",
|
3226
|
-
"example": "task
|
3226
|
+
"example": "task-test",
|
3227
3227
|
"member": "string",
|
3228
3228
|
"name": "TaskName",
|
3229
3229
|
"required": true,
|
@@ -5625,7 +5625,7 @@
|
|
5625
5625
|
},
|
5626
5626
|
{
|
5627
5627
|
"disabled": false,
|
5628
|
-
"document": "消费组名称,可通过DescribeConsumerGroup接口获取。",
|
5628
|
+
"document": "消费组名称,可通过[DescribeConsumerGroup](https://cloud.tencent.com/document/product/597/40841)接口获取。",
|
5629
5629
|
"example": "group-test",
|
5630
5630
|
"member": "string",
|
5631
5631
|
"name": "Group",
|
@@ -5745,7 +5745,7 @@
|
|
5745
5745
|
},
|
5746
5746
|
{
|
5747
5747
|
"disabled": false,
|
5748
|
-
"document": "路由id,可通过DescribeRoute接口获取",
|
5748
|
+
"document": "路由id,可通过[DescribeRoute](https://cloud.tencent.com/document/product/597/45484)接口获取",
|
5749
5749
|
"example": "301",
|
5750
5750
|
"member": "int64",
|
5751
5751
|
"name": "RouteId",
|
@@ -8930,7 +8930,7 @@
|
|
8930
8930
|
{
|
8931
8931
|
"disabled": false,
|
8932
8932
|
"document": "返回结果",
|
8933
|
-
"example": "
|
8933
|
+
"example": "无",
|
8934
8934
|
"member": "UserResponse",
|
8935
8935
|
"name": "Result",
|
8936
8936
|
"output_required": true,
|
@@ -11457,18 +11457,16 @@
|
|
11457
11457
|
"member": "string",
|
11458
11458
|
"name": "PublicNetworkChargeType",
|
11459
11459
|
"required": false,
|
11460
|
-
"type": "string"
|
11461
|
-
"value_allowed_null": false
|
11460
|
+
"type": "string"
|
11462
11461
|
},
|
11463
11462
|
{
|
11464
11463
|
"disabled": false,
|
11465
|
-
"document": "公网带宽, 单位MB",
|
11464
|
+
"document": "公网带宽, 单位MB 取值需是0,或是3的倍数",
|
11466
11465
|
"example": "0",
|
11467
11466
|
"member": "int64",
|
11468
11467
|
"name": "PublicNetworkMonthly",
|
11469
11468
|
"required": false,
|
11470
|
-
"type": "int"
|
11471
|
-
"value_allowed_null": false
|
11469
|
+
"type": "int"
|
11472
11470
|
}
|
11473
11471
|
],
|
11474
11472
|
"usage": "in"
|
@@ -11784,7 +11782,7 @@
|
|
11784
11782
|
},
|
11785
11783
|
{
|
11786
11784
|
"disabled": false,
|
11787
|
-
"document": "
|
11785
|
+
"document": "实例类型 枚举列表: \nprofession :专业版 \nstandards2 :标准版\npremium :高级版\nserverless :serverless版",
|
11788
11786
|
"example": "profession",
|
11789
11787
|
"member": "string",
|
11790
11788
|
"name": "InstanceType",
|
@@ -11834,7 +11832,7 @@
|
|
11834
11832
|
},
|
11835
11833
|
{
|
11836
11834
|
"disabled": false,
|
11837
|
-
"document": "
|
11835
|
+
"document": "该字段已废弃,无实际含义",
|
11838
11836
|
"example": "1566144000",
|
11839
11837
|
"member": "string",
|
11840
11838
|
"name": "DeleteRouteTimestamp",
|
@@ -11874,7 +11872,7 @@
|
|
11874
11872
|
},
|
11875
11873
|
{
|
11876
11874
|
"disabled": false,
|
11877
|
-
"document": "实例计费类型",
|
11875
|
+
"document": "实例计费类型 POSTPAID_BY_HOUR 按小时付费; PREPAID 包年包月",
|
11878
11876
|
"example": "PREPAID",
|
11879
11877
|
"member": "string",
|
11880
11878
|
"name": "InstanceChargeType",
|
@@ -11884,7 +11882,7 @@
|
|
11884
11882
|
},
|
11885
11883
|
{
|
11886
11884
|
"disabled": false,
|
11887
|
-
"document": "集群类型",
|
11885
|
+
"document": "集群类型 \nCLOUD_IDC IDC集群\nCLOUD_CVM_SHARE CVM共享集群\nCLOUD_CVM_YUNTI 云梯CVM集群\nCLOUD_CVM CVM集群\nCLOUD_CDC CDC集群\nCLOUD_EKS_TSE EKS集群",
|
11888
11886
|
"example": "CLOUD_CVM",
|
11889
11887
|
"member": "string",
|
11890
11888
|
"name": "ClusterType",
|
@@ -11914,7 +11912,7 @@
|
|
11914
11912
|
},
|
11915
11913
|
{
|
11916
11914
|
"disabled": false,
|
11917
|
-
"document": "ssl自定义证书id",
|
11915
|
+
"document": "ssl自定义证书id 仅自定义证书实例集群返回",
|
11918
11916
|
"example": "cert-test",
|
11919
11917
|
"member": "string",
|
11920
11918
|
"name": "CustomCertId",
|
@@ -13639,7 +13637,7 @@
|
|
13639
13637
|
"example": "[\"topic-test\"]",
|
13640
13638
|
"member": "string",
|
13641
13639
|
"name": "Topics",
|
13642
|
-
"required":
|
13640
|
+
"required": true,
|
13643
13641
|
"type": "list"
|
13644
13642
|
},
|
13645
13643
|
{
|
@@ -14733,7 +14731,7 @@
|
|
14733
14731
|
},
|
14734
14732
|
{
|
14735
14733
|
"disabled": false,
|
14736
|
-
"document": "
|
14734
|
+
"document": "用于控制会话的持久性。cleanSession 为true时,连接时会创建一个全新的会话。 cleanSession = false时,连接时会恢复之前的会话。",
|
14737
14735
|
"example": "true",
|
14738
14736
|
"member": "bool",
|
14739
14737
|
"name": "CleanSession",
|
@@ -15203,7 +15201,7 @@
|
|
15203
15201
|
{
|
15204
15202
|
"disabled": false,
|
15205
15203
|
"document": "表与消息间的映射关系",
|
15206
|
-
"example": "
|
15204
|
+
"example": "无",
|
15207
15205
|
"member": "RecordMapping",
|
15208
15206
|
"name": "DataTargetRecordMapping",
|
15209
15207
|
"output_required": false,
|
@@ -15258,7 +15256,7 @@
|
|
15258
15256
|
{
|
15259
15257
|
"disabled": false,
|
15260
15258
|
"document": "当设置成员参数DropInvalidMessageToCls设置为true时,DropInvalidMessage参数失效",
|
15261
|
-
"example": "
|
15259
|
+
"example": "无",
|
15262
15260
|
"member": "DropCls",
|
15263
15261
|
"name": "DropCls",
|
15264
15262
|
"output_required": false,
|
@@ -15367,7 +15365,7 @@
|
|
15367
15365
|
},
|
15368
15366
|
{
|
15369
15367
|
"disabled": false,
|
15370
|
-
"document": "
|
15368
|
+
"document": "是否为自建集群",
|
15371
15369
|
"example": "false",
|
15372
15370
|
"member": "bool",
|
15373
15371
|
"name": "SelfBuilt",
|
@@ -16415,6 +16413,16 @@
|
|
16415
16413
|
"output_required": false,
|
16416
16414
|
"type": "string",
|
16417
16415
|
"value_allowed_null": true
|
16416
|
+
},
|
16417
|
+
{
|
16418
|
+
"disabled": false,
|
16419
|
+
"document": "路由的状态。1: 创建中,2: 创建成功,3: 创建失败,4: 删除中,6: 删除失败\n注意:此字段可能返回 null,表示取不到有效值。",
|
16420
|
+
"example": "2",
|
16421
|
+
"member": "int64",
|
16422
|
+
"name": "Status",
|
16423
|
+
"output_required": false,
|
16424
|
+
"type": "int",
|
16425
|
+
"value_allowed_null": true
|
16418
16426
|
}
|
16419
16427
|
],
|
16420
16428
|
"usage": "out"
|
@@ -16829,11 +16837,11 @@
|
|
16829
16837
|
"usage": "both"
|
16830
16838
|
},
|
16831
16839
|
"SaleInfo": {
|
16832
|
-
"document": "
|
16840
|
+
"document": "各版本销售信息",
|
16833
16841
|
"members": [
|
16834
16842
|
{
|
16835
16843
|
"disabled": false,
|
16836
|
-
"document": "手动设置的flag
|
16844
|
+
"document": "手动设置的flag标志,true表示售罄,false表示可售。",
|
16837
16845
|
"example": "false",
|
16838
16846
|
"member": "bool",
|
16839
16847
|
"name": "Flag",
|
@@ -18761,7 +18769,7 @@
|
|
18761
18769
|
},
|
18762
18770
|
{
|
18763
18771
|
"disabled": false,
|
18764
|
-
"document": "
|
18772
|
+
"document": "可用区是否售罄标识,true表示已售罄,false表示未售罄。",
|
18765
18773
|
"example": "false",
|
18766
18774
|
"member": "bool",
|
18767
18775
|
"name": "Flag",
|
@@ -671,7 +671,7 @@
|
|
671
671
|
"ModifyGroupOffsets": [
|
672
672
|
{
|
673
673
|
"document": "",
|
674
|
-
"input": "https://ckafka.tencentcloudapi.com/?Action=ModifyGroupOffsets\n&InstanceId=ckafka-test\n&Group=\"group\"\n&Strategy=1\n&<公共请求参数>",
|
674
|
+
"input": "https://ckafka.tencentcloudapi.com/?Action=ModifyGroupOffsets\n&InstanceId=ckafka-test\n&Group=\"group\"\n&Topics.0=topic-test\n&Strategy=1\n&<公共请求参数>",
|
675
675
|
"output": "{\n \"Response\": {\n \"Result\": {\n \"ReturnCode\": \"0\",\n \"ReturnMessage\": \"SUCCESS\",\n \"Data\": {\n \"FlowId\": 0\n }\n },\n \"RequestId\": \"36713f94-d07d-4b96-babf-42d139276f23\"\n }\n}",
|
676
676
|
"title": "设置Groups 消费分组offset"
|
677
677
|
}
|
@@ -3624,6 +3624,15 @@
|
|
3624
3624
|
"name": "SessionExpireTime",
|
3625
3625
|
"required": false,
|
3626
3626
|
"type": "int"
|
3627
|
+
},
|
3628
|
+
{
|
3629
|
+
"disabled": false,
|
3630
|
+
"document": "IP版本类型。",
|
3631
|
+
"example": "IPv4",
|
3632
|
+
"member": "string",
|
3633
|
+
"name": "IpVersion",
|
3634
|
+
"required": false,
|
3635
|
+
"type": "string"
|
3627
3636
|
}
|
3628
3637
|
],
|
3629
3638
|
"type": "object"
|
@@ -10840,7 +10849,7 @@
|
|
10840
10849
|
},
|
10841
10850
|
{
|
10842
10851
|
"disabled": false,
|
10843
|
-
"document": "后端服务修改后的标签。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Tag参数,即最终的标签以Target中的Tag参数值为准,仅当Target中的
|
10852
|
+
"document": "后端服务修改后的标签。此参数的优先级低于前述[Target](https://cloud.tencent.com/document/api/214/30694#Target)中的Tag参数,即最终的标签以Target中的Tag参数值为准,仅当Target中的Tag参数为空时,才以RsTagRule中的Tag参数为准。",
|
10844
10853
|
"example": "tag_target",
|
10845
10854
|
"member": "string",
|
10846
10855
|
"name": "Tag",
|
@@ -12428,6 +12437,16 @@
|
|
12428
12437
|
"output_required": false,
|
12429
12438
|
"type": "int",
|
12430
12439
|
"value_allowed_null": false
|
12440
|
+
},
|
12441
|
+
{
|
12442
|
+
"disabled": false,
|
12443
|
+
"document": "IP版本。",
|
12444
|
+
"example": "IPv4",
|
12445
|
+
"member": "string",
|
12446
|
+
"name": "IpVersion",
|
12447
|
+
"output_required": true,
|
12448
|
+
"type": "string",
|
12449
|
+
"value_allowed_null": false
|
12431
12450
|
}
|
12432
12451
|
],
|
12433
12452
|
"usage": "out"
|
@@ -69,6 +69,58 @@ def doVerifyLicense(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
+
def doDescribeLicense(args, parsed_globals):
|
73
|
+
g_param = parse_global_arg(parsed_globals)
|
74
|
+
|
75
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
76
|
+
cred = credential.CVMRoleCredential()
|
77
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
78
|
+
cred = credential.STSAssumeRoleCredential(
|
79
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
80
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
81
|
+
)
|
82
|
+
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):
|
83
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
84
|
+
else:
|
85
|
+
cred = credential.Credential(
|
86
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
87
|
+
)
|
88
|
+
http_profile = HttpProfile(
|
89
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
90
|
+
reqMethod="POST",
|
91
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
92
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
93
|
+
)
|
94
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
95
|
+
if g_param[OptionsDefine.Language]:
|
96
|
+
profile.language = g_param[OptionsDefine.Language]
|
97
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
98
|
+
client = mod.CloudappClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
+
model = models.DescribeLicenseRequest()
|
102
|
+
model.from_json_string(json.dumps(args))
|
103
|
+
start_time = time.time()
|
104
|
+
while True:
|
105
|
+
rsp = client.DescribeLicense(model)
|
106
|
+
result = rsp.to_json_string()
|
107
|
+
try:
|
108
|
+
json_obj = json.loads(result)
|
109
|
+
except TypeError as e:
|
110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
112
|
+
break
|
113
|
+
cur_time = time.time()
|
114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
118
|
+
else:
|
119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
|
+
|
123
|
+
|
72
124
|
CLIENT_MAP = {
|
73
125
|
"v20220530": cloudapp_client_v20220530,
|
74
126
|
|
@@ -81,6 +133,7 @@ MODELS_MAP = {
|
|
81
133
|
|
82
134
|
ACTION_MAP = {
|
83
135
|
"VerifyLicense": doVerifyLicense,
|
136
|
+
"DescribeLicense": doDescribeLicense,
|
84
137
|
|
85
138
|
}
|
86
139
|
|