tccli 3.0.1289.1__py2.py3-none-any.whl → 3.0.1290.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 (47) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/billing/v20180709/api.json +16 -16
  3. tccli/services/billing/v20180709/examples.json +1 -1
  4. tccli/services/cdb/cdb_client.py +53 -0
  5. tccli/services/cdb/v20170320/api.json +64 -0
  6. tccli/services/cdb/v20170320/examples.json +8 -0
  7. tccli/services/clb/v20180317/api.json +19 -14
  8. tccli/services/cls/v20201016/api.json +230 -198
  9. tccli/services/cls/v20201016/examples.json +2 -2
  10. tccli/services/cynosdb/v20190107/api.json +2 -2
  11. tccli/services/dbbrain/v20191016/api.json +24 -21
  12. tccli/services/dbbrain/v20210527/api.json +22 -22
  13. tccli/services/domain/v20180808/api.json +8 -8
  14. tccli/services/ess/v20201111/api.json +1 -1
  15. tccli/services/essbasic/v20210526/api.json +1 -1
  16. tccli/services/fmu/v20191213/api.json +2 -2
  17. tccli/services/goosefs/v20220519/api.json +2 -2
  18. tccli/services/gwlb/v20240906/api.json +1 -1
  19. tccli/services/iotcloud/v20210408/api.json +66 -66
  20. tccli/services/iotcloud/v20210408/examples.json +13 -13
  21. tccli/services/lighthouse/v20200324/api.json +8 -8
  22. tccli/services/lke/v20231130/api.json +10 -0
  23. tccli/services/lowcode/v20210108/api.json +2 -2
  24. tccli/services/monitor/monitor_client.py +53 -0
  25. tccli/services/monitor/v20180724/api.json +144 -0
  26. tccli/services/monitor/v20180724/examples.json +8 -0
  27. tccli/services/mps/mps_client.py +501 -24
  28. tccli/services/mps/v20190612/api.json +2067 -278
  29. tccli/services/mps/v20190612/examples.json +72 -0
  30. tccli/services/mqtt/v20240516/api.json +1 -1
  31. tccli/services/mqtt/v20240516/examples.json +1 -1
  32. tccli/services/redis/redis_client.py +53 -0
  33. tccli/services/redis/v20180412/api.json +34 -0
  34. tccli/services/redis/v20180412/examples.json +8 -0
  35. tccli/services/tcb/tcb_client.py +53 -0
  36. tccli/services/tcb/v20180608/api.json +220 -153
  37. tccli/services/tcb/v20180608/examples.json +8 -0
  38. tccli/services/tcbr/v20220217/examples.json +1 -1
  39. tccli/services/tdmq/v20200217/api.json +379 -285
  40. tccli/services/tdmq/v20200217/examples.json +1 -1
  41. tccli/services/wedata/v20210820/api.json +54 -0
  42. tccli/services/weilingwith/v20230427/api.json +997 -997
  43. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/METADATA +2 -2
  44. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/RECORD +47 -47
  45. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/WHEEL +0 -0
  46. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/entry_points.txt +0 -0
  47. {tccli-3.0.1289.1.dist-info → tccli-3.0.1290.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1289.1'
1
+ __version__ = '3.0.1290.1'
@@ -4011,25 +4011,25 @@
4011
4011
  "members": [
4012
4012
  {
4013
4013
  "disabled": false,
4014
- "document": "组件类型编码\n注意:此字段可能返回 null,表示取不到有效值。",
4014
+ "document": "组件类型编码",
4015
4015
  "example": "v_cvm_cpu",
4016
4016
  "member": "string",
4017
4017
  "name": "ComponentCode",
4018
4018
  "output_required": true,
4019
4019
  "required": true,
4020
4020
  "type": "string",
4021
- "value_allowed_null": true
4021
+ "value_allowed_null": false
4022
4022
  },
4023
4023
  {
4024
4024
  "disabled": false,
4025
- "document": "组件类型:用户购买的产品或服务对应的组件大类\n注意:此字段可能返回 null,表示取不到有效值。",
4025
+ "document": "组件类型:用户购买的产品或服务对应的组件大类",
4026
4026
  "example": "CPU",
4027
4027
  "member": "string",
4028
4028
  "name": "ComponentCodeName",
4029
4029
  "output_required": true,
4030
4030
  "required": true,
4031
4031
  "type": "string",
4032
- "value_allowed_null": true
4032
+ "value_allowed_null": false
4033
4033
  }
4034
4034
  ],
4035
4035
  "usage": "both"
@@ -6820,7 +6820,7 @@
6820
6820
  {
6821
6821
  "disabled": false,
6822
6822
  "document": "产品消费详情",
6823
- "example": "[{\"BusinessCode\":\"p_cvm\",\"BusinessCodeName\":\"云服务器CVM\",\"RegionName\":\"华北地区(北京)\",\"RealTotalCost\":\"39122.58\",\"CashPayAmount\":\"39122.57837976\",\"IncentivePayAmount\":\"0.00000000\",\"VoucherPayAmount\":\"0.00000000\",\"TransferPayAmount\":\"0.00000000\",\"Trend\":{\"Type\":\"downward\",\"Value\":\"34.77\"}}]",
6823
+ "example": "",
6824
6824
  "member": "ConsumptionBusinessSummaryDataItem",
6825
6825
  "name": "Business",
6826
6826
  "output_required": true,
@@ -6829,43 +6829,43 @@
6829
6829
  },
6830
6830
  {
6831
6831
  "disabled": false,
6832
- "document": "现金\n注意:此字段可能返回 null,表示取不到有效值。",
6832
+ "document": "现金",
6833
6833
  "example": "77916.41339286",
6834
6834
  "member": "string",
6835
6835
  "name": "CashPayAmount",
6836
6836
  "output_required": false,
6837
6837
  "type": "string",
6838
- "value_allowed_null": true
6838
+ "value_allowed_null": false
6839
6839
  },
6840
6840
  {
6841
6841
  "disabled": false,
6842
- "document": "代金券\n注意:此字段可能返回 null,表示取不到有效值。",
6842
+ "document": "代金券",
6843
6843
  "example": "0.00000000",
6844
6844
  "member": "string",
6845
6845
  "name": "VoucherPayAmount",
6846
6846
  "output_required": false,
6847
6847
  "type": "string",
6848
- "value_allowed_null": true
6848
+ "value_allowed_null": false
6849
6849
  },
6850
6850
  {
6851
6851
  "disabled": false,
6852
- "document": "赠送金\n注意:此字段可能返回 null,表示取不到有效值。",
6852
+ "document": "赠送金",
6853
6853
  "example": "0.00000000",
6854
6854
  "member": "string",
6855
6855
  "name": "IncentivePayAmount",
6856
6856
  "output_required": false,
6857
6857
  "type": "string",
6858
- "value_allowed_null": true
6858
+ "value_allowed_null": false
6859
6859
  },
6860
6860
  {
6861
6861
  "disabled": false,
6862
- "document": "分成金\n注意:此字段可能返回 null,表示取不到有效值。",
6862
+ "document": "分成金",
6863
6863
  "example": "0.00000000",
6864
6864
  "member": "string",
6865
6865
  "name": "TransferPayAmount",
6866
6866
  "output_required": false,
6867
6867
  "type": "string",
6868
- "value_allowed_null": true
6868
+ "value_allowed_null": false
6869
6869
  }
6870
6870
  ],
