tccli 3.0.1127.1__py2.py3-none-any.whl → 3.0.1129.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/asr/v20190614/api.json +7 -7
- tccli/services/asr/v20190614/examples.json +1 -1
- tccli/services/billing/v20180709/api.json +3 -2
- tccli/services/bpaas/v20181217/api.json +5 -0
- tccli/services/cat/v20180409/api.json +1 -0
- tccli/services/ccc/v20200210/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +20 -0
- tccli/services/cls/v20201016/api.json +9 -0
- tccli/services/cynosdb/v20190107/api.json +5 -3
- tccli/services/dc/v20180410/api.json +139 -121
- tccli/services/dc/v20180410/examples.json +6 -6
- tccli/services/domain/v20180808/api.json +16 -16
- tccli/services/domain/v20180808/examples.json +9 -9
- tccli/services/dsgc/v20190723/api.json +10 -1
- tccli/services/dts/v20180330/api.json +2 -2
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +354 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/v20180416/api.json +10 -0
- tccli/services/ess/v20201111/api.json +4 -4
- tccli/services/ess/v20201111/examples.json +0 -6
- tccli/services/essbasic/v20210526/api.json +49 -7
- tccli/services/essbasic/v20210526/examples.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +12 -118
- tccli/services/hunyuan/v20230901/api.json +4 -264
- tccli/services/hunyuan/v20230901/examples.json +0 -58
- tccli/services/iotexplorer/v20190423/api.json +9 -0
- tccli/services/lighthouse/v20200324/api.json +2 -4
- tccli/services/monitor/v20180724/api.json +35 -21
- tccli/services/monitor/v20180724/examples.json +1 -1
- tccli/services/mps/v20190612/api.json +122 -4
- tccli/services/mrs/v20200910/api.json +315 -65
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/organization/v20210331/api.json +28 -0
- tccli/services/rce/v20201103/api.json +9 -9
- tccli/services/redis/v20180412/api.json +34 -28
- tccli/services/redis/v20180412/examples.json +4 -4
- tccli/services/tdmq/v20200217/api.json +8 -8
- tccli/services/tdmq/v20200217/examples.json +5 -5
- tccli/services/teo/v20220901/api.json +4 -4
- tccli/services/tke/v20180525/api.json +36 -28
- tccli/services/tke/v20180525/examples.json +3 -3
- tccli/services/tse/v20201207/api.json +2 -2
- tccli/services/tse/v20201207/examples.json +2 -2
- tccli/services/waf/v20180125/api.json +94 -0
- tccli/services/waf/v20180125/examples.json +16 -0
- tccli/services/waf/waf_client.py +106 -0
- tccli/services/wedata/v20210820/api.json +106 -1
- tccli/services/wedata/v20210820/examples.json +2 -2
- {tccli-3.0.1127.1.dist-info → tccli-3.0.1129.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1127.1.dist-info → tccli-3.0.1129.1.dist-info}/RECORD +55 -55
- {tccli-3.0.1127.1.dist-info → tccli-3.0.1129.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1127.1.dist-info → tccli-3.0.1129.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1127.1.dist-info → tccli-3.0.1129.1.dist-info}/license_files/LICENSE +0 -0
@@ -108,15 +108,15 @@
|
|
108
108
|
],
|
109
109
|
"DescribeDirectConnectTunnels": [
|
110
110
|
{
|
111
|
-
"document": "",
|
112
|
-
"input": "https://dc.tencentcloudapi.com/?Action=DescribeDirectConnectTunnels\n&Filters.0.Name=direct-connect-tunnel-id\n&Filters.0.Values.0=dcx-
|
113
|
-
"output": "{\n \"Response\": {\n \"DirectConnectTunnelSet\": [\n {\n \"DirectConnectOwnerAccount\": \"
|
111
|
+
"document": "查询BGP路由的专用通道。",
|
112
|
+
"input": "https://dc.tencentcloudapi.com/?Action=DescribeDirectConnectTunnels\n&Filters.0.Name=direct-connect-tunnel-id\n&Filters.0.Values.0=dcx-047zz5e6\n&Limit=20\n&Offset=0\n&<公共请求参数>",
|
113
|
+
"output": "{\n \"Response\": {\n \"DirectConnectTunnelSet\": [\n {\n \"OwnerAccount\": \"100001332514\",\n \"DirectConnectOwnerAccount\": \"100001332514\",\n \"DirectConnectId\": \"dc-n6c9vvv3\",\n \"SignLaw\": true,\n \"DirectConnectTunnelId\": \"dcx-047zz5e6\",\n \"DirectConnectTunnelName\": \"DCXCCNVxlanBgpEcmpTestautotestdcxtwo\",\n \"State\": \"AVAILABLE\",\n \"VpcId\": \"\",\n \"NetworkRegion\": \"ap-chongqing\",\n \"VpcRegion\": \"cq\",\n \"DirectConnectGatewayId\": \"dcg-meljxc9n\",\n \"Bandwidth\": 100,\n \"Vlan\": 2432,\n \"TencentAddress\": \"192.168.0.3/29\",\n \"CustomerAddress\": \"192.168.0.1/29\",\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"NetDetectId\": \"\",\n \"EnableBGPCommunity\": false,\n \"NatType\": 0,\n \"BfdEnable\": 0,\n \"AccessPointType\": \"VXLAN\",\n \"DirectConnectGatewayName\": \"\",\n \"VpcName\": \"\",\n \"ShareOrNot\": 0,\n \"TencentBackupAddress\": \"192.168.0.2/29\",\n \"NetworkType\": \"CCN\",\n \"CloudAttachId\": null,\n \"RouteType\": \"BGP\",\n \"BgpPeer\": {\n \"Asn\": 65120,\n \"AuthKey\": \"tencent\"\n },\n \"RouteFilterPrefixes\": [],\n \"TagSet\": []\n }\n ],\n \"RequestId\": \"8ae32da8-db96-400f-908e-0de2c89e96ea\",\n \"TotalCount\": 1\n }\n}",
|
114
114
|
"title": "查询BGP路由的专用通道"
|
115
115
|
},
|
116
116
|
{
|
117
|
-
"document": "",
|
118
|
-
"input": "https://dc.tencentcloudapi.com/?Action=DescribeDirectConnectTunnels\n&Filters.0.Name=direct-connect-tunnel-id\n&Filters.0.Values.0=dcx-
|
119
|
-
"output": "{\n \"Response\": {\n \"DirectConnectTunnelSet\": [\n {\n \"DirectConnectOwnerAccount\": \"
|
117
|
+
"document": "查询STATIC路由的专用通道。",
|
118
|
+
"input": "https://dc.tencentcloudapi.com/?Action=DescribeDirectConnectTunnels\n&Filters.0.Name=direct-connect-tunnel-id\n&Filters.0.Values.0=dcx-ltcfypom\n&Limit=20\n&Offset=0\n&<公共请求参数>",
|
119
|
+
"output": "{\n \"Response\": {\n \"DirectConnectTunnelSet\": [\n {\n \"OwnerAccount\": \"100001332514\",\n \"DirectConnectOwnerAccount\": \"100001332514\",\n \"DirectConnectId\": \"dc-n6c9vvv3\",\n \"SignLaw\": true,\n \"DirectConnectTunnelId\": \"dcx-ltcfypom\",\n \"DirectConnectTunnelName\": \"DCXVPCVxlanStaticEcmpTestautotestdcxone\",\n \"State\": \"AVAILABLE\",\n \"VpcId\": \"vpc-q1cy5hgx\",\n \"NetworkRegion\": \"ap-chongqing\",\n \"VpcRegion\": \"cq\",\n \"DirectConnectGatewayId\": \"dcg-f5ucfdg3\",\n \"Bandwidth\": 100,\n \"Vlan\": 2414,\n \"TencentAddress\": \"192.168.0.3/29\",\n \"CustomerAddress\": \"192.168.0.1/29\",\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"NetDetectId\": \"\",\n \"EnableBGPCommunity\": false,\n \"NatType\": 0,\n \"BfdEnable\": 0,\n \"AccessPointType\": \"VXLAN\",\n \"DirectConnectGatewayName\": \"\",\n \"VpcName\": \"\",\n \"ShareOrNot\": 0,\n \"TencentBackupAddress\": \"\",\n \"NetworkType\": \"VPC\",\n \"CloudAttachId\": null,\n \"RouteType\": \"STATIC\",\n \"RouteFilterPrefixes\": [\n {\n \"Cidr\": \"19.244.99.224/32\"\n }\n ],\n \"BgpPeer\": {\n \"Asn\": -1,\n \"AuthKey\": \"\"\n },\n \"TagSet\": []\n }\n ],\n \"RequestId\": \"8ae32da8-db96-400f-908e-0de2c89e96ea\",\n \"TotalCount\": 1\n }\n}",
|
120
120
|
"title": "查询STATIC路由的专用通道"
|
121
121
|
}
|
122
122
|
],
|
@@ -234,7 +234,7 @@
|
|
234
234
|
"DescribePreDomainList": {
|
235
235
|
"document": "用户服务商提前获取预释放域名数据,查询数据根据结束时间进行倒序。",
|
236
236
|
"input": "DescribePreDomainListRequest",
|
237
|
-
"name": "
|
237
|
+
"name": "提前获取预释放域名数据",
|
238
238
|
"output": "DescribePreDomainListResponse",
|
239
239
|
"status": "online"
|
240
240
|
},
|
@@ -323,7 +323,7 @@
|
|
323
323
|
"status": "online"
|
324
324
|
},
|
325
325
|
"RenewDomainBatch": {
|
326
|
-
"document": "本接口 ( RenewDomainBatch ) 用于批量续费域名
|
326
|
+
"document": "本接口 ( RenewDomainBatch ) 用于批量续费域名 。",
|
327
327
|
"input": "RenewDomainBatchRequest",
|
328
328
|
"name": "批量域名续费",
|
329
329
|
"output": "RenewDomainBatchResponse",
|
@@ -453,8 +453,8 @@
|
|
453
453
|
},
|
454
454
|
{
|
455
455
|
"disabled": false,
|
456
|
-
"document": "模板ID
|
457
|
-
"example": "tmpl-
|
456
|
+
"document": "模板ID(可从模板列表接口获取)",
|
457
|
+
"example": "tmpl-xxxxxxxx",
|
458
458
|
"member": "string",
|
459
459
|
"name": "TemplateId",
|
460
460
|
"required": true,
|
@@ -481,7 +481,7 @@
|
|
481
481
|
"example": "318",
|
482
482
|
"member": "int64",
|
483
483
|
"name": "LogId",
|
484
|
-
"
|
484
|
+
"output_required": true,
|
485
485
|
"type": "int",
|
486
486
|
"value_allowed_null": false
|
487
487
|
},
|
@@ -1594,7 +1594,7 @@
|
|
1594
1594
|
},
|
1595
1595
|
{
|
1596
1596
|
"disabled": false,
|
1597
|
-
"document": "验证码",
|
1597
|
+
"document": "验证码(通过SendPhoneEmailCode发送到手机或邮箱的验证码)",
|
1598
1598
|
"example": "234567",
|
1599
1599
|
"member": "string",
|
1600
1600
|
"name": "VerifyCode",
|
@@ -1829,8 +1829,8 @@
|
|
1829
1829
|
"members": [
|
1830
1830
|
{
|
1831
1831
|
"disabled": false,
|
1832
|
-
"document": "模板ID",
|
1833
|
-
"example": "
|
1832
|
+
"document": "模板ID(可通过模板信息列表获取)",
|
1833
|
+
"example": "tmpl-itxxxxxx",
|
1834
1834
|
"member": "string",
|
1835
1835
|
"name": "TemplateId",
|
1836
1836
|
"required": true,
|
@@ -2749,7 +2749,7 @@
|
|
2749
2749
|
"members": [
|
2750
2750
|
{
|
2751
2751
|
"disabled": false,
|
2752
|
-
"document": "域名实例ID",
|
2752
|
+
"document": "域名实例ID(域名基本信息或我的域名列表接口可获取)",
|
2753
2753
|
"example": "domain-7312mrgq",
|
2754
2754
|
"member": "string",
|
2755
2755
|
"name": "DomainId",
|
@@ -2759,7 +2759,7 @@
|
|
2759
2759
|
{
|
2760
2760
|
"disabled": false,
|
2761
2761
|
"document": "返回数量,默认为20,取值范围[1,100]",
|
2762
|
-
"example": "
|
2762
|
+
"example": "1",
|
2763
2763
|
"member": "uint64",
|
2764
2764
|
"name": "Limit",
|
2765
2765
|
"required": true,
|
@@ -3236,8 +3236,8 @@
|
|
3236
3236
|
"members": [
|
3237
3237
|
{
|
3238
3238
|
"disabled": false,
|
3239
|
-
"document": "
|
3240
|
-
"example": "
|
3239
|
+
"document": "页码,默认为1",
|
3240
|
+
"example": "1",
|
3241
3241
|
"member": "int64",
|
3242
3242
|
"name": "Page",
|
3243
3243
|
"required": false,
|
@@ -3245,8 +3245,8 @@
|
|
3245
3245
|
},
|
3246
3246
|
{
|
3247
3247
|
"disabled": false,
|
3248
|
-
"document": "
|
3249
|
-
"example": "
|
3248
|
+
"document": "条数,默认为20",
|
3249
|
+
"example": "20",
|
3250
3250
|
"member": "int64",
|
3251
3251
|
"name": "Size",
|
3252
3252
|
"required": false,
|
@@ -5279,7 +5279,7 @@
|
|
5279
5279
|
{
|
5280
5280
|
"disabled": false,
|
5281
5281
|
"document": "特惠包ID",
|
5282
|
-
"example": "
|
5282
|
+
"example": "E065785299",
|
5283
5283
|
"member": "string",
|
5284
5284
|
"name": "PackageResourceId",
|
5285
5285
|
"required": false,
|
@@ -5324,7 +5324,7 @@
|
|
5324
5324
|
"example": "318",
|
5325
5325
|
"member": "int64",
|
5326
5326
|
"name": "LogId",
|
5327
|
-
"
|
5327
|
+
"output_required": true,
|
5328
5328
|
"type": "int",
|
5329
5329
|
"value_allowed_null": false
|
5330
5330
|
},
|
@@ -59,8 +59,8 @@
|
|
59
59
|
"CreateDomainBatch": [
|
60
60
|
{
|
61
61
|
"document": "",
|
62
|
-
"input": "POST / HTTP/1.1\nHost:domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDomainBatch\n<公共请求参数>\n\n{\n \"TemplateId\": \"
|
63
|
-
"output": "{\n \"Response\": {\n \"LogId\": 318,\n \"RequestId\": \"1684afa4-0bf7-49f8-a630-ab460e5c038e\"\n }
|
62
|
+
"input": "POST / HTTP/1.1\nHost:domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDomainBatch\n<公共请求参数>\n\n{\n \"TemplateId\": \"tmpl-acxxxxxx\",\n \"Period\": 1,\n \"Domains\": [\n \"abcd.xyz\"\n ],\n \"PayMode\": 0,\n \"AutoRenewFlag\": 0,\n \"PackageResourceId\": \"\",\n \"UpdateProhibition\": 0,\n \"TransferProhibition\": 0,\n \"ChannelFrom\": \"ChannelFrom\",\n \"OrderFrom\": \"OrderFrom\",\n \"ActivityId\": \"10001\"\n}",
|
63
|
+
"output": "{\n \"Response\": {\n \"LogId\": 318,\n \"RequestId\": \"1684afa4-0bf7-49f8-a630-ab460e5c038e\"\n }\n}",
|
64
64
|
"title": "批量域名注册"
|
65
65
|
}
|
66
66
|
],
|
@@ -252,7 +252,7 @@
|
|
252
252
|
{
|
253
253
|
"document": "默认",
|
254
254
|
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePhoneEmailList\n<公共请求参数>\n\n{\n \"Type\": 1,\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
255
|
-
"output": "{\n \"Response\": {\n \"PhoneEmailList\": [\n {\n \"Code\": \"
|
255
|
+
"output": "{\n \"Response\": {\n \"PhoneEmailList\": [\n {\n \"Code\": \"137***3434\",\n \"Type\": 1,\n \"CreatedOn\": \"2023-03-10 10:00:00\",\n \"CheckStatus\": 1\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"xxxx-xxx-xxx-xxxx\"\n }\n}",
|
256
256
|
"title": "获取已验证的手机邮箱列表"
|
257
257
|
}
|
258
258
|
],
|
@@ -268,7 +268,7 @@
|
|
268
268
|
{
|
269
269
|
"document": "",
|
270
270
|
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePreDomainList\n<公共请求参数>\n\n{\n \"Page\": 0,\n \"Size\": 0\n}",
|
271
|
-
"output": "{\n \"Response\": {\n \"ReservedDomainList\": [\n {\n \"Domain\": \"
|
271
|
+
"output": "{\n \"Response\": {\n \"ReservedDomainList\": [\n {\n \"Domain\": \"tencent.com\",\n \"RegTime\": \"2006-01-02 15:04:05\",\n \"ExpireTime\": \"2006-01-02 15:04:05\",\n \"RenewEndTime\": \"2006-01-02 15:04:05\",\n \"RestoreEndTime\": \"2006-01-02 15:04:05\",\n \"ReservedEndTime\": \"2006-01-02 15:04:05\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"abc\"\n }\n}",
|
272
272
|
"title": "成功示例"
|
273
273
|
}
|
274
274
|
],
|
@@ -291,14 +291,14 @@
|
|
291
291
|
"DescribeReservedPreDomainInfo": [
|
292
292
|
{
|
293
293
|
"document": "",
|
294
|
-
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedPreDomainInfo\n<公共请求参数>\n\n{\n \"DomainList\": [\n \"
|
295
|
-
"output": "{\n \"Response\": {\n \"ReservedPreDomainInfoList\": [\n {\n \"Domain\": \"
|
294
|
+
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedPreDomainInfo\n<公共请求参数>\n\n{\n \"DomainList\": [\n \"abdwww.cn\"\n ],\n \"ReservedStatus\": 0,\n \"ReservedTimeSort\": \"asc\",\n \"Limit\": 10,\n \"Offset\": 0\n}",
|
295
|
+
"output": "{\n \"Response\": {\n \"ReservedPreDomainInfoList\": [\n {\n \"Domain\": \"abdwww.cn\",\n \"ReservedStatus\": 0,\n \"FailReason\": \"\",\n \"ChangeOwnerTime\": \"2024-03-01 20:13:23\",\n \"RegTime\": \"2022-03-01 20:13:23\",\n \"ExpireTime\": \"2024-03-01 20:13:23\",\n \"ResourceId\": \"domain-dfo23req\"\n }\n ],\n \"Total\": 1,\n \"RequestId\": \"xxxx-xxx-xxx-xxxx\"\n }\n}",
|
296
296
|
"title": "成功示例"
|
297
297
|
},
|
298
298
|
{
|
299
299
|
"document": "请求成功获取参数示例",
|
300
300
|
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeReservedPreDomainInfo\n<公共请求参数>\n\n{}",
|
301
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
301
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"xxxx-xxx-xxx-xxxx\",\n \"ReservedPreDomainInfoList\": [\n {\n \"BusinessId\": \"P0011712734968570466\",\n \"ChangeOwnerTime\": \"2024-03-15 08:40:34\",\n \"Domain\": \"fdasfasfdsaf.com\",\n \"ExpireTime\": \"2024-01-14 08:40:34\",\n \"FailReason\": \"\",\n \"RegTime\": \"2020-01-14 08:40:34\",\n \"ReservedStatus\": 6,\n \"ResourceId\": \"R0011712734968672830\"\n }\n ],\n \"Total\": 1\n }\n}",
|
302
302
|
"title": "请求成功示例"
|
303
303
|
}
|
304
304
|
],
|
@@ -385,8 +385,8 @@
|
|
385
385
|
"ReservedPreDomains": [
|
386
386
|
{
|
387
387
|
"document": "",
|
388
|
-
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReservedPreDomains\n<公共请求参数>\n\n{\n \"DomainList\": [\n \"
|
389
|
-
"output": "{\n \"Response\": {\n \"SucDomainList\": [\n \"
|
388
|
+
"input": "POST / HTTP/1.1\nHost: domain.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReservedPreDomains\n<公共请求参数>\n\n{\n \"DomainList\": [\n \"aksdwe1.cn\",\n \"aksdwe2.cn\"\n ],\n \"TemplateId\": \"tmpl-abxxxxxx\"\n}",
|
389
|
+
"output": "{\n \"Response\": {\n \"SucDomainList\": [\n \"aksdwe1.cn\"\n ],\n \"FailDomainList\": [\n {\n \"Domain\": \"aksdwe2.cn\",\n \"FailReason\": \"域名下架\"\n }\n ],\n \"RequestId\": \"xxxx-xxx-xxx-xxxx\"\n }\n}",
|
390
390
|
"title": "成功示例"
|
391
391
|
}
|
392
392
|
],
|
@@ -14425,6 +14425,15 @@
|
|
14425
14425
|
"name": "Filters",
|
14426
14426
|
"required": false,
|
14427
14427
|
"type": "list"
|
14428
|
+
},
|
14429
|
+
{
|
14430
|
+
"disabled": false,
|
14431
|
+
"document": "casbId",
|
14432
|
+
"example": "casb-tlqkc3r0",
|
14433
|
+
"member": "string",
|
14434
|
+
"name": "CasbId",
|
14435
|
+
"required": false,
|
14436
|
+
"type": "string"
|
14428
14437
|
}
|
14429
14438
|
],
|
14430
14439
|
"type": "object"
|
@@ -14438,7 +14447,7 @@
|
|
14438
14447
|
"example": "1",
|
14439
14448
|
"member": "uint64",
|
14440
14449
|
"name": "ExportTaskId",
|
14441
|
-
"
|
14450
|
+
"output_required": true,
|
14442
14451
|
"type": "int",
|
14443
14452
|
"value_allowed_null": false
|
14444
14453
|
},
|
@@ -64,11 +64,11 @@
|
|
64
64
|
"status": "online"
|
65
65
|
},
|
66
66
|
"DescribeRegionConf": {
|
67
|
-
"document": "本接口(DescribeRegionConf)用于查询可售卖订阅实例的地域",
|
67
|
+
"document": "接口不再使用\n\n本接口(DescribeRegionConf)用于查询可售卖订阅实例的地域",
|
68
68
|
"input": "DescribeRegionConfRequest",
|
69
69
|
"name": "查询可售卖订阅地域",
|
70
70
|
"output": "DescribeRegionConfResponse",
|
71
|
-
"status": "
|
71
|
+
"status": "deprecated"
|
72
72
|
},
|
73
73
|
"DescribeSubscribeConf": {
|
74
74
|
"document": "本接口(DescribeSubscribeConf)用于查询订阅实例配置",
|
tccli/services/emr/emr_client.py
CHANGED
@@ -433,6 +433,58 @@ def doInquirePriceRenewEmr(args, parsed_globals):
|
|
433
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
434
434
|
|
435
435
|
|
436
|
+
def doDescribeClusterFlowStatusDetail(args, parsed_globals):
|
437
|
+
g_param = parse_global_arg(parsed_globals)
|
438
|
+
|
439
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
440
|
+
cred = credential.CVMRoleCredential()
|
441
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
442
|
+
cred = credential.STSAssumeRoleCredential(
|
443
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
444
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
445
|
+
)
|
446
|
+
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):
|
447
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
448
|
+
else:
|
449
|
+
cred = credential.Credential(
|
450
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
451
|
+
)
|
452
|
+
http_profile = HttpProfile(
|
453
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
454
|
+
reqMethod="POST",
|
455
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
456
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
457
|
+
)
|
458
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
459
|
+
if g_param[OptionsDefine.Language]:
|
460
|
+
profile.language = g_param[OptionsDefine.Language]
|
461
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
462
|
+
client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
|
463
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
464
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
465
|
+
model = models.DescribeClusterFlowStatusDetailRequest()
|
466
|
+
model.from_json_string(json.dumps(args))
|
467
|
+
start_time = time.time()
|
468
|
+
while True:
|
469
|
+
rsp = client.DescribeClusterFlowStatusDetail(model)
|
470
|
+
result = rsp.to_json_string()
|
471
|
+
try:
|
472
|
+
json_obj = json.loads(result)
|
473
|
+
except TypeError as e:
|
474
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
475
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
476
|
+
break
|
477
|
+
cur_time = time.time()
|
478
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
479
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
480
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
481
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
482
|
+
else:
|
483
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
484
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
485
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
|
+
|
487
|
+
|
436
488
|
def doInquiryPriceScaleOutInstance(args, parsed_globals):
|
437
489
|
g_param = parse_global_arg(parsed_globals)
|
438
490
|
|
@@ -2272,6 +2324,7 @@ ACTION_MAP = {
|
|
2272
2324
|
"DescribeImpalaQueries": doDescribeImpalaQueries,
|
2273
2325
|
"DescribeJobFlow": doDescribeJobFlow,
|
2274
2326
|
"InquirePriceRenewEmr": doInquirePriceRenewEmr,
|
2327
|
+
"DescribeClusterFlowStatusDetail": doDescribeClusterFlowStatusDetail,
|
2275
2328
|
"InquiryPriceScaleOutInstance": doInquiryPriceScaleOutInstance,
|
2276
2329
|
"DescribeAutoScaleRecords": doDescribeAutoScaleRecords,
|
2277
2330
|
"DescribeCvmQuota": doDescribeCvmQuota,
|