tccli 3.0.1297.1__py2.py3-none-any.whl → 3.0.1299.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/batch/batch_client.py +4 -110
  3. tccli/services/batch/v20170312/api.json +0 -527
  4. tccli/services/batch/v20170312/examples.json +0 -16
  5. tccli/services/bi/v20220105/api.json +87 -1
  6. tccli/services/bi/v20220105/examples.json +7 -7
  7. tccli/services/cam/v20190116/api.json +84 -84
  8. tccli/services/cbs/v20170312/api.json +24 -24
  9. tccli/services/cdn/v20180606/api.json +240 -179
  10. tccli/services/cdn/v20180606/examples.json +1 -1
  11. tccli/services/cfg/v20210820/api.json +5 -3
  12. tccli/services/cfg/v20210820/examples.json +1 -1
  13. tccli/services/chdfs/v20201112/api.json +7 -1
  14. tccli/services/cls/cls_client.py +235 -23
  15. tccli/services/cls/v20201016/api.json +457 -3
  16. tccli/services/cls/v20201016/examples.json +32 -0
  17. tccli/services/controlcenter/v20230110/api.json +63 -58
  18. tccli/services/cvm/v20170312/api.json +2 -2
  19. tccli/services/dbbrain/dbbrain_client.py +106 -0
  20. tccli/services/dbbrain/v20191016/api.json +365 -6
  21. tccli/services/dbbrain/v20191016/examples.json +8 -0
  22. tccli/services/dbbrain/v20210527/api.json +550 -21
  23. tccli/services/dbbrain/v20210527/examples.json +16 -0
  24. tccli/services/dcdb/v20180411/api.json +102 -6
  25. tccli/services/dcdb/v20180411/examples.json +4 -4
  26. tccli/services/dlc/dlc_client.py +53 -0
  27. tccli/services/dlc/v20210125/api.json +162 -0
  28. tccli/services/dlc/v20210125/examples.json +8 -0
  29. tccli/services/dnspod/v20210323/api.json +128 -127
  30. tccli/services/ess/v20201111/api.json +1 -1
  31. tccli/services/essbasic/v20210526/api.json +5 -5
  32. tccli/services/facefusion/v20220927/api.json +2 -2
  33. tccli/services/facefusion/v20220927/examples.json +1 -1
  34. tccli/services/gs/v20191118/api.json +22 -3
  35. tccli/services/gs/v20191118/examples.json +1 -1
  36. tccli/services/hai/v20230812/api.json +16 -16
  37. tccli/services/iotcloud/v20210408/api.json +2 -2
  38. tccli/services/iotcloud/v20210408/examples.json +3 -3
  39. tccli/services/iotexplorer/v20190423/api.json +947 -857
  40. tccli/services/iotexplorer/v20190423/examples.json +83 -83
  41. tccli/services/live/v20180801/api.json +2 -2
  42. tccli/services/lkeap/v20240522/api.json +3 -3
  43. tccli/services/mariadb/v20170312/api.json +84 -8
  44. tccli/services/mariadb/v20170312/examples.json +3 -3
  45. tccli/services/mps/v20190612/api.json +63 -61
  46. tccli/services/mps/v20190612/examples.json +48 -48
  47. tccli/services/mqtt/v20240516/api.json +62 -12
  48. tccli/services/mqtt/v20240516/examples.json +6 -6
  49. tccli/services/ocr/ocr_client.py +307 -360
  50. tccli/services/ocr/v20181119/api.json +73 -289
  51. tccli/services/ocr/v20181119/examples.json +0 -8
  52. tccli/services/organization/v20210331/api.json +9 -0
  53. tccli/services/partners/v20180321/api.json +10 -0
  54. tccli/services/sqlserver/v20180328/api.json +9 -0
  55. tccli/services/sqlserver/v20180328/examples.json +1 -1
  56. tccli/services/tcb/v20180608/api.json +11 -1
  57. tccli/services/tdmq/v20200217/api.json +30 -0
  58. tccli/services/teo/v20220106/api.json +4 -4
  59. tccli/services/teo/v20220901/api.json +48 -7
  60. tccli/services/teo/v20220901/examples.json +51 -15
  61. tccli/services/tione/v20211111/api.json +25 -5
  62. tccli/services/tke/v20180525/api.json +2 -2
  63. tccli/services/trro/trro_client.py +269 -4
  64. tccli/services/trro/v20220325/api.json +504 -0
  65. tccli/services/trro/v20220325/examples.json +40 -0
  66. tccli/services/tse/v20201207/api.json +34 -34
  67. tccli/services/vdb/v20230616/api.json +738 -15
  68. tccli/services/vdb/v20230616/examples.json +64 -0
  69. tccli/services/vdb/vdb_client.py +428 -4
  70. tccli/services/vod/v20180717/api.json +9 -0
  71. tccli/services/vod/v20240718/api.json +985 -0
  72. tccli/services/vod/v20240718/examples.json +66 -0
  73. tccli/services/vod/vod_client.py +330 -12
  74. tccli/services/vpc/v20170312/api.json +175 -0
  75. tccli/services/vpc/v20170312/examples.json +8 -0
  76. tccli/services/vpc/vpc_client.py +53 -0
  77. tccli/services/wedata/v20210820/api.json +464 -1
  78. tccli/services/wedata/v20210820/examples.json +22 -0
  79. tccli/services/wedata/wedata_client.py +114 -8
  80. tccli/services/weilingwith/v20230427/api.json +10 -10
  81. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/METADATA +2 -2
  82. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/RECORD +85 -85
  83. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/WHEEL +0 -0
  84. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/entry_points.txt +0 -0
  85. {tccli-3.0.1297.1.dist-info → tccli-3.0.1299.1.dist-info}/license_files/LICENSE +0 -0