6871
6871
  "usage": "out"
@@ -9970,7 +9970,7 @@
9970
9970
  {
9971
9971
  "disabled": false,
9972
9972
  "document": "详情列表",
9973
- "example": "[ \t\t\t{ \t\t\t\t\"ActionType\": \"postpay_deduct_h\", \t\t\t\t\"ActionTypeName\": \"按量计费小时结\", \t\t\t\t\"AssociatedOrder\": null, \t\t\t\t\"BillId\": \"20230816400705427744482\", \t\t\t\t\"BusinessCode\": \"p_nat\", \t\t\t\t\"BusinessCodeName\": \"NAT网关\", \t\t\t\t\"ComponentSet\": [ \t\t\t\t\t{ \t\t\t\t\t\t\"BlendedDiscount\": \"0.68040500\", \t\t\t\t\t\t\"CashPayAmount\": \"0.34020250\", \t\t\t\t\t\t\"ComponentCode\": \"v_nat_hour_instance\", \t\t\t\t\t\t\"ComponentCodeName\": \"实例\", \t\t\t\t\t\t\"ComponentConfig\": [], \t\t\t\t\t\t\"ContractPrice\": \"0.34020250\", \t\t\t\t\t\t\"Cost\": \"0.50000000\", \t\t\t\t\t\t\"DeductedMeasure\": \"-\", \t\t\t\t\t\t\"Discount\": \"0.680405\", \t\t\t\t\t\t\"IncentivePayAmount\": \"0\", \t\t\t\t\t\t\"InstanceType\": \"\", \t\t\t\t\t\t\"ItemCode\": \"sv_nat_hour_instance_small\", \t\t\t\t\t\t\"ItemCodeName\": \"NAT网关-小型实例\", \t\t\t\t\t\t\"OriginalCostWithRI\": \"0.00000000\", \t\t\t\t\t\t\"OriginalCostWithSP\": \"0.00000000\", \t\t\t\t\t\t\"PriceUnit\": \"元/100个/小时\", \t\t\t\t\t\t\"RealCost\": \"0.34020250\", \t\t\t\t\t\t\"RealTotalMeasure\": \"-\", \t\t\t\t\t\t\"ReduceType\": \"折扣\", \t\t\t\t\t\t\"RiTimeSpan\": \"0.00000000\", \t\t\t\t\t\t\"SPDeduction\": \"0.00000000\", \t\t\t\t\t\t\"SPDeductionRate\": \"0.00000000\", \t\t\t\t\t\t\"SinglePrice\": \"0.50000000\", \t\t\t\t\t\t\"SpecifiedPrice\": \"0.50000000\", \t\t\t\t\t\t\"TimeSpan\": \"1\", \t\t\t\t\t\t\"TimeUnitName\": \"小时\", \t\t\t\t\t\t\"TransferPayAmount\": \"0\", \t\t\t\t\t\t\"UsedAmount\": \"100\", \t\t\t\t\t\t\"UsedAmountUnit\": \"个\", \t\t\t\t\t\t\"VoucherPayAmount\": \"0\" \t\t\t\t\t} \t\t\t\t], \t\t\t\t\"FeeBeginTime\": \"2023-08-16 20:00:00\", \t\t\t\t\"FeeEndTime\": \"2023-08-16 20:59:59\", \t\t\t\t\"Formula\": \"-\", \t\t\t\t\"FormulaUrl\": \"https://buy.cloud.tencent.com/price/nat\", \t\t\t\t\"OperateUin\": \"700000686592\", \t\t\t\t\"OrderId\": \"20230816867705427744432\", \t\t\t\t\"OwnerUin\": \"700000686592\", \t\t\t\t\"PayModeName\": \"按量计费\", \t\t\t\t\"PayTime\": \"2023-08-16 21:15:38\", \t\t\t\t\"PriceInfo\": [], \t\t\t\t\"ProductCode\": \"sp_nat\", \t\t\t\t\"ProductCodeName\": \"NAT网关\", \t\t\t\t\"ProjectId\": 0, \t\t\t\t\"ProjectName\": \"默认项目\", \t\t\t\t\"RegionId\": \"4\", \t\t\t\t\"RegionName\": \"华东地区(上海)\", \t\t\t\t\"ResourceId\": \"nat-ftuh6xel\", \t\t\t\t\"ResourceName\": \"migration-nat-test3\", \t\t\t\t\"Tags\": [], \t\t\t\t\"ZoneName\": \"其他\" \t\t\t} \t\t]",
9973
+ "example": "",
9974
9974
  "member": "DistributionBillDetail",
9975
9975
  "name": "DetailSet",
9976
9976
  "output_required": true,
@@ -9989,13 +9989,13 @@
9989
9989
  },
