tccli 3.0.1237.1__py2.py3-none-any.whl → 3.0.1239.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/__init__.py +3 -0
- tccli/services/aca/__init__.py +4 -0
- tccli/services/aca/aca_client.py +578 -0
- tccli/services/aca/v20210323/api.json +3715 -0
- tccli/services/aca/v20210323/examples.json +69 -0
- tccli/services/aiart/v20221229/api.json +18 -9
- tccli/services/aiart/v20221229/examples.json +2 -2
- tccli/services/apm/v20210622/api.json +10 -7
- tccli/services/batch/v20170312/api.json +641 -566
- tccli/services/batch/v20170312/examples.json +7 -7
- tccli/services/bi/v20220105/api.json +9 -0
- tccli/services/bpaas/v20181217/examples.json +1 -1
- tccli/services/cam/v20190116/api.json +32 -30
- tccli/services/cam/v20190116/examples.json +4 -4
- tccli/services/ccc/v20200210/api.json +31 -1
- tccli/services/ccc/v20200210/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +944 -856
- tccli/services/cdb/v20170320/examples.json +47 -47
- tccli/services/cdwch/v20200915/api.json +6 -6
- tccli/services/cdwdoris/v20211228/api.json +32 -12
- tccli/services/cdwdoris/v20211228/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +8 -13
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +84 -84
- tccli/services/cfs/v20190719/examples.json +6 -6
- tccli/services/chdfs/v20201112/api.json +113 -95
- tccli/services/chdfs/v20201112/examples.json +16 -16
- tccli/services/clb/v20180317/api.json +186 -164
- tccli/services/cloudapp/v20220530/api.json +1 -1
- tccli/services/cloudapp/v20220530/examples.json +3 -3
- tccli/services/cloudaudit/v20190319/api.json +21 -17
- tccli/services/cloudaudit/v20190319/examples.json +3 -3
- tccli/services/cls/v20201016/api.json +21 -21
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/config/v20220802/api.json +2 -0
- tccli/services/config/v20220802/examples.json +2 -2
- tccli/services/cynosdb/v20190107/api.json +370 -365
- tccli/services/cynosdb/v20190107/examples.json +39 -39
- tccli/services/dbbrain/v20191016/api.json +206 -188
- tccli/services/dbbrain/v20191016/examples.json +10 -10
- tccli/services/dbbrain/v20210527/api.json +274 -267
- tccli/services/dbbrain/v20210527/examples.json +25 -25
- tccli/services/dc/v20180410/api.json +101 -41
- tccli/services/dc/v20180410/examples.json +5 -5
- tccli/services/dcdb/v20180411/api.json +390 -387
- tccli/services/dcdb/v20180411/examples.json +14 -14
- tccli/services/dlc/v20210125/api.json +162 -7
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/domain/v20180808/api.json +37 -37
- tccli/services/domain/v20180808/examples.json +16 -10
- tccli/services/dsgc/v20190723/api.json +1796 -1623
- tccli/services/dsgc/v20190723/examples.json +217 -211
- tccli/services/dts/v20180330/api.json +152 -115
- tccli/services/dts/v20180330/examples.json +4 -4
- tccli/services/dts/v20211206/api.json +83 -72
- tccli/services/dts/v20211206/examples.json +5 -5
- tccli/services/eb/v20210416/api.json +2 -2
- tccli/services/eb/v20210416/examples.json +2 -2
- tccli/services/ecm/v20190719/api.json +273 -230
- tccli/services/ecm/v20190719/examples.json +21 -21
- tccli/services/emr/v20190103/api.json +80 -20
- tccli/services/ess/ess_client.py +61 -8
- tccli/services/ess/v20201111/api.json +287 -39
- tccli/services/ess/v20201111/examples.json +11 -3
- tccli/services/essbasic/essbasic_client.py +167 -8
- tccli/services/essbasic/v20210526/api.json +545 -54
- tccli/services/essbasic/v20210526/examples.json +46 -16
- tccli/services/facefusion/v20220927/api.json +14 -3
- tccli/services/fmu/v20191213/api.json +8 -8
- tccli/services/gaap/v20180529/api.json +222 -231
- tccli/services/hai/v20230812/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +21 -2
- tccli/services/iss/v20230517/api.json +11 -11
- tccli/services/iss/v20230517/examples.json +31 -31
- tccli/services/keewidb/v20220308/api.json +92 -82
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +22 -22
- tccli/services/lighthouse/v20200324/examples.json +5 -5
- tccli/services/live/v20180801/api.json +87 -69
- tccli/services/live/v20180801/examples.json +37 -37
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/mariadb/v20170312/api.json +285 -263
- tccli/services/mariadb/v20170312/examples.json +12 -12
- tccli/services/mongodb/v20180408/api.json +104 -104
- tccli/services/mongodb/v20190725/api.json +116 -103
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +222 -0
- tccli/services/monitor/v20180724/examples.json +16 -0
- tccli/services/mps/mps_client.py +228 -16
- tccli/services/mps/v20190612/api.json +385 -23
- tccli/services/mps/v20190612/examples.json +32 -0
- tccli/services/msp/v20180319/api.json +2 -2
- tccli/services/ocr/v20181119/api.json +13 -3
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/omics/v20221128/api.json +14 -2
- tccli/services/organization/v20210331/api.json +45 -18
- tccli/services/privatedns/v20201028/api.json +90 -81
- tccli/services/privatedns/v20201028/examples.json +18 -18
- tccli/services/redis/redis_client.py +106 -0
- tccli/services/redis/v20180412/api.json +179 -17
- tccli/services/redis/v20180412/examples.json +16 -0
- tccli/services/region/v20220627/api.json +5 -3
- tccli/services/region/v20220627/examples.json +1 -1
- tccli/services/sqlserver/v20180328/api.json +611 -450
- tccli/services/sqlserver/v20180328/examples.json +16 -16
- tccli/services/ssl/v20191205/api.json +6 -4
- tccli/services/tag/v20180813/api.json +4 -5
- tccli/services/tbaas/v20180416/api.json +47 -49
- tccli/services/tbaas/v20180416/examples.json +4 -4
- tccli/services/tcb/v20180608/api.json +36 -16
- tccli/services/tdmq/tdmq_client.py +106 -0
- tccli/services/tdmq/v20200217/api.json +125 -1
- tccli/services/tdmq/v20200217/examples.json +17 -1
- tccli/services/teo/teo_client.py +485 -8
- tccli/services/teo/v20220901/api.json +837 -39
- tccli/services/teo/v20220901/examples.json +108 -0
- tccli/services/thpc/v20211109/api.json +32 -34
- tccli/services/thpc/v20220401/api.json +31 -33
- tccli/services/thpc/v20230321/api.json +55 -57
- tccli/services/thpc/v20230321/examples.json +1 -1
- tccli/services/tiia/v20190529/api.json +307 -293
- tccli/services/tiia/v20190529/examples.json +41 -41
- tccli/services/tione/v20211111/api.json +4 -4
- tccli/services/tione/v20211111/examples.json +2 -2
- tccli/services/tke/v20180525/api.json +1 -1
- tccli/services/trocket/trocket_client.py +224 -12
- tccli/services/trocket/v20230308/api.json +787 -147
- tccli/services/trocket/v20230308/examples.json +38 -0
- tccli/services/tse/v20201207/api.json +188 -120
- tccli/services/tse/v20201207/examples.json +30 -30
- tccli/services/tsf/v20180326/api.json +864 -781
- tccli/services/tsf/v20180326/examples.json +114 -126
- tccli/services/vclm/v20240523/api.json +1 -1
- tccli/services/vdb/v20230616/api.json +80 -80
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vod/v20180717/api.json +21 -3
- tccli/services/vod/v20180717/examples.json +2 -2
- tccli/services/vpc/v20170312/api.json +45 -44
- tccli/services/vpc/v20170312/examples.json +9 -9
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/RECORD +146 -142
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1237.1.dist-info → tccli-3.0.1239.1.dist-info}/license_files/LICENSE +0 -0
@@ -51,8 +51,8 @@
|
|
51
51
|
"AssignPrivateIpAddresses": [
|
52
52
|
{
|
53
53
|
"document": "",
|
54
|
-
"input": "https://ecm.tencentcloudapi.com/?Action=AssignPrivateIpAddresses\n&NetworkInterfaceId=eni-
|
55
|
-
"output": "{\n \"Response\": {\n \"PrivateIpAddressSet\": [\n {\n \"PrivateIpAddress\": \"172.16.32.237\"\n
|
54
|
+
"input": "https://ecm.tencentcloudapi.com/?Action=AssignPrivateIpAddresses\n&NetworkInterfaceId=eni-ms7c7gcr\n&SecondaryPrivateIpAddressCount=1\n&EcmRegion=ap-hangzhou-ecm\n&<公共请求参数>",
|
55
|
+
"output": "{\n \"Response\": {\n \"PrivateIpAddressSet\": [\n {\n \"PrivateIpAddress\": \"172.16.32.237\",\n \"AddressId\": \"\",\n \"PublicIpAddress\": \"\",\n \"Primary\": false,\n \"IsWanIpBlocked\": false,\n \"State\": \"PENDING\",\n \"Description\": \"demo\"\n }\n ],\n \"RequestId\": \"f23d1450-ed00-4442-98d4-be409e625e6c\"\n }\n}",
|
56
56
|
"title": "弹性网卡申请内网 IP"
|
57
57
|
}
|
58
58
|
],
|
@@ -136,7 +136,7 @@
|
|
136
136
|
{
|
137
137
|
"document": "",
|
138
138
|
"input": "POST / HTTP/1.1\nHost: ecm.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateHaVip\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-m0c2kcun\",\n \"SubnetId\": \"subnet-rtmfkg4w\",\n \"HaVipName\": \"irang_testHaVip\"\n}",
|
139
|
-
"output": "{\n \"Response\": {\n \"HaVip\": {\n \"AddressIp\": \"\",\n \"CreatedTime\": \"2020-10-29 16:54:45\",\n \"HaVipId\": \"havip-kekyk044\",\n \"HaVipName\": \"
|
139
|
+
"output": "{\n \"Response\": {\n \"HaVip\": {\n \"AddressIp\": \"\",\n \"CreatedTime\": \"2020-10-29 16:54:45\",\n \"HaVipId\": \"havip-kekyk044\",\n \"HaVipName\": \"demo\",\n \"InstanceId\": \"\",\n \"NetworkInterfaceId\": \"\",\n \"State\": \"UNBIND\",\n \"SubnetId\": \"subnet-rtmfkg4w\",\n \"Vip\": \"172.16.0.17\",\n \"VpcId\": \"vpc-m0c2kcun\",\n \"Business\": \"TKE\"\n },\n \"RequestId\": \"d7226510-434e-4896-bdcd-fb1234aaafdfa\"\n }\n}",
|
140
140
|
"title": "创建HAVIP"
|
141
141
|
}
|
142
142
|
],
|
@@ -184,7 +184,7 @@
|
|
184
184
|
{
|
185
185
|
"document": "",
|
186
186
|
"input": "https://ecm.tencentcloudapi.com/?Action=CreateNetworkInterface\n&VpcId=vpc-1111111\n&SubnetId=subnet-22222222\n&NetworkInterfaceName=Test\n&NetworkInterfaceDescription=Test\n&EcmRegion=ap-hangzhou-ecm\n&<公共请求参数>",
|
187
|
-
"output": "{\n \"Response\": {\n \"NetworkInterface\": {\n \"NetworkInterfaceId\": \"eni-
|
187
|
+
"output": "{\n \"Response\": {\n \"NetworkInterface\": {\n \"NetworkInterfaceId\": \"eni-ms7c7gcr\",\n \"VpcId\": \"vpc-4tw1bxlq\",\n \"SubnetId\": \"subnet-6zwa44xm\",\n \"NetworkInterfaceName\": \"demo\",\n \"NetworkInterfaceDescription\": \"demo\",\n \"MacAddress\": \"20:90:6F:62:33:E2\",\n \"PrivateIpAddressSet\": [\n {\n \"PrivateIpAddress\": \"172.16.64.13\",\n \"Primary\": true,\n \"AddressId\": \"\",\n \"PublicIpAddress\": \"\",\n \"Description\": \"\",\n \"IsWanIpBlocked\": false,\n \"State\": \"PENDING\"\n }\n ],\n \"Attachment\": null,\n \"GroupSet\": [],\n \"Primary\": false,\n \"State\": \"PENDING\",\n \"Zone\": \"ap-hangzhou-ecm-1\",\n \"CreatedTime\": \"\",\n \"Ipv6AddressSet\": [],\n \"EcmRegion\": \"ap-hangzhou-ecm\",\n \"EniType\": 0,\n \"TagSet\": [],\n \"Business\": \"\"\n },\n \"RequestId\": \"5cf1a813-d4f8-4e0c-8f90-c155a84a3ea1\"\n }\n}",
|
188
188
|
"title": "创建弹性网卡"
|
189
189
|
}
|
190
190
|
],
|
@@ -199,8 +199,8 @@
|
|
199
199
|
"CreateRoutes": [
|
200
200
|
{
|
201
201
|
"document": "",
|
202
|
-
"input": "https://ecm.tencentcloudapi.com/?Action=CreateRoutes\n&RouteTableId=rtb-n0yejvje\n&Routes.0.DestinationCidrBlock=192.168.0.0/16\n&Routes.0.GatewayType=NORMAL_CVM\n&Routes.0.GatewayId=10.212.0.13\n&Routes.0.RouteDescription=
|
203
|
-
"output": "{\n \"Response\": {\n \"RouteTableSet\": [\n {\n \"VpcId\": \"vpc-k23blx7p\",\n \"RouteTableId\": \"rtb-n0yejvje\",\n \"RouteTableName\": \"
|
202
|
+
"input": "https://ecm.tencentcloudapi.com/?Action=CreateRoutes\n&RouteTableId=rtb-n0yejvje\n&Routes.0.DestinationCidrBlock=192.168.0.0/16\n&Routes.0.GatewayType=NORMAL_CVM\n&Routes.0.GatewayId=10.212.0.13\n&Routes.0.RouteDescription=demo\n&<公共请求参数>",
|
203
|
+
"output": "{\n \"Response\": {\n \"RouteTableSet\": [\n {\n \"VpcId\": \"vpc-k23blx7p\",\n \"RouteTableId\": \"rtb-n0yejvje\",\n \"RouteTableName\": \"demo\",\n \"AssociationSet\": [],\n \"RouteSet\": [\n {\n \"RouteTableId\": \"rtb-n0yejvje\",\n \"RouteItemId\": \"rti-12345678\",\n \"DestinationCidrBlock\": \"192.168.0.0/16\",\n \"GatewayType\": \"NORMAL_CVM\",\n \"GatewayId\": \"10.212.0.13\",\n \"RouteDescription\": \"demo\",\n \"Enabled\": true,\n \"RouteId\": 0,\n \"RouteType\": \"USER\"\n }\n ],\n \"Main\": false,\n \"CreatedTime\": \"2020-11-11 11:11:03\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"3f934a21-2786-44af-a421-38ee6c6e1fae\"\n }\n}",
|
204
204
|
"title": "创建路由策略"
|
205
205
|
}
|
206
206
|
],
|
@@ -223,8 +223,8 @@
|
|
223
223
|
"CreateSubnet": [
|
224
224
|
{
|
225
225
|
"document": "",
|
226
|
-
"input": "https://ecm.tencentcloudapi.com/?Action=CreateSubnet\n&VpcId=vpc-ila64qtl\n&SubnetName=
|
227
|
-
"output": "{\n \"Response\": {\n \"Subnet\": {\n \"NetworkAclId\": \"\",\n \"RouteTableId\": \"\",\n \"VpcId\": \"vpc-ila64qtl\",\n \"EnableBroadcast\": false,\n \"Zone\": \"ap-hangzhou-ecm-1\",\n \"Ipv6CidrBlock\": \"\",\n \"Region\": \"ap-hangzhou-ecm\",\n \"SubnetName\": \"
|
226
|
+
"input": "https://ecm.tencentcloudapi.com/?Action=CreateSubnet\n&VpcId=vpc-ila64qtl\n&SubnetName=demo\n&CidrBlock=10.0.1.0/24\n&Zone=ap-hangzhou-ecm-1\n&Tags.0.Key=city\n&Tags.0.Value=hangzhou\n&EcmRegion=ap-hangzhou-ecm\n&<公共请求参数>",
|
227
|
+
"output": "{\n \"Response\": {\n \"Subnet\": {\n \"NetworkAclId\": \"\",\n \"RouteTableId\": \"\",\n \"VpcId\": \"vpc-ila64qtl\",\n \"EnableBroadcast\": false,\n \"Zone\": \"ap-hangzhou-ecm-1\",\n \"Ipv6CidrBlock\": \"\",\n \"Region\": \"ap-hangzhou-ecm\",\n \"SubnetName\": \"demo\",\n \"AvailableIpAddressCount\": 253,\n \"IsRemoteVpcSnat\": false,\n \"SubnetId\": \"subnet-heaa1hzo\",\n \"InstanceCount\": 0,\n \"VpcCidrBlock\": \"10.0.0.0/16\",\n \"TagSet\": [\n {\n \"Value\": \"hangzhou\",\n \"Key\": \"city\"\n }\n ],\n \"CreatedTime\": \"2020-08-14 10:38:40\",\n \"ZoneName\": \"杭州一区\",\n \"CidrBlock\": \"10.0.1.0/24\",\n \"IsDefault\": false,\n \"VpcIpv6CidrBlock\": \"\"\n },\n \"RequestId\": \"d0c21b3b-4c46-4ac3-a6ad-576303682731\"\n }\n}",
|
228
228
|
"title": "创建子网"
|
229
229
|
}
|
230
230
|
],
|
@@ -542,7 +542,7 @@
|
|
542
542
|
{
|
543
543
|
"document": "",
|
544
544
|
"input": "https://ecm.tencentcloudapi.com/?Action=DescribeNetworkInterfaces\n&<公共请求参数>",
|
545
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"NetworkInterfaceSet\": [\n {\n \"NetworkInterfaceId\": \"eni-dqcedwp7\",\n \"NetworkInterfaceName\": \"
|
545
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"NetworkInterfaceSet\": [\n {\n \"NetworkInterfaceId\": \"eni-dqcedwp7\",\n \"NetworkInterfaceName\": \"demo\",\n \"NetworkInterfaceDescription\": \"demo\",\n \"SubnetId\": \"subnet-o6pv7si8\",\n \"VpcId\": \"vpc-j8s8351p\",\n \"GroupSet\": [\n \"esg-fcx8o80o\"\n ],\n \"Primary\": true,\n \"MacAddress\": \"20:90:6F:34:59:4F\",\n \"State\": \"AVAILABLE\",\n \"PrivateIpAddressSet\": [\n {\n \"PrivateIpAddress\": \"11.171.73.41\",\n \"Primary\": true,\n \"PublicIpAddress\": \"60.28.209.138\",\n \"AddressId\": \"\",\n \"Description\": \"demo\",\n \"IsWanIpBlocked\": true,\n \"State\": \"AVAILABLE\"\n }\n ],\n \"Attachment\": {\n \"InstanceId\": \"ein-05ihbvco\",\n \"DeviceIndex\": 1,\n \"InstanceAccountId\": \"1257940589\",\n \"AttachTime\": \"2022-11-17 08:49:10\"\n },\n \"Zone\": \"ap-guangzhou-yunyou-cm-1\",\n \"CreatedTime\": \"2022-11-17 08:49:10\",\n \"Ipv6AddressSet\": [\n {\n \"Address\": \" 2409:8c50:a00:2035:0:9b58:a740:5945\",\n \"Primary\": true,\n \"AddressId\": \"\",\n \"Description\": \"TEST\",\n \"IsWanIpBlocked\": true,\n \"State\": \"PENDING\"\n }\n ],\n \"TagSet\": [\n {\n \"Key\": \"env\",\n \"Value\": \"prod\"\n }\n ],\n \"EniType\": 1,\n \"EcmRegion\": \"ap-ningbo-ecm-ct2\",\n \"Business\": \"cvm\"\n }\n ],\n \"RequestId\": \"8f7fb33d-642f-43d7-bc8f-2d17efbfb49c\"\n }\n}",
|
546
546
|
"title": "查询弹性网卡列表"
|
547
547
|
}
|
548
548
|
],
|
@@ -614,7 +614,7 @@
|
|
614
614
|
{
|
615
615
|
"document": "",
|
616
616
|
"input": "https://ecm.tencentcloudapi.com/?Action=DescribeSecurityGroupAssociationStatistics\n&SecurityGroupIds.0=esg-ohuuioma\n&SecurityGroupIds.1=esg-2quou3gv\n&<公共请求参数>",
|
617
|
-
"output": "{\n \"Response\": {\n \"SecurityGroupAssociationStatisticsSet\": [\n {\n \"SecurityGroupId\": \"esg-ohuuioma\",\n \"ECM\": 0,\n \"Module\": 1,\n \"ENI\": 0,\n \"SG\": 1,\n \"CLB\": 0,\n \"TotalCount\": 1\n },\n {\n \"SecurityGroupId\": \"esg-2quou3gv\",\n \"ECM\": 1,\n \"Module\": 1,\n \"ENI\": 0,\n \"SG\": 1,\n \"CLB\": 0,\n \"TotalCount\": 2\n }\n ]\n }\n}",
|
617
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\",\n \"SecurityGroupAssociationStatisticsSet\": [\n {\n \"SecurityGroupId\": \"esg-ohuuioma\",\n \"ECM\": 0,\n \"Module\": 1,\n \"ENI\": 0,\n \"SG\": 1,\n \"CLB\": 0,\n \"TotalCount\": 1\n },\n {\n \"SecurityGroupId\": \"esg-2quou3gv\",\n \"ECM\": 1,\n \"Module\": 1,\n \"ENI\": 0,\n \"SG\": 1,\n \"CLB\": 0,\n \"TotalCount\": 2\n }\n ]\n }\n}",
|
618
618
|
"title": "查询安全组关联的实例统计"
|
619
619
|
}
|
620
620
|
],
|
@@ -630,7 +630,7 @@
|
|
630
630
|
{
|
631
631
|
"document": "",
|
632
632
|
"input": "https://ecm.tencentcloudapi.com/?Action=DescribeSecurityGroupPolicies\n&SecurityGroupId=esg-ohuuioma\n&<公共请求参数>",
|
633
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\",\n \"SecurityGroupPolicySet\": {\n \"Version\": \"1\",\n \"Egress\": [\n {\n \"PolicyIndex\": 1,\n \"Protocol\": \"tcp\",\n \"Port\": \"80\",\n \"ServiceTemplate\": {\n \"ServiceId\": \"\",\n \"ServiceGroupId\": \"\"\n },\n \"SecurityGroupId\": \"\",\n \"CidrBlock\": \"20.0.0.0/16\",\n \"Action\": \"ACCEPT\",\n \"PolicyDescription\": \"
|
633
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\",\n \"SecurityGroupPolicySet\": {\n \"Version\": \"1\",\n \"Egress\": [\n {\n \"PolicyIndex\": 1,\n \"Protocol\": \"tcp\",\n \"Port\": \"80\",\n \"ServiceTemplate\": {\n \"ServiceId\": \"\",\n \"ServiceGroupId\": \"\"\n },\n \"SecurityGroupId\": \"\",\n \"CidrBlock\": \"20.0.0.0/16\",\n \"Action\": \"ACCEPT\",\n \"PolicyDescription\": \"demo\",\n \"AddressTemplate\": {\n \"AddressId\": \"\",\n \"AddressGroupId\": \"\"\n }\n }\n ],\n \"Ingress\": [\n {\n \"PolicyIndex\": 2,\n \"Protocol\": \"tcp\",\n \"Port\": \"8080\",\n \"CidrBlock\": \"10.0.0.0/16\",\n \"ServiceTemplate\": {\n \"ServiceId\": \"\",\n \"ServiceGroupId\": \"\"\n },\n \"SecurityGroupId\": \"\",\n \"Action\": \"ACCEPT\",\n \"PolicyDescription\": \"demo\",\n \"AddressTemplate\": {\n \"AddressId\": \"\",\n \"AddressGroupId\": \"\"\n }\n }\n ]\n }\n }\n}",
|
634
634
|
"title": "查询安全组规则"
|
635
635
|
}
|
636
636
|
],
|
@@ -638,7 +638,7 @@
|
|
638
638
|
{
|
639
639
|
"document": "",
|
640
640
|
"input": "https://ecm.tencentcloudapi.com/?Action=DescribeSecurityGroups\n&Limit=1\n&Filters.0.Name=security-group-id\n&Filters.0.Values.0=esg-05bb4upy\n&Filters.1.Name=security-group-name\n&Filters.1.Values.0=TestGroup\n&<公共请求参数>",
|
641
|
-
"output": "{\n \"Response\": {\n \"SecurityGroupSet\": [\n {\n \"SecurityGroupId\": \"esg-05bb4upy\",\n \"SecurityGroupName\": \"
|
641
|
+
"output": "{\n \"Response\": {\n \"SecurityGroupSet\": [\n {\n \"SecurityGroupId\": \"esg-05bb4upy\",\n \"SecurityGroupName\": \"demo\",\n \"SecurityGroupDesc\": \"demo\",\n \"IsDefault\": \"true\",\n \"TagSet\": []\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
642
642
|
"title": "查看安全组"
|
643
643
|
}
|
644
644
|
],
|
@@ -654,7 +654,7 @@
|
|
654
654
|
{
|
655
655
|
"document": "查询子网列表",
|
656
656
|
"input": "https://ecm.tencentcloudapi.com/?Action=DescribeSubnets\n&Filters.0.Name=subnet-id\n&Filters.0.Values.0=subnet-ae71tjp6\n&EcmRegion=ap-hangzhou-ecm\n&<公共请求参数>",
|
657
|
-
"output": "{\n \"Response\": {\n \"SubnetSet\": [\n {\n \"NetworkAclId\": \"\",\n \"ISPType\": \"CMCC\",\n \"RouteTableId\": \"rtb-cahjl2qq\",\n \"VpcId\": \"vpc-hqhu0suj\",\n \"EnableBroadcast\": false,\n \"Zone\": \"ap-hangzhou-ecm-1\",\n \"Ipv6CidrBlock\": \"\",\n \"Region\": \"ap-hangzhou-ecm\",\n \"SubnetName\": \"
|
657
|
+
"output": "{\n \"Response\": {\n \"SubnetSet\": [\n {\n \"NetworkAclId\": \"\",\n \"ISPType\": \"CMCC\",\n \"RouteTableId\": \"rtb-cahjl2qq\",\n \"VpcId\": \"vpc-hqhu0suj\",\n \"EnableBroadcast\": false,\n \"Zone\": \"ap-hangzhou-ecm-1\",\n \"Ipv6CidrBlock\": \"\",\n \"Region\": \"ap-hangzhou-ecm\",\n \"SubnetName\": \"demo\",\n \"AvailableIpAddressCount\": 253,\n \"IsRemoteVpcSnat\": false,\n \"SubnetId\": \"subnet-ae71tjp6\",\n \"InstanceCount\": 0,\n \"VpcCidrBlock\": \"192.168.0.0/18\",\n \"TagSet\": [\n {\n \"Value\": \"hangzhou\",\n \"Key\": \"city\"\n }\n ],\n \"CreatedTime\": \"2020-08-14 11:38:33\",\n \"ZoneName\": \"杭州一区\",\n \"CidrBlock\": \"192.168.1.0/24\",\n \"IsDefault\": false,\n \"VpcIpv6CidrBlock\": \"\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"6e863039-2a22-4a98-8577-93823b250674\"\n }\n}",
|
658
658
|
"title": "查询子网列表"
|
659
659
|
}
|
660
660
|
],
|
@@ -843,7 +843,7 @@
|
|
843
843
|
"ModifyIpv6AddressesAttribute": [
|
844
844
|
{
|
845
845
|
"document": "",
|
846
|
-
"input": "https://ecm.tencentcloudapi.com/?Action=ModifyIpv6AddressesAttribute\n&EcmRegion=ap-guangzhou-ecm-cu2\n&NetworkInterfaceId=eni-9c8zkfev\n&Ipv6Addresses.0.Address=3402:4e00:20:1202::7\n&Ipv6Addresses.0.Description=
|
846
|
+
"input": "https://ecm.tencentcloudapi.com/?Action=ModifyIpv6AddressesAttribute\n&EcmRegion=ap-guangzhou-ecm-cu2\n&NetworkInterfaceId=eni-9c8zkfev\n&Ipv6Addresses.0.Address=3402:4e00:20:1202::7\n&Ipv6Addresses.0.Description=demo\n&<公共请求参数>",
|
847
847
|
"output": "{\n \"Response\": {\n \"RequestId\": \"57065a05-9d50-476b-9cd6-97b0ddf03766\"\n }\n}",
|
848
848
|
"title": "修改弹性网卡IPv6地址属性"
|
849
849
|
}
|
@@ -947,23 +947,23 @@
|
|
947
947
|
"ModifySecurityGroupAttribute": [
|
948
948
|
{
|
949
949
|
"document": "",
|
950
|
-
"input": "https://ecm.tencentcloudapi.com/?Action=ModifySecurityGroupAttribute\
|
951
|
-
"output": "{\n \"Response\": {}\n}",
|
950
|
+
"input": "https://ecm.tencentcloudapi.com/?Action=ModifySecurityGroupAttribute\n&SecurityGroupId=esg-33ocnj9n\n&GroupName=demo\n&GroupDescription=demo\n&<公共请求参数>",
|
951
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\"\n }\n}",
|
952
952
|
"title": "修改安全组属性"
|
953
953
|
}
|
954
954
|
],
|
955
955
|
"ModifySecurityGroupPolicies": [
|
956
956
|
{
|
957
957
|
"document": "",
|
958
|
-
"input": "https://ecm.tencentcloudapi.com/?Action=ModifySecurityGroupPolicies\
|
959
|
-
"output": "{\n \"Response\": {}\n}",
|
958
|
+
"input": "https://ecm.tencentcloudapi.com/?Action=ModifySecurityGroupPolicies\n&SecurityGroupId=esg-ohuuioma\n&SecurityGroupPolicySet.Egress.0.Protocol=TCP\n&SecurityGroupPolicySet.Egress.0.Port=80\n&SecurityGroupPolicySet.Egress.0.Action=accept\n&SecurityGroupPolicySet.Egress.0.CidrBlock=10.0.0.0/16\n&SecurityGroupPolicySet.Egress.0.PolicyDescription=demo\n&SecurityGroupPolicySet.Ingress.0.Protocol=TCP\n&SecurityGroupPolicySet.Ingress.0.Port=8080\n&SecurityGroupPolicySet.Ingress.0.Action=accept\n&SecurityGroupPolicySet.Ingress.0.CidrBlock=10.0.0.0/16\n&SecurityGroupPolicySet.Ingress.0.PolicyDescription=demo\n&<公共请求参数>",
|
959
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\"\n }\n}",
|
960
960
|
"title": "修改安全组出站和入站规则"
|
961
961
|
}
|
962
962
|
],
|
963
963
|
"ModifySubnetAttribute": [
|
964
964
|
{
|
965
965
|
"document": "",
|
966
|
-
"input": "https://ecm.tencentcloudapi.com/?Action=ModifySubnetAttribute\n&SubnetId=subnet-ae71tjp6\n&SubnetName=
|
966
|
+
"input": "https://ecm.tencentcloudapi.com/?Action=ModifySubnetAttribute\n&SubnetId=subnet-ae71tjp6\n&SubnetName=demo\n&EcmRegion=ap-hangzhou-ecm\n&<公共请求参数>",
|
967
967
|
"output": "{\n \"Response\": {\n \"RequestId\": \"0b5123d6-3420-4369-8c2f-414706d40684\"\n }\n}",
|
968
968
|
"title": "修改子网属性"
|
969
969
|
}
|
@@ -1059,8 +1059,8 @@
|
|
1059
1059
|
"ReplaceSecurityGroupPolicy": [
|
1060
1060
|
{
|
1061
1061
|
"document": "",
|
1062
|
-
"input": "https://ecm.tencentcloudapi.com/?Action=ReplaceSecurityGroupPolicy\
|
1063
|
-
"output": "{\n \"Response\": {}\n}",
|
1062
|
+
"input": "https://ecm.tencentcloudapi.com/?Action=ReplaceSecurityGroupPolicy\n&SecurityGroupId=esg-ohuuioma\n&SecurityGroupPolicySet.Version=20\n&SecurityGroupPolicySet.Egress.0.PolicyIndex=1\n&SecurityGroupPolicySet.Egress.0.Protocol=tcp\n&SecurityGroupPolicySet.Egress.0.Port=8080\n&SecurityGroupPolicySet.Egress.0.Action=accept\n&SecurityGroupPolicySet.Egress.0.CidrBlock=10.0.0.0/24\n&SecurityGroupPolicySet.Egress.0.PolicyDescription=demo\n&<公共请求参数>",
|
1063
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"354f4ac3-8546-4516-8c8a-69e3ab73aa8a\"\n }\n}",
|
1064
1064
|
"title": "替换单条安全组路由规则"
|
1065
1065
|
}
|
1066
1066
|
],
|
@@ -8700,15 +8700,6 @@
|
|
8700
8700
|
"required": true,
|
8701
8701
|
"type": "int"
|
8702
8702
|
},
|
8703
|
-
{
|
8704
|
-
"disabled": false,
|
8705
|
-
"document": "待续费节点的资源ID列表。资源ID形如:emr-vm-xxxxxxxx。有效的资源ID可通过登录[控制台](https://console.cloud.tencent.com/emr)查询。",
|
8706
|
-
"example": "[\"emr-vm-jv1s4zas\\r\\n\"]",
|
8707
|
-
"member": "string",
|
8708
|
-
"name": "ResourceIds",
|
8709
|
-
"required": true,
|
8710
|
-
"type": "list"
|
8711
|
-
},
|
8712
8703
|
{
|
8713
8704
|
"disabled": false,
|
8714
8705
|
"document": "实例计费模式。此处只支持取值为1,表示包年包月。",
|
@@ -8718,6 +8709,15 @@
|
|
8718
8709
|
"required": true,
|
8719
8710
|
"type": "int"
|
8720
8711
|
},
|
8712
|
+
{
|
8713
|
+
"disabled": false,
|
8714
|
+
"document": "待续费节点的资源ID列表。资源ID形如:emr-vm-xxxxxxxx。有效的资源ID可通过登录[控制台](https://console.cloud.tencent.com/emr)查询。",
|
8715
|
+
"example": "[\"emr-vm-jv1s4zas\\r\\n\"]",
|
8716
|
+
"member": "string",
|
8717
|
+
"name": "ResourceIds",
|
8718
|
+
"required": false,
|
8719
|
+
"type": "list"
|
8720
|
+
},
|
8721
8721
|
{
|
8722
8722
|
"disabled": false,
|
8723
8723
|
"document": "实例续费的时间单位。取值范围:\n<li>m:表示月份。</li>",
|
@@ -8753,6 +8753,24 @@
|
|
8753
8753
|
"name": "ModifyPayMode",
|
8754
8754
|
"required": false,
|
8755
8755
|
"type": "int"
|
8756
|
+
},
|
8757
|
+
{
|
8758
|
+
"disabled": false,
|
8759
|
+
"document": "是否需要每个节点续费价格",
|
8760
|
+
"example": "false",
|
8761
|
+
"member": "bool",
|
8762
|
+
"name": "NeedDetail",
|
8763
|
+
"required": false,
|
8764
|
+
"type": "bool"
|
8765
|
+
},
|
8766
|
+
{
|
8767
|
+
"disabled": false,
|
8768
|
+
"document": "集群id,如果需要集群所有包年包月节点续费信息,可以填写该参数",
|
8769
|
+
"example": "emr-21adfa",
|
8770
|
+
"member": "string",
|
8771
|
+
"name": "InstanceId",
|
8772
|
+
"required": false,
|
8773
|
+
"type": "string"
|
8756
8774
|
}
|
8757
8775
|
],
|
8758
8776
|
"type": "object"
|
@@ -8800,6 +8818,16 @@
|
|
8800
8818
|
"type": "int",
|
8801
8819
|
"value_allowed_null": true
|
8802
8820
|
},
|
8821
|
+
{
|
8822
|
+
"disabled": false,
|
8823
|
+
"document": "价格详情\n注意:此字段可能返回 null,表示取不到有效值。",
|
8824
|
+
"example": "无",
|
8825
|
+
"member": "PriceDetail",
|
8826
|
+
"name": "PriceDetail",
|
8827
|
+
"output_required": false,
|
8828
|
+
"type": "list",
|
8829
|
+
"value_allowed_null": true
|
8830
|
+
},
|
8803
8831
|
{
|
8804
8832
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
8805
8833
|
"member": "string",
|
@@ -12219,9 +12247,10 @@
|
|
12219
12247
|
{
|
12220
12248
|
"disabled": false,
|
12221
12249
|
"document": "外部资源提供者的标识符,例如\"cls-a1cd23fa\"。",
|
12222
|
-
"example": "
|
12250
|
+
"example": "cls-a1cd2dsx",
|
12223
12251
|
"member": "string",
|
12224
12252
|
"name": "ResourceProviderIdentifier",
|
12253
|
+
"output_required": true,
|
12225
12254
|
"required": true,
|
12226
12255
|
"type": "string",
|
12227
12256
|
"value_allowed_null": false
|
@@ -12229,9 +12258,10 @@
|
|
12229
12258
|
{
|
12230
12259
|
"disabled": false,
|
12231
12260
|
"document": "外部资源提供者类型,例如\"tke\",当前仅支持\"tke\"。",
|
12232
|
-
"example": "
|
12261
|
+
"example": "tke",
|
12233
12262
|
"member": "string",
|
12234
12263
|
"name": "ResourceProviderType",
|
12264
|
+
"output_required": true,
|
12235
12265
|
"required": true,
|
12236
12266
|
"type": "string",
|
12237
12267
|
"value_allowed_null": false
|
@@ -12239,9 +12269,10 @@
|
|
12239
12269
|
{
|
12240
12270
|
"disabled": false,
|
12241
12271
|
"document": "资源的用途,即节点类型,当前仅支持\"TASK\"。",
|
12242
|
-
"example": "
|
12272
|
+
"example": "TASK",
|
12243
12273
|
"member": "string",
|
12244
12274
|
"name": "NodeFlag",
|
12275
|
+
"output_required": true,
|
12245
12276
|
"required": true,
|
12246
12277
|
"type": "string",
|
12247
12278
|
"value_allowed_null": false
|
@@ -12249,9 +12280,10 @@
|
|
12249
12280
|
{
|
12250
12281
|
"disabled": false,
|
12251
12282
|
"document": "CPU核数。",
|
12252
|
-
"example": "
|
12283
|
+
"example": "1",
|
12253
12284
|
"member": "uint64",
|
12254
12285
|
"name": "Cpu",
|
12286
|
+
"output_required": true,
|
12255
12287
|
"required": true,
|
12256
12288
|
"type": "int",
|
12257
12289
|
"value_allowed_null": false
|
@@ -12259,9 +12291,10 @@
|
|
12259
12291
|
{
|
12260
12292
|
"disabled": false,
|
12261
12293
|
"document": "内存大小,单位为GB。",
|
12262
|
-
"example": "
|
12294
|
+
"example": "1",
|
12263
12295
|
"member": "uint64",
|
12264
12296
|
"name": "Memory",
|
12297
|
+
"output_required": true,
|
12265
12298
|
"required": true,
|
12266
12299
|
"type": "int",
|
12267
12300
|
"value_allowed_null": false
|
@@ -12269,9 +12302,10 @@
|
|
12269
12302
|
{
|
12270
12303
|
"disabled": false,
|
12271
12304
|
"document": "Eks集群-CPU类型,当前支持\"intel\"和\"amd\"",
|
12272
|
-
"example": "
|
12305
|
+
"example": "intel",
|
12273
12306
|
"member": "string",
|
12274
12307
|
"name": "CpuType",
|
12308
|
+
"output_required": true,
|
12275
12309
|
"required": false,
|
12276
12310
|
"type": "string",
|
12277
12311
|
"value_allowed_null": false
|
@@ -12279,9 +12313,10 @@
|
|
12279
12313
|
{
|
12280
12314
|
"disabled": false,
|
12281
12315
|
"document": "Pod节点数据目录挂载信息。",
|
12282
|
-
"example": "\"\"",
|
12316
|
+
"example": "[\"/data\"]",
|
12283
12317
|
"member": "PodVolume",
|
12284
12318
|
"name": "PodVolumes",
|
12319
|
+
"output_required": true,
|
12285
12320
|
"required": false,
|
12286
12321
|
"type": "list",
|
12287
12322
|
"value_allowed_null": false
|
@@ -12289,9 +12324,10 @@
|
|
12289
12324
|
{
|
12290
12325
|
"disabled": false,
|
12291
12326
|
"document": "是否浮动规格,默认否\n<li>true:代表是</li>\n<li>false:代表否</li>",
|
12292
|
-
"example": "
|
12327
|
+
"example": "true",
|
12293
12328
|
"member": "bool",
|
12294
12329
|
"name": "EnableDynamicSpecFlag",
|
12330
|
+
"output_required": true,
|
12295
12331
|
"required": false,
|
12296
12332
|
"type": "bool",
|
12297
12333
|
"value_allowed_null": false
|
@@ -12299,9 +12335,10 @@
|
|
12299
12335
|
{
|
12300
12336
|
"disabled": false,
|
12301
12337
|
"document": "浮动规格\n注意:此字段可能返回 null,表示取不到有效值。",
|
12302
|
-
"example": "
|
12338
|
+
"example": "无",
|
12303
12339
|
"member": "DynamicPodSpec",
|
12304
12340
|
"name": "DynamicPodSpec",
|
12341
|
+
"output_required": true,
|
12305
12342
|
"required": false,
|
12306
12343
|
"type": "object",
|
12307
12344
|
"value_allowed_null": true
|
@@ -12309,9 +12346,10 @@
|
|
12309
12346
|
{
|
12310
12347
|
"disabled": false,
|
12311
12348
|
"document": "代表vpc网络唯一id\n注意:此字段可能返回 null,表示取不到有效值。",
|
12312
|
-
"example": "
|
12349
|
+
"example": "vpc-se938xw9",
|
12313
12350
|
"member": "string",
|
12314
12351
|
"name": "VpcId",
|
12352
|
+
"output_required": true,
|
12315
12353
|
"required": false,
|
12316
12354
|
"type": "string",
|
12317
12355
|
"value_allowed_null": true
|
@@ -12319,9 +12357,10 @@
|
|
12319
12357
|
{
|
12320
12358
|
"disabled": false,
|
12321
12359
|
"document": "代表vpc子网唯一id\n注意:此字段可能返回 null,表示取不到有效值。",
|
12322
|
-
"example": "
|
12360
|
+
"example": "sub-ei39s9xx",
|
12323
12361
|
"member": "string",
|
12324
12362
|
"name": "SubnetId",
|
12363
|
+
"output_required": true,
|
12325
12364
|
"required": false,
|
12326
12365
|
"type": "string",
|
12327
12366
|
"value_allowed_null": true
|
@@ -12332,6 +12371,7 @@
|
|
12332
12371
|
"example": "无",
|
12333
12372
|
"member": "string",
|
12334
12373
|
"name": "PodName",
|
12374
|
+
"output_required": true,
|
12335
12375
|
"required": false,
|
12336
12376
|
"type": "string",
|
12337
12377
|
"value_allowed_null": true
|
@@ -14201,6 +14241,26 @@
|
|
14201
14241
|
"type": "string",
|
14202
14242
|
"value_allowed_null": true
|
14203
14243
|
},
|
14244
|
+
{
|
14245
|
+
"disabled": false,
|
14246
|
+
"document": "订单号。\n注意:此字段可能返回 null,表示取不到有效值。",
|
14247
|
+
"example": "1731867961-23673-5000362",
|
14248
|
+
"member": "string",
|
14249
|
+
"name": "DealNames",
|
14250
|
+
"output_required": false,
|
14251
|
+
"type": "list",
|
14252
|
+
"value_allowed_null": true
|
14253
|
+
},
|
14254
|
+
{
|
14255
|
+
"disabled": false,
|
14256
|
+
"document": "大订单号。\n注意:此字段可能返回 null,表示取不到有效值。",
|
14257
|
+
"example": "20241118053073481639521",
|
14258
|
+
"member": "string",
|
14259
|
+
"name": "BillId",
|
14260
|
+
"output_required": false,
|
14261
|
+
"type": "string",
|
14262
|
+
"value_allowed_null": true
|
14263
|
+
},
|
14204
14264
|
{
|
14205
14265
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
14206
14266
|
"member": "string",
|
tccli/services/ess/ess_client.py
CHANGED
@@ -1525,6 +1525,58 @@ def doBindEmployeeUserIdWithClientOpenId(args, parsed_globals):
|
|
1525
1525
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
1526
|
|
1527
1527
|
|
1528
|
+
def doCreateOrganizationAuthFile(args, parsed_globals):
|
1529
|
+
g_param = parse_global_arg(parsed_globals)
|
1530
|
+
|
1531
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1532
|
+
cred = credential.CVMRoleCredential()
|
1533
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1534
|
+
cred = credential.STSAssumeRoleCredential(
|
1535
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1536
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1537
|
+
)
|
1538
|
+
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):
|
1539
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1540
|
+
else:
|
1541
|
+
cred = credential.Credential(
|
1542
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1543
|
+
)
|
1544
|
+
http_profile = HttpProfile(
|
1545
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1546
|
+
reqMethod="POST",
|
1547
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1548
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1549
|
+
)
|
1550
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1551
|
+
if g_param[OptionsDefine.Language]:
|
1552
|
+
profile.language = g_param[OptionsDefine.Language]
|
1553
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1554
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
1555
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1556
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1557
|
+
model = models.CreateOrganizationAuthFileRequest()
|
1558
|
+
model.from_json_string(json.dumps(args))
|
1559
|
+
start_time = time.time()
|
1560
|
+
while True:
|
1561
|
+
rsp = client.CreateOrganizationAuthFile(model)
|
1562
|
+
result = rsp.to_json_string()
|
1563
|
+
try:
|
1564
|
+
json_obj = json.loads(result)
|
1565
|
+
except TypeError as e:
|
1566
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1567
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1568
|
+
break
|
1569
|
+
cur_time = time.time()
|
1570
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1571
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1572
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1573
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1574
|
+
else:
|
1575
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1576
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1577
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
|
+
|
1579
|
+
|
1528
1580
|
def doDeleteIntegrationRoleUsers(args, parsed_globals):
|
1529
1581
|
g_param = parse_global_arg(parsed_globals)
|
1530
1582
|
|
@@ -2877,7 +2929,7 @@ def doCreateFlowBlockchainEvidenceUrl(args, parsed_globals):
|
|
2877
2929
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
2930
|
|
2879
2931
|
|
2880
|
-
def
|
2932
|
+
def doCreateBatchOrganizationAuthorizationUrl(args, parsed_globals):
|
2881
2933
|
g_param = parse_global_arg(parsed_globals)
|
2882
2934
|
|
2883
2935
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2906,11 +2958,11 @@ def doCreateBatchOrganizationRegistrationTasks(args, parsed_globals):
|
|
2906
2958
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
2959
|
client._sdkVersion += ("_CLI_" + __version__)
|
2908
2960
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
-
model = models.
|
2961
|
+
model = models.CreateBatchOrganizationAuthorizationUrlRequest()
|
2910
2962
|
model.from_json_string(json.dumps(args))
|
2911
2963
|
start_time = time.time()
|
2912
2964
|
while True:
|
2913
|
-
rsp = client.
|
2965
|
+
rsp = client.CreateBatchOrganizationAuthorizationUrl(model)
|
2914
2966
|
result = rsp.to_json_string()
|
2915
2967
|
try:
|
2916
2968
|
json_obj = json.loads(result)
|
@@ -3033,7 +3085,7 @@ def doModifyIntegrationRole(args, parsed_globals):
|
|
3033
3085
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3034
3086
|
|
3035
3087
|
|
3036
|
-
def
|
3088
|
+
def doCreateBatchOrganizationRegistrationTasks(args, parsed_globals):
|
3037
3089
|
g_param = parse_global_arg(parsed_globals)
|
3038
3090
|
|
3039
3091
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3062,11 +3114,11 @@ def doCreateBatchOrganizationAuthorizationUrl(args, parsed_globals):
|
|
3062
3114
|
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
3063
3115
|
client._sdkVersion += ("_CLI_" + __version__)
|
3064
3116
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3065
|
-
model = models.
|
3117
|
+
model = models.CreateBatchOrganizationRegistrationTasksRequest()
|
3066
3118
|
model.from_json_string(json.dumps(args))
|
3067
3119
|
start_time = time.time()
|
3068
3120
|
while True:
|
3069
|
-
rsp = client.
|
3121
|
+
rsp = client.CreateBatchOrganizationRegistrationTasks(model)
|
3070
3122
|
result = rsp.to_json_string()
|
3071
3123
|
try:
|
3072
3124
|
json_obj = json.loads(result)
|
@@ -4997,6 +5049,7 @@ ACTION_MAP = {
|
|
4997
5049
|
"RenewAutoSignLicense": doRenewAutoSignLicense,
|
4998
5050
|
"VerifyPdf": doVerifyPdf,
|
4999
5051
|
"BindEmployeeUserIdWithClientOpenId": doBindEmployeeUserIdWithClientOpenId,
|
5052
|
+
"CreateOrganizationAuthFile": doCreateOrganizationAuthFile,
|
5000
5053
|
"DeleteIntegrationRoleUsers": doDeleteIntegrationRoleUsers,
|
5001
5054
|
"CreateFlowGroupByFiles": doCreateFlowGroupByFiles,
|
5002
5055
|
"CreateIntegrationDepartment": doCreateIntegrationDepartment,
|
@@ -5023,10 +5076,10 @@ ACTION_MAP = {
|
|
5023
5076
|
"CreateIntegrationRole": doCreateIntegrationRole,
|
5024
5077
|
"ModifyExtendedService": doModifyExtendedService,
|
5025
5078
|
"CreateFlowBlockchainEvidenceUrl": doCreateFlowBlockchainEvidenceUrl,
|
5026
|
-
"
|
5079
|
+
"CreateBatchOrganizationAuthorizationUrl": doCreateBatchOrganizationAuthorizationUrl,
|
5027
5080
|
"DescribeUserVerifyStatus": doDescribeUserVerifyStatus,
|
5028
5081
|
"ModifyIntegrationRole": doModifyIntegrationRole,
|
5029
|
-
"
|
5082
|
+
"CreateBatchOrganizationRegistrationTasks": doCreateBatchOrganizationRegistrationTasks,
|
5030
5083
|
"CreateEmployeeQualificationSealQrCode": doCreateEmployeeQualificationSealQrCode,
|
5031
5084
|
"CreateExtendedServiceAuthInfos": doCreateExtendedServiceAuthInfos,
|
5032
5085
|
"CreateOrganizationInfoChangeUrl": doCreateOrganizationInfoChangeUrl,
|