tccli 3.0.922.1__py2.py3-none-any.whl → 3.0.924.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 (110) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/apigateway/v20180808/DescribeServicesStatus.md +33 -19
  3. tccli/examples/cdb/v20170320/CreateDBInstance.md +2 -2
  4. tccli/examples/ckafka/v20190819/CreateAcl.md +4 -1
  5. tccli/examples/clb/v20180317/CloneLoadBalancer.md +3 -3
  6. tccli/examples/clb/v20180317/DescribeListeners.md +49 -127
  7. tccli/examples/clb/v20180317/DescribeLoadBalancers.md +578 -158
  8. tccli/examples/cls/v20201016/CreateScheduledSql.md +13 -11
  9. tccli/examples/cls/v20201016/DeleteScheduledSql.md +2 -2
  10. tccli/examples/cls/v20201016/DescribeConfigs.md +2 -1
  11. tccli/examples/cls/v20201016/DescribeKafkaConsumer.md +23 -0
  12. tccli/examples/cls/v20201016/DescribeScheduledSqlInfo.md +22 -19
  13. tccli/examples/cls/v20201016/ModifyKafkaConsumer.md +21 -0
  14. tccli/examples/cls/v20201016/ModifyScheduledSql.md +11 -9
  15. tccli/examples/cynosdb/v20190107/DescribeAccounts.md +10 -10
  16. tccli/examples/cynosdb/v20190107/DescribeClusterDetail.md +77 -65
  17. tccli/examples/ess/v20201111/CancelUserAutoSignEnableUrl.md +1 -1
  18. tccli/examples/ess/v20201111/CreateBatchCancelFlowUrl.md +5 -4
  19. tccli/examples/ess/v20201111/CreateUserAutoSignEnableUrl.md +2 -2
  20. tccli/examples/ess/v20201111/DescribeFlowBriefs.md +6 -2
  21. tccli/examples/ess/v20201111/DescribeFlowEvidenceReport.md +1 -1
  22. tccli/examples/ess/v20201111/DescribeFlowInfo.md +24 -38
  23. tccli/examples/ess/v20201111/DescribeUserAutoSignStatus.md +1 -1
  24. tccli/examples/ess/v20201111/GetTaskResultApi.md +2 -2
  25. tccli/examples/essbasic/v20210526/ChannelBatchCancelFlows.md +5 -5
  26. tccli/examples/essbasic/v20210526/ChannelCreateBatchCancelFlowUrl.md +10 -8
  27. tccli/examples/essbasic/v20210526/ChannelCreateFlowSignUrl.md +9 -8
  28. tccli/examples/essbasic/v20210526/ChannelCreateWebThemeConfig.md +7 -6
  29. tccli/examples/essbasic/v20210526/DescribeFlowDetailInfo.md +19 -30
  30. tccli/examples/essbasic/v20210526/DescribeTemplates.md +13 -4
  31. tccli/examples/essbasic/v20210526/OperateChannelTemplate.md +2 -2
  32. tccli/examples/lcic/v20220817/DescribeRoom.md +2 -0
  33. tccli/examples/mna/v20210119/GetDevices.md +9 -16
  34. tccli/examples/mna/v20210119/UpdateDevice.md +7 -10
  35. tccli/examples/ms/v20180408/CreateEncryptInstance.md +30 -30
  36. tccli/examples/ms/v20180408/CreateOrderInstance.md +2 -2
  37. tccli/examples/ms/v20180408/DescribeEncryptInstances.md +73 -65
  38. tccli/examples/ms/v20180408/DescribeEncryptPlan.md +34 -34
  39. tccli/examples/ms/v20180408/DescribeOrderInstances.md +1 -1
  40. tccli/examples/oceanus/v20190422/CreateJobConfig.md +1 -1
  41. tccli/examples/tdmq/v20200217/CreateRocketMQVipInstance.md +28 -0
  42. tccli/examples/tione/v20211111/CreateNotebook.md +62 -0
  43. tccli/examples/tione/v20211111/CreateNotebookImage.md +18 -0
  44. tccli/examples/tione/v20211111/DeleteNotebook.md +20 -0
  45. tccli/examples/tione/v20211111/DeleteNotebookImageRecord.md +18 -0
  46. tccli/examples/tione/v20211111/DescribeNotebook.md +70 -0
  47. tccli/examples/tione/v20211111/DescribeNotebookImageKernels.md +23 -0
  48. tccli/examples/tione/v20211111/DescribeNotebookImageRecords.md +28 -0
  49. tccli/examples/tione/v20211111/DescribeNotebooks.md +77 -0
  50. tccli/examples/tione/v20211111/ModifyNotebook.md +64 -0
  51. tccli/examples/tione/v20211111/ModifyNotebookTags.md +22 -0
  52. tccli/examples/tione/v20211111/StartNotebook.md +20 -0
  53. tccli/examples/tione/v20211111/StopCreatingImage.md +18 -0
  54. tccli/examples/tione/v20211111/StopNotebook.md +20 -0
  55. tccli/examples/vpc/v20170312/CreateVpnGateway.md +20 -26
  56. tccli/examples/waf/v20180125/GetAttackHistogram.md +142 -0
  57. tccli/services/apigateway/v20180808/api.json +119 -12
  58. tccli/services/apigateway/v20180808/examples.json +4 -4
  59. tccli/services/asr/v20190614/api.json +1 -1
  60. tccli/services/cdb/v20170320/api.json +101 -90
  61. tccli/services/cdb/v20170320/examples.json +2 -2
  62. tccli/services/cdn/v20180606/api.json +59 -6
  63. tccli/services/ckafka/v20190819/api.json +10 -10
  64. tccli/services/ckafka/v20190819/examples.json +1 -1
  65. tccli/services/clb/v20180317/api.json +221 -68
  66. tccli/services/clb/v20180317/examples.json +10 -10
  67. tccli/services/cls/cls_client.py +110 -4
  68. tccli/services/cls/v20201016/api.json +330 -115
  69. tccli/services/cls/v20201016/examples.json +23 -7
  70. tccli/services/cynosdb/v20190107/api.json +82 -31
  71. tccli/services/cynosdb/v20190107/examples.json +3 -3
  72. tccli/services/dlc/v20210125/api.json +11 -11
  73. tccli/services/emr/v20190103/api.json +10 -0
  74. tccli/services/ess/v20201111/api.json +519 -142
  75. tccli/services/ess/v20201111/examples.json +9 -9
  76. tccli/services/essbasic/v20210526/api.json +195 -126
  77. tccli/services/essbasic/v20210526/examples.json +13 -13
  78. tccli/services/faceid/v20180301/api.json +21 -16
  79. tccli/services/lcic/v20220817/api.json +10 -0
  80. tccli/services/lcic/v20220817/examples.json +2 -2
  81. tccli/services/live/v20180801/api.json +42 -22
  82. tccli/services/mna/v20210119/api.json +11 -12
  83. tccli/services/mna/v20210119/examples.json +4 -4
  84. tccli/services/mps/v20190612/api.json +142 -61
  85. tccli/services/ms/v20180408/api.json +92 -19
  86. tccli/services/ms/v20180408/examples.json +31 -31
  87. tccli/services/nlp/v20190408/api.json +2 -1
  88. tccli/services/oceanus/v20190422/api.json +355 -41
  89. tccli/services/oceanus/v20190422/examples.json +1 -1
  90. tccli/services/ocr/ocr_client.py +4 -110
  91. tccli/services/ocr/v20181119/api.json +0 -315
  92. tccli/services/ocr/v20181119/examples.json +0 -16
  93. tccli/services/tdmq/tdmq_client.py +53 -0
  94. tccli/services/tdmq/v20200217/api.json +126 -0
  95. tccli/services/tdmq/v20200217/examples.json +8 -0
  96. tccli/services/teo/v20220901/api.json +18 -18
  97. tccli/services/tione/tione_client.py +987 -298
  98. tccli/services/tione/v20211111/api.json +1784 -20
  99. tccli/services/tione/v20211111/examples.json +104 -0
  100. tccli/services/tts/v20190823/api.json +1 -1
  101. tccli/services/vpc/v20170312/api.json +45 -65
  102. tccli/services/vpc/v20170312/examples.json +3 -3
  103. tccli/services/waf/v20180125/api.json +111 -0
  104. tccli/services/waf/v20180125/examples.json +8 -0
  105. tccli/services/waf/waf_client.py +57 -4
  106. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/METADATA +2 -2
  107. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/RECORD +110 -93
  108. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/WHEEL +0 -0
  109. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/entry_points.txt +0 -0
  110. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/license_files/LICENSE +0 -0
