tccli 3.0.1136.1__py2.py3-none-any.whl → 3.0.1137.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 (37) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/command.py +4 -1
  3. tccli/help_command.py +4 -1
  4. tccli/services/cdb/v20170320/api.json +3 -3
  5. tccli/services/cls/v20201016/api.json +93 -0
  6. tccli/services/cwp/cwp_client.py +0 -53
  7. tccli/services/cwp/v20180228/api.json +0 -43
  8. tccli/services/cwp/v20180228/examples.json +0 -8
  9. tccli/services/cynosdb/v20190107/api.json +10 -0
  10. tccli/services/dlc/v20210125/api.json +23 -23
  11. tccli/services/dlc/v20210125/examples.json +6 -6
  12. tccli/services/dts/v20211206/api.json +3 -3
  13. tccli/services/essbasic/v20210526/api.json +2 -2
  14. tccli/services/faceid/v20180301/api.json +1 -1
  15. tccli/services/ioa/ioa_client.py +159 -0
  16. tccli/services/ioa/v20220601/api.json +897 -80
  17. tccli/services/ioa/v20220601/examples.json +24 -0
  18. tccli/services/iotexplorer/iotexplorer_client.py +178 -19
  19. tccli/services/iotexplorer/v20190423/api.json +199 -0
  20. tccli/services/iotexplorer/v20190423/examples.json +24 -0
  21. tccli/services/live/v20180801/api.json +12 -6
  22. tccli/services/ocr/v20181119/api.json +2 -2
  23. tccli/services/partners/v20180321/api.json +26 -16
  24. tccli/services/tcr/v20190924/api.json +57 -35
  25. tccli/services/tcr/v20190924/examples.json +4 -4
  26. tccli/services/tcss/v20201101/api.json +123 -13
  27. tccli/services/tcss/v20201101/examples.json +3 -3
  28. tccli/services/tke/v20180525/api.json +13 -3
  29. tccli/services/tts/v20190823/api.json +2 -2
  30. tccli/services/wedata/v20210820/api.json +377 -0
  31. tccli/services/wedata/v20210820/examples.json +8 -0
  32. tccli/services/wedata/wedata_client.py +61 -8
  33. {tccli-3.0.1136.1.dist-info → tccli-3.0.1137.1.dist-info}/METADATA +2 -2
  34. {tccli-3.0.1136.1.dist-info → tccli-3.0.1137.1.dist-info}/RECORD +37 -37
  35. {tccli-3.0.1136.1.dist-info → tccli-3.0.1137.1.dist-info}/WHEEL +0 -0
  36. {tccli-3.0.1136.1.dist-info → tccli-3.0.1137.1.dist-info}/entry_points.txt +0 -0
  37. {tccli-3.0.1136.1.dist-info → tccli-3.0.1137.1.dist-info}/license_files/LICENSE +0 -0