@@ -48,103 +48,103 @@
48
48
  "members": [
49
49
  {
50
50
  "disabled": false,
51
- "document": "账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。\n注意:此字段可能返回 null,表示取不到有效值。",
51
+ "document": "账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。",
52
52
  "example": "ACS-BP_ACCOUNT_FACTORY_RAM_USER_PASSWORD_POLICY",
53
53
  "member": "string",
54
54
  "name": "Identifier",
55
55
  "output_required": true,
56
56
  "type": "string",
57
- "value_allowed_null": true
57
+ "value_allowed_null": false
58
58
  },
59
59
  {
60
60
  "disabled": false,
61
- "document": "基线项名称,功能项名字唯一,仅支持英文字母、数宇、汉字、符号@、&_[]-的组合,1-25个中文或英文字符。\n注意:此字段可能返回 null,表示取不到有效值。",
61
+ "document": "基线项名称,功能项名字唯一,仅支持英文字母、数宇、汉字、符号@、&_[]-的组合,1-25个中文或英文字符。",
62
62
  "example": "账号联系人",
63
63
  "member": "string",
64
64
  "name": "Name",
65
65
  "output_required": true,
66
66
  "type": "string",
67
- "value_allowed_null": true
67
+ "value_allowed_null": false
68
68
  },
69
69
  {
70
70
  "disabled": false,
71
- "document": "基线项英文名称,基线项名字唯一,仅支持英文字母、数字、空格、符号@、&_[]-的组合,1-64个英文字符。\n注意:此字段可能返回 null,表示取不到有效值。",
71
+ "document": "基线项英文名称,基线项名字唯一,仅支持英文字母、数字、空格、符号@、&_[]-的组合,1-64个英文字符。",
72
72
  "example": "protection rules",
73
73
  "member": "string",
74
74
  "name": "NameEn",
75
75
  "output_required": false,
76
76
  "type": "string",
77
- "value_allowed_null": true
77
+ "value_allowed_null": false
78
78
  },
79
79
  {
80
80
  "disabled": false,
81
- "document": "基线项权重,数值小权重越高,取值范围大于等于0。\n注意:此字段可能返回 null,表示取不到有效值。",
81
+ "document": "基线项权重,数值小权重越高,取值范围大于等于0",
82
82
  "example": "1",
83
83
  "member": "int64",
84
84
  "name": "Weight",
85
85
  "output_required": true,
86
86
  "type": "int",
87
- "value_allowed_null": true
87
+ "value_allowed_null": false
88
88
  },
89
89
  {
90
90
  "disabled": false,
91
- "document": "基线项是否必填,1必填,0非必填\n注意:此字段可能返回 null,表示取不到有效值。",
91
+ "document": "基线项是否必填,1必填,0非必填",
92
92
  "example": "1",
93
93
  "member": "int64",
94
94
  "name": "Required",
95
95
  "output_required": true,
96
96
  "type": "int",
97
- "value_allowed_null": true
97
+ "value_allowed_null": false
98
98
  },
99
99
  {
100
100
  "disabled": false,
101
- "document": "基线项依赖项,N的取值范围与该基线项依赖的其它基线项个数有关。\n注意:此字段可能返回 null,表示取不到有效值。",
101
+ "document": "基线项依赖项,N的取值范围与该基线项依赖的其它基线项个数有关。",
102
102
  "example": "[{\"Identifier\":\"ACS-BP_GUARDRAILS\",\"Type\":\"LandingZoneItem\"},{\"Identifier\":\"ACS-BP_CLOUDSSO\",\"Type\":\"LandingZoneItem\"}]",
103
103
  "member": "DependsOnItem",
104
104
  "name": "DependsOn",
105
105
  "output_required": true,
106
106
  "type": "list",
107
- "value_allowed_null": true
107
+ "value_allowed_null": false
108
108
  },
109
109
  {
110
110
  "disabled": false,
111
- "document": "基线描述,长度为2~256个英文或中文字符,默认值为空。\n注意:此字段可能返回 null,表示取不到有效值。",
111
+ "document": "基线描述,长度为2~256个英文或中文字符,默认值为空。",
112
112
  "example": "为新账号设置联系人,以配置消息通知。",
113
113
  "member": "string",
114
114
  "name": "Description",
115
115
  "output_required": true,
116
116
  "type": "string",
117
- "value_allowed_null": true
117
+ "value_allowed_null": false
118
118
  },
119
119
  {
120
120
  "disabled": false,
121
- "document": "基线项英文描述,长度为2~1024个英文字符,默认值为空。\n注意:此字段可能返回 null,表示取不到有效值。",
121
+ "document": "基线项英文描述,长度为2~1024个英文字符,默认值为空。",
122
122
  "example": "Add contacts for new accounts to receive notifications. ",
123
123
  "member": "string",
124
124
  "name": "DescriptionEn",
125
125
  "output_required": false,
126
126
  "type": "string",
127
- "value_allowed_null": true
127
+ "value_allowed_null": false
128
128
  },
129
129
  {
130
130
  "disabled": false,
131
- "document": "基线分类,长度为2~32个英文或中文字符,不能为空。\n注意:此字段可能返回 null,表示取不到有效值。",
131
+ "document": "基线分类,长度为2~32个英文或中文字符,不能为空。",
132
132
  "example": "权限",
133
133
  "member": "string",
134
134
  "name": "Classify",
135
135
  "output_required": true,
136
136
  "type": "string",
137
- "value_allowed_null": true
137
+ "value_allowed_null": false
138
138
  },
139
139
  {
140
140
  "disabled": false,
141
- "document": "基线英文分类,长度为2~64个英文字符,不能为空。\n注意:此字段可能返回 null,表示取不到有效值。",
141
+ "document": "基线英文分类,长度为2~64个英文字符,不能为空。",
142
142
  "example": "permissions",
143
143
  "member": "string",
144
144
  "name": "ClassifyEn",
145
145
  "output_required": false,
146
146
  "type": "string",
147
- "value_allowed_null": true
147
+ "value_allowed_null": false
148
148
  }
149
149
  ],
