tccli 3.0.1223.1__py2.py3-none-any.whl → 3.0.1225.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 (65) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apigateway/apigateway_client.py +136 -30
  3. tccli/services/apigateway/v20180808/api.json +183 -0
  4. tccli/services/apigateway/v20180808/examples.json +16 -0
  5. tccli/services/autoscaling/v20180419/api.json +15 -4
  6. tccli/services/batch/v20170312/api.json +33 -11
  7. tccli/services/bi/bi_client.py +106 -0
  8. tccli/services/bi/v20220105/api.json +355 -0
  9. tccli/services/bi/v20220105/examples.json +16 -0
  10. tccli/services/billing/v20180709/api.json +274 -193
  11. tccli/services/billing/v20180709/examples.json +4 -4
  12. tccli/services/bpaas/v20181217/api.json +71 -46
  13. tccli/services/bpaas/v20181217/examples.json +1 -1
  14. tccli/services/cam/v20190116/api.json +99 -78
  15. tccli/services/cam/v20190116/examples.json +10 -10
  16. tccli/services/cbs/v20170312/api.json +1 -1
  17. tccli/services/cdwch/v20200915/api.json +1 -1
  18. tccli/services/cdwch/v20200915/examples.json +1 -1
  19. tccli/services/clb/v20180317/examples.json +1 -1
  20. tccli/services/cloudhsm/v20191112/api.json +324 -320
  21. tccli/services/cloudhsm/v20191112/examples.json +16 -16
  22. tccli/services/cls/v20201016/api.json +2 -2
  23. tccli/services/config/config_client.py +106 -0
  24. tccli/services/config/v20220802/api.json +364 -0
  25. tccli/services/config/v20220802/examples.json +16 -0
  26. tccli/services/cvm/v20170312/api.json +33 -11
  27. tccli/services/cwp/v20180228/api.json +1 -1
  28. tccli/services/cynosdb/v20190107/api.json +4 -4
  29. tccli/services/ess/v20201111/api.json +2 -2
  30. tccli/services/ess/v20201111/examples.json +2 -2
  31. tccli/services/essbasic/v20210526/api.json +2 -2
  32. tccli/services/essbasic/v20210526/examples.json +2 -2
  33. tccli/services/gwlb/v20240906/api.json +1 -1
  34. tccli/services/hunyuan/v20230901/api.json +2 -2
  35. tccli/services/iotexplorer/v20190423/api.json +11 -11
  36. tccli/services/ivld/v20210903/api.json +3 -3
  37. tccli/services/lcic/lcic_client.py +110 -4
  38. tccli/services/lcic/v20220817/api.json +297 -2
  39. tccli/services/lcic/v20220817/examples.json +16 -0
  40. tccli/services/live/live_client.py +460 -36
  41. tccli/services/live/v20180801/api.json +594 -4
  42. tccli/services/live/v20180801/examples.json +64 -0
  43. tccli/services/lke/v20231130/api.json +1 -1
  44. tccli/services/mps/v20190612/api.json +1 -1
  45. tccli/services/mrs/v20200910/api.json +4217 -4211
  46. tccli/services/mrs/v20200910/examples.json +14 -14
  47. tccli/services/ocr/ocr_client.py +310 -734
  48. tccli/services/ocr/v20181119/api.json +133 -1344
  49. tccli/services/ocr/v20181119/examples.json +0 -64
  50. tccli/services/organization/v20181225/api.json +43 -43
  51. tccli/services/organization/v20181225/examples.json +2 -2
  52. tccli/services/organization/v20210331/api.json +516 -508
  53. tccli/services/organization/v20210331/examples.json +26 -26
  54. tccli/services/teo/teo_client.py +159 -0
  55. tccli/services/teo/v20220901/api.json +199 -0
  56. tccli/services/teo/v20220901/examples.json +36 -0
  57. tccli/services/trtc/trtc_client.py +126 -20
  58. tccli/services/trtc/v20190722/api.json +138 -14
  59. tccli/services/trtc/v20190722/examples.json +16 -0
  60. tccli/services/vpc/v20170312/api.json +1 -1
  61. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/METADATA +2 -2
  62. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/RECORD +65 -65
  63. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/WHEEL +0 -0
  64. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/entry_points.txt +0 -0
  65. {tccli-3.0.1223.1.dist-info → tccli-3.0.1225.1.dist-info}/license_files/LICENSE +0 -0
