tccli 3.0.1207.1__py2.py3-none-any.whl → 3.0.1209.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/advisor/v20200721/api.json +1 -1
  4. tccli/services/batch/v20170312/api.json +20 -2
  5. tccli/services/bma/v20221115/examples.json +1 -1
  6. tccli/services/ccc/v20200210/api.json +28 -1
  7. tccli/services/cls/cls_client.py +216 -4
  8. tccli/services/cls/v20201016/api.json +475 -0
  9. tccli/services/cls/v20201016/examples.json +39 -7
  10. tccli/services/cynosdb/v20190107/api.json +11 -0
  11. tccli/services/dc/dc_client.py +126 -73
  12. tccli/services/dc/v20180410/api.json +300 -0
  13. tccli/services/dc/v20180410/examples.json +8 -0
  14. tccli/services/dlc/dlc_client.py +53 -0
  15. tccli/services/dlc/v20210125/api.json +273 -0
  16. tccli/services/dlc/v20210125/examples.json +8 -0
  17. tccli/services/emr/v20190103/api.json +2 -2
  18. tccli/services/ess/v20201111/api.json +13 -13
  19. tccli/services/ess/v20201111/examples.json +10 -10
  20. tccli/services/essbasic/v20210526/api.json +2 -2
  21. tccli/services/faceid/v20180301/api.json +11 -1
  22. tccli/services/gwlb/__init__.py +4 -0
  23. tccli/services/gwlb/gwlb_client.py +1096 -0
  24. tccli/services/gwlb/v20240906/api.json +1807 -0
  25. tccli/services/gwlb/v20240906/examples.json +155 -0
  26. tccli/services/ioa/v20220601/api.json +18 -1
  27. tccli/services/oceanus/v20190422/api.json +4 -4
  28. tccli/services/privatedns/privatedns_client.py +57 -4
  29. tccli/services/privatedns/v20201028/api.json +101 -0
  30. tccli/services/privatedns/v20201028/examples.json +8 -0
  31. tccli/services/teo/v20220901/api.json +4 -4
  32. tccli/services/tke/tke_client.py +4 -57
  33. tccli/services/tke/v20180525/api.json +2 -74
  34. tccli/services/tke/v20180525/examples.json +0 -8
  35. tccli/services/trtc/v20190722/api.json +1 -1
  36. tccli/services/vclm/v20240523/api.json +9 -0
  37. tccli/services/vod/v20180717/api.json +1 -1
  38. tccli/services/vpc/v20170312/api.json +23 -14
  39. tccli/services/vpc/v20170312/examples.json +1 -1
  40. tccli/services/vtc/v20240223/api.json +9 -0
  41. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/METADATA +2 -2
  42. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/RECORD +45 -41
  43. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/WHEEL +0 -0
  44. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/entry_points.txt +0 -0
  45. {tccli-3.0.1207.1.dist-info → tccli-3.0.1209.1.dist-info}/license_files/LICENSE +0 -0
