tccli 3.0.1355.1__py2.py3-none-any.whl → 3.0.1357.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 (35) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/bi/v20220105/api.json +1 -1
  3. tccli/services/billing/v20180709/api.json +11 -11
  4. tccli/services/cdb/cdb_client.py +53 -0
  5. tccli/services/cdb/v20170320/api.json +57 -5
  6. tccli/services/cdb/v20170320/examples.json +8 -0
  7. tccli/services/cdwch/v20200915/api.json +1 -1
  8. tccli/services/cdwpg/v20201230/api.json +1 -1
  9. tccli/services/clb/v20180317/api.json +1 -1
  10. tccli/services/cynosdb/cynosdb_client.py +53 -0
  11. tccli/services/cynosdb/v20190107/api.json +107 -0
  12. tccli/services/cynosdb/v20190107/examples.json +8 -0
  13. tccli/services/faceid/v20180301/api.json +26 -26
  14. tccli/services/gme/v20180711/api.json +1 -1
  15. tccli/services/gs/v20191118/api.json +9 -0
  16. tccli/services/keewidb/v20220308/api.json +2 -2
  17. tccli/services/live/v20180801/api.json +1 -1
  18. tccli/services/monitor/v20180724/api.json +1 -1
  19. tccli/services/mps/v20190612/api.json +11 -0
  20. tccli/services/mrs/v20200910/api.json +12 -2
  21. tccli/services/oceanus/v20190422/api.json +1 -1
  22. tccli/services/ocr/v20181119/api.json +24 -15
  23. tccli/services/rum/v20210622/api.json +1 -1
  24. tccli/services/teo/teo_client.py +114 -8
  25. tccli/services/teo/v20220901/api.json +154 -0
  26. tccli/services/teo/v20220901/examples.json +16 -0
  27. tccli/services/tione/v20211111/api.json +22 -0
  28. tccli/services/tke/v20180525/api.json +36 -16
  29. tccli/services/vpc/v20170312/api.json +5 -5
  30. tccli/services/waf/v20180125/api.json +1 -1
  31. {tccli-3.0.1355.1.dist-info → tccli-3.0.1357.1.dist-info}/METADATA +2 -2
  32. {tccli-3.0.1355.1.dist-info → tccli-3.0.1357.1.dist-info}/RECORD +35 -35
  33. {tccli-3.0.1355.1.dist-info → tccli-3.0.1357.1.dist-info}/WHEEL +0 -0
  34. {tccli-3.0.1355.1.dist-info → tccli-3.0.1357.1.dist-info}/entry_points.txt +0 -0
  35. {tccli-3.0.1355.1.dist-info → tccli-3.0.1357.1.dist-info}/license_files/LICENSE +0 -0
@@ -331,6 +331,58 @@ def doCreatePurgeTask(args, parsed_globals):
331
331
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
332
332
 
333
333
 
334
+ def doDescribeDDoSProtection(args, parsed_globals):
335
+ g_param = parse_global_arg(parsed_globals)
336
+
337
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
338
+ cred = credential.CVMRoleCredential()
339
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
340
+ cred = credential.STSAssumeRoleCredential(
341
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
342
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
343
+ )
344
+ 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):
345
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
346
+ else:
347
+ cred = credential.Credential(
348
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
349
+ )
350
+ http_profile = HttpProfile(
351
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
352
+ reqMethod="POST",
353
+ endpoint=g_param[OptionsDefine.Endpoint],
354
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
355
+ )
356
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
357
+ if g_param[OptionsDefine.Language]:
358
+ profile.language = g_param[OptionsDefine.Language]
359
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
360
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
361
+ client._sdkVersion += ("_CLI_" + __version__)
362
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
363
+ model = models.DescribeDDoSProtectionRequest()
364
+ model.from_json_string(json.dumps(args))
365
+ start_time = time.time()
366
+ while True:
367
+ rsp = client.DescribeDDoSProtection(model)
368
+ result = rsp.to_json_string()
369
+ try:
370
+ json_obj = json.loads(result)
371
+ except TypeError as e:
372
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
373
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
374
+ break
375
+ cur_time = time.time()
376
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
377
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
378
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
379
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
380
+ else:
381
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
382
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
383
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
384
+
385
+
334
386
  def doDescribeMultiPathGatewayRegions(args, parsed_globals):
335
387
  g_param = parse_global_arg(parsed_globals)