@@ -27,7 +27,7 @@
27
27
  "AddOrganizationNode": [
28
28
  {
29
29
  "document": "",
30
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddOrganizationNode\n<公共请求参数>\n\n{\n \"Name\": \"test\",\n \"ParentNodeId\": 123\n}",
30
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddOrganizationNode\n<公共请求参数>\n\n{\n \"Name\": \"node_name\",\n \"ParentNodeId\": 101\n}",
31
31
  "output": "{\n \"Response\": {\n \"NodeId\": 1001,\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
32
32
  "title": "添加企业组织节点"
33
33
  }
@@ -83,7 +83,7 @@
83
83
  "BindOrganizationMemberAuthAccount": [
84
84
  {
85
85
  "document": "",
86
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BindOrganizationMemberAuthAccount\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"PolicyId\": 123,\n \"OrgSubAccountUins\": [\n 222222222222\n ]\n}",
86
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BindOrganizationMemberAuthAccount\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"PolicyId\": 101,\n \"OrgSubAccountUins\": [\n 222222222222\n ]\n}",
87
87
  "output": "{\n \"Response\": {\n \"RequestId\": \"4c2f4b68-01b2-4841-a927-6ca8fe40649b\"\n }\n}",
88
88
  "title": "绑定组织成员和组织管理员子账号的授权关系"
89
89
  }
@@ -91,7 +91,7 @@
91
91
  "CancelOrganizationMemberAuthAccount": [
92
92
  {
93
93
  "document": "",
94
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CancelOrganizationMemberAuthAccount\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"PolicyId\": 123,\n \"OrgSubAccountUin\": 222222222222\n}",
94
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CancelOrganizationMemberAuthAccount\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"PolicyId\": 101,\n \"OrgSubAccountUin\": 222222222222\n}",
95
95
  "output": "{\n \"Response\": {\n \"RequestId\": \"caecf1a4-72b7-48d6-8f5f-90d1c428d3f3\"\n }\n}",
96
96
  "title": "取消组织成员和组织管理员子账号的授权关系"
97
97
  }
@@ -132,22 +132,22 @@
132
132
  {
133
133
  "document": "",
134
134
  "input": "https://organization.tencentcloudapi.com/?Action=CreateOrganization\n&<公共请求参数>",
135
- "output": "{\n \"Response\": {\n \"OrgId\": 123,\n \"NickName\": \"test\",\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
135
+ "output": "{\n \"Response\": {\n \"OrgId\": 101,\n \"NickName\": \"nick_name\",\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
136
136
  "title": "创建企业组织"
137
137
  }
138
138
  ],
139
139
  "CreateOrganizationIdentity": [
140
140
  {
141
141
  "document": "",
142
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationIdentity\n<公共请求参数>\n\n{\n \"Description\": \"\",\n \"IdentityAliasName\": \"test\",\n \"IdentityPolicy\": [\n {\n \"PolicyId\": 1,\n \"PolicyName\": \"AdministratorAccess\"\n }\n ]\n}",
143
- "output": "{\n \"Response\": {\n \"IdentityId\": 123,\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
142
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationIdentity\n<公共请求参数>\n\n{\n \"Description\": \"\",\n \"IdentityAliasName\": \"admin_identity\",\n \"IdentityPolicy\": [\n {\n \"PolicyId\": 1,\n \"PolicyName\": \"AdministratorAccess\"\n }\n ]\n}",
143
+ "output": "{\n \"Response\": {\n \"IdentityId\": 101,\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
144
144
  "title": "添加组织身份"
145
145
  }
146
146
  ],
147
147
  "CreateOrganizationMember": [
148
148
  {
149
149
  "document": "",
150
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMember\n<公共请求参数>\n\n{\n \"Remark\": \"test\",\n \"Name\": \"name\",\n \"NodeId\": 1001,\n \"AccountName\": \"test\",\n \"PermissionIds\": [\n 1,\n 2\n ],\n \"PolicyType\": \"Finical\",\n \"PayUin\": \"\",\n \"IdentityRoleID\": [\n 1\n ]\n}",
150
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMember\n<公共请求参数>\n\n{\n \"Remark\": \"create member\",\n \"Name\": \"member_name\",\n \"NodeId\": 1001,\n \"AccountName\": \"member_name\",\n \"PermissionIds\": [\n 1,\n 2\n ],\n \"PolicyType\": \"Finical\",\n \"IdentityRoleID\": [\n 1\n ]\n}",
151
151
  "output": "{\n \"Response\": {\n \"Uin\": 111111111111,\n \"RequestId\": \"1a556fac-cd38-4732-86ef-6283d6abddd7\"\n }\n}",
152
152
  "title": "创建组织成员"
153
153
  }
@@ -163,16 +163,16 @@
163
163
  "CreateOrganizationMemberPolicy": [
164
164
  {
165
165
  "document": "",
166
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMemberPolicy\n<公共请求参数>\n\n{\n \"PolicyName\": \"policy_name\",\n \"MemberUin\": 111111111111,\n \"Description\": \"description\",\n \"IdentityId\": 11\n}",
167
- "output": "{\n \"Response\": {\n \"PolicyId\": 123,\n \"RequestId\": \"a1a10c6e-6723-408a-858b-2cb84e92776c\"\n }\n}",
166
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMemberPolicy\n<公共请求参数>\n\n{\n \"PolicyName\": \"policy_name\",\n \"MemberUin\": 111111111111,\n \"Description\": \"description\",\n \"IdentityId\": 101\n}",
167
+ "output": "{\n \"Response\": {\n \"PolicyId\": 1001,\n \"RequestId\": \"a1a10c6e-6723-408a-858b-2cb84e92776c\"\n }\n}",
168
168
  "title": "创建组织成员访问授权策略"
169
169
  }
170
170
  ],
171
171
  "CreateOrganizationMembersPolicy": [
172
172
  {
173
173
  "document": "创建组织成员访问策略",
174
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"MemberUins\": [\n 111111111111\n ],\n \"PolicyName\": \"policy_name\",\n \"IdentityId\": 11,\n \"Description\": \"description\"\n}",
175
- "output": "{\n \"Response\": {\n \"PolicyId\": 123,\n \"RequestId\": \"3840f6f4-3976-4b44-9ecc-cb0578129059\"\n }\n}",
174
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"MemberUins\": [\n 111111111111\n ],\n \"PolicyName\": \"policy_name\",\n \"IdentityId\": 101,\n \"Description\": \"description\"\n}",
175
+ "output": "{\n \"Response\": {\n \"PolicyId\": 1001,\n \"RequestId\": \"3840f6f4-3976-4b44-9ecc-cb0578129059\"\n }\n}",
176
176
  "title": "创建组织成员访问策略"
177
177
  }
178
178
  ],
@@ -283,7 +283,7 @@
283
283
  "DeleteOrganizationMembersPolicy": [
284
284
  {
285
285
  "document": "删除组织成员访问策略",
286
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"PolicyId\": 123\n}",
286
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteOrganizationMembersPolicy\n<公共请求参数>\n\n{\n \"PolicyId\": 1001\n}",
287
287
  "output": "{\n \"Response\": {\n \"RequestId\": \"3840f6f4-3976-4b44-9ecc-cb0578129059\"\n }\n}",
288
288
  "title": "删除组织成员访问策略"
289
289
  }
@@ -371,7 +371,7 @@
371
371
  "DescribeEffectivePolicy": [
372
372
  {
373
373
  "document": "查询目标关联的有效策略",
374
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEffectivePolicy\n<公共请求参数>\n\n{\n \"TargetId\": 111111111111\n}",
374
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEffectivePolicy\n<公共请求参数>\n\n{\n \"TargetId\": 10001\n}",
375
375
  "output": "{\n \"Response\": {\n \"EffectivePolicy\": {\n \"TargetId\": 111111111111,\n \"PolicyContent\": \"{\\\"tags\\\":{\\\"aaa\\\":{\\\"tag_key\\\":\\\"aaa\\\",\\\"tag_value\\\":[\\\"111\\\",\\\"222\\\"],\\\"resource_type_scope\\\":[\\\"cvm:instance\\\",\\\"cvm:volume\\\",\\\"cvm:keypair\\\",\\\"cvm:image\\\"]},\\\"bbb\\\":{\\\"tag_key\\\":\\\"bbb\\\",\\\"tag_value\\\":[\\\"333\\\"]}}}\",\n \"LastUpdatedTimestamp\": 1668394639\n },\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\"\n }\n}",
376
376
  "title": "查询目标关联的有效策略"
377
377
  }
@@ -388,7 +388,7 @@
388
388
  {
389
389
  "document": "",
390
390
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganization\n<公共请求参数>\n\n{}",
391
- "output": "{\n \"Response\": {\n \"CreateTime\": \"2021-04-15 21:07:54\",\n \"JoinTime\": \"2021-04-15 21:07:54\",\n \"HostUin\": 100000546922,\n \"IsManager\": true,\n \"NickName\": \"\",\n \"OrgId\": 13,\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"允许主账号查看子账号的消费信息\"\n },\n {\n \"Id\": 2,\n \"Name\": \"允许主账号查看子账号的财务信息\"\n },\n {\n \"Id\": 3,\n \"Name\": \"允许主账号划拨资金给子账号\"\n },\n {\n \"Id\": 4,\n \"Name\": \"允许主账号对子账号的账单合并出账\"\n },\n {\n \"Id\": 5,\n \"Name\": \"允许主账号代子账号开票\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"OrgType\": 1,\n \"RootNodeId\": 1001,\n \"IsAllowQuit\": \"Allow\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"IsAssignManager\": false,\n \"IsAuthManager\": false,\n \"RequestId\": \"e5c09721-236b-4a55-a5d1-0513ac506245\"\n }\n}",
391
+ "output": "{\n \"Response\": {\n \"CreateTime\": \"2021-04-15 21:07:54\",\n \"JoinTime\": \"2021-04-15 21:07:54\",\n \"HostUin\": 1001,\n \"IsManager\": true,\n \"NickName\": \"host_name\",\n \"OrgId\": 101,\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"viewBill\"\n },\n {\n \"Id\": 2,\n \"Name\": \"viewBalance\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"OrgType\": 1,\n \"RootNodeId\": 1001,\n \"IsAllowQuit\": \"Allow\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"IsAssignManager\": false,\n \"IsAuthManager\": false,\n \"RequestId\": \"e5c09721-236b-4a55-a5d1-0513ac506245\"\n }\n}",
392
392
  "title": "获取组织详情"
393
393
  }
394
394
  ],
@@ -396,7 +396,7 @@
396
396
  {
397
397
  "document": "获取已设置管理员的互信主体关系列表",
398
398
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationAuthNode\n<公共请求参数>\n\n{\n \"Limit\": 10,\n \"Offset\": 0\n}",
399
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"RelationId\": 1,\n \"AuthName\": \"腾讯云\",\n \"Manager\": {\n \"MemberUin\": 10000036541,\n \"MemberName\": \"test1\"\n }\n }\n ],\n \"RequestId\": \"1d744bef-fa56-40e9-8e3b-5a88b122ad5e\",\n \"Total\": 1\n }\n}",
399
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"RelationId\": 1,\n \"AuthName\": \"auth_name\",\n \"Manager\": {\n \"MemberUin\": 10000000001,\n \"MemberName\": \"member_name\"\n }\n }\n ],\n \"RequestId\": \"1d744bef-fa56-40e9-8e3b-5a88b122ad5e\",\n \"Total\": 1\n }\n}",
400
400
  "title": "获取已设置管理员的互信主体关系列表"
401
401
  }
402
402
  ],
@@ -404,7 +404,7 @@
404
404
  {
405
405
  "document": "按成员维度获取企业财务信息",
406
406
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationFinancialByMember\n<公共请求参数>\n\n{\n \"Month\": \"2021-04\"\n}",
407
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"MemberName\": \"test2\",\n \"MemberUin\": 111111111111,\n \"TotalCost\": 99,\n \"Ratio\": \"79.5\"\n },\n {\n \"MemberName\": \"test1\",\n \"MemberUin\": 222222222222,\n \"TotalCost\": 12.22,\n \"Ratio\": \"20.5\"\n }\n ],\n \"RequestId\": \"dd729295-1586-4395-9286-598dadccc88d\",\n \"TotalCost\": 1002.1,\n \"Total\": 2\n }\n}",
407
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"MemberName\": \"member2\",\n \"MemberUin\": 111111111111,\n \"TotalCost\": 99,\n \"Ratio\": \"79.5\"\n },\n {\n \"MemberName\": \"member1\",\n \"MemberUin\": 222222222222,\n \"TotalCost\": 12.22,\n \"Ratio\": \"20.5\"\n }\n ],\n \"RequestId\": \"dd729295-1586-4395-9286-598dadccc88d\",\n \"TotalCost\": 1002.1,\n \"Total\": 2\n }\n}",
408
408
  "title": "按成员维度获取企业财务信息"
409
409
  }
410
410
  ],
@@ -412,23 +412,23 @@
412
412
  {
413
413
  "document": "按月维度获取企业财务趋势",
414
414
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationFinancialByMonth\n<公共请求参数>\n\n{\n \"Limit\": 5\n}",
415
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Id\": 7,\n \"Month\": \"2021-06\",\n \"TotalCost\": 10232.1\n },\n {\n \"Id\": 5,\n \"Month\": \"2021-05\",\n \"TotalCost\": 1002.1\n },\n {\n \"Id\": 3,\n \"Month\": \"2021-04\",\n \"TotalCost\": 1002.1\n }\n ],\n \"RequestId\": \"89c5de68-2306-48df-9e81-ad2953447e7a\"\n }\n}",
415
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"Id\": 7,\n \"Month\": \"2021-06\",\n \"TotalCost\": 1002.1,\n \"GrowthRate\": \"33.3\"\n },\n {\n \"Id\": 5,\n \"Month\": \"2021-05\",\n \"TotalCost\": 1002.1,\n \"GrowthRate\": \"33.3\"\n },\n {\n \"Id\": 3,\n \"Month\": \"2021-04\",\n \"TotalCost\": 1002.1,\n \"GrowthRate\": \"33.3\"\n }\n ],\n \"RequestId\": \"89c5de68-2306-48df-9e81-ad2953447e7a\"\n }\n}",
416
416
  "title": "按月维度获取企业财务趋势"
417
417
  }
418
418
  ],
419
419
  "DescribeOrganizationFinancialByProduct": [
420
420
  {
421
421
  "document": "以产品维度获取企业财务信息",
422
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationFinancialByProduct\n<公共请求参数>\n\n{\n \"Month\": \"2021-04\"\n}",
423
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"ProductCode\": \"e-cdb\",\n \"ProductName\": \"mysql\",\n \"TotalCost\": 33.23,\n \"Ratio\": \"70\"\n },\n {\n \"ProductCode\": \"e-cos\",\n \"ProductName\": \"cos对象存储\",\n \"TotalCost\": 10.12,\n \"Ratio\": \"30\"\n }\n ],\n \"RequestId\": \"d581d282-3acf-496f-b7ba-0fe640648183\",\n \"TotalCost\": 1002.1,\n \"Total\": 2\n }\n}",
422
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationFinancialByProduct\n<公共请求参数>\n\n{\n \"Month\": \"2021-01\"\n}",
423
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"ProductCode\": \"e-cdb\",\n \"ProductName\": \"mysql\",\n \"TotalCost\": 33.23,\n \"Ratio\": \"70\"\n },\n {\n \"ProductCode\": \"e-cos\",\n \"ProductName\": \"cos对象存储\",\n \"TotalCost\": 10.12,\n \"Ratio\": \"30\"\n }\n ],\n \"RequestId\": \"d581d282-3acf-496f-b7ba-0fe640648183\",\n \"TotalCost\": 43.35,\n \"Total\": 2\n }\n}",
424
424
  "title": "以产品维度获取企业财务信息"
425
425
  }
426
426
  ],
427
427
  "DescribeOrganizationMemberAuthAccounts": [
428
428
  {
429
429
  "document": "",
430
- "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberAuthAccounts\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"Limit\": 10,\n \"PolicyId\": 11,\n \"Offset\": 0\n}",
431
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 21:00:59\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"登录访问\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"OrgSubAccountUin\": 100000546921,\n \"PolicyId\": 98081,\n \"PolicyName\": \"test\",\n \"UpdateTime\": \"2021-07-14 21:00:59\",\n \"OrgSubAccountName\": \"test\"\n }\n ],\n \"RequestId\": \"cf182a6b-8caa-4df9-b1d0-09ad41e8c434\",\n \"Total\": 1\n }\n}",
430
+ "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberAuthAccounts\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"Limit\": 10,\n \"PolicyId\": 1001,\n \"Offset\": 0\n}",
431
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 21:00:59\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"admin\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"OrgSubAccountUin\": 222222222222,\n \"PolicyId\": 1001,\n \"PolicyName\": \"policy_name\",\n \"UpdateTime\": \"2021-07-14 21:00:59\",\n \"OrgSubAccountName\": \"sub_name\"\n }\n ],\n \"RequestId\": \"cf182a6b-8caa-4df9-b1d0-09ad41e8c434\",\n \"Total\": 1\n }\n}",
432
432
  "title": "获取组织成员被绑定授权关系的子账号列表"
433
433
  }
434
434
  ],
@@ -436,7 +436,7 @@
436
436
  {
437
437
  "document": "获取组织成员可被管理的身份列表",
438
438
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberAuthIdentities\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"Limit\": 10,\n \"Offset\": 0\n}",
439
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 20:17:34\",\n \"Description\": \"AdministratorAccess\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"登录访问\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"IdentityType\": 1,\n \"UpdateTime\": \"2021-07-14 20:17:34\"\n }\n ],\n \"RequestId\": \"55fa3e27-1166-45e1-bdac-6198c3c38534\",\n \"Total\": 1\n }\n}",
439
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 20:17:34\",\n \"Description\": \"AdministratorAccess\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"admin\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"IdentityType\": 1,\n \"UpdateTime\": \"2021-07-14 20:17:34\"\n }\n ],\n \"RequestId\": \"55fa3e27-1166-45e1-bdac-6198c3c38534\",\n \"Total\": 1\n }\n}",
440
440
  "title": "获取组织成员可被管理的身份列表"
441
441
  }
442
442
  ],
@@ -444,7 +444,7 @@
444
444
  {
445
445
  "document": "",
446
446
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberEmailBind\n<公共请求参数>\n\n{\n \"MemberUin\": 123\n}",
447
- "output": "{\n \"Response\": {\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\",\n \"BindId\": 1,\n \"ApplyTime\": \"2022-01-13 12:09:08\",\n \"Email\": \"123@qq.com\",\n \"Phone\": \"18798765432\",\n \"BindStatus\": \"Success\",\n \"BindTime\": \"2022-01-13 18:09:08\",\n \"Description\": \"\",\n \"PhoneBind\": 0,\n \"CountryCode\": \"86\"\n }\n}",
447
+ "output": "{\n \"Response\": {\n \"RequestId\": \"b46d2afe-6893-4529-bc96-2c82d9214957\",\n \"BindId\": 1,\n \"ApplyTime\": \"2022-01-13 12:09:08\",\n \"Email\": \"123@qq.com\",\n \"Phone\": \"18***32\",\n \"BindStatus\": \"Success\",\n \"BindTime\": \"2022-01-13 18:09:08\",\n \"Description\": \"success\",\n \"PhoneBind\": 0,\n \"CountryCode\": \"86\"\n }\n}",
448
448
  "title": "查询成员邮箱绑定详细信息"
449
449
  }
450
450
  ],
@@ -452,7 +452,7 @@
452
452
  {
453
453
  "document": "",
454
454
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMemberPolicies\n<公共请求参数>\n\n{\n \"MemberUin\": 111111111111,\n \"Limit\": 10,\n \"Offset\": 0\n}",
455
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 20:22:30\",\n \"Description\": \"test\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"登录访问\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"PolicyId\": 27887,\n \"PolicyName\": \"test3\",\n \"UpdateTime\": \"2021-07-14 20:22:30\"\n },\n {\n \"CreateTime\": \"2021-07-14 20:21:21\",\n \"Description\": \"test\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"登录访问\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"PolicyId\": 98081,\n \"PolicyName\": \"test\",\n \"UpdateTime\": \"2021-07-14 20:21:21\"\n }\n ],\n \"RequestId\": \"a1525f09-8a00-4b76-9db5-d47aea591dff\",\n \"Total\": 2\n }\n}",
455
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-07-14 20:22:30\",\n \"Description\": \"admin policy\",\n \"IdentityId\": 1,\n \"IdentityRoleAliasName\": \"admin\",\n \"IdentityRoleName\": \"OrganizationAccessControlRole\",\n \"PolicyId\": 1001,\n \"PolicyName\": \"policy_name\",\n \"UpdateTime\": \"2021-07-14 20:22:30\"\n }\n ],\n \"RequestId\": \"a1525f09-8a00-4b76-9db5-d47aea591dff\",\n \"Total\": 1\n }\n}",
456
456
  "title": "获取组织成员的授权策略列表"
457
457
  }
458
458
  ],
@@ -460,7 +460,7 @@
460
460
  {
461
461
  "document": "获取成员列表",
462
462
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationMembers\n<公共请求参数>\n\n{\n \"Lang\": \"zh\",\n \"Limit\": 10,\n \"Offset\": 0\n}",
463
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-04-17 12:19:07\",\n \"MemberType\": \"Invite\",\n \"MemberUin\": 111111111111,\n \"Name\": \"test2\",\n \"NodeId\": 27,\n \"NodeName\": \"node1\",\n \"IsAllowQuit\": \"Denied\",\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"允许主账号查看子账号的消费信息\"\n },\n {\n \"Id\": 2,\n \"Name\": \"允许主账号查看子账号的财务信息\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"Remark\": \"123\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"OrgIdentity\": [],\n \"BindStatus\": \"Unbound\",\n \"PermissionStatus\": \"Confirmed\",\n \"UpdateTime\": \"2021-04-17 12:19:07\"\n },\n {\n \"CreateTime\": \"2021-04-16 11:49:39\",\n \"MemberType\": \"Create\",\n \"MemberUin\": 222222222222,\n \"Name\": \"name2\",\n \"NodeId\": 26,\n \"NodeName\": \"node2\",\n \"IsAllowQuit\": \"Denied\",\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"允许主账号查看子账号的消费信息\"\n },\n {\n \"Id\": 2,\n \"Name\": \"允许主账号查看子账号的财务信息\"\n },\n {\n \"Id\": 3,\n \"Name\": \"允许主账号划拨资金给子账号\"\n },\n {\n \"Id\": 4,\n \"Name\": \"允许主账号对子账号的账单合并出账\"\n },\n {\n \"Id\": 5,\n \"Name\": \"允许主账号代子账号开票\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"Remark\": \"\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"OrgIdentity\": [],\n \"BindStatus\": \"Unbound\",\n \"PermissionStatus\": \"Confirmed\",\n \"UpdateTime\": \"2021-04-16 11:49:39\"\n }\n ],\n \"RequestId\": \"a0fe0702-5757-4aa4-8872-74b70a4c1b7a\",\n \"Total\": 2\n }\n}",
463
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-04-17 12:19:07\",\n \"MemberType\": \"Invite\",\n \"MemberUin\": 111111111111,\n \"Name\": \"member_name\",\n \"NodeId\": 101,\n \"NodeName\": \"node_name\",\n \"IsAllowQuit\": \"Denied\",\n \"OrgPermission\": [\n {\n \"Id\": 1,\n \"Name\": \"允许主账号查看子账号的消费信息\"\n },\n {\n \"Id\": 2,\n \"Name\": \"允许主账号查看子账号的财务信息\"\n }\n ],\n \"OrgPolicyName\": \"财务管理\",\n \"OrgPolicyType\": \"Financial\",\n \"Remark\": \"member1\",\n \"PayUin\": \"\",\n \"PayName\": \"\",\n \"OrgIdentity\": [],\n \"BindStatus\": \"Unbound\",\n \"PermissionStatus\": \"Confirmed\",\n \"UpdateTime\": \"2021-04-17 12:19:07\"\n }\n ],\n \"RequestId\": \"a0fe0702-5757-4aa4-8872-74b70a4c1b7a\",\n \"Total\": 1\n }\n}",
464
464
  "title": "获取成员列表"
465
465
  }
466
466
  ],
@@ -468,7 +468,7 @@
468
468
  {
469
469
  "document": "",
470
470
  "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationNodes\n<公共请求参数>\n\n{\n \"Limit\": 10,\n \"Offset\": 0\n}",
471
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-04-16 11:49:39\",\n \"Name\": \"Root\",\n \"NodeId\": 26,\n \"ParentNodeId\": 0,\n \"Remark\": \"\",\n \"UpdateTime\": \"2021-04-16 11:49:39\"\n },\n {\n \"CreateTime\": \"2021-04-16 14:59:57\",\n \"Name\": \"test\",\n \"NodeId\": 27,\n \"ParentNodeId\": 26,\n \"Remark\": \"test\",\n \"UpdateTime\": \"2021-04-16 14:59:57\"\n },\n {\n \"CreateTime\": \"2021-04-16 15:55:53\",\n \"Name\": \"test1\",\n \"NodeId\": 29,\n \"ParentNodeId\": 27,\n \"Remark\": \"1\",\n \"UpdateTime\": \"2021-04-16 15:55:53\"\n }\n ],\n \"RequestId\": \"becff4cb-fe62-4288-ac6c-4fba115b94b3\",\n \"Total\": 3\n }\n}",
471
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CreateTime\": \"2021-04-16 11:49:39\",\n \"Name\": \"Root\",\n \"NodeId\": 101,\n \"ParentNodeId\": 0,\n \"Remark\": \"\",\n \"UpdateTime\": \"2021-04-16 11:49:39\"\n }\n ],\n \"RequestId\": \"becff4cb-fe62-4288-ac6c-4fba115b94b3\",\n \"Total\": 1\n }\n}",
472
472
  "title": "获取节点列表"
473
473
  }
474
474
  ],
@@ -123,6 +123,58 @@ def doDescribeOriginGroupHealthStatus(args, parsed_globals):
123
123
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
124
124
 
125
125
 
126
+ def doExportZoneConfig(args, parsed_globals):
127
+ g_param = parse_global_arg(parsed_globals)
128
+
129
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
130
+ cred = credential.CVMRoleCredential()
131
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
132
+ cred = credential.STSAssumeRoleCredential(
133
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
134
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
135
+ )
136
+ 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):
137
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
138
+ else:
139
+ cred = credential.Credential(
140
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
141
+ )
142
+ http_profile = HttpProfile(
143
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
144
+ reqMethod="POST",
145
+ endpoint=g_param[OptionsDefine.Endpoint],
146
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
147
+ )
148
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
149
+ if g_param[OptionsDefine.Language]:
150
+ profile.language = g_param[OptionsDefine.Language]
151
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
152
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
153
+ client._sdkVersion += ("_CLI_" + __version__)
154
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
155
+ model = models.ExportZoneConfigRequest()
156
+ model.from_json_string(json.dumps(args))
157
+ start_time = time.time()
158
+ while True:
159
+ rsp = client.ExportZoneConfig(model)
160
+ result = rsp.to_json_string()
161
+ try:
162
+ json_obj = json.loads(result)
163
+ except TypeError as e:
164
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
165
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
166
+ break
167
+ cur_time = time.time()
168
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
169
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
170
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
171
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
172
+ else:
173
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
174
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
175
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
176
+
177
+
126
178
  def doDeleteFunction(args, parsed_globals):
127
179
  g_param = parse_global_arg(parsed_globals)
128
180
 
@@ -5687,6 +5739,58 @@ def doDescribeZoneSetting(args, parsed_globals):
5687
5739
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5688
5740
 
5689
5741
 
5742
+ def doDescribeZoneConfigImportResult(args, parsed_globals):
5743
+ g_param = parse_global_arg(parsed_globals)
5744
+
5745
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5746
+ cred = credential.CVMRoleCredential()
5747
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5748
+ cred = credential.STSAssumeRoleCredential(
5749
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5750
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5751
+ )
5752
+ 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):
5753
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5754
+ else:
5755
+ cred = credential.Credential(
5756
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5757
+ )
5758
+ http_profile = HttpProfile(
5759
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5760
+ reqMethod="POST",
5761
+ endpoint=g_param[OptionsDefine.Endpoint],
5762
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5763
+ )
5764
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5765
+ if g_param[OptionsDefine.Language]:
5766
+ profile.language = g_param[OptionsDefine.Language]
5767
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5768
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
5769
+ client._sdkVersion += ("_CLI_" + __version__)
5770
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5771
+ model = models.DescribeZoneConfigImportResultRequest()
5772
+ model.from_json_string(json.dumps(args))
5773
+ start_time = time.time()
5774
+ while True:
5775
+ rsp = client.DescribeZoneConfigImportResult(model)
5776
+ result = rsp.to_json_string()
5777
+ try:
5778
+ json_obj = json.loads(result)
5779
+ except TypeError as e:
5780
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5781
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5782
+ break
5783
+ cur_time = time.time()
5784
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5785
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5786
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5787
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5788
+ else:
5789
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5790
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5791
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5792
+
5793
+
5690
5794
  def doDeleteSecurityIPGroup(args, parsed_globals):
5691
5795
  g_param = parse_global_arg(parsed_globals)
5692
5796
 
@@ -6051,6 +6155,58 @@ def doDescribeSecurityIPGroup(args, parsed_globals):
6051
6155
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6052
6156
 
6053
6157
 
6158
+ def doImportZoneConfig(args, parsed_globals):
6159
+ g_param = parse_global_arg(parsed_globals)
6160
+
6161
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6162
+ cred = credential.CVMRoleCredential()
6163
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6164
+ cred = credential.STSAssumeRoleCredential(
6165
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6166
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6167
+ )
6168
+ 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):
6169
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6170
+ else:
6171
+ cred = credential.Credential(
6172
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6173
+ )
6174
+ http_profile = HttpProfile(
6175
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6176
+ reqMethod="POST",
6177
+ endpoint=g_param[OptionsDefine.Endpoint],
6178
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6179
+ )
6180
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6181
+ if g_param[OptionsDefine.Language]:
6182
+ profile.language = g_param[OptionsDefine.Language]
6183
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6184
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
6185
+ client._sdkVersion += ("_CLI_" + __version__)
6186
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6187
+ model = models.ImportZoneConfigRequest()
6188
+ model.from_json_string(json.dumps(args))
6189
+ start_time = time.time()
6190
+ while True:
6191
+ rsp = client.ImportZoneConfig(model)
6192
+ result = rsp.to_json_string()
6193
+ try:
6194
+ json_obj = json.loads(result)
6195
+ except TypeError as e:
6196
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6197
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6198
+ break
6199
+ cur_time = time.time()
6200
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6201
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6202
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6203
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6204
+ else:
6205
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6206
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6207
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6208
+
6209
+
6054
6210
  def doModifyCustomErrorPage(args, parsed_globals):
6055
6211
  g_param = parse_global_arg(parsed_globals)
6056
6212
 
@@ -6378,6 +6534,7 @@ MODELS_MAP = {
6378
6534
  ACTION_MAP = {
6379
6535
  "DestroyPlan": doDestroyPlan,
6380
6536
  "DescribeOriginGroupHealthStatus": doDescribeOriginGroupHealthStatus,
6537
+ "ExportZoneConfig": doExportZoneConfig,
6381
6538
  "DeleteFunction": doDeleteFunction,
6382
6539
  "CreatePurgeTask": doCreatePurgeTask,
6383
6540
  "DownloadL4Logs": doDownloadL4Logs,
@@ -6485,6 +6642,7 @@ ACTION_MAP = {
6485
6642
  "ModifyL4ProxyRulesStatus": doModifyL4ProxyRulesStatus,
6486
6643
  "RenewPlan": doRenewPlan,
6487
6644
  "DescribeZoneSetting": doDescribeZoneSetting,
6645
+ "DescribeZoneConfigImportResult": doDescribeZoneConfigImportResult,
6488
6646
  "DeleteSecurityIPGroup": doDeleteSecurityIPGroup,
6489
6647
  "CreateApplicationProxyRule": doCreateApplicationProxyRule,
6490
6648
  "DescribeZones": doDescribeZones,
@@ -6492,6 +6650,7 @@ ACTION_MAP = {
6492
6650
  "DeleteZone": doDeleteZone,
6493
6651
  "DescribeSecurityIPGroupInfo": doDescribeSecurityIPGroupInfo,
6494
6652
  "DescribeSecurityIPGroup": doDescribeSecurityIPGroup,
6653
+ "ImportZoneConfig": doImportZoneConfig,
6495
6654
  "ModifyCustomErrorPage": doModifyCustomErrorPage,
6496
6655
  "DescribeDDoSAttackData": doDescribeDDoSAttackData,
6497
6656
  "DeleteSharedCNAME": doDeleteSharedCNAME,