150
150
  "usage": "out"
@@ -182,33 +182,36 @@
182
182
  "members": [
183
183
  {
184
184
  "disabled": false,
185
- "document": "账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。\n注意:此字段可能返回 null,表示取不到有效值。",
185
+ "document": "账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。",
186
186
  "example": "ACS-BP_ACCOUNT_FACTORY_ACCOUNT_CONTACT",
187
187
  "member": "string",
188
188
  "name": "Identifier",
189
+ "output_required": true,
189
190
  "required": false,
190
191
  "type": "string",
191
- "value_allowed_null": true
192
+ "value_allowed_null": false
192
193
  },
193
194
  {
194
195
  "disabled": false,
195
- "document": "账号工厂基线项配置,不同的基线项配置参数不同。\n注意:此字段可能返回 null,表示取不到有效值。",
196
+ "document": "账号工厂基线项配置,不同的基线项配置参数不同。",
196
197
  "example": "{\\\"Contacts\\\":[{\\\"Name\\\":\\\"dest\\\",\\\"Email\\\":\\\"ia@22.com\\\",\\\"Mobile\\\":\\\"12345678910\\\",\\\"Position\\\":\\\"Technical Director\\\"}]}",
197
198
  "member": "string",
198
199
  "name": "Configuration",
200
+ "output_required": true,
199
201
  "required": false,
200
202
  "type": "string",
201
- "value_allowed_null": true
203
+ "value_allowed_null": false
202
204
  },
203
205
  {
204
206
  "disabled": false,
205
- "document": "基线应用的账号数量。\n注意:此字段可能返回 null,表示取不到有效值。",
207
+ "document": "基线应用的账号数量。",
206
208
  "example": "4",
207
209
  "member": "int64",
208
210
  "name": "ApplyCount",
211
+ "output_required": true,
209
212
  "required": false,
210
213
  "type": "int",
211
- "value_allowed_null": true
214
+ "value_allowed_null": false
212
215
  }
213
216
  ],