336
388
 
@@ -1267,7 +1319,7 @@ def doModifyL7AccSetting(args, parsed_globals):
1267
1319
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1268
1320
 
1269
1321
 
1270
- def doModifyMultiPathGatewayLine(args, parsed_globals):
1322
+ def doDescribeConfigGroupVersions(args, parsed_globals):
1271
1323
  g_param = parse_global_arg(parsed_globals)
1272
1324
 
1273
1325
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1296,11 +1348,11 @@ def doModifyMultiPathGatewayLine(args, parsed_globals):
1296
1348
  client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
1297
1349
  client._sdkVersion += ("_CLI_" + __version__)
1298
1350
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1299
- model = models.ModifyMultiPathGatewayLineRequest()
1351
+ model = models.DescribeConfigGroupVersionsRequest()
1300
1352
  model.from_json_string(json.dumps(args))
1301
1353
  start_time = time.time()
1302
1354
  while True:
1303
- rsp = client.ModifyMultiPathGatewayLine(model)
1355
+ rsp = client.DescribeConfigGroupVersions(model)
1304
1356
  result = rsp.to_json_string()
1305
1357
  try:
1306
1358
  json_obj = json.loads(result)
@@ -3035,7 +3087,7 @@ def doModifyFunctionRule(args, parsed_globals):
3035
3087
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3036
3088
 
3037
3089
 
3038
- def doDescribeConfigGroupVersions(args, parsed_globals):
3090
+ def doModifyMultiPathGatewayLine(args, parsed_globals):
3039
3091
  g_param = parse_global_arg(parsed_globals)
3040
3092
 
3041
3093
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3064,11 +3116,11 @@ def doDescribeConfigGroupVersions(args, parsed_globals):
3064
3116
  client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
3065
3117
  client._sdkVersion += ("_CLI_" + __version__)
3066
3118
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3067
- model = models.DescribeConfigGroupVersionsRequest()
3119
+ model = models.ModifyMultiPathGatewayLineRequest()
3068
3120
  model.from_json_string(json.dumps(args))
3069
3121
  start_time = time.time()
3070
3122
  while True:
3071
- rsp = client.DescribeConfigGroupVersions(model)
3123
+ rsp = client.ModifyMultiPathGatewayLine(model)
3072
3124
  result = rsp.to_json_string()
3073
3125
  try:
3074
3126
  json_obj = json.loads(result)
@@ -8183,6 +8235,58 @@ def doDescribeDnsRecords(args, parsed_globals):
8183
8235
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8184
8236
 
8185
8237
 
8238
+ def doModifyDDoSProtection(args, parsed_globals):
8239
+ g_param = parse_global_arg(parsed_globals)
8240
+
8241
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
8242
+ cred = credential.CVMRoleCredential()
8243
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
8244
+ cred = credential.STSAssumeRoleCredential(
8245
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
8246
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
8247
+ )
8248
+ 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):
8249
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
8250
+ else:
8251
+ cred = credential.Credential(
8252
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
8253
+ )
8254
+ http_profile = HttpProfile(
8255
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
8256
+ reqMethod="POST",
8257
+ endpoint=g_param[OptionsDefine.Endpoint],
8258
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
8259
+ )
8260
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
8261
+ if g_param[OptionsDefine.Language]:
8262
+ profile.language = g_param[OptionsDefine.Language]
8263
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
8264
+ client = mod.TeoClient(cred, g_param[OptionsDefine.Region], profile)
8265
+ client._sdkVersion += ("_CLI_" + __version__)
8266
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
8267
+ model = models.ModifyDDoSProtectionRequest()
8268
+ model.from_json_string(json.dumps(args))
8269
+ start_time = time.time()
8270
+ while True:
8271
+ rsp = client.ModifyDDoSProtection(model)
8272
+ result = rsp.to_json_string()
8273
+ try:
8274
+ json_obj = json.loads(result)
8275
+ except TypeError as e:
8276
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
8277
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
8278
+ break
8279
+ cur_time = time.time()
8280
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
8281
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
8282
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
8283
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
8284
+ else:
8285
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
8286
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
8287
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
8288
+
8289
+
8186
8290
  def doImportZoneConfig(args, parsed_globals):
8187
8291
  g_param = parse_global_arg(parsed_globals)
8188
8292
 