9990
9990
  {
9991
9991
  "disabled": false,
9992
- "document": "本次请求的上下文信息,可用于下一次请求的请求参数中,加快查询速度\n注意:此字段可能返回 null,表示取不到有效值。",
9992
+ "document": "本次请求的上下文信息,可用于下一次请求的请求参数中,加快查询速度",
9993
9993
  "example": "UEEJBfSsteS7dZgAaEEziWS40d4sn4urG7",
9994
9994
  "member": "string",
9995
9995
  "name": "Context",
9996
9996
  "output_required": true,
9997
9997
  "type": "string",
9998
- "value_allowed_null": true
9998
+ "value_allowed_null": false
9999
9999
  },
10000
10000
  {
10001
10001
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -116,7 +116,7 @@
116
116
  {
117
117
  "document": "获取账单明细",
118
118
  "input": "POST / HTTP/1.1\nHost: billing.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeOrganizationBillDetail\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 1,\n \"Month\": \"2023-08\",\n \"NeedRecordNum\": 1,\n \"ResourceId\": \"nat-ftuh6xel\"\n}",
119
- "output": "{\n \"Response\": {\n \"Context\": \"TQpr+vp4d9EeM04pEI6ryHAVS3ZI84mbSVbUzlTD1F8EzZ6vYfNp+wKVhGw0dGkA2iAr5lSGYE4O+bTWApdUY6ZcLDZGpQVYCVApRrjx0IUf6NJGoV8FXlYLQxABqcSt\",\n \"DetailSet\": [\n {\n \"ActionType\": \"postpay_deduct_h\",\n \"ActionTypeName\": \"按量计费小时结\",\n \"AssociatedOrder\": null,\n \"BillId\": \"20230816400705427744482\",\n \"BusinessCode\": \"p_nat\",\n \"BusinessCodeName\": \"NAT网关\",\n \"ComponentSet\": [\n {\n \"BlendedDiscount\": \"0.68040500\",\n \"CashPayAmount\": \"0.34020250\",\n \"ComponentCode\": \"v_nat_hour_instance\",\n \"ComponentCodeName\": \"实例\",\n \"ComponentConfig\": [],\n \"ContractPrice\": \"0.34020250\",\n \"Cost\": \"0.50000000\",\n \"DeductedMeasure\": \"1\",\n \"Discount\": \"0.680405\",\n \"IncentivePayAmount\": \"0\",\n \"InstanceType\": \"ri\",\n \"ItemCode\": \"sv_nat_hour_instance_small\",\n \"ItemCodeName\": \"NAT网关-小型实例\",\n \"OriginalCostWithRI\": \"0.00000000\",\n \"OriginalCostWithSP\": \"0.00000000\",\n \"PriceUnit\": \"元/100个/小时\",\n \"RealCost\": \"0.34020250\",\n \"RealTotalMeasure\": \"1\",\n \"ReduceType\": \"折扣\",\n \"RiTimeSpan\": \"0.00000000\",\n \"SPDeduction\": \"0.00000000\",\n \"SPDeductionRate\": \"0.00000000\",\n \"SinglePrice\": \"0.50000000\",\n \"SpecifiedPrice\": \"0.50000000\",\n \"TimeSpan\": \"1\",\n \"TimeUnitName\": \"小时\",\n \"TransferPayAmount\": \"0\",\n \"UsedAmount\": \"100\",\n \"UsedAmountUnit\": \"个\",\n \"VoucherPayAmount\": \"0\"\n }\n ],\n \"FeeBeginTime\": \"2023-08-16 20:00:00\",\n \"FeeEndTime\": \"2023-08-16 20:59:59\",\n \"Formula\": \"退款:118.2元,现金券: 0元,代金券/折扣券不退(全额退款;\",\n \"FormulaUrl\": \"https://buy.cloud.tencent.com/price/nat\",\n \"OperateUin\": \"700000686592\",\n \"OrderId\": \"20230816867705427744432\",\n \"OwnerUin\": \"700000686592\",\n \"PayModeName\": \"按量计费\",\n \"PayTime\": \"2023-08-16 21:15:38\",\n \"PriceInfo\": [],\n \"ProductCode\": \"sp_nat\",\n \"ProductCodeName\": \"NAT网关\",\n \"ProjectId\": 0,\n \"ProjectName\": \"默认项目\",\n \"RegionId\": \"4\",\n \"RegionName\": \"华东地区(上海)\",\n \"ResourceId\": \"nat-ftuh6xel\",\n \"ResourceName\": \"migration-nat-test3\",\n \"Tags\": [],\n \"ZoneName\": \"其他\"\n }\n ],\n \"RequestId\": \"48f32947-8ef2-40b3-94ef-b8c08fc030da\",\n \"Total\": 544\n }\n}",
119
+ "output": "{\n \"Response\": {\n \"Context\": \"TQpr+vp4d9EeM04pEI6ryHAVS3ZI84mbSVbUzlTD1F8EzZ6vYfNp+wKVhGw0dGkA2iAr5lSGYE4O+bTWApdUY6ZcLDZGpQVYCVApRrjx0IUf6NJGoV8FXlYLQxABqcSt\",\n \"DetailSet\": [\n {\n \"ActionType\": \"postpay_deduct_h\",\n \"ActionTypeName\": \"按量计费小时结\",\n \"AssociatedOrder\": {\n \"PrepayPurchase\": \"20230707400000439953321\",\n \"PrepayRenew\": \"20230707400000440668101,20230707400000440730331,20230707400000440886501\"\n },\n \"BillId\": \"20230816400705427744482\",\n \"BusinessCode\": \"p_nat\",\n \"BusinessCodeName\": \"NAT网关\",\n \"ComponentSet\": [\n {\n \"BlendedDiscount\": \"0.68040500\",\n \"CashPayAmount\": \"0.34020250\",\n \"ComponentCode\": \"v_nat_hour_instance\",\n \"ComponentCodeName\": \"实例\",\n \"ComponentConfig\": [],\n \"ContractPrice\": \"0.34020250\",\n \"Cost\": \"0.50000000\",\n \"DeductedMeasure\": \"1\",\n \"Discount\": \"0.680405\",\n \"IncentivePayAmount\": \"0\",\n \"InstanceType\": \"ri\",\n \"ItemCode\": \"sv_nat_hour_instance_small\",\n \"ItemCodeName\": \"NAT网关-小型实例\",\n \"OriginalCostWithRI\": \"0.00000000\",\n \"OriginalCostWithSP\": \"0.00000000\",\n \"PriceUnit\": \"元/100个/小时\",\n \"RealCost\": \"0.34020250\",\n \"RealTotalMeasure\": \"1\",\n \"ReduceType\": \"折扣\",\n \"RiTimeSpan\": \"0.00000000\",\n \"SPDeduction\": \"0.00000000\",\n \"SPDeductionRate\": \"0.00000000\",\n \"SinglePrice\": \"0.50000000\",\n \"SpecifiedPrice\": \"0.50000000\",\n \"TimeSpan\": \"1\",\n \"TimeUnitName\": \"小时\",\n \"TransferPayAmount\": \"0\",\n \"UsedAmount\": \"100\",\n \"UsedAmountUnit\": \"个\",\n \"VoucherPayAmount\": \"0\"\n }\n ],\n \"FeeBeginTime\": \"2023-08-16 20:00:00\",\n \"FeeEndTime\": \"2023-08-16 20:59:59\",\n \"Formula\": \"退款:118.2元,现金券: 0元,代金券/折扣券不退(全额退款;\",\n \"FormulaUrl\": \"https://buy.cloud.tencent.com/price/nat\",\n \"OperateUin\": \"700000686592\",\n \"OrderId\": \"20230816867705427744432\",\n \"OwnerUin\": \"700000686592\",\n \"PayModeName\": \"按量计费\",\n \"PayTime\": \"2023-08-16 21:15:38\",\n \"PriceInfo\": [\n \"linux\",\n \"第三阶梯\",\n \"云平\"\n ],\n \"ProductCode\": \"sp_nat\",\n \"ProductCodeName\": \"NAT网关\",\n \"ProjectId\": 0,\n \"ProjectName\": \"默认项目\",\n \"RegionId\": \"4\",\n \"RegionName\": \"华东地区(上海)\",\n \"ResourceId\": \"nat-ftuh6xel\",\n \"ResourceName\": \"migration-nat-test3\",\n \"Tags\": [\n {\n \"TagKey\": \"jemmahuang\",\n \"TagValue\": \"jemmahuang\"\n }\n ],\n \"ZoneName\": \"其他\"\n }\n ],\n \"RequestId\": \"48f32947-8ef2-40b3-94ef-b8c08fc030da\",\n \"Total\": 544\n }\n}",
120
120
  "title": "获取账单明细"
121
121
  }
122
122
  ],