214
217
  "usage": "both"
@@ -218,93 +221,93 @@
218
221
  "members": [
219
222
  {
220
223
  "disabled": false,
221
- "document": "任务唯一Id,只能包含英文字母、数字,是16个字符的随机字符串。\n注意:此字段可能返回 null,表示取不到有效值。",
224
+ "document": "任务唯一Id,只能包含英文字母、数字,是16个字符的随机字符串。",
222
225
  "example": "m7r1xzlef7lp71bo",
223
226
  "member": "string",
224
227
  "name": "TaskId",
225
228
  "output_required": true,
226
229
  "type": "string",
227
- "value_allowed_null": true
230
+ "value_allowed_null": false
228
231
  },
229
232
  {
230
233
  "disabled": false,
231
- "document": "基线功能项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。\n注意:此字段可能返回 null,表示取不到有效值。",
234
+ "document": "基线功能项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。",
232
235
  "example": "TCC-AF_CAM_USER_PASSWORD_POLICY",
233
236
  "member": "string",
234
237
  "name": "Identifier",
235
238
  "output_required": true,
236
239
  "type": "string",
237
- "value_allowed_null": true
240
+ "value_allowed_null": false
238
241
  },
239
242
  {
240
243
  "disabled": false,
241
- "document": "被应用基线项的成员账号uin\n注意:此字段可能返回 null,表示取不到有效值。",
244
+ "document": "被应用基线项的成员账号uin",
242
245
  "example": "14235424532",
243
246
  "member": "int64",
244
247
  "name": "MemberUin",
245
248
  "output_required": true,
246
249
  "type": "int",
247
- "value_allowed_null": true
250
+ "value_allowed_null": false
248
251
  },
249
252
  {
250
253
  "disabled": false,
251
- "document": "基线项应用的状态,Running表示基线项应用中,Success表示基线项应用成功,Failed表示基线项应用失败,Pending表示基线项待应用,Skipped表示基线项被跳过\n注意:此字段可能返回 null,表示取不到有效值。",
254
+ "document": "基线项应用的状态,Running表示基线项应用中,Success表示基线项应用成功,Failed表示基线项应用失败,Pending表示基线项待应用,Skipped表示基线项被跳过",
252
255
  "example": "Running",
253
256
  "member": "string",
254
257
  "name": "Status",
255
258
  "output_required": true,
256
259
  "type": "string",
257
- "value_allowed_null": true
260
+ "value_allowed_null": false
258
261
  },
259
262
  {
260
263
  "disabled": false,
261
- "document": "错误码\n注意:此字段可能返回 null,表示取不到有效值。",
264
+ "document": "错误码",
262
265
  "example": "InternalError",
263
266
  "member": "string",
264
267
  "name": "ErrCode",
265
268
  "output_required": true,
266
269
  "type": "string",
267
- "value_allowed_null": true
270
+ "value_allowed_null": false
268
271
  },
269
272
  {
270
273
  "disabled": false,
271
- "document": "错误信息\n注意:此字段可能返回 null,表示取不到有效值。",
274
+ "document": "错误信息",
272
275
  "example": "landing zone is not exist",
273
276
  "member": "string",
274
277
  "name": "ErrMessage",
275
278
  "output_required": true,
276
279
  "type": "string",
277
- "value_allowed_null": true
280
+ "value_allowed_null": false
278
281
  },
279
282
  {
280
283
  "disabled": false,
281
- "document": "基线项部署输出\n注意:此字段可能返回 null,表示取不到有效值。",
284
+ "document": "基线项部署输出",
282
285
  "example": "[{\"Code\":\"OK\",\"Msg\":\"OK\"},{\"Code\":\"OK\",\"Msg\":\"OK\"}]",
283
286
  "member": "string",
284
287
  "name": "Output",
285
288
  "output_required": true,
286
289
  "type": "string",
287
- "value_allowed_null": true
290
+ "value_allowed_null": false
288
291
  },
289
292
  {
290
293
  "disabled": false,
291
- "document": "创建时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss。\n注意:此字段可能返回 null,表示取不到有效值。",
294
+ "document": "创建时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss",
292
295
  "example": "2022-08-18 12:00:00",
293
296
  "member": "string",
294
297
  "name": "CreateTime",
295
298
  "output_required": true,
296
299
  "type": "string",
297
- "value_allowed_null": true
300
+ "value_allowed_null": false
298
301
  },
299
302
  {
300
303
  "disabled": false,
301
- "document": "更新时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss。\n注意:此字段可能返回 null,表示取不到有效值。",
304
+ "document": "更新时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss",
302
305
  "example": "2022-08-18 12:00:00",
303
306
  "member": "string",
304
307
  "name": "UpdateTime",
305
308
  "output_required": true,
306
309
  "type": "string",
307
- "value_allowed_null": true
310
+ "value_allowed_null": false
308
311
  }
309
312
  ],
