tccli 3.0.1256.1__py2.py3-none-any.whl → 3.0.1258.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.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/bi/v20220105/api.json +389 -300
- tccli/services/bi/v20220105/examples.json +27 -33
- tccli/services/cdwdoris/v20211228/api.json +220 -170
- tccli/services/cdwdoris/v20211228/examples.json +36 -36
- tccli/services/cfg/v20210820/api.json +29 -0
- tccli/services/cmq/v20190304/api.json +59 -59
- tccli/services/cmq/v20190304/examples.json +3 -3
- tccli/services/cwp/cwp_client.py +0 -106
- tccli/services/cwp/v20180228/api.json +0 -405
- tccli/services/cwp/v20180228/examples.json +0 -16
- tccli/services/dbbrain/v20210527/api.json +9 -0
- tccli/services/dlc/v20210125/api.json +265 -216
- tccli/services/dlc/v20210125/examples.json +46 -52
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +118 -0
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/hunyuan/v20230901/api.json +11 -1
- tccli/services/lke/v20231130/api.json +821 -10
- tccli/services/lke/v20231130/examples.json +10 -16
- tccli/services/ocr/ocr_client.py +361 -308
- tccli/services/ocr/v20181119/api.json +176 -0
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/rum/v20210622/api.json +241 -135
- tccli/services/rum/v20210622/examples.json +31 -31
- tccli/services/scf/v20180416/api.json +2 -2
- tccli/services/ssl/ssl_client.py +61 -8
- tccli/services/ssl/v20191205/api.json +44 -0
- tccli/services/ssl/v20191205/examples.json +8 -0
- tccli/services/tccatalog/__init__.py +4 -0
- tccli/services/tccatalog/tccatalog_client.py +366 -0
- tccli/services/tccatalog/v20241024/api.json +525 -0
- tccli/services/tccatalog/v20241024/examples.json +37 -0
- tccli/services/tdmq/v20200217/api.json +3 -3
- tccli/services/tdmq/v20200217/examples.json +3 -3
- tccli/services/teo/teo_client.py +326 -8
- tccli/services/teo/v20220901/api.json +3104 -294
- tccli/services/teo/v20220901/examples.json +69 -3
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.1.dist-info}/RECORD +45 -41
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1256.1.dist-info → tccli-3.0.1258.1.dist-info}/license_files/LICENSE +0 -0
@@ -31,17 +31,17 @@
|
|
31
31
|
"example": "queue-xxxxx",
|
32
32
|
"member": "string",
|
33
33
|
"name": "DeadLetterQueue",
|
34
|
-
"
|
34
|
+
"output_required": true,
|
35
35
|
"type": "string",
|
36
36
|
"value_allowed_null": true
|
37
37
|
},
|
38
38
|
{
|
39
39
|
"disabled": false,
|
40
40
|
"document": "死信队列名字。\n注意:此字段可能返回 null,表示取不到有效值。",
|
41
|
-
"example": "
|
41
|
+
"example": "deadletterQueue",
|
42
42
|
"member": "string",
|
43
43
|
"name": "DeadLetterQueueName",
|
44
|
-
"
|
44
|
+
"output_required": true,
|
45
45
|
"type": "string",
|
46
46
|
"value_allowed_null": true
|
47
47
|
},
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"example": "300",
|
52
52
|
"member": "uint64",
|
53
53
|
"name": "MaxTimeToLive",
|
54
|
-
"
|
54
|
+
"output_required": true,
|
55
55
|
"type": "int",
|
56
56
|
"value_allowed_null": true
|
57
57
|
},
|
@@ -61,7 +61,7 @@
|
|
61
61
|
"example": "1",
|
62
62
|
"member": "uint64",
|
63
63
|
"name": "Policy",
|
64
|
-
"
|
64
|
+
"output_required": true,
|
65
65
|
"type": "int",
|
66
66
|
"value_allowed_null": true
|
67
67
|
},
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"example": "1",
|
72
72
|
"member": "uint64",
|
73
73
|
"name": "MaxReceiveCount",
|
74
|
-
"
|
74
|
+
"output_required": true,
|
75
75
|
"type": "int",
|
76
76
|
"value_allowed_null": true
|
77
77
|
}
|
@@ -87,17 +87,17 @@
|
|
87
87
|
"example": "queue-xxxxxxx",
|
88
88
|
"member": "string",
|
89
89
|
"name": "QueueId",
|
90
|
-
"
|
90
|
+
"output_required": true,
|
91
91
|
"type": "string",
|
92
92
|
"value_allowed_null": true
|
93
93
|
},
|
94
94
|
{
|
95
95
|
"disabled": false,
|
96
96
|
"document": "消息队列名字。\n注意:此字段可能返回 null,表示取不到有效值。",
|
97
|
-
"example": "
|
97
|
+
"example": "testqueue",
|
98
98
|
"member": "string",
|
99
99
|
"name": "QueueName",
|
100
|
-
"
|
100
|
+
"output_required": true,
|
101
101
|
"type": "string",
|
102
102
|
"value_allowed_null": true
|
103
103
|
}
|
@@ -128,7 +128,7 @@
|
|
128
128
|
{
|
129
129
|
"disabled": false,
|
130
130
|
"document": "精确匹配QueueName",
|
131
|
-
"example": "
|
131
|
+
"example": "testQueue",
|
132
132
|
"member": "string",
|
133
133
|
"name": "QueueName",
|
134
134
|
"required": false,
|
@@ -171,7 +171,7 @@
|
|
171
171
|
{
|
172
172
|
"disabled": false,
|
173
173
|
"document": "队列详情列表。",
|
174
|
-
"example": "
|
174
|
+
"example": "无",
|
175
175
|
"member": "QueueSet",
|
176
176
|
"name": "QueueSet",
|
177
177
|
"output_required": true,
|
@@ -193,7 +193,7 @@
|
|
193
193
|
{
|
194
194
|
"disabled": false,
|
195
195
|
"document": "标签匹配。",
|
196
|
-
"example": "
|
196
|
+
"example": "key1",
|
197
197
|
"member": "string",
|
198
198
|
"name": "TagKey",
|
199
199
|
"required": false,
|
@@ -220,7 +220,7 @@
|
|
220
220
|
{
|
221
221
|
"disabled": false,
|
222
222
|
"document": "目前只支持过滤TopicName , 且只能填一个过滤值。",
|
223
|
-
"example": "[]",
|
223
|
+
"example": "[{\"Values\":[\"testtopic\"],\"Name\":\"topicName\"}]",
|
224
224
|
"member": "Filter",
|
225
225
|
"name": "Filters",
|
226
226
|
"required": false,
|
@@ -254,7 +254,7 @@
|
|
254
254
|
{
|
255
255
|
"disabled": false,
|
256
256
|
"document": "主题详情列表。",
|
257
|
-
"example": "
|
257
|
+
"example": "无",
|
258
258
|
"member": "TopicSet",
|
259
259
|
"name": "TopicSet",
|
260
260
|
"output_required": true,
|
@@ -305,7 +305,7 @@
|
|
305
305
|
"example": "queue-xxxxxxxx",
|
306
306
|
"member": "string",
|
307
307
|
"name": "QueueId",
|
308
|
-
"
|
308
|
+
"output_required": true,
|
309
309
|
"type": "string",
|
310
310
|
"value_allowed_null": false
|
311
311
|
},
|
@@ -315,7 +315,7 @@
|
|
315
315
|
"example": "10",
|
316
316
|
"member": "uint64",
|
317
317
|
"name": "RewindSeconds",
|
318
|
-
"
|
318
|
+
"output_required": true,
|
319
319
|
"type": "int",
|
320
320
|
"value_allowed_null": true
|
321
321
|
},
|
@@ -325,7 +325,7 @@
|
|
325
325
|
"example": "100000004332",
|
326
326
|
"member": "uint64",
|
327
327
|
"name": "CreateUin",
|
328
|
-
"
|
328
|
+
"output_required": true,
|
329
329
|
"type": "int",
|
330
330
|
"value_allowed_null": true
|
331
331
|
},
|
@@ -335,7 +335,7 @@
|
|
335
335
|
"example": "1645087331",
|
336
336
|
"member": "uint64",
|
337
337
|
"name": "LastModifyTime",
|
338
|
-
"
|
338
|
+
"output_required": true,
|
339
339
|
"type": "int",
|
340
340
|
"value_allowed_null": true
|
341
341
|
},
|
@@ -345,17 +345,17 @@
|
|
345
345
|
"example": "30",
|
346
346
|
"member": "uint64",
|
347
347
|
"name": "VisibilityTimeout",
|
348
|
-
"
|
348
|
+
"output_required": true,
|
349
349
|
"type": "int",
|
350
350
|
"value_allowed_null": true
|
351
351
|
},
|
352
352
|
{
|
353
353
|
"disabled": false,
|
354
354
|
"document": "消息队列名字。",
|
355
|
-
"example": "
|
355
|
+
"example": "testqueue",
|
356
356
|
"member": "string",
|
357
357
|
"name": "QueueName",
|
358
|
-
"
|
358
|
+
"output_required": true,
|
359
359
|
"type": "string",
|
360
360
|
"value_allowed_null": false
|
361
361
|
},
|
@@ -365,7 +365,7 @@
|
|
365
365
|
"example": "false",
|
366
366
|
"member": "bool",
|
367
367
|
"name": "Trace",
|
368
|
-
"
|
368
|
+
"output_required": true,
|
369
369
|
"type": "bool",
|
370
370
|
"value_allowed_null": true
|
371
371
|
},
|
@@ -375,7 +375,7 @@
|
|
375
375
|
"example": "{\"key\":\"value\"}",
|
376
376
|
"member": "Tag",
|
377
377
|
"name": "Tags",
|
378
|
-
"
|
378
|
+
"output_required": true,
|
379
379
|
"type": "list",
|
380
380
|
"value_allowed_null": true
|
381
381
|
},
|
@@ -385,7 +385,7 @@
|
|
385
385
|
"example": "10",
|
386
386
|
"member": "uint64",
|
387
387
|
"name": "RewindMsgNum",
|
388
|
-
"
|
388
|
+
"output_required": true,
|
389
389
|
"type": "int",
|
390
390
|
"value_allowed_null": true
|
391
391
|
},
|
@@ -395,7 +395,7 @@
|
|
395
395
|
"example": "10",
|
396
396
|
"member": "uint64",
|
397
397
|
"name": "MaxDelaySeconds",
|
398
|
-
"
|
398
|
+
"output_required": true,
|
399
399
|
"type": "int",
|
400
400
|
"value_allowed_null": true
|
401
401
|
},
|
@@ -405,7 +405,7 @@
|
|
405
405
|
"example": "1",
|
406
406
|
"member": "TransactionPolicy",
|
407
407
|
"name": "TransactionPolicy",
|
408
|
-
"
|
408
|
+
"output_required": true,
|
409
409
|
"type": "object",
|
410
410
|
"value_allowed_null": true
|
411
411
|
},
|
@@ -415,7 +415,7 @@
|
|
415
415
|
"example": "60",
|
416
416
|
"member": "uint64",
|
417
417
|
"name": "MsgRetentionSeconds",
|
418
|
-
"
|
418
|
+
"output_required": true,
|
419
419
|
"type": "int",
|
420
420
|
"value_allowed_null": true
|
421
421
|
},
|
@@ -425,7 +425,7 @@
|
|
425
425
|
"example": "1",
|
426
426
|
"member": "uint64",
|
427
427
|
"name": "DelayMsgNum",
|
428
|
-
"
|
428
|
+
"output_required": true,
|
429
429
|
"type": "int",
|
430
430
|
"value_allowed_null": true
|
431
431
|
},
|
@@ -435,7 +435,7 @@
|
|
435
435
|
"example": "10000000000",
|
436
436
|
"member": "uint64",
|
437
437
|
"name": "MaxMsgHeapNum",
|
438
|
-
"
|
438
|
+
"output_required": true,
|
439
439
|
"type": "int",
|
440
440
|
"value_allowed_null": true
|
441
441
|
},
|
@@ -445,7 +445,7 @@
|
|
445
445
|
"example": "1",
|
446
446
|
"member": "uint64",
|
447
447
|
"name": "PollingWaitSeconds",
|
448
|
-
"
|
448
|
+
"output_required": true,
|
449
449
|
"type": "int",
|
450
450
|
"value_allowed_null": true
|
451
451
|
},
|
@@ -455,7 +455,7 @@
|
|
455
455
|
"example": "5000",
|
456
456
|
"member": "uint64",
|
457
457
|
"name": "Bps",
|
458
|
-
"
|
458
|
+
"output_required": true,
|
459
459
|
"type": "int",
|
460
460
|
"value_allowed_null": true
|
461
461
|
},
|
@@ -465,7 +465,7 @@
|
|
465
465
|
"example": "1",
|
466
466
|
"member": "uint64",
|
467
467
|
"name": "InactiveMsgNum",
|
468
|
-
"
|
468
|
+
"output_required": true,
|
469
469
|
"type": "int",
|
470
470
|
"value_allowed_null": true
|
471
471
|
},
|
@@ -475,7 +475,7 @@
|
|
475
475
|
"example": "1",
|
476
476
|
"member": "DeadLetterPolicy",
|
477
477
|
"name": "DeadLetterPolicy",
|
478
|
-
"
|
478
|
+
"output_required": true,
|
479
479
|
"type": "object",
|
480
480
|
"value_allowed_null": true
|
481
481
|
},
|
@@ -485,7 +485,7 @@
|
|
485
485
|
"example": "1",
|
486
486
|
"member": "uint64",
|
487
487
|
"name": "ActiveMsgNum",
|
488
|
-
"
|
488
|
+
"output_required": true,
|
489
489
|
"type": "int",
|
490
490
|
"value_allowed_null": true
|
491
491
|
},
|
@@ -495,7 +495,7 @@
|
|
495
495
|
"example": "1",
|
496
496
|
"member": "uint64",
|
497
497
|
"name": "MaxMsgSize",
|
498
|
-
"
|
498
|
+
"output_required": true,
|
499
499
|
"type": "int",
|
500
500
|
"value_allowed_null": true
|
501
501
|
},
|
@@ -505,7 +505,7 @@
|
|
505
505
|
"example": "1645087331",
|
506
506
|
"member": "uint64",
|
507
507
|
"name": "MinMsgTime",
|
508
|
-
"
|
508
|
+
"output_required": true,
|
509
509
|
"type": "int",
|
510
510
|
"value_allowed_null": true
|
511
511
|
},
|
@@ -515,7 +515,7 @@
|
|
515
515
|
"example": "1",
|
516
516
|
"member": "DeadLetterSource",
|
517
517
|
"name": "DeadLetterSource",
|
518
|
-
"
|
518
|
+
"output_required": true,
|
519
519
|
"type": "list",
|
520
520
|
"value_allowed_null": true
|
521
521
|
},
|
@@ -525,7 +525,7 @@
|
|
525
525
|
"example": "false",
|
526
526
|
"member": "bool",
|
527
527
|
"name": "Transaction",
|
528
|
-
"
|
528
|
+
"output_required": true,
|
529
529
|
"type": "bool",
|
530
530
|
"value_allowed_null": true
|
531
531
|
},
|
@@ -535,7 +535,7 @@
|
|
535
535
|
"example": "5000",
|
536
536
|
"member": "uint64",
|
537
537
|
"name": "Qps",
|
538
|
-
"
|
538
|
+
"output_required": true,
|
539
539
|
"type": "int",
|
540
540
|
"value_allowed_null": true
|
541
541
|
},
|
@@ -545,7 +545,7 @@
|
|
545
545
|
"example": "1645087331",
|
546
546
|
"member": "uint64",
|
547
547
|
"name": "CreateTime",
|
548
|
-
"
|
548
|
+
"output_required": true,
|
549
549
|
"type": "int",
|
550
550
|
"value_allowed_null": true
|
551
551
|
},
|
@@ -555,7 +555,7 @@
|
|
555
555
|
"example": "1",
|
556
556
|
"member": "int64",
|
557
557
|
"name": "Migrate",
|
558
|
-
"
|
558
|
+
"output_required": true,
|
559
559
|
"type": "int",
|
560
560
|
"value_allowed_null": true
|
561
561
|
}
|
@@ -568,20 +568,20 @@
|
|
568
568
|
{
|
569
569
|
"disabled": false,
|
570
570
|
"document": "标签Key\n注意:此字段可能返回 null,表示取不到有效值。",
|
571
|
-
"example": "
|
571
|
+
"example": "testKey",
|
572
572
|
"member": "string",
|
573
573
|
"name": "TagKey",
|
574
|
-
"
|
574
|
+
"output_required": true,
|
575
575
|
"type": "string",
|
576
576
|
"value_allowed_null": true
|
577
577
|
},
|
578
578
|
{
|
579
579
|
"disabled": false,
|
580
580
|
"document": "标签值\n注意:此字段可能返回 null,表示取不到有效值。",
|
581
|
-
"example": "
|
581
|
+
"example": "testvalue",
|
582
582
|
"member": "string",
|
583
583
|
"name": "TagValue",
|
584
|
-
"
|
584
|
+
"output_required": true,
|
585
585
|
"type": "string",
|
586
586
|
"value_allowed_null": true
|
587
587
|
}
|
@@ -597,7 +597,7 @@
|
|
597
597
|
"example": "12",
|
598
598
|
"member": "uint64",
|
599
599
|
"name": "MsgCount",
|
600
|
-
"
|
600
|
+
"output_required": true,
|
601
601
|
"type": "int",
|
602
602
|
"value_allowed_null": true
|
603
603
|
},
|
@@ -607,7 +607,7 @@
|
|
607
607
|
"example": "topic-xxxxxxxx",
|
608
608
|
"member": "string",
|
609
609
|
"name": "TopicId",
|
610
|
-
"
|
610
|
+
"output_required": true,
|
611
611
|
"type": "string",
|
612
612
|
"value_allowed_null": true
|
613
613
|
},
|
@@ -617,7 +617,7 @@
|
|
617
617
|
"example": "1024",
|
618
618
|
"member": "uint64",
|
619
619
|
"name": "MaxMsgSize",
|
620
|
-
"
|
620
|
+
"output_required": true,
|
621
621
|
"type": "int",
|
622
622
|
"value_allowed_null": true
|
623
623
|
},
|
@@ -627,7 +627,7 @@
|
|
627
627
|
"example": "0",
|
628
628
|
"member": "bool",
|
629
629
|
"name": "Trace",
|
630
|
-
"
|
630
|
+
"output_required": true,
|
631
631
|
"type": "bool",
|
632
632
|
"value_allowed_null": true
|
633
633
|
},
|
@@ -637,7 +637,7 @@
|
|
637
637
|
"example": "{\"key\":\"value\"}",
|
638
638
|
"member": "Tag",
|
639
639
|
"name": "Tags",
|
640
|
-
"
|
640
|
+
"output_required": true,
|
641
641
|
"type": "list",
|
642
642
|
"value_allowed_null": true
|
643
643
|
},
|
@@ -647,7 +647,7 @@
|
|
647
647
|
"example": "10000004321",
|
648
648
|
"member": "uint64",
|
649
649
|
"name": "CreateUin",
|
650
|
-
"
|
650
|
+
"output_required": true,
|
651
651
|
"type": "int",
|
652
652
|
"value_allowed_null": true
|
653
653
|
},
|
@@ -657,17 +657,17 @@
|
|
657
657
|
"example": "1",
|
658
658
|
"member": "uint64",
|
659
659
|
"name": "FilterType",
|
660
|
-
"
|
660
|
+
"output_required": true,
|
661
661
|
"type": "int",
|
662
662
|
"value_allowed_null": true
|
663
663
|
},
|
664
664
|
{
|
665
665
|
"disabled": false,
|
666
666
|
"document": "主题名称。\n注意:此字段可能返回 null,表示取不到有效值。",
|
667
|
-
"example": "
|
667
|
+
"example": "testTopic",
|
668
668
|
"member": "string",
|
669
669
|
"name": "TopicName",
|
670
|
-
"
|
670
|
+
"output_required": true,
|
671
671
|
"type": "string",
|
672
672
|
"value_allowed_null": true
|
673
673
|
},
|
@@ -677,7 +677,7 @@
|
|
677
677
|
"example": "1645087331",
|
678
678
|
"member": "uint64",
|
679
679
|
"name": "LastModifyTime",
|
680
|
-
"
|
680
|
+
"output_required": true,
|
681
681
|
"type": "int",
|
682
682
|
"value_allowed_null": true
|
683
683
|
},
|
@@ -687,7 +687,7 @@
|
|
687
687
|
"example": "86400",
|
688
688
|
"member": "uint64",
|
689
689
|
"name": "MsgRetentionSeconds",
|
690
|
-
"
|
690
|
+
"output_required": true,
|
691
691
|
"type": "int",
|
692
692
|
"value_allowed_null": true
|
693
693
|
},
|
@@ -697,7 +697,7 @@
|
|
697
697
|
"example": "5000",
|
698
698
|
"member": "uint64",
|
699
699
|
"name": "Qps",
|
700
|
-
"
|
700
|
+
"output_required": true,
|
701
701
|
"type": "int",
|
702
702
|
"value_allowed_null": true
|
703
703
|
},
|
@@ -707,7 +707,7 @@
|
|
707
707
|
"example": "1645087331",
|
708
708
|
"member": "uint64",
|
709
709
|
"name": "CreateTime",
|
710
|
-
"
|
710
|
+
"output_required": true,
|
711
711
|
"type": "int",
|
712
712
|
"value_allowed_null": true
|
713
713
|
},
|
@@ -717,7 +717,7 @@
|
|
717
717
|
"example": "1",
|
718
718
|
"member": "int64",
|
719
719
|
"name": "Migrate",
|
720
|
-
"
|
720
|
+
"output_required": true,
|
721
721
|
"type": "int",
|
722
722
|
"value_allowed_null": true
|
723
723
|
}
|
@@ -4,15 +4,15 @@
|
|
4
4
|
{
|
5
5
|
"document": "",
|
6
6
|
"input": "https://cmq.tencentcloudapi.com/?Action=DescribeQueueDetail\r\n&<公共请求参数>",
|
7
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 4,\n \"QueueSet\": [\n {\n \"Tags\": [],\n \"QueueId\": \"queue-kc7m75to\",\n \"QueueName\": \"
|
7
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 4,\n \"QueueSet\": [\n {\n \"Tags\": [],\n \"QueueId\": \"queue-kc7m75to\",\n \"QueueName\": \"testqueue\",\n \"CreateUin\": 20548499,\n \"Qps\": 5000,\n \"Bps\": 52428800,\n \"MaxDelaySeconds\": 3600,\n \"MaxMsgHeapNum\": 100000000,\n \"PollingWaitSeconds\": 0,\n \"MsgRetentionSeconds\": 345600,\n \"VisibilityTimeout\": 30,\n \"MaxMsgSize\": 65536,\n \"RewindSeconds\": 0,\n \"CreateTime\": 1581471003,\n \"LastModifyTime\": 1581471003,\n \"Transaction\": null,\n \"DeadLetterSource\": [],\n \"DeadLetterPolicy\": {\n \"DeadLetterQueue\": \"queue-0v0y40j4\",\n \"DeadLetterQueueName\": \"test123\",\n \"Policy\": 0,\n \"MaxReceiveCount\": 1,\n \"MaxTimeToLive\": null\n },\n \"TransactionPolicy\": null,\n \"ActiveMsgNum\": 0,\n \"InactiveMsgNum\": 0,\n \"DelayMsgNum\": 0,\n \"RewindMsgNum\": 0,\n \"MinMsgTime\": 1582015467\n },\n {\n \"Tags\": [],\n \"QueueId\": \"queue-0v0y40j4\",\n \"QueueName\": \"test123aa\",\n \"CreateUin\": 20548499,\n \"Qps\": 5000,\n \"Bps\": 52428800,\n \"MaxDelaySeconds\": 3600,\n \"MaxMsgHeapNum\": 23232323,\n \"PollingWaitSeconds\": 3,\n \"MsgRetentionSeconds\": 232323,\n \"VisibilityTimeout\": 12,\n \"MaxMsgSize\": 121223,\n \"RewindSeconds\": 0,\n \"CreateTime\": 1581412802,\n \"LastModifyTime\": 1581471003,\n \"Transaction\": null,\n \"DeadLetterSource\": [\n {\n \"QueueId\": \"queue-kc7m75to\",\n \"QueueName\": \"testawd\"\n }\n ],\n \"DeadLetterPolicy\": null,\n \"TransactionPolicy\": null,\n \"ActiveMsgNum\": 0,\n \"InactiveMsgNum\": 0,\n \"DelayMsgNum\": 0,\n \"RewindMsgNum\": 0,\n \"MinMsgTime\": 1582015467\n },\n {\n \"Tags\": [],\n \"QueueId\": \"queue-dvukxexc\",\n \"QueueName\": \"dead\",\n \"CreateUin\": 20548499,\n \"Qps\": 5000,\n \"Bps\": 52428800,\n \"MaxDelaySeconds\": 3600,\n \"MaxMsgHeapNum\": 100000000,\n \"PollingWaitSeconds\": 0,\n \"MsgRetentionSeconds\": 345600,\n \"VisibilityTimeout\": 30,\n \"MaxMsgSize\": 65536,\n \"RewindSeconds\": 0,\n \"CreateTime\": 1581418590,\n \"LastModifyTime\": 1581418590,\n \"Transaction\": null,\n \"DeadLetterSource\": [],\n \"DeadLetterPolicy\": null,\n \"TransactionPolicy\": null,\n \"ActiveMsgNum\": 0,\n \"InactiveMsgNum\": 0,\n \"DelayMsgNum\": 0,\n \"RewindMsgNum\": 0,\n \"MinMsgTime\": 1582015467\n },\n {\n \"Tags\": [],\n \"QueueId\": \"queue-cdb91yt6\",\n \"QueueName\": \"test21\",\n \"CreateUin\": 20548499,\n \"Qps\": 5000,\n \"Bps\": 52428800,\n \"MaxDelaySeconds\": 3600,\n \"MaxMsgHeapNum\": 100000000,\n \"PollingWaitSeconds\": 0,\n \"MsgRetentionSeconds\": 345600,\n \"VisibilityTimeout\": 30,\n \"MaxMsgSize\": 65536,\n \"RewindSeconds\": 0,\n \"CreateTime\": 1581413384,\n \"LastModifyTime\": 1581413384,\n \"Transaction\": null,\n \"DeadLetterSource\": [],\n \"DeadLetterPolicy\": null,\n \"TransactionPolicy\": null,\n \"ActiveMsgNum\": 0,\n \"InactiveMsgNum\": 0,\n \"DelayMsgNum\": 0,\n \"RewindMsgNum\": 0,\n \"MinMsgTime\": 1582015467\n }\n ],\n \"RequestId\": \"3f9a8b31-ac0d-4abd-8af2-e8564ceac30a\"\n }\n}",
|
8
8
|
"title": "获取队列列表"
|
9
9
|
}
|
10
10
|
],
|
11
11
|
"DescribeTopicDetail": [
|
12
12
|
{
|
13
13
|
"document": "",
|
14
|
-
"input": "POST / HTTP/1.1\nHost: cmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopicDetail\n<公共请求参数>\n\n{\n \"TagKey\": \"
|
15
|
-
"output": "{\n \"Response\": {\n \"TotalCount\":
|
14
|
+
"input": "POST / HTTP/1.1\nHost: cmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopicDetail\n<公共请求参数>\n\n{\n \"TagKey\": \"keyq\",\n \"Limit\": 1,\n \"TopicName\": \"testtopic\",\n \"Filters\": [\n {\n \"Values\": [\n \"testtopic\"\n ],\n \"Name\": \"TopicName\"\n }\n ],\n \"Offset\": 1\n}",
|
15
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"TopicSet\": [\n {\n \"Tags\": [],\n \"TopicId\": \"topic-388k6x98\",\n \"TopicName\": \"testtopic\",\n \"CreateUin\": 20548499,\n \"MsgRetentionSeconds\": 86400,\n \"MaxMsgSize\": 65536,\n \"Qps\": 5000,\n \"FilterType\": 1,\n \"CreateTime\": 1581493669,\n \"LastModifyTime\": 1581495310,\n \"MsgCount\": 0\n }\n ],\n \"RequestId\": \"68ebb46b-5eac-467a-9942-1a5da83a65ca\"\n }\n}",
|
16
16
|
"title": "查询主题详情"
|
17
17
|
}
|
18
18
|
]
|
tccli/services/cwp/cwp_client.py
CHANGED
@@ -11353,58 +11353,6 @@ def doModifyBaselinePolicy(args, parsed_globals):
|
|
11353
11353
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11354
11354
|
|
11355
11355
|
|
11356
|
-
def doDescribeAttackSourceEvents(args, parsed_globals):
|
11357
|
-
g_param = parse_global_arg(parsed_globals)
|
11358
|
-
|
11359
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
11360
|
-
cred = credential.CVMRoleCredential()
|
11361
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
11362
|
-
cred = credential.STSAssumeRoleCredential(
|
11363
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
11364
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
11365
|
-
)
|
11366
|
-
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):
|
11367
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
11368
|
-
else:
|
11369
|
-
cred = credential.Credential(
|
11370
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
11371
|
-
)
|
11372
|
-
http_profile = HttpProfile(
|
11373
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
11374
|
-
reqMethod="POST",
|
11375
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
11376
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
11377
|
-
)
|
11378
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
11379
|
-
if g_param[OptionsDefine.Language]:
|
11380
|
-
profile.language = g_param[OptionsDefine.Language]
|
11381
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
11382
|
-
client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile)
|
11383
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
11384
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
11385
|
-
model = models.DescribeAttackSourceEventsRequest()
|
11386
|
-
model.from_json_string(json.dumps(args))
|
11387
|
-
start_time = time.time()
|
11388
|
-
while True:
|
11389
|
-
rsp = client.DescribeAttackSourceEvents(model)
|
11390
|
-
result = rsp.to_json_string()
|
11391
|
-
try:
|
11392
|
-
json_obj = json.loads(result)
|
11393
|
-
except TypeError as e:
|
11394
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
11395
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
11396
|
-
break
|
11397
|
-
cur_time = time.time()
|
11398
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
11399
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
11400
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
11401
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
11402
|
-
else:
|
11403
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
11404
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
11405
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11406
|
-
|
11407
|
-
|
11408
11356
|
def doExportBaselineHostDetectList(args, parsed_globals):
|
11409
11357
|
g_param = parse_global_arg(parsed_globals)
|
11410
11358
|
|
@@ -15669,58 +15617,6 @@ def doDescribeAssetAppList(args, parsed_globals):
|
|
15669
15617
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
15670
15618
|
|
15671
15619
|
|
15672
|
-
def doDescribeAttackSource(args, parsed_globals):
|
15673
|
-
g_param = parse_global_arg(parsed_globals)
|
15674
|
-
|
15675
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
15676
|
-
cred = credential.CVMRoleCredential()
|
15677
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
15678
|
-
cred = credential.STSAssumeRoleCredential(
|
15679
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
15680
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
15681
|
-
)
|
15682
|
-
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):
|
15683
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
15684
|
-
else:
|
15685
|
-
cred = credential.Credential(
|
15686
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
15687
|
-
)
|
15688
|
-
http_profile = HttpProfile(
|
15689
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
15690
|
-
reqMethod="POST",
|
15691
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
15692
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
15693
|
-
)
|
15694
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
15695
|
-
if g_param[OptionsDefine.Language]:
|
15696
|
-
profile.language = g_param[OptionsDefine.Language]
|
15697
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
15698
|
-
client = mod.CwpClient(cred, g_param[OptionsDefine.Region], profile)
|
15699
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
15700
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
15701
|
-
model = models.DescribeAttackSourceRequest()
|
15702
|
-
model.from_json_string(json.dumps(args))
|
15703
|
-
start_time = time.time()
|
15704
|
-
while True:
|
15705
|
-
rsp = client.DescribeAttackSource(model)
|
15706
|
-
result = rsp.to_json_string()
|
15707
|
-
try:
|
15708
|
-
json_obj = json.loads(result)
|
15709
|
-
except TypeError as e:
|
15710
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
15711
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
15712
|
-
break
|
15713
|
-
cur_time = time.time()
|
15714
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
15715
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
15716
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
15717
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
15718
|
-
else:
|
15719
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
15720
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
15721
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
15722
|
-
|
15723
|
-
|
15724
15620
|
def doDescribeLogKafkaDeliverInfo(args, parsed_globals):
|
15725
15621
|
g_param = parse_global_arg(parsed_globals)
|
15726
15622
|
|
@@ -27234,7 +27130,6 @@ ACTION_MAP = {
|
|
27234
27130
|
"DescribeAttackTop": doDescribeAttackTop,
|
27235
27131
|
"DescribeBaselineStrategyDetail": doDescribeBaselineStrategyDetail,
|
27236
27132
|
"ModifyBaselinePolicy": doModifyBaselinePolicy,
|
27237
|
-
"DescribeAttackSourceEvents": doDescribeAttackSourceEvents,
|
27238
27133
|
"ExportBaselineHostDetectList": doExportBaselineHostDetectList,
|
27239
27134
|
"DeleteBaselinePolicy": doDeleteBaselinePolicy,
|
27240
27135
|
"DescribeScanTaskStatus": doDescribeScanTaskStatus,
|
@@ -27317,7 +27212,6 @@ ACTION_MAP = {
|
|
27317
27212
|
"ExportBashEvents": doExportBashEvents,
|
27318
27213
|
"DescribeIgnoreRuleEffectHostList": doDescribeIgnoreRuleEffectHostList,
|
27319
27214
|
"DescribeAssetAppList": doDescribeAssetAppList,
|
27320
|
-
"DescribeAttackSource": doDescribeAttackSource,
|
27321
27215
|
"DescribeLogKafkaDeliverInfo": doDescribeLogKafkaDeliverInfo,
|
27322
27216
|
"DescribeESAggregations": doDescribeESAggregations,
|
27323
27217
|
"CreateSearchLog": doCreateSearchLog,
|