@@ -2201,6 +2201,58 @@ def doCreateDatabase(args, parsed_globals):
2201
2201
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2202
2202
 
2203
2203
 
2204
+ def doDescribeCPUExpandStrategyInfo(args, parsed_globals):
2205
+ g_param = parse_global_arg(parsed_globals)
2206
+
2207
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2208
+ cred = credential.CVMRoleCredential()
2209
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2210
+ cred = credential.STSAssumeRoleCredential(
2211
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2212
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2213
+ )
2214
+ 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):
2215
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2216
+ else:
2217
+ cred = credential.Credential(
2218
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2219
+ )
2220
+ http_profile = HttpProfile(
2221
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2222
+ reqMethod="POST",
2223
+ endpoint=g_param[OptionsDefine.Endpoint],
2224
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2225
+ )
2226
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2227
+ if g_param[OptionsDefine.Language]:
2228
+ profile.language = g_param[OptionsDefine.Language]
2229
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2230
+ client = mod.CdbClient(cred, g_param[OptionsDefine.Region], profile)
2231
+ client._sdkVersion += ("_CLI_" + __version__)
2232
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2233
+ model = models.DescribeCPUExpandStrategyInfoRequest()
2234
+ model.from_json_string(json.dumps(args))
2235
+ start_time = time.time()
2236
+ while True:
2237
+ rsp = client.DescribeCPUExpandStrategyInfo(model)
2238
+ result = rsp.to_json_string()
2239
+ try:
2240
+ json_obj = json.loads(result)
2241
+ except TypeError as e:
2242
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2243
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2244
+ break
2245
+ cur_time = time.time()
2246
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2247
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2248
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2249
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2250
+ else:
2251
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2252
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2253
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2254
+
2255
+
2204
2256
  def doDisassociateSecurityGroups(args, parsed_globals):