310
313
  "usage": "out"
@@ -350,23 +353,25 @@
350
353
  "members": [
351
354
  {
352
355
  "disabled": false,
353
- "document": "依赖项类型,只有LandingZoneSetUp或AccountFactorySetUp。LandingZoneSetUp表示landingZone的依赖项;AccountFactorySetUp表示账号工厂的依赖项\n注意:此字段可能返回 null,表示取不到有效值。",
356
+ "document": "依赖项类型,只有LandingZoneSetUp或AccountFactorySetUp。LandingZoneSetUp表示landingZone的依赖项;AccountFactorySetUp表示账号工厂的依赖项",
354
357
  "example": "LandingZoneItem",
355
358
  "member": "string",
356
359
  "name": "Type",
360
+ "output_required": true,
357
361
  "required": false,
358
362
  "type": "string",
359
- "value_allowed_null": true
363
+ "value_allowed_null": false
360
364
  },
361
365
  {
362
366
  "disabled": false,
363
- "document": "功能项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。\n注意:此字段可能返回 null,表示取不到有效值。",
367
+ "document": "功能项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。",
364
368
  "example": "ACS-BP_GUARDRAILS",
365
369
  "member": "string",
366
370
  "name": "Identifier",
371
+ "output_required": true,
367
372
  "required": false,
368
373
  "type": "string",
369
- "value_allowed_null": true
374
+ "value_allowed_null": false
370
375
  }
371
376
  ],
372
377
  "usage": "both"
