tccli 3.0.1181.1__py2.py3-none-any.whl → 3.0.1183.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 (91) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +3 -0
  3. tccli/services/ams/v20201229/api.json +20 -0
  4. tccli/services/ams/v20201229/examples.json +1 -1
  5. tccli/services/asr/asr_client.py +229 -17
  6. tccli/services/asr/v20190614/api.json +379 -0
  7. tccli/services/asr/v20190614/examples.json +32 -0
  8. tccli/services/batch/v20170312/api.json +1 -1
  9. tccli/services/bi/v20220105/api.json +10 -0
  10. tccli/services/cdb/cdb_client.py +106 -0
  11. tccli/services/cdb/v20170320/api.json +185 -0
  12. tccli/services/cdb/v20170320/examples.json +17 -1
  13. tccli/services/cdwdoris/v20211228/api.json +70 -8
  14. tccli/services/cdwdoris/v20211228/examples.json +2 -2
  15. tccli/services/cfg/v20210820/api.json +134 -11
  16. tccli/services/cfw/cfw_client.py +53 -0
  17. tccli/services/cfw/v20190904/api.json +44 -0
  18. tccli/services/cfw/v20190904/examples.json +8 -0
  19. tccli/services/ckafka/v20190819/api.json +46 -16
  20. tccli/services/ckafka/v20190819/examples.json +8 -8
  21. tccli/services/clb/v20180317/api.json +99 -2
  22. tccli/services/cls/v20201016/api.json +1 -1
  23. tccli/services/controlcenter/__init__.py +4 -0
  24. tccli/services/controlcenter/controlcenter_client.py +195 -0
  25. tccli/services/controlcenter/v20230110/api.json +82 -0
  26. tccli/services/controlcenter/v20230110/examples.json +13 -0
  27. tccli/services/csip/v20221121/api.json +308 -1
  28. tccli/services/cvm/v20170312/api.json +20 -20
  29. tccli/services/cvm/v20170312/examples.json +1 -1
  30. tccli/services/cwp/v20180228/api.json +3 -3
  31. tccli/services/cwp/v20180228/examples.json +1 -1
  32. tccli/services/cynosdb/cynosdb_client.py +110 -4
  33. tccli/services/cynosdb/v20190107/api.json +296 -11
  34. tccli/services/cynosdb/v20190107/examples.json +19 -3
  35. tccli/services/dasb/v20191018/api.json +20 -1
  36. tccli/services/dbbrain/v20210527/api.json +15 -15
  37. tccli/services/dc/v20180410/api.json +117 -73
  38. tccli/services/dc/v20180410/examples.json +11 -11
  39. tccli/services/dcdb/dcdb_client.py +53 -0
  40. tccli/services/dcdb/v20180411/api.json +54 -0
  41. tccli/services/dcdb/v20180411/examples.json +8 -0
  42. tccli/services/emr/emr_client.py +53 -0
  43. tccli/services/emr/v20190103/api.json +52 -0
  44. tccli/services/emr/v20190103/examples.json +8 -0
  45. tccli/services/es/es_client.py +53 -0
  46. tccli/services/es/v20180416/api.json +64 -1
  47. tccli/services/es/v20180416/examples.json +8 -0
  48. tccli/services/ess/v20201111/api.json +1 -1
  49. tccli/services/essbasic/v20210526/api.json +9 -9
  50. tccli/services/hunyuan/hunyuan_client.py +106 -0
  51. tccli/services/hunyuan/v20230901/api.json +236 -1
  52. tccli/services/hunyuan/v20230901/examples.json +16 -0
  53. tccli/services/ims/v20201229/api.json +1 -1
  54. tccli/services/iotexplorer/v20190423/api.json +2 -2
  55. tccli/services/iss/v20230517/api.json +18 -0
  56. tccli/services/iss/v20230517/examples.json +3 -3
  57. tccli/services/lke/v20231130/api.json +141 -2
  58. tccli/services/mariadb/mariadb_client.py +57 -4
  59. tccli/services/mariadb/v20170312/api.json +54 -0
  60. tccli/services/mariadb/v20170312/examples.json +8 -0
  61. tccli/services/oceanus/v20190422/api.json +10 -0
  62. tccli/services/ocr/v20181119/api.json +7 -7
  63. tccli/services/organization/organization_client.py +53 -0
  64. tccli/services/organization/v20210331/api.json +43 -0
  65. tccli/services/organization/v20210331/examples.json +8 -0
  66. tccli/services/postgres/v20170312/api.json +3 -0
  67. tccli/services/redis/v20180412/api.json +16 -16
  68. tccli/services/scf/v20180416/api.json +26 -16
  69. tccli/services/ses/v20201002/api.json +148 -11
  70. tccli/services/sms/v20190711/api.json +49 -49
  71. tccli/services/sms/v20190711/examples.json +2 -2
  72. tccli/services/ssl/v20191205/api.json +3 -3
  73. tccli/services/ssl/v20191205/examples.json +2 -2
  74. tccli/services/tdmq/v20200217/api.json +180 -93
  75. tccli/services/tdmq/v20200217/examples.json +8 -8
  76. tccli/services/tke/v20180525/api.json +14 -2
  77. tccli/services/tke/v20180525/examples.json +3 -3
  78. tccli/services/tms/tms_client.py +0 -53
  79. tccli/services/tms/v20201229/api.json +2 -46
  80. tccli/services/tms/v20201229/examples.json +0 -8
  81. tccli/services/tmt/v20180321/api.json +4 -4
  82. tccli/services/trocket/v20230308/api.json +62 -12
  83. tccli/services/vpc/v20170312/api.json +23 -0
  84. tccli/services/wedata/v20210820/api.json +1909 -175
  85. tccli/services/wedata/v20210820/examples.json +62 -0
  86. tccli/services/wedata/wedata_client.py +387 -16
  87. {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/METADATA +2 -2
  88. {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/RECORD +91 -87
  89. {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/WHEEL +0 -0
  90. {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/entry_points.txt +0 -0
  91. {tccli-3.0.1181.1.dist-info → tccli-3.0.1183.1.dist-info}/license_files/LICENSE +0 -0
@@ -3917,6 +3917,58 @@ def doDeleteBackup(args, parsed_globals):
3917
3917
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3918
3918
 
3919
3919
 
3920
+ def doDescribeServerlessStrategy(args, parsed_globals):
3921
+ g_param = parse_global_arg(parsed_globals)
3922
+
3923
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3924
+ cred = credential.CVMRoleCredential()
3925
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3926
+ cred = credential.STSAssumeRoleCredential(
3927
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3928
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3929
+ )
3930
+ 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):
3931
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3932
+ else:
3933
+ cred = credential.Credential(
3934
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3935
+ )
3936
+ http_profile = HttpProfile(
3937
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3938
+ reqMethod="POST",
3939
+ endpoint=g_param[OptionsDefine.Endpoint],
3940
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3941
+ )
3942
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3943
+ if g_param[OptionsDefine.Language]:
3944
+ profile.language = g_param[OptionsDefine.Language]
3945
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3946
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
3947
+ client._sdkVersion += ("_CLI_" + __version__)
3948
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3949
+ model = models.DescribeServerlessStrategyRequest()
3950
+ model.from_json_string(json.dumps(args))
3951
+ start_time = time.time()
3952
+ while True:
3953
+ rsp = client.DescribeServerlessStrategy(model)
3954
+ result = rsp.to_json_string()
3955
+ try:
3956
+ json_obj = json.loads(result)
3957
+ except TypeError as e:
3958
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3959
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3960
+ break
3961
+ cur_time = time.time()
3962
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3963
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3964
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3965
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3966
+ else:
3967
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3968
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3969
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3970
+
3971
+
3920
3972
  def doPauseServerless(args, parsed_globals):
3921
3973
  g_param = parse_global_arg(parsed_globals)
3922
3974
 
@@ -5633,7 +5685,7 @@ def doModifyAccountDescription(args, parsed_globals):
5633
5685
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5634
5686
 
5635
5687
 
5636
- def doSwitchClusterVpc(args, parsed_globals):
5688
+ def doModifyServerlessStrategy(args, parsed_globals):
5637
5689
  g_param = parse_global_arg(parsed_globals)
5638
5690
 
5639
5691
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -5662,11 +5714,11 @@ def doSwitchClusterVpc(args, parsed_globals):
5662
5714
  client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
5663
5715
  client._sdkVersion += ("_CLI_" + __version__)
5664
5716
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
5665
- model = models.SwitchClusterVpcRequest()
5717
+ model = models.ModifyServerlessStrategyRequest()
5666
5718
  model.from_json_string(json.dumps(args))
5667
5719
  start_time = time.time()
5668
5720
  while True:
5669
- rsp = client.SwitchClusterVpc(model)
5721
+ rsp = client.ModifyServerlessStrategy(model)
5670
5722
  result = rsp.to_json_string()
5671
5723
  try:
5672
5724
  json_obj = json.loads(result)
@@ -6673,6 +6725,58 @@ def doDescribeBackupDownloadUrl(args, parsed_globals):
6673
6725
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6674
6726
 
6675
6727
 
6728
+ def doSwitchClusterVpc(args, parsed_globals):
6729
+ g_param = parse_global_arg(parsed_globals)
6730
+
6731
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
6732
+ cred = credential.CVMRoleCredential()
6733
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
6734
+ cred = credential.STSAssumeRoleCredential(
6735
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
6736
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
6737
+ )
6738
+ 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):
6739
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
6740
+ else:
6741
+ cred = credential.Credential(
6742
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
6743
+ )
6744
+ http_profile = HttpProfile(
6745
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
6746
+ reqMethod="POST",
6747
+ endpoint=g_param[OptionsDefine.Endpoint],
6748
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
6749
+ )
6750
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
6751
+ if g_param[OptionsDefine.Language]:
6752
+ profile.language = g_param[OptionsDefine.Language]
6753
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
6754
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
6755
+ client._sdkVersion += ("_CLI_" + __version__)
6756
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
6757
+ model = models.SwitchClusterVpcRequest()
6758
+ model.from_json_string(json.dumps(args))
6759
+ start_time = time.time()
6760
+ while True:
6761
+ rsp = client.SwitchClusterVpc(model)
6762
+ result = rsp.to_json_string()
6763
+ try:
6764
+ json_obj = json.loads(result)
6765
+ except TypeError as e:
6766
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
6767
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
6768
+ break
6769
+ cur_time = time.time()
6770
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
6771
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
6772
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
6773
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
6774
+ else:
6775
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
6776
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
6777
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6778
+
6779
+
6676
6780
  def doCreateProxy(args, parsed_globals):
6677
6781
  g_param = parse_global_arg(parsed_globals)
6678
6782
 
@@ -7695,6 +7799,7 @@ ACTION_MAP = {
7695
7799
  "SearchClusterTables": doSearchClusterTables,
7696
7800
  "DescribeParamTemplates": doDescribeParamTemplates,
7697
7801
  "DeleteBackup": doDeleteBackup,
7802
+ "DescribeServerlessStrategy": doDescribeServerlessStrategy,
7698
7803
  "PauseServerless": doPauseServerless,
7699
7804
  "ModifyAccountHost": doModifyAccountHost,
7700
7805
  "ResetAccountPassword": doResetAccountPassword,
@@ -7728,7 +7833,7 @@ ACTION_MAP = {
7728
7833
  "StopCLSDelivery": doStopCLSDelivery,
7729
7834
  "DescribeBackupList": doDescribeBackupList,
7730
7835
  "ModifyAccountDescription": doModifyAccountDescription,
7731
- "SwitchClusterVpc": doSwitchClusterVpc,
7836
+ "ModifyServerlessStrategy": doModifyServerlessStrategy,
7732
7837
  "CreateClusterDatabase": doCreateClusterDatabase,
7733
7838
  "ModifyResourcePackageName": doModifyResourcePackageName,
7734
7839
  "DeleteAuditLogFile": doDeleteAuditLogFile,
@@ -7748,6 +7853,7 @@ ACTION_MAP = {
7748
7853
  "ModifyAuditService": doModifyAuditService,
7749
7854
  "DescribeZones": doDescribeZones,
7750
7855
  "DescribeBackupDownloadUrl": doDescribeBackupDownloadUrl,
7856
+ "SwitchClusterVpc": doSwitchClusterVpc,
7751
7857
  "CreateProxy": doCreateProxy,
7752
7858
  "ModifyDBInstanceSecurityGroups": doModifyDBInstanceSecurityGroups,
7753
7859
  "CreateCLSDelivery": doCreateCLSDelivery,
@@ -525,6 +525,13 @@
525
525
  "output": "DescribeRollbackTimeValidityResponse",
526
526
  "status": "deprecated"
527
527
  },
528
+ "DescribeServerlessStrategy": {
529
+ "document": "查询serverless策略",
530
+ "input": "DescribeServerlessStrategyRequest",
531
+ "name": "查询serverless策略",
532
+ "output": "DescribeServerlessStrategyResponse",
533
+ "status": "online"
534
+ },
528
535
  "DescribeSupportProxyVersion": {
529
536
  "document": "查询支持的数据库代理版本",
530
537
  "input": "DescribeSupportProxyVersionRequest",
@@ -798,6 +805,13 @@
798
805
  "output": "ModifyResourcePackagesDeductionPriorityResponse",
799
806
  "status": "online"
800
807
  },
808
+ "ModifyServerlessStrategy": {
809
+ "document": "修改serverless策略",
810
+ "input": "ModifyServerlessStrategyRequest",
811
+ "name": "修改serverless策略",
812
+ "output": "ModifyServerlessStrategyResponse",
813
+ "status": "online"
814
+ },
801
815
  "ModifyVipVport": {
802
816
  "document": "修改实例组ip,端口",
803
817
  "input": "ModifyVipVportRequest",
@@ -843,7 +857,7 @@
843
857
  "OpenReadOnlyInstanceExclusiveAccess": {
844
858
  "document": "开通只读实例独有访问接入组",
845
859
  "input": "OpenReadOnlyInstanceExclusiveAccessRequest",
846
- "name": "开通只读实例独有访问接入组",
860
+ "name": "开通只读实例独有访问接入组。",
847
861
  "output": "OpenReadOnlyInstanceExclusiveAccessResponse",
848
862
  "status": "online"
849
863
  },
@@ -4929,7 +4943,7 @@
4929
4943
  "members": [
4930
4944
  {
4931
4945
  "disabled": false,
4932
- "document": "实例类型",
4946
+ "document": "实例类型,目前固定传cynosdb-serverless",
4933
4947
  "example": "cynosdb-serverless",
4934
4948
  "member": "string",
4935
4949
  "name": "InstanceType",
@@ -4938,8 +4952,8 @@
4938
4952
  },
4939
4953
  {
4940
4954
  "disabled": false,
4941
- "document": "资源包使用地域\nchina-中国内地通用,overseas-港澳台及海外通用",
4942
- "example": "china",
4955
+ "document": "资源包使用地域chineseMainland-中国内地通用,overseas-港澳台及海外通用",
4956
+ "example": "chineseMainland",
4943
4957
  "member": "string",
4944
4958
  "name": "PackageRegion",
4945
4959
  "required": true,
@@ -11487,6 +11501,93 @@
11487
11501
  ],
11488
11502
  "type": "object"
11489
11503
  },
11504
+ "DescribeServerlessStrategyRequest": {
11505
+ "document": "DescribeServerlessStrategy请求参数结构体",
11506
+ "members": [
11507
+ {
11508
+ "disabled": false,
11509
+ "document": "serverless集群id",
11510
+ "example": "cynosdbmysql-xxx",
11511
+ "member": "string",
11512
+ "name": "ClusterId",
11513
+ "required": true,
11514
+ "type": "string"
11515
+ }
11516
+ ],
11517
+ "type": "object"
11518
+ },
11519
+ "DescribeServerlessStrategyResponse": {
11520
+ "document": "DescribeServerlessStrategy返回参数结构体",
11521
+ "members": [
11522
+ {
11523
+ "disabled": false,
11524
+ "document": "cpu负载为 0 时持续多久(秒)发起自动暂停",
11525
+ "example": "300",
11526
+ "member": "int64",
11527
+ "name": "AutoPauseDelay",
11528
+ "output_required": true,
11529
+ "type": "int",
11530
+ "value_allowed_null": false
11531
+ },
11532
+ {
11533
+ "disabled": false,
11534
+ "document": "cpu负载超过当前规格核数时,持续多久(秒)发起自动扩容",
11535
+ "example": "30",
11536
+ "member": "int64",
11537
+ "name": "AutoScaleUpDelay",
11538
+ "output_required": true,
11539
+ "type": "int",
11540
+ "value_allowed_null": false
11541
+ },
11542
+ {
11543
+ "disabled": false,
11544
+ "document": "cpu 负载低于低一级规格核数时,持续多久(秒)发起自动缩容",
11545
+ "example": "60",
11546
+ "member": "int64",
11547
+ "name": "AutoScaleDownDelay",
11548
+ "output_required": true,
11549
+ "type": "int",
11550
+ "value_allowed_null": false
11551
+ },
11552
+ {
11553
+ "disabled": false,
11554
+ "document": "是否自动暂停,可能值:\nyes\nno",
11555
+ "example": "yes",
11556
+ "member": "string",
11557
+ "name": "AutoPause",
11558
+ "output_required": true,
11559
+ "type": "string",
11560
+ "value_allowed_null": false
11561
+ },
11562
+ {
11563
+ "disabled": false,
11564
+ "document": "集群是否允许向上扩容,可选范围<li>yes</li><li>no</li>",
11565
+ "example": "yes",
11566
+ "member": "string",
11567
+ "name": "AutoScaleUp",
11568
+ "output_required": false,
11569
+ "type": "string",
11570
+ "value_allowed_null": false
11571
+ },
11572
+ {
11573
+ "disabled": false,
11574
+ "document": "集群是否允许向下缩容,可选范围<li>yes</li><li>no</li>",
11575
+ "example": "yes",
11576
+ "member": "string",
11577
+ "name": "AutoScaleDown",
11578
+ "output_required": false,
11579
+ "type": "string",
11580
+ "value_allowed_null": false
11581
+ },
11582
+ {
11583
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
11584
+ "member": "string",
11585
+ "name": "RequestId",
11586
+ "type": "string"
11587
+ }
11588
+ ],
11589
+ "type": "object"
11590
+ },
11490
11591
  "DescribeSupportProxyVersionRequest": {
11491
11592
  "document": "DescribeSupportProxyVersion请求参数结构体",
11492
11593
  "members": [
@@ -15288,6 +15389,151 @@
15288
15389
  ],
15289
15390
  "type": "object"
15290
15391
  },
15392
+ "ModifyServerlessStrategyRequest": {
15393
+ "document": "ModifyServerlessStrategy请求参数结构体",
15394
+ "members": [
15395
+ {
15396
+ "disabled": false,
15397
+ "document": "serverless集群id",
15398
+ "example": "cynosdbmysql-8vcxoq75",
15399
+ "member": "string",
15400
+ "name": "ClusterId",
15401
+ "required": true,
15402
+ "type": "string"
15403
+ },
15404
+ {
15405
+ "disabled": false,
15406
+ "document": "集群是否自动暂停,可选范围\n<li>yes</li>\n<li>no</li>",
15407
+ "example": "no",
15408
+ "member": "string",
15409
+ "name": "AutoPause",
15410
+ "required": false,
15411
+ "type": "string"
15412
+ },
15413
+ {
15414
+ "disabled": false,
15415
+ "document": "集群自动暂停的延迟,单位秒,可选范围[600,691200],默认600",
15416
+ "example": "100",
15417
+ "member": "int64",
15418
+ "name": "AutoPauseDelay",
15419
+ "required": false,
15420
+ "type": "int"
15421
+ },
15422
+ {
15423
+ "disabled": false,
15424
+ "document": "该参数暂时无效",
15425
+ "example": "200",
15426
+ "member": "int64",
15427
+ "name": "AutoScaleUpDelay",
15428
+ "required": false,
15429
+ "type": "int"
15430
+ },
15431
+ {
15432
+ "disabled": false,
15433
+ "document": "该参数暂时无效",
15434
+ "example": "300",
15435
+ "member": "int64",
15436
+ "name": "AutoScaleDownDelay",
15437
+ "required": false,
15438
+ "type": "int"
15439
+ },
15440
+ {
15441
+ "disabled": false,
15442
+ "document": "cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回",
15443
+ "example": "0.25",
15444
+ "member": "float",
15445
+ "name": "MinCpu",
15446
+ "required": false,
15447
+ "type": "float"
15448
+ },
15449
+ {
15450
+ "disabled": false,
15451
+ "document": "cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回",
15452
+ "example": "2",
15453
+ "member": "float",
15454
+ "name": "MaxCpu",
15455
+ "required": false,
15456
+ "type": "float"
15457
+ },
15458
+ {
15459
+ "disabled": false,
15460
+ "document": "只读实例cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回",
15461
+ "example": "0.25",
15462
+ "member": "float",
15463
+ "name": "MinRoCpu",
15464
+ "required": false,
15465
+ "type": "float"
15466
+ },
15467
+ {
15468
+ "disabled": false,
15469
+ "document": "只读cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回",
15470
+ "example": "2",
15471
+ "member": "float",
15472
+ "name": "MaxRoCpu",
15473
+ "required": false,
15474
+ "type": "float"
15475
+ },
15476
+ {
15477
+ "disabled": false,
15478
+ "document": "只读节点最小个数",
15479
+ "example": "3",
15480
+ "member": "int64",
15481
+ "name": "MinRoCount",
15482
+ "required": false,
15483
+ "type": "int"
15484
+ },
15485
+ {
15486
+ "disabled": false,
15487
+ "document": "只读节点最大个数",
15488
+ "example": "3",
15489
+ "member": "int64",
15490
+ "name": "MaxRoCount",
15491
+ "required": false,
15492
+ "type": "int"
15493
+ },
15494
+ {
15495
+ "disabled": false,
15496
+ "document": "集群是否允许扩容,可选范围<li>yes</li><li>no</li>",
15497
+ "example": "yes",
15498
+ "member": "string",
15499
+ "name": "AutoScaleUp",
15500
+ "required": false,
15501
+ "type": "string"
15502
+ },
15503
+ {
15504
+ "disabled": false,
15505
+ "document": "集群是否允许缩容,可选范围<li>yes</li><li>no</li>",
15506
+ "example": "yes",
15507
+ "member": "string",
15508
+ "name": "AutoScaleDown",
15509
+ "required": false,
15510
+ "type": "string"
15511
+ }
15512
+ ],
15513
+ "type": "object"
15514
+ },
15515
+ "ModifyServerlessStrategyResponse": {
15516
+ "document": "ModifyServerlessStrategy返回参数结构体",
15517
+ "members": [
15518
+ {
15519
+ "disabled": false,
15520
+ "document": "异步流程id",
15521
+ "example": "1008300",
15522
+ "member": "int64",
15523
+ "name": "FlowId",
15524
+ "output_required": true,
15525
+ "type": "int",
15526
+ "value_allowed_null": false
15527
+ },
15528
+ {
15529
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
15530
+ "member": "string",
15531
+ "name": "RequestId",
15532
+ "type": "string"
15533
+ }
15534
+ ],
15535
+ "type": "object"
15536
+ },
15291
15537
  "ModifyVipVportRequest": {
15292
15538
  "document": "ModifyVipVport请求参数结构体",
15293
15539
  "members": [
@@ -15917,12 +16163,50 @@
15917
16163
  },
15918
16164
  "OpenClusterReadOnlyInstanceGroupAccessRequest": {
15919
16165
  "document": "OpenClusterReadOnlyInstanceGroupAccess请求参数结构体",
15920
- "members": [],
16166
+ "members": [
16167
+ {
16168
+ "disabled": false,
16169
+ "document": "集群ID",
16170
+ "example": "cynosdbmysql-12345678",
16171
+ "member": "string",
16172
+ "name": "ClusterId",
16173
+ "required": true,
16174
+ "type": "string"
16175
+ },
16176
+ {
16177
+ "disabled": false,
16178
+ "document": "端口",
16179
+ "example": "1234",
16180
+ "member": "string",
16181
+ "name": "Port",
16182
+ "required": true,
16183
+ "type": "string"
16184
+ },
16185
+ {
16186
+ "disabled": false,
16187
+ "document": "安全组ID ",
16188
+ "example": "[Security1,Security2,Security3]",
16189
+ "member": "string",
16190
+ "name": "SecurityGroupIds",
16191
+ "required": false,
16192
+ "type": "list"
16193
+ }
16194
+ ],
15921
16195
  "type": "object"
15922
16196
  },
15923
16197
  "OpenClusterReadOnlyInstanceGroupAccessResponse": {
15924
16198
  "document": "OpenClusterReadOnlyInstanceGroupAccess返回参数结构体",
15925
16199
  "members": [
16200
+ {
16201
+ "disabled": false,
16202
+ "document": "开启流程ID",
16203
+ "example": "12345",
16204
+ "member": "string",
16205
+ "name": "FlowId",
16206
+ "output_required": true,
16207
+ "type": "string",
16208
+ "value_allowed_null": false
16209
+ },
15926
16210
  {
15927
16211
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
15928
16212
  "member": "string",
@@ -15937,7 +16221,7 @@
15937
16221
  "members": [
15938
16222
  {
15939
16223
  "disabled": false,
15940
- "document": "集群ID",
16224
+ "document": "请使用 [集群信息描述](https://cloud.tencent.com/document/api/1003/48086) 获取 clusterId。",
15941
16225
  "example": "cynosdbmysql-12345678",
15942
16226
  "member": "string",
15943
16227
  "name": "ClusterId",
@@ -15946,7 +16230,7 @@
15946
16230
  },
15947
16231
  {
15948
16232
  "disabled": false,
15949
- "document": "需要开通独有访问的只读实例ID",
16233
+ "document": "请使用 [集群信息描述](https://cloud.tencent.com/document/api/1003/48086) 获取 instanceId。",
15950
16234
  "example": "cynosdbmysql-ins-12345678",
15951
16235
  "member": "string",
15952
16236
  "name": "InstanceId",
@@ -15955,7 +16239,7 @@
15955
16239
  },
15956
16240
  {
15957
16241
  "disabled": false,
15958
- "document": "指定的vpc ID",
16242
+ "document": "指定的 vpc ID,请使用 [查询私有网络列表](https://cloud.tencent.com/document/api/215/15778) 获取 vpc ID。",
15959
16243
  "example": "vpc-12345678",
15960
16244
  "member": "string",
15961
16245
  "name": "VpcId",
@@ -15964,7 +16248,7 @@
15964
16248
  },
15965
16249
  {
15966
16250
  "disabled": false,
15967
- "document": "指定的子网ID",
16251
+ "document": "指定的子网 ID,如果设置了 vpc ID,则 SubnetId 必填,请使用 [查询子网列表](https://cloud.tencent.com/document/api/215/15784) 获取 SubnetId。",
15968
16252
  "example": "subnet-12345678",
15969
16253
  "member": "string",
15970
16254
  "name": "SubnetId",
@@ -15973,7 +16257,7 @@
15973
16257
  },
15974
16258
  {
15975
16259
  "disabled": false,
15976
- "document": "端口",
16260
+ "document": "用户自定义的端口。",
15977
16261
  "example": "1234",
15978
16262
  "member": "int64",
15979
16263
  "name": "Port",
@@ -15982,7 +16266,7 @@
15982
16266
  },
15983
16267
  {
15984
16268
  "disabled": false,
15985
- "document": "安全组",
16269
+ "document": "安全组 ID,请使用 [查看安全组](https://cloud.tencent.com/document/api/215/15808) 获取 SecurityGroupId。",
15986
16270
  "example": "[SecurityGroupIds1,SecurityGroupIds2]",
15987
16271
  "member": "string",
15988
16272
  "name": "SecurityGroupIds",
@@ -16001,6 +16285,7 @@
16001
16285
  "example": "12345",
16002
16286
  "member": "int64",
16003
16287
  "name": "FlowId",
16288
+ "output_required": true,
16004
16289
  "type": "int",
16005
16290
  "value_allowed_null": false
16006
16291
  },
@@ -624,6 +624,14 @@
624
624
  "title": "查询指定时间点是否看回档"
625
625
  }
626
626
  ],
627
+ "DescribeServerlessStrategy": [
628
+ {
629
+ "document": "",
630
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeServerlessStrategy\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-xxx\"\n}",
631
+ "output": "{\n \"Response\": {\n \"AutoPauseDelay\": 300,\n \"AutoScaleDownDelay\": 60,\n \"AutoPause\": \"yes\",\n \"RequestId\": \"8727691c-3536-11eb-81e7-525400b7dd5a\",\n \"AutoScaleUpDelay\": 30\n }\n}",
632
+ "title": "查询serverless策略"
633
+ }
634
+ ],
627
635
  "DescribeSupportProxyVersion": [
628
636
  {
629
637
  "document": "查询支持的数据库代理版本",
@@ -936,6 +944,14 @@
936
944
  "title": "ModifyResourcePackagesDeductionPriority"
937
945
  }
938
946
  ],
947
+ "ModifyServerlessStrategy": [
948
+ {
949
+ "document": "修改serverless策略",
950
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyServerlessStrategy\n<公共请求参数>\n\n{\n \"AutoPause\": \"no\",\n \"AutoScaleUpDelay\": 200,\n \"AutoPauseDelay\": 100,\n \"MinCpu\": 0.25,\n \"MaxCpu\": 2,\n \"ClusterId\": \"cynosdbmysql-8vcxoq75\",\n \"AutoScaleDownDelay\": 300\n}",
951
+ "output": "{\n \"Response\": {\n \"FlowId\": 1008300,\n \"RequestId\": \"c3da7958-23e8-11eb-8e52-525400b7dd5a\"\n }\n}",
952
+ "title": "修改serverless策略"
953
+ }
954
+ ],
939
955
  "ModifyVipVport": [
940
956
  {
941
957
  "document": "",
@@ -979,8 +995,8 @@
979
995
  "OpenClusterReadOnlyInstanceGroupAccess": [
980
996
  {
981
997
  "document": "任何场景",
982
- "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenClusterReadOnlyInstanceGroupAccess\n<公共请求参数>\n\n{}",
983
- "output": "{\n \"Response\": {\n \"RequestId\": \"qwertyuiop\"\n }\n}",
998
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenClusterReadOnlyInstanceGroupAccess\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-abcd1234\",\n \"Port\": \"3306\",\n \"SecurityGroupIds\": [\n \"SecurityGroupIds1\",\n \"SecurityGroupIds2\"\n ]\n}",
999
+ "output": "{\n \"Response\": {\n \"FlowId\": \"12345\",\n \"RequestId\": \"qwertyuiop\"\n }\n}",
984
1000
  "title": "ex:"
985
1001
  }
986
1002
  ],
@@ -988,7 +1004,7 @@
988
1004
  {
989
1005
  "document": "任何场景",
990
1006
  "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenReadOnlyInstanceExclusiveAccess\n<公共请求参数>\n\n{\n \"ClusterId\": \"cynosdbmysql-qwertyui\",\n \"InstanceId\": \"cynosdbmysql-ins-asdfghjk\",\n \"VpcId\": \"vpc-asdfghjk\",\n \"SubnetId\": \"subnet-qwertyui\",\n \"Port\": 3306,\n \"SecurityGroupIds\": [\n \"SecurityGroupIds1\",\n \"SecurityGroupIds2\"\n ]\n}",
991
- "output": "{\n \"Response\": {\n \"FlowId\": \"12345\",\n \"RequestId\": \"123123123123123\"\n }\n}",
1007
+ "output": "{\n \"Response\": {\n \"FlowId\": 12345,\n \"RequestId\": \"123123123123123\"\n }\n}",
992
1008
  "title": "ex:"
993
1009
  }
994
1010
  ],
@@ -1110,7 +1110,7 @@
1110
1110
  "example": "bh-saas-xxxxxxxx",
1111
1111
  "member": "string",
1112
1112
  "name": "ResourceId",
1113
- "required": true,
1113
+ "required": false,
1114
1114
  "type": "string"
1115
1115
  },
1116
1116
  {
@@ -2351,6 +2351,15 @@
2351
2351
  "name": "DeployZone",
2352
2352
  "required": false,
2353
2353
  "type": "string"
2354
+ },
2355
+ {
2356
+ "disabled": false,
2357
+ "document": "0非试用版,1试用版",
2358
+ "example": "0",
2359
+ "member": "uint64",
2360
+ "name": "Trial",
2361
+ "required": false,
2362
+ "type": "int"
2354
2363
  }
2355
2364
  ],
2356
2365
  "type": "object"
@@ -6449,6 +6458,16 @@
6449
6458
  "output_required": false,
6450
6459
  "type": "int",
6451
6460
  "value_allowed_null": true
6461
+ },
6462
+ {
6463
+ "disabled": false,
6464
+ "document": "0 非试用版,1 试用版\n注意:此字段可能返回 null,表示取不到有效值。",
6465
+ "example": "0",
6466
+ "member": "uint64",
6467
+ "name": "Trial",
6468
+ "output_required": false,
6469
+ "type": "int",
6470
+ "value_allowed_null": true
6452
6471
  }
6453
6472
  ],
6454
6473
  "usage": "out"