@@ -155,7 +155,7 @@
155
155
  "CreateDMSDatabase": [
156
156
  {
157
157
  "document": "",
158
- "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDMSDatabase\n<公共请求参数>\n\n{\n \"Asset\": {\n \"Description\": \"xx\",\n \"ModifiedTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataVersion\": 0,\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"OwnerAccount\": \"xx\",\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\",\n \"Catalog\": \"xx\",\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"PermValues\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Owner\": \"xx\",\n \"DatasourceId\": 0,\n \"Guid\": \"xx\",\n \"Id\": 0,\n \"Name\": \"xx\"\n },\n \"SchemaName\": \"test\",\n \"Location\": \"cosn://\"\n}",
158
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDMSDatabase\n<公共请求参数>\n\n{\n \"Asset\": {\n \"Description\": \"api 测试库\",\n \"ModifiedTime\": \"2023-07-24T15:26:30+00:00\",\n \"DataVersion\": 0,\n \"BizParams\": [\n {\n \"Value\": \"\",\n \"Key\": \"\"\n }\n ],\n \"OwnerAccount\": \"100016321234396\",\n \"CreateTime\": \"2023-07-24T15:26:30+00:00\",\n \"Catalog\": \"\",\n \"Params\": [\n {\n \"Value\": \"\",\n \"Key\": \"\"\n }\n ],\n \"PermValues\": [\n {\n \"Value\": \"\",\n \"Key\": \"\"\n }\n ],\n \"Owner\": \"100016334432227396\",\n \"DatasourceId\": 100,\n \"Guid\": \"123-456-789\",\n \"Id\": 1,\n \"Name\": \"api_test\"\n },\n \"SchemaName\": \"api_test\",\n \"Location\": \"cosn://api_test\",\n \"Name\": \"api_test\"\n}",
159
159
  "output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx-xxx\"\n }\n}",
160
160
  "title": "DMS元数据创建库"
161
161
  }
@@ -163,7 +163,7 @@
163
163
  "CreateDMSTable": [
164
164
  {
165
165
  "document": "创建表",
166
- "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDMSTable\n<公共请求参数>\n\n{\n \"PartitionKeys\": [\n {\n \"Name\": \"xx\",\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"xx\",\n \"Description\": \"xx\"\n }\n ],\n \"RecordCount\": 0,\n \"Sds\": {\n \"OutputFormat\": \"xx\",\n \"SortCols\": {\n \"Col\": \"xx\",\n \"Order\": 0\n },\n \"InputFormat\": \"xx\",\n \"SerdeLib\": \"xx\",\n \"Cols\": [\n {\n \"Name\": \"xx\",\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"xx\",\n \"Description\": \"xx\"\n }\n ],\n \"Compressed\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Location\": \"xx\",\n \"NumBuckets\": 0,\n \"SerdeParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"SerdeName\": \"xx\",\n \"StoredAsSubDirectories\": true,\n \"BucketCols\": [\n \"xx\"\n ]\n },\n \"StructUpdateTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataUpdateTime\": \"2020-09-22T00:00:00+00:00\",\n \"LastAccessTime\": \"2020-09-22T00:00:00+00:00\",\n \"StorageSize\": 0,\n \"Asset\": {\n \"Description\": \"xx\",\n \"ModifiedTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataVersion\": 0,\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"OwnerAccount\": \"xx\",\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\",\n \"Catalog\": \"xx\",\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"PermValues\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Owner\": \"xx\",\n \"DatasourceId\": 0,\n \"Guid\": \"xx\",\n \"Id\": 0,\n \"Name\": \"xx\"\n },\n \"ViewExpandedText\": \"xx\",\n \"LifeTime\": 0,\n \"ViewOriginalText\": \"xx\",\n \"Type\": \"xx\",\n \"DbName\": \"xx\",\n \"Columns\": [\n {\n \"Name\": \"xx\",\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"xx\",\n \"Description\": \"xx\"\n }\n ],\n \"Partitions\": [\n {\n \"Sds\": {\n \"OutputFormat\": \"xx\",\n \"SortCols\": {\n \"Col\": \"xx\",\n \"Order\": 0\n },\n \"InputFormat\": \"xx\",\n \"SerdeLib\": \"xx\",\n \"Cols\": [\n {\n \"Name\": \"xx\",\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"xx\",\n \"Description\": \"xx\"\n }\n ],\n \"Compressed\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Location\": \"xx\",\n \"NumBuckets\": 0,\n \"SerdeParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"SerdeName\": \"xx\",\n \"StoredAsSubDirectories\": true,\n \"BucketCols\": [\n \"xx\"\n ]\n },\n \"Name\": \"xx\",\n \"ModifiedTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataVersion\": 0,\n \"RecordCount\": 0,\n \"TableName\": \"xx\",\n \"LastAccessTime\": \"2020-09-22T00:00:00+00:00\",\n \"Values\": [\n \"xx\"\n ],\n \"DatabaseName\": \"xx\",\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"SchemaName\": \"xx\",\n \"StorageSize\": 0,\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\"\n }\n ]\n}",
166
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateDMSTable\n<公共请求参数>\n\n{\n \"PartitionKeys\": [\n {\n \"Name\": \"f_value\",\n \"BizParams\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"f_value\",\n \"Description\": \"f_value\"\n }\n ],\n \"RecordCount\": 0,\n \"Sds\": {\n \"OutputFormat\": \"f_value\",\n \"SortCols\": {\n \"Col\": \"f_value\",\n \"Order\": 0\n },\n \"InputFormat\": \"f_value\",\n \"SerdeLib\": \"f_value\",\n \"Cols\": [\n {\n \"Name\": \"f_value\",\n \"BizParams\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"f_value\",\n \"Description\": \"f_value\"\n }\n ],\n \"Compressed\": true,\n \"Params\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"Location\": \"f_value\",\n \"NumBuckets\": 0,\n \"SerdeParams\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"SerdeName\": \"f_value\",\n \"StoredAsSubDirectories\": true,\n \"BucketCols\": [\n \"f_value\"\n ]\n },\n \"StructUpdateTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataUpdateTime\": \"2020-09-22T00:00:00+00:00\",\n \"LastAccessTime\": \"2020-09-22T00:00:00+00:00\",\n \"StorageSize\": 0,\n \"Asset\": {\n \"Description\": \"f_value\",\n \"ModifiedTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataVersion\": 0,\n \"BizParams\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"OwnerAccount\": \"f_value\",\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\",\n \"Catalog\": \"f_value\",\n \"Params\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"PermValues\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"Owner\": \"f_value\",\n \"DatasourceId\": 0,\n \"Guid\": \"f_value\",\n \"Id\": 0,\n \"Name\": \"f_value\"\n },\n \"ViewExpandedText\": \"f_value\",\n \"LifeTime\": 0,\n \"ViewOriginalText\": \"f_value\",\n \"Type\": \"f_value\",\n \"DbName\": \"f_value\",\n \"Columns\": [\n {\n \"Name\": \"f_value\",\n \"BizParams\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"f_value\",\n \"Description\": \"f_value\"\n }\n ],\n \"Partitions\": [\n {\n \"Sds\": {\n \"OutputFormat\": \"f_value\",\n \"SortCols\": {\n \"Col\": \"f_value\",\n \"Order\": 0\n },\n \"InputFormat\": \"f_value\",\n \"SerdeLib\": \"f_value\",\n \"Cols\": [\n {\n \"Name\": \"f_value\",\n \"BizParams\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"f_value\",\n \"Description\": \"f_value\"\n }\n ],\n \"Compressed\": true,\n \"Params\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"Location\": \"f_value\",\n \"NumBuckets\": 0,\n \"SerdeParams\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"SerdeName\": \"f_value\",\n \"StoredAsSubDirectories\": true,\n \"BucketCols\": [\n \"f_value\"\n ]\n },\n \"Name\": \"f_value\",\n \"ModifiedTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataVersion\": 0,\n \"RecordCount\": 0,\n \"TableName\": \"f_value\",\n \"LastAccessTime\": \"2020-09-22T00:00:00+00:00\",\n \"Values\": [\n \"f_value\"\n ],\n \"DatabaseName\": \"f_value\",\n \"Params\": [\n {\n \"Value\": \"f_value\",\n \"Key\": \"f_value\"\n }\n ],\n \"SchemaName\": \"f_value\",\n \"StorageSize\": 0,\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\"\n }\n ],\n \"Name\": \"tb_test\"\n}",
167
167
  "output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx-xxx\"\n }\n}",
168
168
  "title": "创建表"
169
169
  }
@@ -426,7 +426,7 @@
426
426
  {
427
427
  "document": "",
428
428
  "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDMSDatabase\n<公共请求参数>\n\n{\n \"Name\": \"Name1\",\n \"SchemaName\": \"Schema1\",\n \"Pattern\": \"*\"\n}",
429
- "output": "{\n \"Response\": {\n \"RequestId\": \"xx\",\n \"Name\": \"Name1\",\n \"SchemaName\": \"Schema1\",\n \"Location\": \"cosn://123\",\n \"Asset\": {\n \"Id\": 1,\n \"Name\": \"Name1\",\n \"Guid\": \"xxxx-xxxx-xxx-xxx\",\n \"Catalog\": \"DataLakeCatalog\",\n \"Description\": \"Description\",\n \"Owner\": \"root\",\n \"OwnerAccount\": \"root\",\n \"PermValues\": [\n {\n \"Key\": \"key1\",\n \"Value\": \"v1\"\n }\n ],\n \"Params\": [\n {\n \"Key\": \"key1\",\n \"Value\": \"v1\"\n }\n ],\n \"BizParams\": [\n {\n \"Key\": \"key1\",\n \"Value\": \"v1\"\n }\n ],\n \"DataVersion\": 1,\n \"CreateTime\": \"2021-01-01 12:12:12\",\n \"ModifiedTime\": \"2021-01-01 12:12:12\",\n \"DatasourceId\": 1\n }\n }\n}",
429
+ "output": "{\n \"Response\": {\n \"Name\": \"abc\",\n \"SchemaName\": \"abc\",\n \"Location\": \"abc\",\n \"Asset\": {\n \"Id\": 0,\n \"Name\": \"abc\",\n \"Guid\": \"abc\",\n \"Catalog\": \"abc\",\n \"Description\": \"abc\",\n \"Owner\": \"abc\",\n \"OwnerAccount\": \"abc\",\n \"PermValues\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"Params\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"BizParams\": [\n {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n ],\n \"DataVersion\": 0,\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\",\n \"ModifiedTime\": \"2020-09-22T00:00:00+00:00\",\n \"DatasourceId\": 0\n },\n \"RequestId\": \"abc\"\n }\n}",
430
430
  "title": "DMS元数据获取库"
431
431
  }
432
432
  ],
@@ -441,8 +441,8 @@
441
441
  "DescribeDMSTable": [
442
442
  {
443
443
  "document": "",
444
- "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDMSTable\n<公共请求参数>\n\n{\n \"Name\": \"xx\",\n \"Keyword\": \"xx\",\n \"Pattern\": \"xx\",\n \"Catalog\": \"xx\",\n \"SchemaName\": \"xx\",\n \"Type\": \"xx\",\n \"DbName\": \"xx\"\n}",
445
- "output": "{\n \"Response\": {\n \"PartitionKeys\": [\n {\n \"Name\": \"xx\",\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"xx\",\n \"Description\": \"xx\"\n }\n ],\n \"Sds\": {\n \"OutputFormat\": \"xx\",\n \"SortCols\": {\n \"Col\": \"xx\",\n \"Order\": 0\n },\n \"InputFormat\": \"xx\",\n \"SerdeLib\": \"xx\",\n \"Cols\": [\n {\n \"Name\": \"xx\",\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"xx\",\n \"Description\": \"xx\"\n }\n ],\n \"Compressed\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Location\": \"xx\",\n \"NumBuckets\": 0,\n \"SerdeParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"SerdeName\": \"xx\",\n \"StoredAsSubDirectories\": true,\n \"BucketCols\": [\n \"xx\"\n ]\n },\n \"Name\": \"xx\",\n \"Type\": \"xx\",\n \"RecordCount\": 0,\n \"StructUpdateTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataUpdateTime\": \"2020-09-22T00:00:00+00:00\",\n \"ViewOriginalText\": \"xx\",\n \"LifeTime\": 0,\n \"RequestId\": \"xx\",\n \"Retention\": 0,\n \"Asset\": {\n \"Description\": \"xx\",\n \"ModifiedTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataVersion\": 0,\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"OwnerAccount\": \"xx\",\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\",\n \"Catalog\": \"xx\",\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"PermValues\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Owner\": \"xx\",\n \"DatasourceId\": 0,\n \"Guid\": \"xx\",\n \"Id\": 0,\n \"Name\": \"xx\"\n },\n \"ViewExpandedText\": \"xx\",\n \"SchemaName\": \"xx\",\n \"LastAccessTime\": \"2020-09-22T00:00:00+00:00\",\n \"StorageSize\": 0,\n \"DbName\": \"xx\",\n \"Columns\": [\n {\n \"Name\": \"xx\",\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"xx\",\n \"Description\": \"xx\"\n }\n ],\n \"Partitions\": [\n {\n \"Sds\": {\n \"OutputFormat\": \"xx\",\n \"SortCols\": {\n \"Col\": \"xx\",\n \"Order\": 0\n },\n \"InputFormat\": \"xx\",\n \"SerdeLib\": \"xx\",\n \"Cols\": [\n {\n \"Name\": \"xx\",\n \"BizParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"IsPartition\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Position\": 0,\n \"Type\": \"xx\",\n \"Description\": \"xx\"\n }\n ],\n \"Compressed\": true,\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"Location\": \"xx\",\n \"NumBuckets\": 0,\n \"SerdeParams\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"SerdeName\": \"xx\",\n \"StoredAsSubDirectories\": true,\n \"BucketCols\": [\n \"xx\"\n ]\n },\n \"Name\": \"xx\",\n \"ModifiedTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataVersion\": 0,\n \"RecordCount\": 0,\n \"TableName\": \"xx\",\n \"LastAccessTime\": \"2020-09-22T00:00:00+00:00\",\n \"Values\": [\n \"xx\"\n ],\n \"DatabaseName\": \"xx\",\n \"Params\": [\n {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n ],\n \"SchemaName\": \"xx\",\n \"StorageSize\": 0,\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\"\n }\n ]\n }\n}",
444
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDMSTable\n<公共请求参数>\n\n{\n \"DbName\": \"api_test\",\n \"SchemaName\": \"api_test\",\n \"Name\": \"test\",\n \"Catalog\": \"\",\n \"Keyword\": \"\",\n \"Pattern\": \"*\",\n \"Type\": \" EXTERNAL_TABLE\"\n}",
445
+ "output": "{\n \"Response\": {\n \"Asset\": {\n \"BizParams\": [],\n \"Catalog\": \"hive\",\n \"CreateTime\": \"2020-09-22T00:00:00+00:00\",\n \"DataVersion\": 0,\n \"DatasourceId\": 0,\n \"Description\": \"\",\n \"Guid\": \"un0hFApITjaahQW99mDNFw\",\n \"Id\": 11078081,\n \"ModifiedTime\": \"2020-09-22T00:00:00+00:00\",\n \"Name\": \"\",\n \"Owner\": \"root\",\n \"OwnerAccount\": \"\",\n \"Params\": [\n {\n \"Key\": \"current-schema\",\n \"Value\": \"{\\\"type\\\":\\\"struct\\\",\\\"schema-id\\\":0,\\\"fields\\\":[{\\\"id\\\":1,\\\"name\\\":\\\"name\\\",\\\"required\\\":false,\\\"type\\\":\\\"string\\\"},{\\\"id\\\":2,\\\"name\\\":\\\"age\\\",\\\"required\\\":false,\\\"type\\\":\\\"int\\\"},{\\\"id\\\":3,\\\"name\\\":\\\"id\\\",\\\"required\\\":false,\\\"type\\\":\\\"int\\\"}]}\"\n },\n {\n \"Key\": \"metadata_location\",\n \"Value\": \"lakefs://10000034ec8fbe9c69533aa6685ed55676c8967a6e926f96e96e8f8294028d81060f6b3b@dlcfbe4-100018379117-1639652301-100017307912-1304028854/1305424723/warehouse/api_test/test/metadata/00000-d899e972-e96d-4451-9589-0dd2529894be.metadata.json\"\n },\n {\n \"Key\": \"snapshot-count\",\n \"Value\": \"0\"\n },\n {\n \"Key\": \"table_type\",\n \"Value\": \"ICEBERG\"\n },\n {\n \"Key\": \"write.metadata.metrics.default\",\n \"Value\": \"full\"\n },\n {\n \"Key\": \"dlc.ao.data.govern.inherit\",\n \"Value\": \"default\"\n },\n {\n \"Key\": \"dlc.ao.data.govern.policy.rule-type\",\n \"Value\": \"none\"\n },\n {\n \"Key\": \"dlc_sub_uin\",\n \"Value\": \"100016327396\"\n },\n {\n \"Key\": \"owner\",\n \"Value\": \"zYBEmJFg\"\n },\n {\n \"Key\": \"transient_lastDdlTime\",\n \"Value\": \"1690197650243\"\n },\n {\n \"Key\": \"write.distribution-mode\",\n \"Value\": \"hash\"\n },\n {\n \"Key\": \"write.upsert.enabled\",\n \"Value\": \"false\"\n },\n {\n \"Key\": \"EXTERNAL\",\n \"Value\": \"TRUE\"\n },\n {\n \"Key\": \"table_spec_internal_v_0_1_1\",\n \"Value\": \"[]\"\n },\n {\n \"Key\": \"uuid\",\n \"Value\": \"b9e945c2-2312-424e-a03f-2c3eeb71f095\"\n },\n {\n \"Key\": \"write.metadata.delete-after-commit.enabled\",\n \"Value\": \"true\"\n },\n {\n \"Key\": \"write.metadata.previous-versions-max\",\n \"Value\": \"100\"\n },\n {\n \"Key\": \"lakehouse.storage.type\",\n \"Value\": \"lakefs\"\n }\n ],\n \"PermValues\": []\n },\n \"Columns\": [\n {\n \"BizParams\": [],\n \"Description\": \"\",\n \"IsPartition\": false,\n \"Name\": \"name\",\n \"Params\": null,\n \"Position\": 0,\n \"Type\": \"string\"\n },\n {\n \"BizParams\": [],\n \"Description\": \"\",\n \"IsPartition\": false,\n \"Name\": \"age\",\n \"Params\": null,\n \"Position\": 1,\n \"Type\": \"int\"\n },\n {\n \"BizParams\": [],\n \"Description\": \"\",\n \"IsPartition\": false,\n \"Name\": \"id\",\n \"Params\": null,\n \"Position\": 2,\n \"Type\": \"int\"\n }\n ],\n \"DataUpdateTime\": \"2020-09-22T00:00:00+00:00\",\n \"DbName\": \"api_test\",\n \"LastAccessTime\": \"2020-09-22T00:00:00+00:00\",\n \"LifeTime\": 0,\n \"Name\": \"test\",\n \"PartitionKeys\": [],\n \"Partitions\": null,\n \"RecordCount\": 0,\n \"RequestId\": \"46021e35-056c-4460-9a37-e74b25f5b81b\",\n \"Retention\": 0,\n \"SchemaName\": \"\",\n \"Sds\": {\n \"BucketCols\": null,\n \"Cols\": null,\n \"Compressed\": false,\n \"InputFormat\": \"org.apache.hadoop.mapred.FileInputFormat\",\n \"Location\": \"lakefs://10000034ec8fbe9c69533aa6685ed55676c8967a6e926f96e96e8f8294028d81060f6b3b@dlcfbe4-100018379117-1639652301-100017307912-1304028854/1305424723/warehouse/api_test/test\",\n \"NumBuckets\": 0,\n \"OutputFormat\": \"org.apache.hadoop.mapred.FileOutputFormat\",\n \"Params\": [],\n \"SerdeLib\": \"org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe\",\n \"SerdeName\": \"\",\n \"SerdeParams\": null,\n \"SortCols\": null,\n \"SortColumns\": null,\n \"StoredAsSubDirectories\": false\n },\n \"StorageSize\": 0,\n \"StructUpdateTime\": \"2020-09-22T00:00:00+00:00\",\n \"Type\": \"EXTERNAL_TABLE\",\n \"ViewExpandedText\": \"\",\n \"ViewOriginalText\": \"\"\n }\n}",
446
446
  "title": "查询表"
447
447
  }
448
448
  ],
@@ -879,7 +879,7 @@
879
879
  "DropDMSTable": [
880
880
  {
881
881
  "document": "",
882
- "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DropDMSTable\n<公共请求参数>\n\n{\n \"DbName\": \"db1\",\n \"Name\": \"table1\",\n \"DeleteData\": false,\n \"EnvProps\": {\n \"Value\": \"xx\",\n \"Key\": \"xx\"\n }\n}",
882
+ "input": "POST / HTTP/1.1\nHost: dlc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DropDMSTable\n<公共请求参数>\n\n{\n \"DbName\": \"abc\",\n \"Name\": \"abc\",\n \"DeleteData\": true,\n \"EnvProps\": {\n \"Key\": \"abc\",\n \"Value\": \"abc\"\n }\n}",
883
883
  "output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx-xxx\"\n }\n}",
884
884
  "title": "DMS元数据删除表"
885
885
  }
@@ -2172,7 +2172,7 @@
2172
2172
  },
2173
2173
  {
2174
2174
  "disabled": false,
2175
- "document": "源端数据库类型,如mysql,cynosdbmysql,tdapg,tdpg,tdsqlmysql,tdstore",
2175
+ "document": "源端数据库类型,如mysql,mariadb,percona,postgresql,cynosdbmysql(表示TDSQL-C MySQL),tdpg(TDSQL PostgreSQL版),tdsqlmysql,tdstore(表示TDSQL TDStore版)等。",
2176
2176
  "example": "mysql",
2177
2177
  "member": "string",
2178
2178
  "name": "SrcDatabaseType",
@@ -2190,7 +2190,7 @@
2190
2190
  },
2191
2191
  {
2192
2192
  "disabled": false,
2193
- "document": "目标端数据库类型,如mysql,cynosdbmysql,tdapg,tdpg,tdsqlmysql,kafka,tdstore",
2193
+ "document": "目标端数据库类型,如mysql,mariadb,percona,cynosdbmysql(表示TDSQL-C MySQL),tdpg(TDSQL PostgreSQL版),tdsqlmysql,kafka,tdstore(表示TDSQL TDStore版)等。",
2194
2194
  "example": "mysql",
2195
2195
  "member": "string",
2196
2196
  "name": "DstDatabaseType",
@@ -5610,7 +5610,7 @@
5610
5610
  },
5611
5611
  {
5612
5612
  "disabled": false,
5613
- "document": "数据库内核类型,tdsql中用于区分不同内核:percona,mariadb,mysql\n注意:此字段可能返回 null,表示取不到有效值。",
5613
+ "document": "数据库内核类型,tdsql中用于区分不同内核:percona,mariadb,mysql。注意TDSQL-C MySQL、TDSQL PostgreSQL无需填写此项值。\n注意:此字段可能返回 null,表示取不到有效值。",
5614
5614
  "example": "mariadb",
5615
5615
  "member": "string",
5616
5616
  "name": "DbKernel",
@@ -2595,7 +2595,7 @@
2595
2595
  },
2596
2596
  {
2597
2597
  "disabled": false,
2598
- "document": "审核节点的签署人标志,用于指定当前审核的签署方\n<ul><li>**如果签署审核节点是个人, 此参数必填**。</li></ul>",
2598
+ "document": "审核节点的签署人标志,用于指定当前审核的签署方。\n<font color= \"red\">注意:以下情况必须传递RecipientId</font>\n<ul><li> **发起签署流程时,指定签署人需要审批(即签署人需要审批\n<a href=\"https://qian.tencent.com/developers/partnerApis/dataTypes#flowapproverinfo\" target=\"_blank\">ApproverNeedSignReview</a>为true),则必须指定RecipientId**</li><li>**如果签署审核节点是个人, 此参数必填**。</li></ul>",
2599
2599
  "example": "yDRS4UUgygqdcj56UuO4zjExBQcOiB68",
2600
2600
  "member": "string",
2601
2601
  "name": "RecipientId",
@@ -6044,7 +6044,7 @@
6044
6044
  },
6045
6045
  {
6046
6046
  "disabled": false,
6047
- "document": "第三方平台子客的企业名称,请确认该企业名称与企业营业执照中注册的名称完全一致。\n在测试环境联调的过程中,企业名称请统一加上“测试”二字,如:典子谦示例企业测试,否则将无法审核通过。\n\n注:\n `1. 如果名称中包含英文括号(),请使用中文括号()代替。`\n `2、该名称需要与Agent.ProxyOrganizationOpenId相匹配, 企业激活后Agent.ProxyOrganizationOpenId会跟此企业名称一一绑定; 如果您的企业已经在认证授权中或者激活完成,这里修改子客企业名字将不会生效。 `",
6047
+ "document": "第三方平台子客的企业名称,请确认该企业名称与企业营业执照中注册的名称完全一致。\n<font color=\"red\">在测试环境联调的过程中,企业名称请统一加上“测试”二字,如:典子谦示例企业测试,否则将无法审核通过。</font>\n\n注:\n `1. 如果名称中包含英文括号(),请使用中文括号()代替。`\n `2、该名称需要与Agent.ProxyOrganizationOpenId相匹配, 企业激活后Agent.ProxyOrganizationOpenId会跟此企业名称一一绑定; 如果您的企业已经在认证授权中或者激活完成,这里修改子客企业名字将不会生效。 `",
6048
6048
  "example": "典子谦示例企业测试",
6049
6049
  "member": "string",
6050
6050
  "name": "ProxyOrganizationName",
@@ -2788,7 +2788,7 @@
2788
2788
  },
2789
2789
  {
2790
2790
  "disabled": false,
2791
- "document": "plus版:描述当前请求活体阶段被拒绝的详细原因,详情如下:\n01-用户全程闭眼\n02-用户未完成指定动作\n03-疑似翻拍攻击\n04-疑似合成图片\n05-疑似合成视频\n06-疑似合成动作\n07-疑似黑产模版\n08-疑似存在水印\n09-反光校验未通过\n10-最佳帧校验未通过\n11-人脸质量过差\n12-人脸距离不匹配\n13-疑似对抗样本攻击\nnull-无\n增强版:此字段不生效,默认为null\n注意:此字段可能返回 null,表示取不到有效值。",
2791
+ "document": "plus版:描述当前请求活体阶段被拒绝的详细原因,详情如下:01-用户全程闭眼02-用户未完成指定动作03-疑似翻拍攻击04-疑似合成图片05-疑似合成视频06-疑似合成动作07-疑似黑产模板08-疑似存在水印09-反光校验未通过10-最佳帧校验未通过11-人脸质量过差12-人脸距离不匹配13-疑似对抗样本攻击null-无增强版:此字段不生效,默认为null\n注意:此字段可能返回 null,表示取不到有效值。",
2792
2792
  "example": "01",
2793
2793
  "member": "string",
2794
2794
  "name": "LivenessInfoTag",
@@ -17,6 +17,58 @@ from tencentcloud.ioa.v20220601 import models as models_v20220601
17
17
  from jmespath import search
18
18
  import time
19
19
 
20
+ def doDescribeRootAccountGroup(args, parsed_globals):
21
+ g_param = parse_global_arg(parsed_globals)
22
+
23
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
+ cred = credential.CVMRoleCredential()
25
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
+ cred = credential.STSAssumeRoleCredential(
27
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
+ )
30
+ 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):
31
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
+ else:
33
+ cred = credential.Credential(
34
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
+ )
36
+ http_profile = HttpProfile(
37
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
+ reqMethod="POST",
39
+ endpoint=g_param[OptionsDefine.Endpoint],
40
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
+ )
42
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
+ if g_param[OptionsDefine.Language]:
44
+ profile.language = g_param[OptionsDefine.Language]
45
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
+ client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
47
+ client._sdkVersion += ("_CLI_" + __version__)
48
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
+ model = models.DescribeRootAccountGroupRequest()
50
+ model.from_json_string(json.dumps(args))
51
+ start_time = time.time()
52
+ while True:
53
+ rsp = client.DescribeRootAccountGroup(model)
54
+ result = rsp.to_json_string()
55
+ try:
56
+ json_obj = json.loads(result)
57
+ except TypeError as e:
58
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
59
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
+ break
61
+ cur_time = time.time()
62
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
+ else:
67
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
+
71
+
20
72
  def doDescribeDevices(args, parsed_globals):
21
73
  g_param = parse_global_arg(parsed_globals)
22
74
 
@@ -69,6 +121,110 @@ def doDescribeDevices(args, parsed_globals):
69
121
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
122
 
71
123
 
124
+ def doDescribeAccountGroups(args, parsed_globals):
125
+ g_param = parse_global_arg(parsed_globals)
126
+
127
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
128
+ cred = credential.CVMRoleCredential()
129
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
130
+ cred = credential.STSAssumeRoleCredential(
131
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
132
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
133
+ )
134
+ 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):
135
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
136
+ else:
137
+ cred = credential.Credential(
138
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
139
+ )
140
+ http_profile = HttpProfile(
141
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
142
+ reqMethod="POST",
143
+ endpoint=g_param[OptionsDefine.Endpoint],
144
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
145
+ )
146
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
147
+ if g_param[OptionsDefine.Language]:
148
+ profile.language = g_param[OptionsDefine.Language]
149
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
150
+ client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
151
+ client._sdkVersion += ("_CLI_" + __version__)
152
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
153
+ model = models.DescribeAccountGroupsRequest()
154
+ model.from_json_string(json.dumps(args))
155
+ start_time = time.time()
156
+ while True:
157
+ rsp = client.DescribeAccountGroups(model)
158
+ result = rsp.to_json_string()
159
+ try:
160
+ json_obj = json.loads(result)
161
+ except TypeError as e:
162
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
163
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
164
+ break
165
+ cur_time = time.time()
166
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
167
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
168
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
169
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
170
+ else:
171
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
172
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
173
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
+
175
+
176
+ def doDescribeLocalAccounts(args, parsed_globals):
177
+ g_param = parse_global_arg(parsed_globals)
178
+
179
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
180
+ cred = credential.CVMRoleCredential()
181
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
182
+ cred = credential.STSAssumeRoleCredential(
183
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
184
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
185
+ )
186
+ 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):
187
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
188
+ else:
189
+ cred = credential.Credential(
190
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
191
+ )
192
+ http_profile = HttpProfile(
193
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
194
+ reqMethod="POST",
195
+ endpoint=g_param[OptionsDefine.Endpoint],
196
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
197
+ )
198
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
199
+ if g_param[OptionsDefine.Language]:
200
+ profile.language = g_param[OptionsDefine.Language]
201
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
202
+ client = mod.IoaClient(cred, g_param[OptionsDefine.Region], profile)
203
+ client._sdkVersion += ("_CLI_" + __version__)
204
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
+ model = models.DescribeLocalAccountsRequest()
206
+ model.from_json_string(json.dumps(args))
207
+ start_time = time.time()
208
+ while True:
209
+ rsp = client.DescribeLocalAccounts(model)
210
+ result = rsp.to_json_string()
211
+ try:
212
+ json_obj = json.loads(result)
213
+ except TypeError as e:
214
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
215
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
216
+ break
217
+ cur_time = time.time()
218
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
219
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
220
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
221
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
222
+ else:
223
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
224
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
225
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
226
+
227
+
72
228
  CLIENT_MAP = {
73
229
  "v20220601": ioa_client_v20220601,
74
230
 
@@ -80,7 +236,10 @@ MODELS_MAP = {
80
236
  }
81
237
 
82
238
  ACTION_MAP = {
239
+ "DescribeRootAccountGroup": doDescribeRootAccountGroup,
83
240
  "DescribeDevices": doDescribeDevices,
241
+ "DescribeAccountGroups": doDescribeAccountGroups,
242
+ "DescribeLocalAccounts": doDescribeLocalAccounts,
84
243
 
85
244
  }
86
245