@@ -381,53 +386,53 @@
381
386
  "members": [
382
387
  {
383
388
  "disabled": false,
384
- "document": "资源所属主账号uin。\n注意:此字段可能返回 null,表示取不到有效值。",
389
+ "document": "资源所属主账号uin",
385
390
  "example": "100000000001",
386
391
  "member": "int64",
387
392
  "name": "OwnerUin",
388
393
  "output_required": true,
389
394
  "type": "int",
390
- "value_allowed_null": true
395
+ "value_allowed_null": false
391
396
  },
392
397
  {
393
398
  "disabled": false,
394
- "document": "基线项名称,基线项名字唯一,仅支持英文字母、数宇、汉字、符号@、&_[]-的组合,1-25个中文或英文字符。\n注意:此字段可能返回 null,表示取不到有效值。",
399
+ "document": "基线项名称,基线项名字唯一,仅支持英文字母、数宇、汉字、符号@、&_[]-的组合,1-25个中文或英文字符。",
395
400
  "example": "default",
396
401
  "member": "string",
397
402
  "name": "Name",
398
403
  "output_required": true,
399
404
  "type": "string",
400
- "value_allowed_null": true
405
+ "value_allowed_null": false
401
406
  },
402
407
  {
403
408
  "disabled": false,
404
- "document": "基线项配置列表。\n注意:此字段可能返回 null,表示取不到有效值。",
409
+ "document": "基线项配置列表。",
405
410
  "example": "[{\"Identifier\":\"ACS-BP_ACCOUNT_FACTORY_ACCOUNT_CONTACT\",\"Configuration\":\"{\\\"Contacts\\\":[{\\\"Name\\\":\\\"dest\\\",\\\"Email\\\":\\\"ia@22.com\\\",\\\"Mobile\\\":\\\"12345678910\\\",\\\"Position\\\":\\\"Technical Director\\\"}]}\",\"ApplyCount\":5}]",
406
411
  "member": "BaselineInfoItem",
407
412
  "name": "BaselineConfigItems",
408
413
  "output_required": true,
409
414
  "type": "list",
410
- "value_allowed_null": true
415
+ "value_allowed_null": false
411
416
  },
412
417
  {
413
418
  "disabled": false,
414
- "document": "创建时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss。\n注意:此字段可能返回 null,表示取不到有效值。",
419
+ "document": "创建时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss",
415
420
  "example": "2022-08-18 12:00:00",
416
421
  "member": "string",
417
422
  "name": "CreateTime",
418
423
  "output_required": true,
419
424
  "type": "string",
420
- "value_allowed_null": true
425
+ "value_allowed_null": false
421
426
  },
422
427
  {
423
428
  "disabled": false,
424
- "document": "更新时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss。\n注意:此字段可能返回 null,表示取不到有效值。",
429
+ "document": "更新时间,按照ISO8601标准表示,格式为yyyy-MM-dd hh:mm:ss",
425
430
  "example": "2022-08-18 12:00:00",
426
431
  "member": "string",
427
432
  "name": "UpdateTime",
428
433
  "output_required": true,
429
434
  "type": "string",
430
- "value_allowed_null": true
435
+ "value_allowed_null": false
431
436
  },
432
437
  {
433
438
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -407,7 +407,7 @@
407
407
  "status": "online"
408
408
  },
409
409
  "ImportKeyPair": {
410
- "document": "本接口 (ImportKeyPair) 用于导入密钥对。\n\n* 本接口的功能是将密钥对导入到用户账户,并不会自动绑定到实例。如需绑定可以使用[AssociasteInstancesKeyPair](https://cloud.tencent.com/document/api/213/9404)接口。\n* 需指定密钥对名称以及该密钥对的公钥文本。\n* 如果用户只有私钥,可以通过 `SSL` 工具将私钥转换成公钥后再导入。",
410
+ "document": "本接口 (ImportKeyPair) 用于导入密钥对。\n\n* 本接口的功能是将密钥对导入到用户账户,并不会自动绑定到实例。如需绑定可以使用[AssociateInstancesKeyPairs](https://cloud.tencent.com/document/product/213/15698)接口。\n* 需指定密钥对名称以及该密钥对的公钥文本。\n* 如果用户只有私钥,可以通过 `SSL` 工具将私钥转换成公钥后再导入。",
411
411
  "input": "ImportKeyPairRequest",
412
412
  "name": "导入密钥对",
413
413
  "output": "ImportKeyPairResponse",
@@ -6370,7 +6370,7 @@
6370
6370
  },
6371
6371
  {
6372
6372
  "disabled": false,
6373
- "document": "密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br><br>可以通过以下方式获取项目ID:<br><li>通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。<br><li>通过调用接口 [DescribeProject](https://cloud.tencent.com/document/api/378/4400),取返回信息中的 `projectId ` 获取项目ID。\n\n如果是默认项目,直接填0就可以。",
6373
+ "document": "密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br>可以通过以下方式获取项目ID:<li>通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。</li><li>通过调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的 `projectId ` 获取项目ID。</li>如果是默认项目,直接填0就可以。",
6374
6374
  "example": "0",
6375
6375
  "member": "int64",
6376
6376
  "name": "ProjectId",
@@ -3139,6 +3139,58 @@ def doCancelDBAutonomyAction(args, parsed_globals):
3139
3139
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3140
3140
 
3141
3141
 
3142
+ def doDescribeRedisSlowLogTopSqls(args, parsed_globals):
3143
+ g_param = parse_global_arg(parsed_globals)
3144
+
3145
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3146
+ cred = credential.CVMRoleCredential()
3147
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3148
+ cred = credential.STSAssumeRoleCredential(
3149
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3150
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3151
+ )
3152
+ 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):
3153
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3154
+ else:
3155
+ cred = credential.Credential(
3156
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3157
+ )
3158
+ http_profile = HttpProfile(
3159
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3160
+ reqMethod="POST",
3161
+ endpoint=g_param[OptionsDefine.Endpoint],
3162
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3163
+ )
3164
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3165
+ if g_param[OptionsDefine.Language]:
3166
+ profile.language = g_param[OptionsDefine.Language]
3167
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3168
+ client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
3169
+ client._sdkVersion += ("_CLI_" + __version__)
3170
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3171
+ model = models.DescribeRedisSlowLogTopSqlsRequest()
3172
+ model.from_json_string(json.dumps(args))
3173
+ start_time = time.time()
3174
+ while True:
3175
+ rsp = client.DescribeRedisSlowLogTopSqls(model)
3176
+ result = rsp.to_json_string()
3177
+ try:
3178
+ json_obj = json.loads(result)
3179
+ except TypeError as e:
3180
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3181
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3182
+ break
3183
+ cur_time = time.time()
3184
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3185
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3186
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3187
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3188
+ else:
3189
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3190
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3191
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3192
+
3193
+
3142
3194
  def doCreateKillTask(args, parsed_globals):
3143
3195
  g_param = parse_global_arg(parsed_globals)
3144
3196
 
@@ -3919,6 +3971,58 @@ def doDescribeAlarmTemplate(args, parsed_globals):
3919
3971
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3920
3972
 
3921
3973
 
3974
+ def doDescribeSlowLogQueryTimeStats(args, parsed_globals):
3975
+ g_param = parse_global_arg(parsed_globals)
3976
+
3977
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3978
+ cred = credential.CVMRoleCredential()
3979
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3980
+ cred = credential.STSAssumeRoleCredential(
3981
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3982
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3983
+ )
3984
+ 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):
3985
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3986
+ else:
3987
+ cred = credential.Credential(
3988
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3989
+ )
3990
+ http_profile = HttpProfile(
3991
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3992
+ reqMethod="POST",
3993
+ endpoint=g_param[OptionsDefine.Endpoint],
3994
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3995
+ )
3996
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3997
+ if g_param[OptionsDefine.Language]:
3998
+ profile.language = g_param[OptionsDefine.Language]
3999
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4000
+ client = mod.DbbrainClient(cred, g_param[OptionsDefine.Region], profile)
4001
+ client._sdkVersion += ("_CLI_" + __version__)
4002
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4003
+ model = models.DescribeSlowLogQueryTimeStatsRequest()
4004
+ model.from_json_string(json.dumps(args))
4005
+ start_time = time.time()
4006
+ while True:
4007
+ rsp = client.DescribeSlowLogQueryTimeStats(model)
4008
+ result = rsp.to_json_string()
4009
+ try:
4010
+ json_obj = json.loads(result)
4011
+ except TypeError as e:
4012
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4013
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4014
+ break
4015
+ cur_time = time.time()
4016
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4017
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4018
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4019
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4020
+ else:
4021
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4022
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4023
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4024
+
4025
+
3922
4026
  CLIENT_MAP = {
3923
4027
  "v20210527": dbbrain_client_v20210527,
3924
4028
  "v20191016": dbbrain_client_v20191016,
@@ -3992,6 +4096,7 @@ ACTION_MAP = {
3992
4096
  "DescribeIndexRecommendAggregationSlowLogs": doDescribeIndexRecommendAggregationSlowLogs,
3993
4097
  "ModifyDiagDBInstanceConf": doModifyDiagDBInstanceConf,
3994
4098
  "CancelDBAutonomyAction": doCancelDBAutonomyAction,
4099
+ "DescribeRedisSlowLogTopSqls": doDescribeRedisSlowLogTopSqls,
3995
4100
  "CreateKillTask": doCreateKillTask,
3996
4101
  "UpdateAgentSwitch": doUpdateAgentSwitch,
3997
4102
  "UpdateMonitorSwitch": doUpdateMonitorSwitch,
@@ -4007,6 +4112,7 @@ ACTION_MAP = {
4007
4112
  "DescribeProxySessionKillTasks": doDescribeProxySessionKillTasks,
4008
4113
  "ModifyUserAutonomyProfile": doModifyUserAutonomyProfile,
4009
4114
  "DescribeAlarmTemplate": doDescribeAlarmTemplate,
4115
+ "DescribeSlowLogQueryTimeStats": doDescribeSlowLogQueryTimeStats,
4010
4116
 
4011
4117
  }
4012
4118