2205
2257
  g_param = parse_global_arg(parsed_globals)
2206
2258
 
@@ -9014,6 +9066,7 @@ ACTION_MAP = {
9014
9066
  "DescribeErrorLogData": doDescribeErrorLogData,
9015
9067
  "SwitchDBInstanceMasterSlave": doSwitchDBInstanceMasterSlave,
9016
9068
  "CreateDatabase": doCreateDatabase,
9069
+ "DescribeCPUExpandStrategyInfo": doDescribeCPUExpandStrategyInfo,
9017
9070
  "DisassociateSecurityGroups": doDisassociateSecurityGroups,
9018
9071
  "ModifyCdbProxyParam": doModifyCdbProxyParam,
9019
9072
  "DescribeTables": doDescribeTables,
@@ -420,6 +420,13 @@
420
420
  "output": "DescribeBinlogsResponse",
421
421
  "status": "online"
422
422
  },
423
+ "DescribeCPUExpandStrategyInfo": {
424
+ "document": "通过该 API 可以查询实例的 CPU 弹性扩容信息",
425
+ "input": "DescribeCPUExpandStrategyInfoRequest",
426
+ "name": "查询实例的 CPU 弹性扩容策略信息",
427
+ "output": "DescribeCPUExpandStrategyInfoResponse",
428
+ "status": "online"
429
+ },
423
430
  "DescribeCdbProxyInfo": {
424
431
  "document": "本接口(DescribeCdbProxyInfo)用于查询数据库代理详情信息。",
425
432
  "input": "DescribeCdbProxyInfoRequest",
@@ -9215,6 +9222,63 @@
9215
9222
  ],