@@ -0,0 +1,155 @@
1
+ {
2
+ "actions": {
3
+ "AssociateTargetGroups": [
4
+ {
5
+ "document": "",
6
+ "input": "https://gwlb.tencentcloudapi.com/?Action=AssociateTargetGroups\n&Associations.0.LoadBalancerId=gwlb-20dhh498\n&Associations.0.TargetGroupId=lbtg-5xunivs0\n&<公共请求参数>",
7
+ "output": "{\n \"Response\": {\n \"RequestId\": \"dd2f3116-421c-4eda-8401-b9ddefcc65d5\"\n }\n}",
8
+ "title": "负载均衡关联目标组"
9
+ }
10
+ ],
11
+ "CreateGatewayLoadBalancer": [
12
+ {
13
+ "document": "在私有网络中创建一个网关负载均衡",
14
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateGatewayLoadBalancer\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-30xq****\",\n \"SubnetId\": \"subnet-****\",\n \"LoadBalancerName\": \"test\"\n}",
15
+ "output": "{\n \"Response\": {\n \"LoadBalancerIds\": [\n \"gwlb-kmfr****\"\n ],\n \"DealName\": \"20211230660009761735781\",\n \"RequestId\": \"7ffa6830-cd1b-4bc4-8e24-1688885f594a\"\n }\n}",
16
+ "title": "创建一个网关负载均衡实例"
17
+ }
18
+ ],
19
+ "CreateTargetGroup": [
20
+ {
21
+ "document": "创建目标组",
22
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTargetGroup\n<公共请求参数>\n\n{\n \"VpcId\": \"vpc-i1cnjuhx\",\n \"Port\": \"80\",\n \"TargetGroupName\": \"czhtest\"\n}",
23
+ "output": "{\n \"Response\": {\n \"TargetGroupId\": \"lbtg-81******\",\n \"RequestId\": \"9a4096dd-45a1-4e03-be8e-482a2fb48b59\"\n }\n}",
24
+ "title": "创建目标组"
25
+ }
26
+ ],
27
+ "DeleteGatewayLoadBalancer": [
28
+ {
29
+ "document": "删除一个网负载均衡实例",
30
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteGatewayLoadBalancer\n<公共请求参数>\n\n{\n \"LoadBalancerIds\": [\n \"gwlb-hsb9****\"\n ]\n}",
31
+ "output": "{\n \"Response\": {\n \"RequestId\": \"db141822-c025-4765-88d4-02bdec0e67ed\"\n }\n}",
32
+ "title": "删除一个网关负载均衡实例"
33
+ }
34
+ ],
35
+ "DeleteTargetGroups": [
36
+ {
37
+ "document": "",
38
+ "input": "https://gwlb.tencentcloudapi.com/?Action=DeleteTargetGroups\n&TargetGroupIds.0=lbtg-f1phe5j6\n&<公共请求参数>",
39
+ "output": "{\n \"Response\": {\n \"RequestId\": \"4e0ec156-655b-47e4-a483-a954b632a49a\"\n }\n}",
40
+ "title": "删除目标组"
41
+ }
42
+ ],
43
+ "DeregisterTargetGroupInstances": [
44
+ {
45
+ "document": "",
46
+ "input": "https://gwlb.tencentcloudapi.com/?Action=DeregisterTargetGroupInstances\n&TargetGroupId=lbtg-815iz538\n&TargetGroupInstances.0.BindIP=172.16.0.34\n&TargetGroupInstances.0.Port=1234\n&<公共请求参数>",
47
+ "output": "{\n \"Response\": {\n \"RequestId\": \"4b4987ca-58d0-4bad-9ded-344fa4011bda\"\n }\n}",
48
+ "title": "从目标组中解绑服务器"
49
+ }
50
+ ],
51
+ "DescribeGatewayLoadBalancers": [
52
+ {
53
+ "document": "指定实例ID查询网关负载均衡",
54
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGatewayLoadBalancers\n<公共请求参数>\n\n{\n \"LoadBalancerIds\": [\n \"abc\"\n ]\n}",
55
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"LoadBalancerSet\": [\n {\n \"LoadBalancerId\": \"abc\",\n \"LoadBalancerName\": \"abc\",\n \"Vips\": [\n \"abc\"\n ],\n \"SubnetId\": \"abc\",\n \"Status\": 1,\n \"DeleteProtect\": true,\n \"TargetGroupId\": \"abc\",\n \"VpcId\": \"abc\",\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"CreateTime\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
56
+ "title": "指定实例ID查询网关负载均衡"
57
+ }
58
+ ],
59
+ "DescribeTargetGroupInstanceStatus": [
60
+ {
61
+ "document": "批量查询gwlb目标组后端服务状态",
62
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTargetGroupInstanceStatus\n<公共请求参数>\n\n{\n \"TargetGroupId\": \"lbtg-3j3****\",\n \"TargetGroupInstanceIps\": [\n \"10.0.1.13\",\n \"10.0.1.5\"\n ]\n}",
63
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b3ba6587-1a1c-47eb-ac8b-0424bf3fdc86\",\n \"TargetGroupInstanceSet\": [\n {\n \"InstanceIp\": \"10.0.1.13\",\n \"Status\": \"on\"\n },\n {\n \"InstanceIp\": \"10.0.1.5\",\n \"Status\": \"on\"\n }\n ]\n }\n}",
64
+ "title": "批量查询gwlb目标组后端服务状态"
65
+ }
66
+ ],
67
+ "DescribeTargetGroupInstances": [
68
+ {
69
+ "document": "显示目标组绑定的服务器信息",
70
+ "input": "https://gwlb.tencentcloudapi.com/?Action=DescribeTargetGroupInstances\n&Filters.0.Name=TargetGroupId\n&Filters.0.Values.0=lbtg-5xunivs0\n&<公共请求参数>",
71
+ "output": "{\n \"Response\": {\n \"TotalCount\": 2,\n \"TargetGroupInstanceSet\": [\n {\n \"TargetGroupId\": \"lbtg-5xunivs0\",\n \"Type\": \"CVM\",\n \"InstanceId\": \"ins-197234qt\",\n \"InstanceName\": \"未命名\",\n \"Port\": 3333,\n \"Weight\": 43,\n \"PublicIpAddresses\": [],\n \"PrivateIpAddresses\": [\n \"172.16.0.32\"\n ],\n \"EniId\": null,\n \"ZoneId\": \"400001\",\n \"RegisteredTime\": \"2019-07-24T20:02:43+08:00\"\n },\n {\n \"TargetGroupId\": \"lbtg-5xunivs0\",\n \"Type\": \"CVM\",\n \"InstanceId\": \"ins-197234qt\",\n \"InstanceName\": \"未命名\",\n \"Port\": 2222,\n \"Weight\": 55,\n \"PublicIpAddresses\": [],\n \"PrivateIpAddresses\": [\n \"172.16.0.32\"\n ],\n \"EniId\": null,\n \"ZoneId\": \"400001\",\n \"RegisteredTime\": \"2019-07-23T21:01:08+08:00\"\n }\n ],\n \"RealCount\": 2,\n \"RequestId\": \"94240d7f-8bc1-422a-81b9-5ea76d486a66\"\n }\n}",
72
+ "title": "显示目标组绑定的服务器信息"
73
+ }
74
+ ],
75
+ "DescribeTargetGroupList": [
76
+ {
77
+ "document": "获取目标组列表",
78
+ "input": "https://gwlb.tencentcloudapi.com/?Action=DescribeTargetGroupList\n&<公共请求参数>",
79
+ "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"TargetGroupSet\": [\n {\n \"TargetGroupId\": \"abc\",\n \"VpcId\": \"abc\",\n \"TargetGroupName\": \"abc\",\n \"Port\": 1,\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"UpdatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"AssociatedRule\": [\n {\n \"LoadBalancerId\": \"abc\",\n \"LoadBalancerName\": \"abc\"\n }\n ],\n \"Protocol\": \"abc\",\n \"ScheduleAlgorithm\": \"abc\",\n \"HealthCheck\": {\n \"HealthSwitch\": true,\n \"Protocol\": \"abc\",\n \"Port\": 0,\n \"Timeout\": 0,\n \"IntervalTime\": 0,\n \"HealthNum\": 0,\n \"UnHealthNum\": 0\n },\n \"AllDeadToAlive\": true,\n \"AssociatedRuleCount\": 0\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
80
+ "title": "获取目标组列表"
81
+ }
82
+ ],
83
+ "DescribeTargetGroups": [
84
+ {
85
+ "document": "根据ID查询目标组信息",
86
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTargetGroups\n<公共请求参数>\n\n{\n \"TargetGroupIds\": [\n \"lbtg-5xunivs0\"\n ]\n}",
87
+ "output": "{\n \"Response\": {\n \"RequestId\": \"7ae76f16-a859-449a-a43e-674c229999cc\",\n \"TargetGroupSet\": [\n {\n \"AllDeadToAlive\": false,\n \"AssociatedRule\": [\n {\n \"LoadBalancerId\": \"gwlb-poqv7z4y\",\n \"LoadBalancerName\": \"test-gwlb-2\"\n }\n ],\n \"CreatedTime\": \"2024-09-04T14:30:45+08:00\",\n \"HealthCheck\": {\n \"HealthNum\": 3,\n \"HealthSwitch\": true,\n \"IntervalTime\": 5,\n \"Port\": 0,\n \"Protocol\": \"icmp\",\n \"Timeout\": 2,\n \"UnHealthNum\": 3\n },\n \"Port\": 6081,\n \"Protocol\": \"geneve\",\n \"ScheduleAlgorithm\": \"ip_hash_3\",\n \"TargetGroupId\": \"lbtg-5xunivs0\",\n \"TargetGroupName\": \"gwlb-tar-5\",\n \"UpdatedTime\": \"2024-09-04T14:30:44+08:00\",\n \"VpcId\": \"vpc-drpj1tv1\"\n }\n ],\n \"TotalCount\": 1\n }\n}",
88
+ "title": "根据ID查询目标组信息"
89
+ },
90
+ {
91
+ "document": "根据条件查询目标组信息",
92
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTargetGroups\n<公共请求参数>\n\n{\n \"Filters\": [\n {\n \"Values\": [\n \"vpc-drpj1tv1\"\n ],\n \"Name\": \"TargetGroupVpcId\"\n }\n ]\n}",
93
+ "output": "{\n \"Response\": {\n \"RequestId\": \"7ae76f16-a859-449a-a43e-674c229999cc\",\n \"TargetGroupSet\": [\n {\n \"AllDeadToAlive\": false,\n \"AssociatedRule\": [\n {\n \"LoadBalancerId\": \"gwlb-poqv7z4y\",\n \"LoadBalancerName\": \"test-gwlb-2\"\n }\n ],\n \"CreatedTime\": \"2024-09-04T14:30:45+08:00\",\n \"HealthCheck\": {\n \"HealthNum\": 3,\n \"HealthSwitch\": true,\n \"IntervalTime\": 5,\n \"Port\": 0,\n \"Protocol\": \"icmp\",\n \"Timeout\": 2,\n \"UnHealthNum\": 3\n },\n \"Port\": 6081,\n \"Protocol\": \"geneve\",\n \"ScheduleAlgorithm\": \"ip_hash_3\",\n \"TargetGroupId\": \"lbtg-5xunivs0\",\n \"TargetGroupName\": \"gwlb-tar-5\",\n \"UpdatedTime\": \"2024-09-04T14:30:44+08:00\",\n \"VpcId\": \"vpc-drpj1tv1\"\n }\n ],\n \"TotalCount\": 1\n }\n}",
94
+ "title": "根据条件查询目标组信息"
95
+ }
96
+ ],
97
+ "DescribeTaskStatus": [
98
+ {
99
+ "document": "假设某次调用创建负载均衡接口返回成功,且返回的 RequestId 为 55c85074-3e7f-4c6d-864f-673660d4f8de,则需要查询该异步任务最终是否执行成功。响应中,Status 为 0 表示任务执行成功。",
100
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTaskStatus\n<公共请求参数>\n\n{\n \"TaskId\": \"55c85074-3e7f-4c6d-864f-673660d4f8de\"\n}",
101
+ "output": "{\n \"Response\": {\n \"Status\": 0,\n \"LoadBalancerIds\": [\n \"gwlb-6efswuxa\"\n ],\n \"RequestId\": \"917384bc-5b8d-4b68-a0bc-a58f815e8e3b\"\n }\n}",
102
+ "title": "查询异步任务状态"
103
+ }
104
+ ],
105
+ "DisassociateTargetGroups": [
106
+ {
107
+ "document": "",
108
+ "input": "https://gwlb.tencentcloudapi.com/?Action=DisassociateTargetGroups\n&Associations.0.LoadBalancerId=gwlb-20dhh498\n&Associations.0.TargetGroupId=lbtg-xxqr0ric\n&<公共请求参数>",
109
+ "output": "{\n \"Response\": {\n \"RequestId\": \"bc953deb-02d7-4bd3-86a6-80421ec37776\"\n }\n}",
110
+ "title": "解除负载均衡和目标组的关联关系"
111
+ }
112
+ ],
113
+ "InquirePriceCreateGatewayLoadBalancer": [
114
+ {
115
+ "document": "",
116
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquirePriceCreateGatewayLoadBalancer\n<公共请求参数>\n\n{\n \"GoodsNum\": 1\n}",
117
+ "output": "{\n \"Response\": {\n \"Price\": {\n \"InstancePrice\": {\n \"ChargeUnit\": \"HOUR\",\n \"Discount\": 100,\n \"DiscountPrice\": null,\n \"OriginalPrice\": null,\n \"UnitPrice\": 0.098,\n \"UnitPriceDiscount\": 0.098\n },\n \"LcuPrice\": {\n \"ChargeUnit\": \"HOUR\",\n \"Discount\": 100,\n \"DiscountPrice\": null,\n \"OriginalPrice\": null,\n \"UnitPrice\": 0.028,\n \"UnitPriceDiscount\": 0.028\n }\n },\n \"RequestId\": \"9938ffa4-795a-4eb7-90be-3960b0659a6e\"\n }\n}",
118
+ "title": "创建网关负载均衡询价"
119
+ }
120
+ ],
121
+ "ModifyGatewayLoadBalancerAttribute": [
122
+ {
123
+ "document": "修改网关负载均衡实例名称",
124
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyGatewayLoadBalancerAttribute\n<公共请求参数>\n\n{\n \"LoadBalancerId\": \"gwlb-6efswuxa\",\n \"LoadBalancerName\": \"newlbname\"\n}",
125
+ "output": "{\n \"Response\": {\n \"RequestId\": \"78a40898-8210-44c7-8bc6-f83e50878d12\"\n }\n}",
126
+ "title": "修改网关负载均衡实例名称"
127
+ }
128
+ ],
129
+ "ModifyTargetGroupAttribute": [
130
+ {
131
+ "document": "修改目标组名称",
132
+ "input": "POST / HTTP/1.1\nHost: gwlb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyTargetGroupAttribute\n<公共请求参数>\n\n{\n \"TargetGroupId\": \"lbtg-815iz538\",\n \"TargetGroupName\": \"xxxxholic\"\n}",
133
+ "output": "{\n \"Response\": {\n \"RequestId\": \"73d80971-512f-400e-9c73-c0c135c04871\"\n }\n}",
134
+ "title": "修改目标组名称"
135
+ }
136
+ ],
137
+ "ModifyTargetGroupInstancesWeight": [
138
+ {
139
+ "document": "",
140
+ "input": "https://gwlb.tencentcloudapi.com/?Action=ModifyTargetGroupInstancesWeight\n&TargetGroupId=lbtg-815iz538\n&TargetGroupInstances.0.BindIP=172.16.0.34\n&TargetGroupInstances.0.Port=1234\n&TargetGroupInstances.0.Weight=55\n&<公共请求参数>",
141
+ "output": "{\n \"Response\": {\n \"RequestId\": \"ed90470e-eade-423f-aae6-264d814d0d65\"\n }\n}",
142
+ "title": "批量修改目标组服务器权重"
143
+ }
144
+ ],
145
+ "RegisterTargetGroupInstances": [
146
+ {
147
+ "document": "",
148
+ "input": "https://gwlb.tencentcloudapi.com/?Action=RegisterTargetGroupInstances\n&TargetGroupId=lbtg-815iz538\n&TargetGroupInstances.0.BindIP=172.16.0.34\n&TargetGroupInstances.0.Port=443\n&TargetGroupInstances.0.Weight=10\n&<公共请求参数>",
149
+ "output": "{\n \"Response\": {\n \"RequestId\": \"acf6c2b3-b18d-4d2e-91e4-4eacff16c07e\"\n }\n}",
150
+ "title": "添加服务器到目标组中"
151
+ }
152
+ ]
153
+ },
154
+ "version": "1.0"
155
+ }
@@ -881,7 +881,7 @@
881
881
  "example": "无",
882
882
  "member": "GetAccountGroupData",
883
883
  "name": "Data",
884
- "required": false,
884
+ "output_required": true,
885
885
  "type": "object",
886
886
  "value_allowed_null": true
887
887
  },
@@ -1438,6 +1438,7 @@
1438
1438
  "example": "-",
1439
1439
  "member": "string",
1440
1440
  "name": "NamePath",
1441
+ "output_required": true,
1441
1442
  "required": false,
1442
1443
  "type": "string",
1443
1444
  "value_allowed_null": true
@@ -1448,6 +1449,7 @@
1448
1449
  "example": "-",
1449
1450
  "member": "int64",
1450
1451
  "name": "IdPathArr",
1452
+ "output_required": true,
1451
1453
  "required": false,
1452
1454
  "type": "list",
1453
1455
  "value_allowed_null": true
@@ -1458,6 +1460,7 @@
1458
1460
  "example": "-",
1459
1461
  "member": "string",
1460
1462
  "name": "ExtraInfo",
1463
+ "output_required": true,
1461
1464
  "required": false,
1462
1465
  "type": "string",
1463
1466
  "value_allowed_null": true
@@ -1468,6 +1471,7 @@
1468
1471
  "example": "-",
1469
1472
  "member": "string",
1470
1473
  "name": "Utime",
1474
+ "output_required": true,
1471
1475
  "required": false,
1472
1476
  "type": "string",
1473
1477
  "value_allowed_null": true
@@ -1478,6 +1482,7 @@
1478
1482
  "example": "-",
1479
1483
  "member": "uint64",
1480
1484
  "name": "ParentId",
1485
+ "output_required": true,
1481
1486
  "required": false,
1482
1487
  "type": "int",
1483
1488
  "value_allowed_null": true
@@ -1488,6 +1493,7 @@
1488
1493
  "example": "-",
1489
1494
  "member": "string",
1490
1495
  "name": "OrgId",
1496
+ "output_required": true,
1491
1497
  "required": false,
1492
1498
  "type": "string",
1493
1499
  "value_allowed_null": true
@@ -1498,6 +1504,7 @@
1498
1504
  "example": "-",
1499
1505
  "member": "string",
1500
1506
  "name": "Name",
1507
+ "output_required": true,
1501
1508
  "required": false,
1502
1509
  "type": "string",
1503
1510
  "value_allowed_null": true
@@ -1508,6 +1515,7 @@
1508
1515
  "example": "-",
1509
1516
  "member": "uint64",
1510
1517
  "name": "Id",
1518
+ "output_required": true,
1511
1519
  "required": false,
1512
1520
  "type": "int",
1513
1521
  "value_allowed_null": true
@@ -1518,6 +1526,7 @@
1518
1526
  "example": "-",
1519
1527
  "member": "string",
1520
1528
  "name": "Description",
1529
+ "output_required": true,
1521
1530
  "required": false,
1522
1531
  "type": "string",
1523
1532
  "value_allowed_null": true
@@ -1528,6 +1537,7 @@
1528
1537
  "example": "-",
1529
1538
  "member": "uint64",
1530
1539
  "name": "Source",
1540
+ "output_required": true,
1531
1541
  "required": false,
1532
1542
  "type": "int",
1533
1543
  "value_allowed_null": true
@@ -1538,6 +1548,7 @@
1538
1548
  "example": "-",
1539
1549
  "member": "string",
1540
1550
  "name": "IdPath",
1551
+ "output_required": true,
1541
1552
  "required": false,
1542
1553
  "type": "string",
1543
1554
  "value_allowed_null": true
@@ -1548,6 +1559,7 @@
1548
1559
  "example": "-",
1549
1560
  "member": "string",
1550
1561
  "name": "Itime",
1562
+ "output_required": true,
1551
1563
  "required": false,
1552
1564
  "type": "string",
1553
1565
  "value_allowed_null": true
@@ -1558,6 +1570,7 @@
1558
1570
  "example": "-",
1559
1571
  "member": "string",
1560
1572
  "name": "ParentOrgId",
1573
+ "output_required": true,
1561
1574
  "required": false,
1562
1575
  "type": "string",
1563
1576
  "value_allowed_null": true
@@ -1568,6 +1581,7 @@
1568
1581
  "example": "-",
1569
1582
  "member": "string",
1570
1583
  "name": "Import",
1584
+ "output_required": true,
1571
1585
  "required": false,
1572
1586
  "type": "string",
1573
1587
  "value_allowed_null": true
@@ -1578,6 +1592,7 @@
1578
1592
  "example": "-",
1579
1593
  "member": "bool",
1580
1594
  "name": "ImportEnable",
1595
+ "output_required": true,
1581
1596
  "required": false,
1582
1597
  "type": "bool",
1583
1598
  "value_allowed_null": true
@@ -1588,6 +1603,7 @@
1588
1603
  "example": "-",
1589
1604
  "member": "string",
1590
1605
  "name": "ImportType",
1606
+ "output_required": true,
1591
1607
  "required": false,
1592
1608
  "type": "string",
1593
1609
  "value_allowed_null": true
@@ -1598,6 +1614,7 @@
1598
1614
  "example": "-",
1599
1615
  "member": "string",
1600
1616
  "name": "MiniIamId",
1617
+ "output_required": true,
1601
1618
  "required": false,
1602
1619
  "type": "string",
1603
1620
  "value_allowed_null": true
@@ -377,7 +377,7 @@
377
377
  "example": "svp-6w8eab6f",
378
378
  "member": "string",
379
379
  "name": "SerialId",
380
- "required": true,
380
+ "output_required": true,
381
381
  "type": "string",
382
382
  "value_allowed_null": false
383
383
  },
@@ -387,7 +387,7 @@
387
387
  "example": "1",
388
388
  "member": "int64",
389
389
  "name": "SavepointStatus",
390
- "required": true,
390
+ "output_required": true,
391
391
  "type": "int",
392
392
  "value_allowed_null": false
393
393
  },
@@ -3699,7 +3699,7 @@
3699
3699
  "example": "[]",
3700
3700
  "member": "SystemResourceItem",
3701
3701
  "name": "ResourceSet",
3702
- "required": true,
3702
+ "output_required": true,
3703
3703
  "type": "list",
3704
3704
  "value_allowed_null": false
3705
3705
  },
@@ -3709,7 +3709,7 @@
3709
3709
  "example": "1",
3710
3710
  "member": "int64",
3711
3711
  "name": "TotalCount",
3712
- "required": true,
3712
+ "output_required": true,
3713
3713
  "type": "int",
3714
3714
  "value_allowed_null": false
3715
3715
  },
@@ -433,7 +433,7 @@ def doDescribePrivateZoneList(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
- def doDescribePrivateZoneRecordList(args, parsed_globals):
436
+ def doCreateEndPoint(args, parsed_globals):
437
437
  g_param = parse_global_arg(parsed_globals)
438
438
 
439
439
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -462,11 +462,11 @@ def doDescribePrivateZoneRecordList(args, parsed_globals):
462
462
  client = mod.PrivatednsClient(cred, g_param[OptionsDefine.Region], profile)
463
463
  client._sdkVersion += ("_CLI_" + __version__)
464
464
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
- model = models.DescribePrivateZoneRecordListRequest()
465
+ model = models.CreateEndPointRequest()
466
466
  model.from_json_string(json.dumps(args))
467
467
  start_time = time.time()
468
468
  while True:
469
- rsp = client.DescribePrivateZoneRecordList(model)
469
+ rsp = client.CreateEndPoint(model)
470
470
  result = rsp.to_json_string()
471
471
  try:
472
472
  json_obj = json.loads(result)
@@ -537,6 +537,58 @@ def doAddSpecifyPrivateZoneVpc(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
+ def doDescribePrivateZoneRecordList(args, parsed_globals):
541
+ g_param = parse_global_arg(parsed_globals)
542
+
543
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
544
+ cred = credential.CVMRoleCredential()
545
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
546
+ cred = credential.STSAssumeRoleCredential(
547
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
548
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
549
+ )
550
+ 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):
551
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
552
+ else:
553
+ cred = credential.Credential(
554
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
555
+ )
556
+ http_profile = HttpProfile(
557
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
558
+ reqMethod="POST",
559
+ endpoint=g_param[OptionsDefine.Endpoint],
560
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
561
+ )
562
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
563
+ if g_param[OptionsDefine.Language]:
564
+ profile.language = g_param[OptionsDefine.Language]
565
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
566
+ client = mod.PrivatednsClient(cred, g_param[OptionsDefine.Region], profile)
567
+ client._sdkVersion += ("_CLI_" + __version__)
568
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
+ model = models.DescribePrivateZoneRecordListRequest()
570
+ model.from_json_string(json.dumps(args))
571
+ start_time = time.time()
572
+ while True:
573
+ rsp = client.DescribePrivateZoneRecordList(model)
574
+ result = rsp.to_json_string()
575
+ try:
576
+ json_obj = json.loads(result)
577
+ except TypeError as e:
578
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
579
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
580
+ break
581
+ cur_time = time.time()
582
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
583
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
584
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
585
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
586
+ else:
587
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
588
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
589
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
+
591
+
540
592
  def doQueryAsyncBindVpcStatus(args, parsed_globals):
541
593
  g_param = parse_global_arg(parsed_globals)
542
594
 
@@ -1336,8 +1388,9 @@ ACTION_MAP = {
1336
1388
  "CreatePrivateZoneRecord": doCreatePrivateZoneRecord,
1337
1389
  "CreatePrivateZone": doCreatePrivateZone,
1338
1390
  "DescribePrivateZoneList": doDescribePrivateZoneList,
1339
- "DescribePrivateZoneRecordList": doDescribePrivateZoneRecordList,
1391
+ "CreateEndPoint": doCreateEndPoint,
1340
1392
  "AddSpecifyPrivateZoneVpc": doAddSpecifyPrivateZoneVpc,
1393
+ "DescribePrivateZoneRecordList": doDescribePrivateZoneRecordList,
1341
1394
  "QueryAsyncBindVpcStatus": doQueryAsyncBindVpcStatus,
1342
1395
  "ModifyPrivateZone": doModifyPrivateZone,
1343
1396
  "ModifyPrivateZoneRecord": doModifyPrivateZoneRecord,
@@ -7,6 +7,13 @@
7
7
  "output": "AddSpecifyPrivateZoneVpcResponse",
8
8
  "status": "online"
9
9
  },
10
+ "CreateEndPoint": {
11
+ "document": "创建终端节点",
12
+ "input": "CreateEndPointRequest",
13
+ "name": "创建终端节点",
14
+ "output": "CreateEndPointResponse",
15
+ "status": "online"
16
+ },
10
17
  "CreatePrivateDNSAccount": {
11
18
  "document": "创建私有域解析账号",
12
19
  "input": "CreatePrivateDNSAccountRequest",
@@ -487,6 +494,100 @@
487
494
  ],
488
495
  "usage": "out"
489
496
  },
497
+ "CreateEndPointRequest": {
498
+ "document": "CreateEndPoint请求参数结构体",
499
+ "members": [
500
+ {
501
+ "disabled": false,
502
+ "document": "终端节点名称",
503
+ "example": "终端节点名",
504
+ "member": "string",
505
+ "name": "EndPointName",
506
+ "required": true,
507
+ "type": "string"
508
+ },
509
+ {
510
+ "disabled": false,
511
+ "document": "终端节点服务ID(vpc终端节点服务ID)",
512
+ "example": "vpcsvc-gtd4gxa1",
513
+ "member": "string",
514
+ "name": "EndPointServiceId",
515
+ "required": true,
516
+ "type": "string"
517
+ },
518
+ {
519
+ "disabled": false,
520
+ "document": "终端节点地域,必须要和终端节点服务所属地域一致",
521
+ "example": "ap-guangzhou",
522
+ "member": "string",
523
+ "name": "EndPointRegion",
524
+ "required": true,
525
+ "type": "string"
526
+ },
527
+ {
528
+ "disabled": false,
529
+ "document": "终端节点ip数量",
530
+ "example": "2",
531
+ "member": "int64",
532
+ "name": "IpNum",
533
+ "required": false,
534
+ "type": "int"
535
+ }
536
+ ],
537
+ "type": "object"
538
+ },
539
+ "CreateEndPointResponse": {
540
+ "document": "CreateEndPoint返回参数结构体",
541
+ "members": [
542
+ {
543
+ "disabled": false,
544
+ "document": "终端节点id",
545
+ "example": "eid-ax8skcs0dg",
546
+ "member": "string",
547
+ "name": "EndPointId",
548
+ "output_required": true,
549
+ "type": "string",
550
+ "value_allowed_null": false
551
+ },
552
+ {
553
+ "disabled": false,
554
+ "document": "终端节点名称",
555
+ "example": "终端节点名",
556
+ "member": "string",
557
+ "name": "EndPointName",
558
+ "output_required": true,
559
+ "type": "string",
560
+ "value_allowed_null": false
561
+ },
562
+ {
563
+ "disabled": false,
564
+ "document": "终端节点服务ID",
565
+ "example": "终端节点服务ID",
566
+ "member": "string",
567
+ "name": "EndPointServiceId",
568
+ "output_required": true,
569
+ "type": "string",
570
+ "value_allowed_null": false
571
+ },
572
+ {
573
+ "disabled": false,
574
+ "document": "终端节点的IP列表",
575
+ "example": "[\"10.0.0.13\",\"10.0.0.14\"]",
576
+ "member": "string",
577
+ "name": "EndPointVipSet",
578
+ "output_required": true,
579
+ "type": "list",
580
+ "value_allowed_null": false
581
+ },
582
+ {
583
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
584
+ "member": "string",
585
+ "name": "RequestId",
586
+ "type": "string"
587
+ }
588
+ ],
589
+ "type": "object"
590
+ },
490
591
  "CreatePrivateDNSAccountRequest": {
491
592
  "document": "CreatePrivateDNSAccount请求参数结构体",
492
593
  "members": [
@@ -8,6 +8,14 @@
8
8
  "title": "追加与私有域关联的vpc"
9
9
  }
10
10
  ],
11
+ "CreateEndPoint": [
12
+ {
13
+ "document": "输入终端节点名称,客户自己的终端节点服务ID,以及终端节点服务对应的地域来创建一个终端节点",
14
+ "input": "POST / HTTP/1.1\nHost: privatedns.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEndPoint\n<公共请求参数>\n\n{\n \"EndPointName\": \"终端节点名\",\n \"EndPointServiceId\": \"vpcsvc-gtd4gxa1\",\n \"EndPointRegion\": \"ap-guangzhou\"\n}",
15
+ "output": "{\n \"Response\": {\n \"RequestId\": \"5cd964e2-b5e6-8a35-9ce5a1085860c845\",\n \"EndPointId\": \"eid-scls023kfns\",\n \"EndPointName\": \"终端节点名\",\n \"EndPointServiceId\": \"vpcsvc-gtd4gxa1\",\n \"EndPointVipSet\": [\n \"10.0.0.13\"\n ]\n }\n}",
16
+ "title": "创建终端节点"
17
+ }
18
+ ],
11
19
  "CreatePrivateDNSAccount": [
12
20
  {
13
21
  "document": "",
@@ -4520,7 +4520,7 @@
4520
4520
  },
4521
4521
  {
4522
4522
  "disabled": false,
4523
- "document": "投递的自定义字段列表,支持在 HTTP 请求头、响应头、Cookie 中提取指定字段值。自定义字段名称不能重复,且最多不能超过 200 个字段。",
4523
+ "document": "投递的自定义字段列表,支持在 HTTP 请求头、响应头、Cookie、请求正文中提取指定内容。自定义字段名称不能重复,且最多不能超过 200 个字段。单个实时日志推送任务最多添加 5 个请求正文类型的自定义字段。目前仅站点加速日志(LogType=domain)支持添加自定义字段。",
4524
4524
  "example": "无",
4525
4525
  "member": "CustomField",
4526
4526
  "name": "CustomFields",
@@ -5043,7 +5043,7 @@
5043
5043
  "members": [
5044
5044
  {
5045
5045
  "disabled": false,
5046
- "document": " HTTP 请求和响应中的指定位置提取数据,取值有:\n<li>ReqHeader:从 HTTP 请求头中提取指定字段值;</li>\n<li>RspHeader:从 HTTP 响应头中提取指定字段值;</li>\n<li>Cookie: 从 Cookie 中提取指定字段值。</li>\n注意:此字段可能返回 null,表示取不到有效值。",
5046
+ "document": "自定义日志字段类型。从 HTTP 请求和响应中的指定位置提取数据,取值有:\n<li>ReqHeader:从 HTTP 请求头中提取指定字段值;</li>\n<li>RspHeader:从 HTTP 响应头中提取指定字段值;</li>\n<li>Cookie: 从 Cookie 中提取指定字段值;</li>\n<li>ReqBody: 从 HTTP 请求正文中通过 Google RE2 正则表达式提取指定内容。</li>\n注意:此字段可能返回 null,表示取不到有效值。",
5047
5047
  "example": "ReqHeader",
5048
5048
  "member": "string",
5049
5049
  "name": "Name",
@@ -5054,7 +5054,7 @@
5054
5054
  },
5055
5055
  {
5056
5056
  "disabled": false,
5057
- "document": "需要提取值的参数名称,例如:Accept-Language。\n注意:此字段可能返回 null,表示取不到有效值。",
5057
+ "document": "根据字段类型(Name)填入字段值的定义。需要区分大小写。\n<li>当字段类型为 ReqHeader、RspHeader、Cookie 时,填入需要提取值的参数名称,例如:Accept-Language。可输入 1-100 个字符,允许的字符开头为字母,中间为字母、数字、-,结尾为字母、数字;</li>\n<li>当字段类型为 ReqBody 时,填入 Google RE2 正则表达式,正则表达式长度上限为 4KB。</li>\n注意:此字段可能返回 null,表示取不到有效值。",
5058
5058
  "example": "Accept-Language",
5059
5059
  "member": "string",
5060
5060
  "name": "Value",
@@ -13085,7 +13085,7 @@
13085
13085
  },
13086
13086
  {
13087
13087
  "disabled": false,
13088
- "document": "投递的自定义字段列表,支持在 HTTP 请求头、响应头、Cookie 中提取指定字段值。自定义字段名称不能重复,且最多不能超过 200 个字段。不填保持原有配置。",
13088
+ "document": "投递的自定义字段列表,支持在 HTTP 请求头、响应头、Cookie、请求正文中提取指定内容。不填保持原有配置。自定义字段名称不能重复,且最多不能超过 200 个字段。单个实时日志推送任务最多添加 5 个请求正文类型的自定义字段。目前仅站点加速日志(LogType=domain)支持添加自定义字段。",
13089
13089
  "example": "无",
13090
13090
  "member": "CustomField",
13091
13091
  "name": "CustomFields",