@@ -266,6 +266,13 @@
266
266
  "output": "GetAttackDownloadRecordsResponse",
267
267
  "status": "online"
268
268
  },
269
+ "GetAttackHistogram": {
270
+ "document": "生成攻击日志的产生时间柱状图",
271
+ "input": "GetAttackHistogramRequest",
272
+ "name": "攻击日志统计",
273
+ "output": "GetAttackHistogramResponse",
274
+ "status": "online"
275
+ },
269
276
  "ModifyAccessPeriod": {
270
277
  "document": "本接口用于修改访问日志保存期限及大字段是否存储",
271
278
  "input": "ModifyAccessPeriodRequest",
@@ -5189,6 +5196,84 @@
5189
5196
  ],
5190
5197
  "type": "object"
5191
5198
  },
5199
+ "GetAttackHistogramRequest": {
5200
+ "document": "GetAttackHistogram请求参数结构体",
5201
+ "members": [
5202
+ {
5203
+ "default": "",
5204
+ "disabled": false,
5205
+ "document": "查询的域名,所有域名使用all",
5206
+ "member": "string",
5207
+ "name": "Domain",
5208
+ "required": true,
5209
+ "type": "string"
5210
+ },
5211
+ {
5212
+ "default": "",
5213
+ "disabled": false,
5214
+ "document": "查询起始时间",
5215
+ "member": "datetime",
5216
+ "name": "StartTime",
5217
+ "required": true,
5218
+ "type": "string"
5219
+ },
5220
+ {
5221
+ "default": "",
5222
+ "disabled": false,
5223
+ "document": "查询结束时间",
5224
+ "member": "datetime",
5225
+ "name": "EndTime",
5226
+ "required": true,
5227
+ "type": "string"
5228
+ },
5229
+ {
5230
+ "default": "",
5231
+ "disabled": false,
5232
+ "document": "Lucene语法",
5233
+ "member": "string",
5234
+ "name": "QueryString",
5235
+ "required": true,
5236
+ "type": "string"
5237
+ }
5238
+ ],
5239
+ "type": "object"
5240
+ },
5241
+ "GetAttackHistogramResponse": {
5242
+ "document": "GetAttackHistogram返回参数结构体",
5243
+ "members": [
5244
+ {
5245
+ "disabled": false,
5246
+ "document": "统计详情",
5247
+ "member": "LogHistogramInfo",
5248
+ "name": "Data",
5249
+ "type": "list",
5250
+ "value_allowed_null": false
5251
+ },
5252
+ {
5253
+ "disabled": false,
5254
+ "document": "时间段大小",
5255
+ "member": "uint64",
5256
+ "name": "Period",
5257
+ "type": "int",
5258
+ "value_allowed_null": false
5259
+ },
5260
+ {
5261
+ "disabled": false,
5262
+ "document": "统计的条目数",
5263
+ "member": "uint64",
5264
+ "name": "TotalCount",
5265
+ "type": "int",
5266
+ "value_allowed_null": false
5267
+ },
5268
+ {
5269
+ "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
5270
+ "member": "string",
5271
+ "name": "RequestId",
5272
+ "type": "string"
5273
+ }
5274
+ ],
5275
+ "type": "object"
5276
+ },
5192
5277
  "HostRecord": {
5193
5278
  "document": "clb-waf防护域名",
5194
5279
  "members": [
@@ -6119,6 +6204,32 @@
6119
6204
  ],
6120
6205
  "usage": "both"
6121
6206
  },