9216
9223
  "type": "object"
9217
9224
  },
9225
+ "DescribeCPUExpandStrategyInfoRequest": {
9226
+ "document": "DescribeCPUExpandStrategyInfo请求参数结构体",
9227
+ "members": [
9228
+ {
9229
+ "disabled": false,
9230
+ "document": "实例 ID 。",
9231
+ "example": "cdb-xxdasd",
9232
+ "member": "string",
9233
+ "name": "InstanceId",
9234
+ "required": true,
9235
+ "type": "string"
9236
+ }
9237
+ ],
9238
+ "type": "object"
9239
+ },
9240
+ "DescribeCPUExpandStrategyInfoResponse": {
9241
+ "document": "DescribeCPUExpandStrategyInfo返回参数结构体",
9242
+ "members": [
9243
+ {
9244
+ "disabled": false,
9245
+ "document": "策略类型。可选值 auto、manual。如果返回为NULL说明尚未开通弹性扩容策略\n注意:此字段可能返回 null,表示取不到有效值。",
9246
+ "example": "auto",
9247
+ "member": "string",
9248
+ "name": "Type",
9249
+ "output_required": true,
9250
+ "type": "string",
9251
+ "value_allowed_null": true
9252
+ },
9253
+ {
9254
+ "disabled": false,
9255
+ "document": "手动扩容的 CPU 。Type为 manual 时有效。\n注意:此字段可能返回 null,表示取不到有效值。",
9256
+ "example": "4",
9257
+ "member": "int64",
9258
+ "name": "ExpandCpu",
9259
+ "output_required": false,
9260
+ "type": "int",
9261
+ "value_allowed_null": true
9262
+ },
9263
+ {
9264
+ "disabled": false,
9265
+ "document": "自动扩容策略。Type 为 auto 时有效\n注意:此字段可能返回 null,表示取不到有效值。",
9266
+ "example": "略",
9267
+ "member": "AutoStrategy",
9268
+ "name": "AutoStrategy",
9269
+ "output_required": false,
9270
+ "type": "object",
9271
+ "value_allowed_null": true
9272
+ },
9273
+ {
9274
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
9275
+ "member": "string",
9276
+ "name": "RequestId",
9277
+ "type": "string"
9278
+ }
9279
+ ],
9280
+ "type": "object"
9281
+ },
9218
9282
  "DescribeCdbProxyInfoRequest": {
9219
9283
  "document": "DescribeCdbProxyInfo请求参数结构体",
9220
9284
  "members": [
@@ -516,6 +516,14 @@
516
516
  "title": "查询二进制日志"
517
517
  }
518
518
  ],