@@ -8722,6 +8826,7 @@ ACTION_MAP = {
8722
8826
  "DescribeContentIdentifiers": doDescribeContentIdentifiers,
8723
8827
  "DeleteFunction": doDeleteFunction,
8724
8828
  "CreatePurgeTask": doCreatePurgeTask,
8829
+ "DescribeDDoSProtection": doDescribeDDoSProtection,
8725
8830
  "DescribeMultiPathGatewayRegions": doDescribeMultiPathGatewayRegions,
8726
8831
  "DownloadL4Logs": doDownloadL4Logs,
8727
8832
  "CreatePlanForZone": doCreatePlanForZone,
@@ -8740,7 +8845,7 @@ ACTION_MAP = {
8740
8845
  "ModifyOriginGroup": doModifyOriginGroup,
8741
8846
  "DeleteApplicationProxy": doDeleteApplicationProxy,
8742
8847
  "ModifyL7AccSetting": doModifyL7AccSetting,
8743
- "ModifyMultiPathGatewayLine": doModifyMultiPathGatewayLine,
8848
+ "DescribeConfigGroupVersions": doDescribeConfigGroupVersions,
8744
8849
  "ModifyL4ProxyStatus": doModifyL4ProxyStatus,
8745
8850
  "DownloadL7Logs": doDownloadL7Logs,
8746
8851
  "DescribeEnvironments": doDescribeEnvironments,
@@ -8774,7 +8879,7 @@ ACTION_MAP = {
8774
8879
  "ModifyDnsRecords": doModifyDnsRecords,
8775
8880
  "DescribeTimingL7CacheData": doDescribeTimingL7CacheData,
8776
8881
  "ModifyFunctionRule": doModifyFunctionRule,
8777
- "DescribeConfigGroupVersions": doDescribeConfigGroupVersions,
8882
+ "ModifyMultiPathGatewayLine": doModifyMultiPathGatewayLine,
8778
8883
  "ModifyWebSecurityTemplate": doModifyWebSecurityTemplate,
8779
8884
  "ModifyL7AccRulePriority": doModifyL7AccRulePriority,
8780
8885
  "ModifyZoneSetting": doModifyZoneSetting,
@@ -8873,6 +8978,7 @@ ACTION_MAP = {
8873
8978
  "DeleteZone": doDeleteZone,
8874
8979
  "DescribeSecurityIPGroupInfo": doDescribeSecurityIPGroupInfo,
8875
8980
  "DescribeDnsRecords": doDescribeDnsRecords,
8981
+ "ModifyDDoSProtection": doModifyDDoSProtection,
8876
8982
  "ImportZoneConfig": doImportZoneConfig,
8877
8983
  "CreateMultiPathGatewaySecretKey": doCreateMultiPathGatewaySecretKey,
8878
8984
  "ModifyCustomErrorPage": doModifyCustomErrorPage,
@@ -490,6 +490,13 @@
490
490
  "output": "DescribeDDoSAttackTopDataResponse",
491
491
  "status": "online"
492
492
  },
493
+ "DescribeDDoSProtection": {
494
+ "document": "获取站点的独立 DDoS 防护信息。",
495
+ "input": "DescribeDDoSProtectionRequest",
496
+ "name": "查询站点的独立 DDoS 防护信息",
497
+ "output": "DescribeDDoSProtectionResponse",
498
+ "status": "online"
499
+ },
493
500
  "DescribeDefaultCertificates": {
494
501
  "document": "查询默认证书列表",
495
502
  "input": "DescribeDefaultCertificatesRequest",
@@ -945,6 +952,13 @@
945
952
  "output": "ModifyCustomErrorPageResponse",
946
953
  "status": "online"
947
954
  },
955
+ "ModifyDDoSProtection": {
956
+ "document": "修改站点的独立 DDoS 防护。",
957
+ "input": "ModifyDDoSProtectionRequest",
958
+ "name": "修改站点的独立 DDoS 防护",
959
+ "output": "ModifyDDoSProtectionResponse",
960
+ "status": "online"
961
+ },
948
962
  "ModifyDnsRecords": {
949
963
  "document": "您可以通过本接口批量修改 DNS 记录。",
950
964
  "input": "ModifyDnsRecordsRequest",
@@ -7604,6 +7618,45 @@
7604
7618
  ],
7605
7619
  "usage": "out"
7606
7620
  },
7621
+ "DDoSProtection": {
7622
+ "document": "独立 DDoS 防护配置。",
7623
+ "members": [
7624
+ {
7625
+ "disabled": false,
7626
+ "document": "指定独立 DDoS 的防护范围。取值为:\n<li> protect_all_domains:独立 DDoS 防护对站点内全部域名生效,新接入域名自动开启独立 DDoS 防护,入参为 protect_all_domains 时,入参 DomainDDoSProtections 不作处理;</li>\n<li> protect_specified_domains:仅对指定域名生效,具体范围可通过 DomainDDoSProtection 参数指定。</li>",
7627
+ "example": "protect_all_domains",
7628
+ "member": "string",
7629
+ "name": "ProtectionOption",
7630
+ "output_required": true,
7631
+ "required": true,
7632
+ "type": "string",
7633
+ "value_allowed_null": false
7634
+ },
7635
+ {
7636
+ "disabled": false,
7637
+ "document": "域名的独立 DDoS 防护配置。在入参场景中:\n<li> 当 ProtectionOption 保持为 protect_specified_domains 时:未填写的域名维持原有独立 DDoS 防护配置不变,显式指定的域名​按传入参数更新;</li>\n<li> 当 ProtectionOption 由 protect_all_domains 切换为 protect_specified_domains 时:若 DomainDDoSProtections 传空,停用站点下全部域名的独立 DDoS 防护;若 DomainDDoSProtections 不为空,参数中指定的域名停用或保持独立 DDoS 防护,其余未列出的域名统一停用独立 DDoS 防护。</li>",
7638
+ "example": "无",
7639
+ "member": "DomainDDoSProtection",
7640
+ "name": "DomainDDoSProtections",
7641
+ "output_required": true,
7642
+ "required": false,
7643
+ "type": "list",
7644
+ "value_allowed_null": false
7645
+ },
7646
+ {
7647
+ "disabled": false,
7648
+ "document": "共享 CNAME 的独立 DDoS 防护配置。仅作为出参使用。",
7649
+ "example": "无",
7650
+ "member": "DomainDDoSProtection",
7651
+ "name": "SharedCNAMEDDoSProtections",
7652
+ "output_required": false,
7653
+ "required": false,
7654
+ "type": "list",
7655
+ "value_allowed_null": false
7656
+ }
7657
+ ],
7658
+ "usage": "both"
7659
+ },
7607
7660
  "DDosProtectionConfig": {
7608
7661
  "document": "适用于四层代理或 Web 站点服务的独立 DDoS 防护规格配置。",
7609
7662
  "members": [
@@ -9837,6 +9890,43 @@
9837
9890
  ],
9838
9891
  "type": "object"
9839
9892
  },
9893
+ "DescribeDDoSProtectionRequest": {
9894
+ "document": "DescribeDDoSProtection请求参数结构体",
9895
+ "members": [
9896
+ {
9897
+ "disabled": false,
9898
+ "document": "站点 ID。",
9899
+ "example": "zone-25ryyvog1qih",
9900
+ "member": "string",
9901
+ "name": "ZoneId",
9902
+ "required": true,
9903
+ "type": "string"
9904
+ }
9905
+ ],
9906
+ "type": "object"
9907
+ },
9908
+ "DescribeDDoSProtectionResponse": {
9909
+ "document": "DescribeDDoSProtection返回参数结构体",
9910
+ "members": [
9911
+ {
9912
+ "disabled": false,
9913
+ "document": "独立 DDoS 防护配置。用于控制独立 DDoS 防护的生效范围。",
9914
+ "example": "无",
9915
+ "member": "DDoSProtection",
9916
+ "name": "DDoSProtection",
9917
+ "output_required": true,
9918
+ "type": "object",
9919
+ "value_allowed_null": false
9920
+ },
9921
+ {
9922
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
9923
+ "member": "string",
9924
+ "name": "RequestId",
9925
+ "type": "string"
9926
+ }
9927
+ ],
9928
+ "type": "object"
9929
+ },
9840
9930
  "DescribeDefaultCertificatesRequest": {
9841
9931
  "document": "DescribeDefaultCertificates请求参数结构体",
9842
9932
  "members": [
@@ -13568,6 +13658,34 @@
13568
13658
  ],
13569
13659
  "usage": "out"
13570
13660
  },
13661
+ "DomainDDoSProtection": {
13662
+ "document": "域名的独立 DDoS 防护信息。",
13663
+ "members": [
13664
+ {
13665
+ "disabled": false,
13666
+ "document": "域名。",
13667
+ "example": "www.qq.com",
13668
+ "member": "string",
13669
+ "name": "Domain",
13670
+ "output_required": true,
13671
+ "required": true,
13672
+ "type": "string",
13673
+ "value_allowed_null": false
13674
+ },
13675
+ {
13676
+ "disabled": false,
13677
+ "document": "域名的独立 DDoS 开关,取值为:\n<li> on:已开启;</li>\n<li> off:已关闭。</li>",
13678
+ "example": "off",
13679
+ "member": "string",
13680
+ "name": "Switch",
13681
+ "output_required": true,
13682
+ "required": true,
13683
+ "type": "string",
13684
+ "value_allowed_null": false
13685
+ }
13686
+ ],
13687
+ "usage": "both"
13688
+ },
13571
13689
  "DownloadL4LogsRequest": {
13572
13690
  "document": "DownloadL4Logs请求参数结构体",
13573
13691
  "members": [
@@ -17971,6 +18089,42 @@
17971
18089
  ],
17972
18090
  "type": "object"
17973
18091
  },
18092
+ "ModifyDDoSProtectionRequest": {
18093
+ "document": "ModifyDDoSProtection请求参数结构体",
18094
+ "members": [
18095
+ {
18096
+ "disabled": false,
18097
+ "document": "站点 ID。",
18098
+ "example": "zone-25ryyvog1qih",
18099
+ "member": "string",
18100
+ "name": "ZoneId",
18101
+ "required": true,
18102
+ "type": "string"
18103
+ },
18104
+ {
18105
+ "disabled": false,
18106
+ "document": "独立 DDoS 防护配置。",
18107
+ "example": "无",
18108
+ "member": "DDoSProtection",
18109
+ "name": "DDoSProtection",
18110
+ "required": true,
18111
+ "type": "object"
18112
+ }
18113
+ ],
18114
+ "type": "object"
18115
+ },
18116
+ "ModifyDDoSProtectionResponse": {
18117
+ "document": "ModifyDDoSProtection返回参数结构体",
18118
+ "members": [
18119
+ {
18120
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
18121
+ "member": "string",
18122
+ "name": "RequestId",
18123
+ "type": "string"
18124
+ }
18125
+ ],
18126
+ "type": "object"
18127
+ },
17974
18128
  "ModifyDnsRecordsRequest": {
17975
18129
  "document": "ModifyDnsRecords请求参数结构体",
17976
18130
  "members": [
@@ -752,6 +752,14 @@
752
752
  "title": "DDoS攻击Top数据"
753
753
  }
754
754
  ],
755
+ "DescribeDDoSProtection": [
756
+ {
757
+ "document": "获取站点的独立 DDoS 防护信息。",
758
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDDoSProtection\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2jaltqbdhq37\"\n}",
759
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1362c269-9931-4b12-b148-3d1df0818600\",\n \"DDoSProtection\": {\n \"ProtectionOption\": \"protect_specified_domains\",\n \"DomainDDoSProtections\": [\n {\n \"Domain\": \"www.example.com\",\n \"Switch\": \"on\"\n }\n ],\n \"SharedCNAMEDDoSProtections\": [\n {\n \"Domain\": \"a.example.com\",\n \"Switch\": \"off\"\n }\n ]\n }\n }\n}",
760
+ "title": "获取站点的独立 DDoS 防护信息"
761
+ }
762
+ ],
755
763
  "DescribeDefaultCertificates": [
756
764
  {
757
765
  "document": "",
@@ -1410,6 +1418,14 @@
1410
1418
  "title": "修改自定义错误页面"
1411
1419
  }
1412
1420
  ],
1421
+ "ModifyDDoSProtection": [
1422
+ {
1423
+ "document": "修改站点的独立 DDoS 防护。",
1424
+ "input": "POST / HTTP/1.1\nHost: teo.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyDDoSProtection\n<公共请求参数>\n\n{\n \"ZoneId\": \"zone-2jaltqbdhq37\",\n \"DDoSProtection\": {\n \"ProtectionOption\": \"protect_specified_domains\",\n \"DomainDDoSProtections\": [\n {\n \"Domain\": \"www.example.com\",\n \"Switch\": \"on\"\n }\n ]\n }\n}",
1425
+ "output": "{\n \"Response\": {\n \"RequestId\": \"1362c269-9931-4b12-b148-3d1df0818600\"\n }\n}",
1426
+ "title": "修改站点的独立 DDoS 防护"
1427
+ }
1428
+ ],
1413
1429
  "ModifyDnsRecords": [
1414
1430
  {
1415
1431
  "document": "在 ZoneId 为 zone-225qgrnvbi9w 的站点下,将记录 ID 为 record-3d5dg39c 的 DNS 记录的记录名改成 eo-test1.com,记录类型改成 CNAME,记录内容改成 eo-test1.c4games.com.eo.dnse2.com;将记录 ID 为 record-gkd9gyrv 的 DNS 记录的记录名改成 eo-test2.com,记录类型改成 A,记录内容改成 1.2.3.4。",
@@ -5842,6 +5842,28 @@
5842
5842
  "required": true,
5843
5843
  "type": "list",
5844
5844
  "value_allowed_null": true
5845
+ },
5846
+ {
5847
+ "disabled": false,
5848
+ "document": "扩容观察期,单位秒",
5849
+ "example": "100",
5850
+ "member": "int64",
5851
+ "name": "ScaleUpStabilizationWindowSeconds",
5852
+ "output_required": false,
5853
+ "required": false,
5854
+ "type": "int",
5855
+ "value_allowed_null": false
5856
+ },
5857
+ {
5858
+ "disabled": false,
5859
+ "document": "缩容观察期,单位秒",
5860
+ "example": "100",
5861
+ "member": "int64",
5862
+ "name": "ScaleDownStabilizationWindowSeconds",
5863
+ "output_required": false,
5864
+ "required": false,
5865
+ "type": "int",
5866
+ "value_allowed_null": false
5845
5867
  }
5846
5868
  ],
5847
5869
  "usage": "both"
@@ -25299,16 +25299,6 @@
25299
25299
  "Switch": {
25300
25300
  "document": "集群日志开关集合",
25301
25301
  "members": [
25302
- {
25303
- "disabled": false,
25304
- "document": "集群ID",
25305
- "example": "cls-a0pa8wse",
25306
- "member": "string",
25307
- "name": "ClusterId",
25308
- "output_required": true,
25309
- "type": "string",
25310
- "value_allowed_null": false
25311
- },
25312
25302
  {
25313
25303
  "disabled": false,
25314
25304
  "document": "审计开关的详细信息",
@@ -25319,6 +25309,16 @@
25319
25309
  "type": "object",
25320
25310
  "value_allowed_null": false
25321
25311
  },
25312
+ {
25313
+ "disabled": false,
25314
+ "document": "集群ID",
25315
+ "example": "cls-a0pa8wse",
25316
+ "member": "string",
25317
+ "name": "ClusterId",
25318
+ "output_required": true,
25319
+ "type": "string",
25320
+ "value_allowed_null": false
25321
+ },
25322
25322
  {
25323
25323
  "disabled": false,
25324
25324
  "document": "事件开关的详细信息",
@@ -25365,6 +25365,16 @@
25365
25365
  "type": "bool",
25366
25366
  "value_allowed_null": false
25367
25367
  },
25368
+ {
25369
+ "disabled": false,
25370
+ "document": "获取日志状态失败时,返回错误信息",
25371
+ "example": "failed to get application",
25372
+ "member": "string",
25373
+ "name": "ErrorMsg",
25374
+ "output_required": true,
25375
+ "type": "string",
25376
+ "value_allowed_null": false
25377
+ },
25368
25378
  {
25369
25379
  "disabled": false,
25370
25380
  "document": "CLS日志集ID",
@@ -25375,6 +25385,16 @@
25375
25385
  "type": "string",
25376
25386
  "value_allowed_null": false
25377
25387
  },
25388
+ {
25389
+ "disabled": false,
25390
+ "document": "日志主题状态,opened表示已开启,opening开启中,closed表示已关闭,closing 表示关闭中",
25391
+ "example": "opening",
25392
+ "member": "string",
25393
+ "name": "Status",
25394
+ "output_required": true,
25395
+ "type": "string",
25396
+ "value_allowed_null": false
25397
+ },
25378
25398
  {
25379
25399
  "disabled": false,
25380
25400
  "document": "CLS日志主题ID",
@@ -25387,10 +25407,10 @@
25387
25407
  },
25388
25408
  {
25389
25409
  "disabled": false,
25390
- "document": "当前log-agent版本",
25391
- "example": "1.1.10",
25410
+ "document": "CLS日志主题所属region",
25411
+ "example": "ap-guangzhou",
25392
25412
  "member": "string",
25393
- "name": "Version",
25413
+ "name": "TopicRegion",
25394
25414
  "output_required": true,
25395
25415
  "type": "string",
25396
25416
  "value_allowed_null": false
@@ -25407,10 +25427,10 @@
25407
25427
  },
25408
25428
  {
25409
25429
  "disabled": false,
25410
- "document": "CLS日志主题所属region",
25411
- "example": "ap-guangzhou",
25430
+ "document": "当前log-agent版本",
25431
+ "example": "1.1.10",
25412
25432
  "member": "string",
25413
- "name": "TopicRegion",
25433
+ "name": "Version",
25414
25434
  "output_required": true,
25415
25435
  "type": "string",
25416
25436
  "value_allowed_null": false
@@ -24898,7 +24898,7 @@
24898
24898
  "members": [
24899
24899
  {
24900
24900
  "disabled": false,
24901
- "document": "加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBS-192', 'AES-CBC-256', 'DES-CBC','SM4', 默认为3DES-CBC",
24901
+ "document": "加密算法,可选值:'3DES-CBC', 'AES-CBC-128', 'AES-CBC-192', 'AES-CBC-256', 'DES-CBC','SM4', 默认为3DES-CBC",
24902
24902
  "example": "3DES-CBC",
24903
24903
  "member": "string",
24904
24904
  "name": "PropoEncryAlgorithm",
@@ -24909,7 +24909,7 @@
24909
24909
  },
24910
24910
  {
24911
24911
  "disabled": false,
24912
- "document": "认证算法:可选值:'MD5', 'SHA1','SHA-256' 默认为MD5",
24912
+ "document": "认证算法:可选值:'MD5''SHA','SHA-256','SHA-512', 默认为SHA。",
24913
24913
  "example": "MD5",
24914
24914
  "member": "string",
24915
24915
  "name": "PropoAuthenAlgorithm",
@@ -24920,7 +24920,7 @@
24920
24920
  },
24921
24921
  {
24922
24922
  "disabled": false,
24923
- "document": "协商模式:可选值:'AGGRESSIVE', 'MAIN',默认为MAIN",
24923
+ "document": "协商模式:可选值:'AGGRESSIVE' 'MAIN',默认为MAIN",
24924
24924
  "example": "MAIN",
24925
24925
  "member": "string",
24926
24926
  "name": "ExchangeMode",
@@ -24997,8 +24997,8 @@
24997
24997
  },
24998
24998
  {
24999
24999
  "disabled": false,
25000
- "document": "DH group,指定IKE交换密钥时使用的DH组,可选值:'GROUP1', 'GROUP2', 'GROUP5', 'GROUP14', 'GROUP24'",
25001
- "example": "GOURP1",
25000
+ "document": "DH group,指定IKE交换密钥时使用的DH组,可选值:'GROUP1', 'GROUP2', 'GROUP5', 'GROUP14', 'GROUP24',默认是GROUP1。",
25001
+ "example": "GROUP1",
25002
25002
  "member": "string",
25003
25003
  "name": "DhGroupName",
25004
25004
  "output_required": false,
@@ -911,7 +911,7 @@
911
911
  "status": "online"
912
912
  },
913
913
  "ModifyGenerateDeals": {
914
- "document": "提供给clb等使用的waf实例下单接口,目前只支持clb旗舰版实例的下单,该接口会进行入参校验,然后调用是否为收购用户,然后调用计费接口下单。目前只支持预付费下单,计费侧接口:https://tcb.woa.com/magical-brush/docs/754661947",
914
+ "document": "提供给clb等使用的waf实例下单接口,目前只支持clb旗舰版实例的下单,该接口会进行入参校验,然后调用是否为收购用户,然后调用计费接口下单。目前只支持预付费下单",
915
915
  "input": "ModifyGenerateDealsRequest",
916
916
  "name": "计费下单接口",
917
917
  "output": "ModifyGenerateDealsResponse",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.1355.1
3
+ Version: 3.0.1357.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.1355
16
+ Requires-Dist: tencentcloud-sdk-python>=3.0.1357
17
17
  Description-Content-Type: text/markdown
18
18
 
19
19
  # 命令行工具简介