tccli 3.0.1143.1__py2.py3-none-any.whl → 3.0.1145.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 (41) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/asr/v20190614/api.json +2 -2
  3. tccli/services/bpaas/v20181217/api.json +45 -1
  4. tccli/services/cdb/cdb_client.py +167 -8
  5. tccli/services/cdb/v20170320/api.json +156 -0
  6. tccli/services/cdb/v20170320/examples.json +24 -0
  7. tccli/services/ckafka/v20190819/api.json +1 -1
  8. tccli/services/ckafka/v20190819/examples.json +2 -2
  9. tccli/services/cls/v20201016/api.json +37 -0
  10. tccli/services/cwp/v20180228/api.json +76 -8
  11. tccli/services/dbbrain/v20210527/api.json +2 -2
  12. tccli/services/dbdc/v20201029/api.json +14 -12
  13. tccli/services/dbdc/v20201029/examples.json +1 -1
  14. tccli/services/dlc/v20210125/api.json +52 -2
  15. tccli/services/es/es_client.py +61 -8
  16. tccli/services/es/v20180416/api.json +83 -2
  17. tccli/services/es/v20180416/examples.json +11 -3
  18. tccli/services/fmu/v20191213/api.json +6 -6
  19. tccli/services/hunyuan/v20230901/api.json +253 -3
  20. tccli/services/hunyuan/v20230901/examples.json +24 -0
  21. tccli/services/iotexplorer/v20190423/api.json +58 -1
  22. tccli/services/iotvideo/v20211125/api.json +11 -0
  23. tccli/services/mps/mps_client.py +228 -16
  24. tccli/services/mps/v20190612/api.json +474 -1
  25. tccli/services/mps/v20190612/examples.json +32 -0
  26. tccli/services/ocr/v20181119/api.json +1 -1
  27. tccli/services/postgres/v20170312/api.json +31 -21
  28. tccli/services/postgres/v20170312/examples.json +4 -4
  29. tccli/services/smpn/v20190822/api.json +10 -10
  30. tccli/services/ssl/v20191205/api.json +30 -0
  31. tccli/services/tiia/v20190529/api.json +2 -2
  32. tccli/services/trocket/v20230308/api.json +60 -48
  33. tccli/services/trtc/v20190722/api.json +13 -4
  34. tccli/services/tsi/v20210325/api.json +2 -2
  35. tccli/services/tts/v20190823/api.json +1 -1
  36. tccli/services/vod/v20180717/api.json +20 -2
  37. {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/METADATA +2 -2
  38. {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/RECORD +41 -41
  39. {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/WHEEL +0 -0
  40. {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/entry_points.txt +0 -0
  41. {tccli-3.0.1143.1.dist-info → tccli-3.0.1145.1.dist-info}/license_files/LICENSE +0 -0
@@ -16489,40 +16489,44 @@
16489
16489
  "members": [
16490
16490
  {
16491
16491
  "disabled": false,
16492
- "document": "安全模块类型 1: 入侵检测 2: 漏洞管理 3: 基线管理 4: 高级防御 5:客户端相关 6: 资产指纹",
16492
+ "document": "安全模块类型 1: 入侵检测 2: 漏洞管理 3: 基线管理 4: 高级防御 5:客户端相关 6: 资产指纹 7 主机列表 8 客户端上报",
16493
16493
  "example": "1",
16494
16494
  "member": "uint64",
16495
16495
  "name": "SecurityType",
16496
+ "output_required": true,
16496
16497
  "required": true,
16497
16498
  "type": "int",
16498
16499
  "value_allowed_null": false
16499
16500
  },
16500
16501
  {
16501
16502
  "disabled": false,
16502
- "document": "安全模块下的日志类型,http://tapd.woa.com/Teneyes/markdown_wikis/show/#1210131751002328905",
16503
+ "document": "安全模块下的日志类型",
16503
16504
  "example": "[1,2]",
16504
16505
  "member": "int64",
16505
16506
  "name": "LogType",
16507
+ "output_required": true,
16506
16508
  "required": true,
16507
16509
  "type": "list",
16508
16510
  "value_allowed_null": false
16509
16511
  },
16510
16512
  {
16511
16513
  "disabled": false,
16512
- "document": "kafka topic id",
16514
+ "document": "主题ID",
16513
16515
  "example": "xx",
16514
16516
  "member": "string",
16515
16517
  "name": "TopicId",
16518
+ "output_required": true,
16516
16519
  "required": true,
16517
16520
  "type": "string",
16518
16521
  "value_allowed_null": false
16519
16522
  },
16520
16523
  {
16521
16524
  "disabled": false,
16522
- "document": "kafka topic name",
16525
+ "document": "主题名",
16523
16526
  "example": "xx",
16524
16527
  "member": "string",
16525
16528
  "name": "TopicName",
16529
+ "output_required": true,
16526
16530
  "required": true,
16527
16531
  "type": "string",
16528
16532
  "value_allowed_null": false
@@ -16533,6 +16537,7 @@
16533
16537
  "example": "1",
16534
16538
  "member": "uint64",
16535
16539
  "name": "Switch",
16540
+ "output_required": true,
16536
16541
  "required": true,
16537
16542
  "type": "int",
16538
16543
  "value_allowed_null": false
@@ -16543,6 +16548,7 @@
16543
16548
  "example": "1",
16544
16549
  "member": "uint64",
16545
16550
  "name": "Status",
16551
+ "output_required": true,
16546
16552
  "required": false,
16547
16553
  "type": "int",
16548
16554
  "value_allowed_null": false
@@ -16553,19 +16559,54 @@
16553
16559
  "example": "xx",
16554
16560
  "member": "string",
16555
16561
  "name": "ErrInfo",
16562
+ "output_required": true,
16556
16563
  "required": false,
16557
16564
  "type": "string",
16558
16565
  "value_allowed_null": false
16559
16566
  },
16560
16567
  {
16561
16568
  "disabled": false,
16562
- "document": "最近一次状态上报时间戳,s",
16569
+ "document": "最近一次状态上报时间戳",
16563
16570
  "example": "1",
16564
16571
  "member": "int64",
16565
16572
  "name": "StatusTime",
16573
+ "output_required": true,
16566
16574
  "required": false,
16567
16575
  "type": "int",
16568
16576
  "value_allowed_null": false
16577
+ },
16578
+ {
16579
+ "disabled": false,
16580
+ "document": "日志集名",
16581
+ "example": "xx",
16582
+ "member": "string",
16583
+ "name": "LogName",
16584
+ "output_required": true,
16585
+ "required": false,
16586
+ "type": "string",
16587
+ "value_allowed_null": false
16588
+ },
16589
+ {
16590
+ "disabled": false,
16591
+ "document": "日志集ID",
16592
+ "example": "xx",
16593
+ "member": "string",
16594
+ "name": "LogSetId",
16595
+ "output_required": true,
16596
+ "required": false,
16597
+ "type": "string",
16598
+ "value_allowed_null": false
16599
+ },
16600
+ {
16601
+ "disabled": false,
16602
+ "document": "日志集所在地域",
16603
+ "example": "ap-guangzhou",
16604
+ "member": "string",
16605
+ "name": "Region",
16606
+ "output_required": true,
16607
+ "required": false,
16608
+ "type": "string",
16609
+ "value_allowed_null": false
16569
16610
  }
16570
16611
  ],
16571
16612
  "usage": "both"
@@ -38907,7 +38948,7 @@
38907
38948
  "members": [
38908
38949
  {
38909
38950
  "disabled": false,
38910
- "document": "<li>HostTag - string - 是否必填:否 - 主机标签</i>\n<li>ItemId - int64 - 是否必填:否 - 项Id</i>\n<li>RuleId - int64 - 是否必填:否 - 规则Id</li>\n<li>IsPassed - int - 是否必填:否 - 是否通过</li>\n<li>RiskTier - int - 是否必填:否 - 风险等级</li>",
38951
+ "document": "<li>HostTag - string - 是否必填:否 - 主机标签</li><li>ItemId - int64 - 是否必填:否 - 项Id</li><li>RuleId - int64 - 是否必填:否 - 规则Id</li><li>IsPassed - int - 是否必填:否 - 是否通过</li><li>RiskTier - int - 是否必填:否 - 风险等级</li>",
38911
38952
  "example": "无",
38912
38953
  "member": "Filter",
38913
38954
  "name": "Filters",
@@ -38922,6 +38963,15 @@
38922
38963
  "name": "ExportAll",
38923
38964
  "required": false,
38924
38965
  "type": "int"
38966
+ },
38967
+ {
38968
+ "disabled": false,
38969
+ "document": "0:导出界面展示;1:导出全部结果事件",
38970
+ "example": "0",
38971
+ "member": "int64",
38972
+ "name": "IsExportDetail",
38973
+ "required": false,
38974
+ "type": "int"
38925
38975
  }
38926
38976
  ],
38927
38977
  "type": "object"
@@ -38943,7 +38993,7 @@
38943
38993
  "members": [
38944
38994
  {
38945
38995
  "disabled": false,
38946
- "document": "<li>HostId - string - 是否必填:否 - 主机Id</i>\n<li>RuleId - int64 - 是否必填:否 - 规则Id</i>\n<li>IsPassed - int - 是否必填:否 - 是否通过</li>\n<li>RiskTier - int - 是否必填:否 - 风险等级</li>",
38996
+ "document": "<li>HostId - string - 是否必填:否 - 主机Id</li><li>RuleId - int64 - 是否必填:否 - 规则Id</li><li>IsPassed - int - 是否必填:否 - 是否通过</li><li>RiskTier - int - 是否必填:否 - 风险等级</li>",
38947
38997
  "example": "无",
38948
38998
  "member": "Filter",
38949
38999
  "name": "Filters",
@@ -38958,6 +39008,15 @@
38958
39008
  "name": "ExportAll",
38959
39009
  "required": false,
38960
39010
  "type": "int"
39011
+ },
39012
+ {
39013
+ "disabled": false,
39014
+ "document": "0:导出界面展示;1:导出全部结果事件",
39015
+ "example": "1",
39016
+ "member": "int64",
39017
+ "name": "IsExportDetail",
39018
+ "required": false,
39019
+ "type": "int"
38961
39020
  }
38962
39021
  ],
38963
39022
  "type": "object"
@@ -39069,7 +39128,7 @@
39069
39128
  "members": [
39070
39129
  {
39071
39130
  "disabled": false,
39072
- "document": "<li>RuleName - string - 是否必填:否 - 规则名称</i>\n<li>IsPassed - int - 是否必填:否 - 是否通过</li>\n<li>RiskTier - int - 是否必填:否 - 风险等级</li>",
39131
+ "document": "<li>RuleName - string - 是否必填:否 - 规则名称</li><li>IsPassed - int - 是否必填:否 - 是否通过</li><li>RiskTier - int - 是否必填:否 - 风险等级</li>",
39073
39132
  "example": "无",
39074
39133
  "member": "Filter",
39075
39134
  "name": "Filters",
@@ -39084,6 +39143,15 @@
39084
39143
  "name": "ExportAll",
39085
39144
  "required": false,
39086
39145
  "type": "int"
39146
+ },
39147
+ {
39148
+ "disabled": false,
39149
+ "document": "0:导出界面展示;1:导出全部结果事件",
39150
+ "example": "1",
39151
+ "member": "int64",
39152
+ "name": "IsExportDetail",
39153
+ "required": false,
39154
+ "type": "int"
39087
39155
  }
39088
39156
  ],
39089
39157
  "type": "object"
@@ -463,7 +463,7 @@
463
463
  },
464
464
  {
465
465
  "disabled": false,
466
- "document": "邮箱地址,支持大小写字母、数字、下划线及@字符, 不能以下划线开头,邮箱地址不可重复。",
466
+ "document": "邮箱地址,支持大小写字母、数字、下划线、连字符及@字符, 只能以数字或字母开头,邮箱地址不可重复。",
467
467
  "example": "test@qq.com",
468
468
  "member": "string",
469
469
  "name": "ContactInfo",
@@ -491,7 +491,7 @@
491
491
  "example": "1",
492
492
  "member": "int64",
493
493
  "name": "Id",
494
- "required": true,
494
+ "output_required": true,
495
495
  "type": "int",
496
496
  "value_allowed_null": false
497
497
  },
@@ -1110,7 +1110,7 @@
1110
1110
  {
1111
1111
  "disabled": false,
1112
1112
  "document": "集群类型: 0 一主一备, 1 一主两备...N-1 一主N备",
1113
- "example": "",
1113
+ "example": "[0]",
1114
1114
  "member": "int64",
1115
1115
  "name": "InstanceTypes",
1116
1116
  "required": false,
@@ -1119,7 +1119,7 @@
1119
1119
  {
1120
1120
  "disabled": false,
1121
1121
  "document": "产品ID: 0 MYSQL,1 TDSQL",
1122
- "example": "",
1122
+ "example": "[1]",
1123
1123
  "member": "int64",
1124
1124
  "name": "ProductIds",
1125
1125
  "required": false,
@@ -1128,7 +1128,7 @@
1128
1128
  {
1129
1129
  "disabled": false,
1130
1130
  "document": "集群uuid: 如 dbdc-q810131s",
1131
- "example": "",
1131
+ "example": "[\"dbdc-qhdgwfs\"]",
1132
1132
  "member": "string",
1133
1133
  "name": "InstanceIds",
1134
1134
  "required": false,
@@ -1137,7 +1137,7 @@
1137
1137
  {
1138
1138
  "disabled": false,
1139
1139
  "document": "是否按金融围笼标志搜索",
1140
- "example": "",
1140
+ "example": "false",
1141
1141
  "member": "bool",
1142
1142
  "name": "FenceFlag",
1143
1143
  "required": false,
@@ -1146,7 +1146,7 @@
1146
1146
  {
1147
1147
  "disabled": false,
1148
1148
  "document": "按实例名字模糊匹配",
1149
- "example": "",
1149
+ "example": "exclust",
1150
1150
  "member": "string",
1151
1151
  "name": "InstanceName",
1152
1152
  "required": false,
@@ -1155,7 +1155,7 @@
1155
1155
  {
1156
1156
  "disabled": false,
1157
1157
  "document": "每页数目, 整型",
1158
- "example": "",
1158
+ "example": "100",
1159
1159
  "member": "int64",
1160
1160
  "name": "PageSize",
1161
1161
  "required": false,
@@ -1164,7 +1164,7 @@
1164
1164
  {
1165
1165
  "disabled": false,
1166
1166
  "document": "页码, 整型",
1167
- "example": "",
1167
+ "example": "1",
1168
1168
  "member": "int64",
1169
1169
  "name": "PageNumber",
1170
1170
  "required": false,
@@ -1173,7 +1173,7 @@
1173
1173
  {
1174
1174
  "disabled": false,
1175
1175
  "document": "排序字段,枚举:createtime,groupname",
1176
- "example": "",
1176
+ "example": "createtime",
1177
1177
  "member": "string",
1178
1178
  "name": "OrderBy",
1179
1179
  "required": false,
@@ -1182,7 +1182,7 @@
1182
1182
  {
1183
1183
  "disabled": false,
1184
1184
  "document": "排序方式: asc升序, desc降序",
1185
- "example": "",
1185
+ "example": "asc",
1186
1186
  "member": "string",
1187
1187
  "name": "OrderByType",
1188
1188
  "required": false,
@@ -1191,7 +1191,7 @@
1191
1191
  {
1192
1192
  "disabled": false,
1193
1193
  "document": "集群状态: -2 已删除, -1 已隔离, 0 创建中, 1 运行中, 2 扩容中, 3 删除中",
1194
- "example": "",
1194
+ "example": "1",
1195
1195
  "member": "int64",
1196
1196
  "name": "InstanceStatus",
1197
1197
  "required": false,
@@ -1206,18 +1206,20 @@
1206
1206
  {
1207
1207
  "disabled": false,
1208
1208
  "document": "集群数量",
1209
- "example": "",
1209
+ "example": "1",
1210
1210
  "member": "int64",
1211
1211
  "name": "TotalCount",
1212
+ "output_required": true,
1212
1213
  "type": "int",
1213
1214
  "value_allowed_null": false
1214
1215
  },
1215
1216
  {
1216
1217
  "disabled": false,
1217
1218
  "document": "集群扩展信息",
1218
- "example": "",
1219
+ "example": "[ { \"AppId\": 1252328453, \"AutoRenewFlag\": 0, \"CreateTime\": \"2021-02-25T16:08:47+08:00\", \"InstanceDetail\": { \"InstanceDeviceInfos\": [ { \"FreeDevice\": [], \"InstanceId\": \"szjr-3-7\", \"ReadOnlyDevice\": [], \"ReadWriteDevice\": [ { \"DevClass\": \"SH12\", \"DeviceId\": 191108504, \"DeviceNo\": \"\", \"InstanceNum\": 29, \"MaxDisk\": 28000, \"MaxMemory\": 576, \"RawDeviceNum\": 3, \"RestDisk\": 8800, \"RestMemory\": 248 } ] } ], \"ReadOnlyTotalDisk\": 0, \"ReadOnlyTotalLeaveDisk\": 0, \"ReadOnlyTotalLeaveMemory\": 0, \"ReadOnlyTotalMemory\": 0, \"ReadWriteTotalDisk\": 28000, \"ReadWriteTotalLeaveDisk\": 8800, \"ReadWriteTotalLeaveMemory\": 248, \"ReadWriteTotalMemory\": 576, \"Status\": 0 }, \"InstanceId\": \"dbdc-qhdgwfs\", \"InstanceName\": \"exclust\", \"InstanceStatus\": 1, \"InstanceType\": 1, \"Machine\": \"SH12\", \"PeriodEndTime\": \"2021-09-25T16:08:47+08:00\", \"Pid\": 10875, \"Region\": \"ap-shenzhen-fsi\", \"Zone\": \"ap-shenzhen-fsi-3\" } ]",
1219
1220
  "member": "InstanceExpand",
1220
1221
  "name": "Instances",
1222
+ "output_required": true,
1221
1223
  "type": "list",
1222
1224
  "value_allowed_null": false
1223
1225
  },
@@ -36,7 +36,7 @@
36
36
  {
37
37
  "document": "",
38
38
  "input": "POST / HTTP/1.1\nHost: dbdc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstances\n<公共请求参数>\n\n{}",
39
- "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"RequestId\": \"xx\",\n \"Instances\": [\n {\n \"InstanceStatus\": 0,\n \"Zone\": \"xx\",\n \"InstanceId\": \"xx\",\n \"Region\": \"xx\",\n \"Pid\": 10875,\n \"CreateTime\": \"xx\",\n \"Machine\": \"xx\",\n \"AutoRenewFlag\": 0,\n \"InstanceDetail\": {\n \"Status\": 0,\n \"ReadWriteTotalMemory\": 1,\n \"ReadWriteTotalLeaveMemory\": 1,\n \"ReadWriteTotalLeaveDisk\": 1,\n \"ReadOnlyTotalLeaveDisk\": 1,\n \"ReadOnlyTotalMemory\": 1,\n \"ReadOnlyTotalLeaveMemory\": 1,\n \"ReadOnlyTotalDisk\": 1,\n \"InstanceDeviceInfos\": [\n {\n \"InstanceId\": \"xx\",\n \"FreeDevice\": [\n {\n \"RawDeviceNum\": 1,\n \"InstanceNum\": 1,\n \"DevClass\": \"xx\",\n \"RestDisk\": 1,\n \"DeviceId\": 0,\n \"DeviceNo\": \"xx\",\n \"MaxDisk\": 1\n }\n ],\n \"ReadWriteDevice\": [\n {\n \"RawDeviceNum\": 1,\n \"InstanceNum\": 1,\n \"DevClass\": \"xx\",\n \"RestDisk\": 1,\n \"DeviceId\": 0,\n \"DeviceNo\": \"xx\",\n \"MaxDisk\": 1\n }\n ],\n \"ReadOnlyDevice\": [\n {\n \"RawDeviceNum\": 1,\n \"InstanceNum\": 1,\n \"DevClass\": \"xx\",\n \"RestDisk\": 1,\n \"DeviceId\": 0,\n \"DeviceNo\": \"xx\",\n \"MaxDisk\": 1\n }\n ]\n }\n ],\n \"ReadWriteTotalDisk\": 1\n },\n \"AppId\": 1,\n \"PeriodEndTime\": \"xx\",\n \"InstanceName\": \"xx\",\n \"InstanceType\": 0\n },\n {\n \"InstanceStatus\": 0,\n \"Zone\": \"xx\",\n \"InstanceId\": \"xx\",\n \"Region\": \"xx\",\n \"Pid\": 10875,\n \"InstanceType\": 0,\n \"Machine\": \"xx\",\n \"AutoRenewFlag\": 0,\n \"InstanceDetail\": {\n \"Status\": 0,\n \"ReadWriteTotalMemory\": 1,\n \"ReadWriteTotalLeaveMemory\": 1,\n \"ReadWriteTotalLeaveDisk\": 1,\n \"ReadOnlyTotalLeaveDisk\": 1,\n \"ReadOnlyTotalMemory\": 1,\n \"ReadOnlyTotalLeaveMemory\": 1,\n \"ReadOnlyTotalDisk\": 1,\n \"InstanceDeviceInfos\": [\n {\n \"InstanceId\": \"xx\",\n \"FreeDevice\": [\n {\n \"RawDeviceNum\": 1,\n \"InstanceNum\": 1,\n \"DevClass\": \"xx\",\n \"RestDisk\": 1,\n \"DeviceId\": 0,\n \"DeviceNo\": \"xx\",\n \"MaxDisk\": 1\n }\n ],\n \"ReadWriteDevice\": [\n {\n \"RawDeviceNum\": 1,\n \"InstanceNum\": 1,\n \"DevClass\": \"xx\",\n \"RestDisk\": 1,\n \"DeviceId\": 0,\n \"DeviceNo\": \"xx\",\n \"MaxDisk\": 1\n }\n ],\n \"ReadOnlyDevice\": [\n {\n \"RawDeviceNum\": 1,\n \"InstanceNum\": 1,\n \"DevClass\": \"xx\",\n \"RestDisk\": 1,\n \"DeviceId\": 0,\n \"DeviceNo\": \"xx\",\n \"MaxDisk\": 1\n }\n ]\n }\n ],\n \"ReadWriteTotalDisk\": 1\n },\n \"AppId\": 1,\n \"PeriodEndTime\": \"xx\",\n \"InstanceName\": \"xx\",\n \"CreateTime\": \"xx\"\n }\n ]\n }\n}",
39
+ "output": "{\n \"Response\": {\n \"Instances\": [\n {\n \"AppId\": 1252328453,\n \"AutoRenewFlag\": 0,\n \"CreateTime\": \"2021-02-25T16:08:47+08:00\",\n \"InstanceDetail\": {\n \"InstanceDeviceInfos\": [\n {\n \"FreeDevice\": [],\n \"InstanceId\": \"szjr-3-7\",\n \"ReadOnlyDevice\": [],\n \"ReadWriteDevice\": [\n {\n \"DevClass\": \"SH12\",\n \"DeviceId\": 191108504,\n \"DeviceNo\": \"\",\n \"InstanceNum\": 29,\n \"MaxDisk\": 28000,\n \"MaxMemory\": 576,\n \"RawDeviceNum\": 3,\n \"RestDisk\": 8800,\n \"RestMemory\": 248\n }\n ]\n }\n ],\n \"ReadOnlyTotalDisk\": 0,\n \"ReadOnlyTotalLeaveDisk\": 0,\n \"ReadOnlyTotalLeaveMemory\": 0,\n \"ReadOnlyTotalMemory\": 0,\n \"ReadWriteTotalDisk\": 28000,\n \"ReadWriteTotalLeaveDisk\": 8800,\n \"ReadWriteTotalLeaveMemory\": 248,\n \"ReadWriteTotalMemory\": 576,\n \"Status\": 0\n },\n \"InstanceId\": \"dbdc-qhdgwfs\",\n \"InstanceName\": \"exclust\",\n \"InstanceStatus\": 1,\n \"InstanceType\": 1,\n \"Machine\": \"SH12\",\n \"PeriodEndTime\": \"2021-09-25T16:08:47+08:00\",\n \"Pid\": 10875,\n \"Region\": \"ap-shenzhen-fsi\",\n \"Zone\": \"ap-shenzhen-fsi-3\"\n }\n ],\n \"RequestId\": \"d82b7fa2-090c-4cf6-aefe-376510cebd81\",\n \"TotalCount\": 1\n }\n}",
40
40
  "title": "请求示例DEMO"
41
41
  }
42
42
  ],
@@ -507,7 +507,7 @@
507
507
  "DescribeNotebookSessionStatementSqlResult": {
508
508
  "document": "本接口(DescribeNotebookSessionStatementSqlResult)用于获取statement运行结果。",
509
509
  "input": "DescribeNotebookSessionStatementSqlResultRequest",
510
- "name": "获取statement运行结果。",
510
+ "name": "获取statement运行结果(作用于:Spark交互式SQL任务、Notebook任务)。",
511
511
  "output": "DescribeNotebookSessionStatementSqlResultResponse",
512
512
  "status": "online"
513
513
  },
@@ -633,7 +633,7 @@
633
633
  "DescribeTaskResult": {
634
634
  "document": "查询任务结果",
635
635
  "input": "DescribeTaskResultRequest",
636
- "name": "查询任务结果",
636
+ "name": "查询任务结果(用于: SparkSQL、PrestoSQL、Spark作业任务)",
637
637
  "output": "DescribeTaskResultResponse",
638
638
  "status": "online"
639
639
  },
@@ -995,6 +995,34 @@
995
995
  "serviceShortName": "dlc"
996
996
  },
997
997
  "objects": {
998
+ "AccessInfo": {
999
+ "document": "引擎的访问信息",
1000
+ "members": [
1001
+ {
1002
+ "disabled": false,
1003
+ "document": "访问引擎的方法\n注意:此字段可能返回 null,表示取不到有效值。",
1004
+ "example": "DLCJDBC",
1005
+ "member": "string",
1006
+ "name": "AccessType",
1007
+ "output_required": false,
1008
+ "required": false,
1009
+ "type": "string",
1010
+ "value_allowed_null": true
1011
+ },
1012
+ {
1013
+ "disabled": false,
1014
+ "document": "访问引擎的url,内部的部分参数需要根据实际情况替换\n注意:此字段可能返回 null,表示取不到有效值。",
1015
+ "example": "jdbc:dlc:xxxx-xxxx",
1016
+ "member": "string",
1017
+ "name": "AccessConnectionInfos",
1018
+ "output_required": false,
1019
+ "required": false,
1020
+ "type": "list",
1021
+ "value_allowed_null": true
1022
+ }
1023
+ ],
1024
+ "usage": "both"
1025
+ },
998
1026
  "AddDMSPartitionsRequest": {
999
1027
  "document": "AddDMSPartitions请求参数结构体",
1000
1028
  "members": [
@@ -6233,6 +6261,28 @@
6233
6261
  "required": false,
6234
6262
  "type": "int",
6235
6263
  "value_allowed_null": true
6264
+ },
6265
+ {
6266
+ "disabled": false,
6267
+ "document": "引擎的访问信息\n注意:此字段可能返回 null,表示取不到有效值。",
6268
+ "example": "无",
6269
+ "member": "AccessInfo",
6270
+ "name": "AccessInfos",
6271
+ "output_required": false,
6272
+ "required": false,
6273
+ "type": "list",
6274
+ "value_allowed_null": true
6275
+ },
6276
+ {
6277
+ "disabled": false,
6278
+ "document": "引擎所在网络名称\n注意:此字段可能返回 null,表示取不到有效值。",
6279
+ "example": "default-network",
6280
+ "member": "string",
6281
+ "name": "EngineNetworkName",
6282
+ "output_required": false,
6283
+ "required": false,
6284
+ "type": "string",
6285
+ "value_allowed_null": true
6236
6286
  }
6237
6287
  ],
6238
6288
  "usage": "both"
@@ -537,7 +537,7 @@ def doCreateIndex(args, parsed_globals):
537
537
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
538
538
 
539
539
 
540
- def doStartLogstashPipelines(args, parsed_globals):
540
+ def doUpdateRequestTargetNodeTypes(args, parsed_globals):
541
541
  g_param = parse_global_arg(parsed_globals)
542
542
 
543
543
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -566,11 +566,11 @@ def doStartLogstashPipelines(args, parsed_globals):
566
566
  client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
567
567
  client._sdkVersion += ("_CLI_" + __version__)
568
568
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
569
- model = models.StartLogstashPipelinesRequest()
569
+ model = models.UpdateRequestTargetNodeTypesRequest()
570
570
  model.from_json_string(json.dumps(args))
571
571
  start_time = time.time()
572
572
  while True:
573
- rsp = client.StartLogstashPipelines(model)
573
+ rsp = client.UpdateRequestTargetNodeTypes(model)
574
574
  result = rsp.to_json_string()
575
575
  try:
576
576
  json_obj = json.loads(result)
@@ -2045,7 +2045,7 @@ def doUpdateServerlessSpace(args, parsed_globals):
2045
2045
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
2046
 
2047
2047
 
2048
- def doUpdateRequestTargetNodeTypes(args, parsed_globals):
2048
+ def doStartLogstashPipelines(args, parsed_globals):
2049
2049
  g_param = parse_global_arg(parsed_globals)
2050
2050
 
2051
2051
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2074,11 +2074,11 @@ def doUpdateRequestTargetNodeTypes(args, parsed_globals):
2074
2074
  client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
2075
2075
  client._sdkVersion += ("_CLI_" + __version__)
2076
2076
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2077
- model = models.UpdateRequestTargetNodeTypesRequest()
2077
+ model = models.StartLogstashPipelinesRequest()
2078
2078
  model.from_json_string(json.dumps(args))
2079
2079
  start_time = time.time()
2080
2080
  while True:
2081
- rsp = client.UpdateRequestTargetNodeTypes(model)
2081
+ rsp = client.StartLogstashPipelines(model)
2082
2082
  result = rsp.to_json_string()
2083
2083
  try:
2084
2084
  json_obj = json.loads(result)
@@ -2253,6 +2253,58 @@ def doDescribeLogstashInstanceLogs(args, parsed_globals):
2253
2253
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
2254
 
2255
2255
 
2256
+ def doDescribeServerlessMetrics(args, parsed_globals):
2257
+ g_param = parse_global_arg(parsed_globals)
2258
+
2259
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2260
+ cred = credential.CVMRoleCredential()
2261
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2262
+ cred = credential.STSAssumeRoleCredential(
2263
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2264
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2265
+ )
2266
+ 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):
2267
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2268
+ else:
2269
+ cred = credential.Credential(
2270
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2271
+ )
2272
+ http_profile = HttpProfile(
2273
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2274
+ reqMethod="POST",
2275
+ endpoint=g_param[OptionsDefine.Endpoint],
2276
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2277
+ )
2278
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2279
+ if g_param[OptionsDefine.Language]:
2280
+ profile.language = g_param[OptionsDefine.Language]
2281
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2282
+ client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
2283
+ client._sdkVersion += ("_CLI_" + __version__)
2284
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2285
+ model = models.DescribeServerlessMetricsRequest()
2286
+ model.from_json_string(json.dumps(args))
2287
+ start_time = time.time()
2288
+ while True:
2289
+ rsp = client.DescribeServerlessMetrics(model)
2290
+ result = rsp.to_json_string()
2291
+ try:
2292
+ json_obj = json.loads(result)
2293
+ except TypeError as e:
2294
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2295
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2296
+ break
2297
+ cur_time = time.time()
2298
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2299
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2300
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2301
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2302
+ else:
2303
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2304
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2305
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2306
+
2307
+
2256
2308
  def doRestartNodes(args, parsed_globals):
2257
2309
  g_param = parse_global_arg(parsed_globals)
2258
2310
 
@@ -2846,7 +2898,7 @@ ACTION_MAP = {
2846
2898
  "DeleteInstance": doDeleteInstance,
2847
2899
  "GetDiagnoseSettings": doGetDiagnoseSettings,
2848
2900
  "CreateIndex": doCreateIndex,
2849
- "StartLogstashPipelines": doStartLogstashPipelines,
2901
+ "UpdateRequestTargetNodeTypes": doUpdateRequestTargetNodeTypes,
2850
2902
  "UpdateDiagnoseSettings": doUpdateDiagnoseSettings,
2851
2903
  "CreateCosMigrateToServerlessInstance": doCreateCosMigrateToServerlessInstance,
2852
2904
  "UpdatePlugins": doUpdatePlugins,
@@ -2875,10 +2927,11 @@ ACTION_MAP = {
2875
2927
  "UpdateIndex": doUpdateIndex,
2876
2928
  "DescribeInstances": doDescribeInstances,
2877
2929
  "UpdateServerlessSpace": doUpdateServerlessSpace,
2878
- "UpdateRequestTargetNodeTypes": doUpdateRequestTargetNodeTypes,
2930
+ "StartLogstashPipelines": doStartLogstashPipelines,
2879
2931
  "UpgradeInstance": doUpgradeInstance,
2880
2932
  "DeleteServerlessSpaceUser": doDeleteServerlessSpaceUser,
2881
2933
  "DescribeLogstashInstanceLogs": doDescribeLogstashInstanceLogs,
2934
+ "DescribeServerlessMetrics": doDescribeServerlessMetrics,
2882
2935
  "RestartNodes": doRestartNodes,
2883
2936
  "DescribeServerlessSpaceUser": doDescribeServerlessSpaceUser,
2884
2937
  "DeleteIndex": doDeleteIndex,