519
+ "DescribeCPUExpandStrategyInfo": [
520
+ {
521
+ "document": "",
522
+ "input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCPUExpandStrategyInfo\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-sad1dsfa\"\n}",
523
+ "output": "{\n \"Response\": {\n \"Type\": \"auto\",\n \"ExpandCpu\": \"4\",\n \"AutoStrategy\": {\n \"ExpandThreshold\": 0,\n \"ShrinkThreshold\": 0,\n \"ExpandPeriod\": 0,\n \"ShrinkPeriod\": 0\n },\n \"RequestId\": \"sasd8asf-f78asd-fas8-dga9-gdfadf1234\"\n }\n}",
524
+ "title": "查询实例的 CPU 弹性扩容策略"
525
+ }
526
+ ],
519
527
  "DescribeCdbProxyInfo": [
520
528
  {
521
529
  "document": "查询代理信息",
@@ -3514,6 +3514,15 @@
3514
3514
  "required": false,
3515
3515
  "type": "string"
3516
3516
  },
3517
+ {
3518
+ "disabled": false,
3519
+ "document": "目标组后端转发协议。v2新版目标组该项必填。目前支持tcp、udp。",
3520
+ "example": "tcp",
3521
+ "member": "string",
3522
+ "name": "Protocol",
3523
+ "required": false,
3524
+ "type": "string"
3525
+ },
3517
3526
  {
3518
3527
  "disabled": false,
3519
3528
  "document": "标签。",
@@ -3589,7 +3598,7 @@
3589
3598
  },
3590
3599
  {
3591
3600
  "disabled": false,
3592
- "document": "日志集的保存周期,单位:天,默认30天,范围[1, 3600]。",
3601
+ "document": "存储时间,单位天\n- 日志接入标准存储时,支持1至3600天,值为3640时代表永久保存。\n- 日志接入低频存储时,支持7至3600天,值为3640时代表永久保存。",
3593
3602
  "example": "30",
3594
3603
  "member": "uint64",
3595
3604
  "name": "Period",
@@ -7791,7 +7800,7 @@
7791
7800
  },
7792
7801
  {
7793
7802
  "disabled": false,
7794
- "document": "负载均衡IP地址所属的运营商。取值范围(BGPCMCCCTCCCUCC)\n注意:此字段可能返回 null,表示取不到有效值。",
7803
+ "document": "负载均衡IP地址所属的运营商。\n\n- BGP : BGP(多线)\n- CMCC:中国移动单线\n- CTCC:中国电信单线\n- CUCC:中国联通单线\n注意:此字段可能返回 null,表示取不到有效值。",
7795
7804
  "example": "BGP",
7796
7805
  "member": "string",
7797
7806
  "name": "VipIsp",
@@ -8202,8 +8211,8 @@
8202
8211
  },
8203
8212
  {
8204
8213
  "disabled": false,
8205
- "document": "负载均衡实例的网络类型:\nOPEN:公网属性,INTERNAL:内网属性;对于内网属性的负载均衡,可通过绑定EIP出公网,具体可参考EIP文档。\n注意:此字段可能返回 null,表示取不到有效值。",
8206
- "example": "OPEN",
8214
+ "document": "负载均衡实例的网络类型:\nPublic:公网属性,Private:内网属性;对于内网属性的负载均衡,可通过绑定EIP出公网,具体可参考EIP文档。\n注意:此字段可能返回 null,表示取不到有效值。",
8215
+ "example": "Public",
8207
8216
  "member": "string",
8208
8217
  "name": "LoadBalancerType",
8209
8218
  "output_required": true,
@@ -11237,7 +11246,7 @@
11237
11246
  },
11238
11247
  {
11239
11248
  "disabled": false,
11240
- "document": "日志服务(CLS)的日志集 ID。\n<li>增加和更新日志主题时可调用 [DescribeLogsets](https://cloud.tencent.com/document/product/614/58624) 接口获取日志集 ID。</li>\n<li>删除日志主题时,此参数填写为null即可。</li>",
11249
+ "document": "日志服务(CLS)的日志集 ID。\n<li>增加和更新日志主题时可调用 [DescribeLogsets](https://cloud.tencent.com/document/product/614/58624) 接口获取日志集 ID。</li>\n<li>删除日志主题时,此参数填写为**空字符串**即可。</li>",
11241
11250
  "example": "xxxx-xx-xx-xx-xxxxxxxx",
11242
11251
  "member": "string",
11243
11252
  "name": "LogSetId",
@@ -11246,7 +11255,7 @@
11246
11255
  },
11247
11256
  {
11248
11257
  "disabled": false,
11249
- "document": "日志服务(CLS)的日志主题 ID。\n<li>增加和更新日志主题时可调用 [DescribeTopics](https://cloud.tencent.com/document/product/614/56454) 接口获取日志主题 ID。</li>\n<li>删除日志主题时,此参数填写为null即可。</li>",
11258
+ "document": "日志服务(CLS)的日志主题 ID。\n<li>增加和更新日志主题时可调用 [DescribeTopics](https://cloud.tencent.com/document/product/614/56454) 接口获取日志主题 ID。</li>\n<li>删除日志主题时,此参数填写为**空字符串**即可。</li>",
11250
11259
  "example": "xxxx-xx-xx-xx-yyyyyyyy",
11251
11260
  "member": "string",
11252
11261
  "name": "LogTopicId",
@@ -11884,8 +11893,7 @@
11884
11893
  "member": "string",
11885
11894
  "name": "BindIP",
11886
11895
  "required": true,
11887
- "type": "string",
11888
- "value_allowed_null": false
11896
+ "type": "string"
11889
11897
  },
11890
11898
  {
11891
11899
  "disabled": false,
@@ -11894,8 +11902,7 @@
11894
11902
  "member": "uint64",
11895
11903
  "name": "Port",
11896
11904
  "required": false,
11897
- "type": "int",
11898
- "value_allowed_null": false
11905
+ "type": "int"
11899
11906
  },
11900
11907
  {
11901
11908
  "disabled": false,
@@ -11904,8 +11911,7 @@
11904
11911
  "member": "uint64",
11905
11912
  "name": "Weight",
11906
11913
  "required": false,
11907
- "type": "int",
11908
- "value_allowed_null": false
11914
+ "type": "int"
11909
11915
  },
11910
11916
  {
11911
11917
  "disabled": false,
@@ -11914,8 +11920,7 @@
11914
11920
  "member": "uint64",
11915
11921
  "name": "NewPort",
11916
11922
  "required": false,
11917
- "type": "int",
11918
- "value_allowed_null": false
11923
+ "type": "int"
11919
11924
  }
11920
11925
  ],
11921
11926
  "usage": "in"