6207
+ "LogHistogramInfo": {
6208
+ "document": "攻击日志统计详情",
6209
+ "members": [
6210
+ {
6211
+ "default": "",
6212
+ "disabled": false,
6213
+ "document": "日志条数",
6214
+ "member": "int64",
6215
+ "name": "Count",
6216
+ "required": true,
6217
+ "type": "int",
6218
+ "value_allowed_null": false
6219
+ },
6220
+ {
6221
+ "default": "",
6222
+ "disabled": false,
6223
+ "document": "时间戳",
6224
+ "member": "int64",
6225
+ "name": "TimeStamp",
6226
+ "required": true,
6227
+ "type": "int",
6228
+ "value_allowed_null": false
6229
+ }
6230
+ ],
6231
+ "usage": "out"
6232
+ },
6122
6233
  "ModifyAccessPeriodRequest": {
6123
6234
  "document": "ModifyAccessPeriod请求参数结构体",
6124
6235
  "members": [
@@ -322,6 +322,14 @@
322
322
  "title": "查询下载攻击日志任务记录列表"
323
323
  }
324
324
  ],
325
+ "GetAttackHistogram": [
326
+ {
327
+ "document": "",
328
+ "input": "https://waf.tencentcloudapi.com/?Action=GetAttackHistogram\n&StartTime=2020-08-2800:00:00\n&ToTime=2020-08-2814:12:36\n&Domain=all\n&QueryString=method:GET\n&<公共请求参数>",
329
+ "output": "{\n \"Response\": {\n \"Data\": [\n {\n \"Count\": 0,\n \"TimeStamp\": 1598544000\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598545800\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598547600\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598549400\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598551200\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598553000\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598554800\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598556600\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598558400\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598560200\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598562000\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598563800\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598565600\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598567400\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598569200\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598571000\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598572800\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598574600\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598576400\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598578200\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598580000\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598581800\n },\n {\n \"Count\": 17,\n \"TimeStamp\": 1598583600\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598585400\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598587200\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598589000\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598590800\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598592600\n },\n {\n \"Count\": 0,\n \"TimeStamp\": 1598594400\n }\n ],\n \"Period\": 1800,\n \"TotalCount\": 17\n }\n}",
330
+ "title": "攻击日志统计详情"
331
+ }
332
+ ],
325
333
  "ModifyAccessPeriod": [
326
334
  {
327
335
  "document": "",
@@ -329,7 +329,7 @@ def doDescribeDomains(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
- def doDescribeAccessIndex(args, parsed_globals):
332
+ def doGetAttackHistogram(args, parsed_globals):
333
333
  g_param = parse_global_arg(parsed_globals)
334
334
 
335
335
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -358,11 +358,11 @@ def doDescribeAccessIndex(args, parsed_globals):
358
358
  client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
359
359
  client._sdkVersion += ("_CLI_" + __version__)
360
360
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
- model = models.DescribeAccessIndexRequest()
361
+ model = models.GetAttackHistogramRequest()
362
362
  model.from_json_string(json.dumps(args))
363
363
  start_time = time.time()
364
364
  while True:
365
- rsp = client.DescribeAccessIndex(model)
365
+ rsp = client.GetAttackHistogram(model)
366
366
  result = rsp.to_json_string()
367
367
  try:
368
368
  json_obj = json.loads(result)
@@ -641,6 +641,58 @@ def doDeleteIpAccessControl(args, parsed_globals):
641
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
642
 
643
643
 
644
+ def doDescribeAccessIndex(args, parsed_globals):
645
+ g_param = parse_global_arg(parsed_globals)
646
+
647
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
648
+ cred = credential.CVMRoleCredential()
649
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
650
+ cred = credential.STSAssumeRoleCredential(
651
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
652
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
653
+ )
654
+ 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):
655
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
656
+ else:
657
+ cred = credential.Credential(
658
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
659
+ )
660
+ http_profile = HttpProfile(
661
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
662
+ reqMethod="POST",
663
+ endpoint=g_param[OptionsDefine.Endpoint],
664
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
665
+ )
666
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
667
+ if g_param[OptionsDefine.Language]:
668
+ profile.language = g_param[OptionsDefine.Language]
669
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
670
+ client = mod.WafClient(cred, g_param[OptionsDefine.Region], profile)
671
+ client._sdkVersion += ("_CLI_" + __version__)
672
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
673
+ model = models.DescribeAccessIndexRequest()
674
+ model.from_json_string(json.dumps(args))
675
+ start_time = time.time()
676
+ while True:
677
+ rsp = client.DescribeAccessIndex(model)
678
+ result = rsp.to_json_string()
679
+ try:
680
+ json_obj = json.loads(result)
681
+ except TypeError as e:
682
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
683
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
684
+ break
685
+ cur_time = time.time()
686
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
687
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
688
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
689
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
690
+ else:
691
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
692
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
693
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
+
695
+
644
696
  def doModifyWafAutoDenyStatus(args, parsed_globals):
645
697
  g_param = parse_global_arg(parsed_globals)
646
698
 
@@ -2738,12 +2790,13 @@ ACTION_MAP = {
2738
2790
  "DeleteDomainWhiteRules": doDeleteDomainWhiteRules,
2739
2791
  "ModifyAreaBanStatus": doModifyAreaBanStatus,
2740
2792
  "DescribeDomains": doDescribeDomains,
2741
- "DescribeAccessIndex": doDescribeAccessIndex,
2793
+ "GetAttackHistogram": doGetAttackHistogram,
2742
2794
  "CreateAccessExport": doCreateAccessExport,
2743
2795
  "SearchAttackLog": doSearchAttackLog,
2744
2796
  "DescribeAccessHistogram": doDescribeAccessHistogram,
2745
2797
  "DescribeInstances": doDescribeInstances,
2746
2798
  "DeleteIpAccessControl": doDeleteIpAccessControl,
2799
+ "DescribeAccessIndex": doDescribeAccessIndex,
2747
2800
  "ModifyWafAutoDenyStatus": doModifyWafAutoDenyStatus,
2748
2801
  "ModifyAccessPeriod": doModifyAccessPeriod,
2749
2802
  "DescribeFlowTrend": doDescribeFlowTrend,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.922.1
3
+ Version: 3.0.924.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
6
6
  Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Requires-Dist: jmespath==0.10.0
15
15
  Requires-Dist: six==1.16.0
16
- Requires-Dist: tencentcloud-sdk-python>=3.0.922
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.924
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介