tccli 3.0.1289.1__py2.py3-none-any.whl → 3.0.1291.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 (88) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/antiddos/v20200309/api.json +132 -103
  3. tccli/services/antiddos/v20200309/examples.json +5 -5
  4. tccli/services/bi/v20220105/api.json +1 -1
  5. tccli/services/bi/v20220105/examples.json +1 -1
  6. tccli/services/billing/v20180709/api.json +16 -16
  7. tccli/services/billing/v20180709/examples.json +1 -1
  8. tccli/services/cam/v20190116/api.json +39 -33
  9. tccli/services/cam/v20190116/examples.json +1 -1
  10. tccli/services/cbs/v20170312/api.json +24 -20
  11. tccli/services/cdb/cdb_client.py +53 -0
  12. tccli/services/cdb/v20170320/api.json +64 -0
  13. tccli/services/cdb/v20170320/examples.json +8 -0
  14. tccli/services/cdwch/v20200915/api.json +204 -199
  15. tccli/services/cdwch/v20200915/examples.json +11 -11
  16. tccli/services/ckafka/v20190819/api.json +273 -268
  17. tccli/services/clb/v20180317/api.json +31 -22
  18. tccli/services/cls/cls_client.py +18 -230
  19. tccli/services/cls/v20201016/api.json +285 -687
  20. tccli/services/cls/v20201016/examples.json +2 -34
  21. tccli/services/cvm/v20170312/api.json +10 -0
  22. tccli/services/cynosdb/v20190107/api.json +97 -97
  23. tccli/services/dbbrain/v20191016/api.json +54 -51
  24. tccli/services/dbbrain/v20210527/api.json +125 -125
  25. tccli/services/dcdb/v20180411/api.json +48 -48
  26. tccli/services/dnspod/dnspod_client.py +466 -307
  27. tccli/services/dnspod/v20210323/api.json +391 -0
  28. tccli/services/dnspod/v20210323/examples.json +24 -0
  29. tccli/services/domain/v20180808/api.json +8 -8
  30. tccli/services/dsgc/dsgc_client.py +0 -53
  31. tccli/services/dsgc/v20190723/api.json +0 -24
  32. tccli/services/dsgc/v20190723/examples.json +0 -8
  33. tccli/services/ess/v20201111/api.json +1 -1
  34. tccli/services/essbasic/v20210526/api.json +1 -1
  35. tccli/services/fmu/v20191213/api.json +2 -2
  36. tccli/services/goosefs/v20220519/api.json +2 -2
  37. tccli/services/gwlb/v20240906/api.json +1 -1
  38. tccli/services/iotcloud/v20210408/api.json +66 -66
  39. tccli/services/iotcloud/v20210408/examples.json +13 -13
  40. tccli/services/iotvideoindustry/v20201201/api.json +542 -523
  41. tccli/services/iotvideoindustry/v20201201/examples.json +15 -15
  42. tccli/services/lighthouse/v20200324/api.json +8 -8
  43. tccli/services/lke/v20231130/api.json +10 -0
  44. tccli/services/lowcode/v20210108/api.json +2 -2
  45. tccli/services/mariadb/v20170312/api.json +42 -42
  46. tccli/services/mariadb/v20170312/examples.json +12 -0
  47. tccli/services/mmps/v20200710/api.json +95 -95
  48. tccli/services/monitor/monitor_client.py +53 -0
  49. tccli/services/monitor/v20180724/api.json +144 -0
  50. tccli/services/monitor/v20180724/examples.json +8 -0
  51. tccli/services/mps/mps_client.py +501 -24
  52. tccli/services/mps/v20190612/api.json +2071 -282
  53. tccli/services/mps/v20190612/examples.json +72 -0
  54. tccli/services/mqtt/v20240516/api.json +1 -1
  55. tccli/services/mqtt/v20240516/examples.json +1 -1
  56. tccli/services/postgres/v20170312/api.json +308 -283
  57. tccli/services/redis/redis_client.py +53 -0
  58. tccli/services/redis/v20180412/api.json +34 -0
  59. tccli/services/redis/v20180412/examples.json +8 -0
  60. tccli/services/svp/v20240125/api.json +66 -66
  61. tccli/services/svp/v20240125/examples.json +1 -1
  62. tccli/services/tcb/tcb_client.py +53 -53
  63. tccli/services/tcb/v20180608/api.json +220 -263
  64. tccli/services/tcb/v20180608/examples.json +8 -8
  65. tccli/services/tcbr/v20220217/examples.json +1 -1
  66. tccli/services/tcss/tcss_client.py +224 -277
  67. tccli/services/tcss/v20201101/api.json +4618 -4329
  68. tccli/services/tcss/v20201101/examples.json +207 -221
  69. tccli/services/tdmq/tdmq_client.py +0 -53
  70. tccli/services/tdmq/v20200217/api.json +379 -374
  71. tccli/services/tdmq/v20200217/examples.json +1 -9
  72. tccli/services/teo/teo_client.py +53 -0
  73. tccli/services/teo/v20220901/api.json +82 -11
  74. tccli/services/teo/v20220901/examples.json +8 -0
  75. tccli/services/thpc/v20211109/api.json +8 -8
  76. tccli/services/thpc/v20220401/api.json +8 -8
  77. tccli/services/thpc/v20230321/api.json +11 -10
  78. tccli/services/tke/v20180525/api.json +60 -60
  79. tccli/services/tke/v20220501/api.json +34 -34
  80. tccli/services/vpc/v20170312/api.json +44 -44
  81. tccli/services/waf/v20180125/api.json +9 -0
  82. tccli/services/wedata/v20210820/api.json +73 -0
  83. tccli/services/weilingwith/v20230427/api.json +997 -997
  84. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/METADATA +2 -2
  85. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/RECORD +88 -88
  86. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/WHEEL +0 -0
  87. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/entry_points.txt +0 -0
  88. {tccli-3.0.1289.1.dist-info → tccli-3.0.1291.1.dist-info}/license_files/LICENSE +0 -0
@@ -335,43 +335,47 @@
335
335
  "members": [
336
336
  {
337
337
  "disabled": false,
338
- "document": "保留最新快照Days天内的每天最新的一个快照,取值范围:[0, 100]\n注意:此字段可能返回 null,表示取不到有效值。",
338
+ "document": "保留最新快照Days天内的每天最新的一个快照,取值范围:[0, 100]",
339
339
  "example": "6",
340
340
  "member": "uint64",
341
341
  "name": "Days",
342
+ "output_required": true,
342
343
  "required": true,
343
344
  "type": "int",
344
- "value_allowed_null": true
345
+ "value_allowed_null": false
345
346
  },
346
347
  {
347
348
  "disabled": false,
348
- "document": "保留最新快照Weeks周内的每周最新的一个快照,取值范围:[0, 100]\n注意:此字段可能返回 null,表示取不到有效值。",
349
+ "document": "保留最新快照Weeks周内的每周最新的一个快照,取值范围:[0, 100]",
349
350
  "example": "8",
350
351
  "member": "uint64",
351
352
  "name": "Weeks",
353
+ "output_required": true,
352
354
  "required": true,
353
355
  "type": "int",
354
- "value_allowed_null": true
356
+ "value_allowed_null": false
355
357
  },
356
358
  {
357
359
  "disabled": false,
358
- "document": "保留最新快照Months月内的每月最新的一个快照, 取值范围:[0, 100]\n注意:此字段可能返回 null,表示取不到有效值。",
360
+ "document": "保留最新快照Months月内的每月最新的一个快照, 取值范围:[0, 100]",
359
361
  "example": "3",
360
362
  "member": "uint64",
361
363
  "name": "Months",
364
+ "output_required": true,
362
365
  "required": true,
363
366
  "type": "int",
364
- "value_allowed_null": true
367
+ "value_allowed_null": false
365
368
  },
366
369
  {
367
370
  "disabled": false,
368
- "document": "保留最新快照Years年内的每年最新的一个快照,取值范围:[0, 100]\n注意:此字段可能返回 null,表示取不到有效值。",
371
+ "document": "保留最新快照Years年内的每年最新的一个快照,取值范围:[0, 100]",
369
372
  "example": "1",
370
373
  "member": "uint64",
371
374
  "name": "Years",
375
+ "output_required": true,
372
376
  "required": true,
373
377
  "type": "int",
374
- "value_allowed_null": true
378
+ "value_allowed_null": false
375
379
  }
376
380
  ],
377
381
  "usage": "both"
@@ -722,13 +726,13 @@
722
726
  },
723
727
  {
724
728
  "disabled": false,
725
- "document": "是否是跨账号复制快照快照, 1:是, 0: 不是\n注意:此字段可能返回 null,表示取不到有效值。",
729
+ "document": "是否是跨账号复制快照快照, 1:是, 0: 不是",
726
730
  "example": "0",
727
731
  "member": "uint64",
728
732
  "name": "IsCopyToRemote",
729
733
  "output_required": true,
730
734
  "type": "int",
731
- "value_allowed_null": true
735
+ "value_allowed_null": false
732
736
  },
733
737
  {
734
738
  "disabled": false,
@@ -812,33 +816,33 @@
812
816
  },
813
817
  {
814
818
  "disabled": false,
815
- "document": "已绑定当前定期快照策略的实例ID列表。\n注意:此字段可能返回 null,表示取不到有效值。",
819
+ "document": "已绑定当前定期快照策略的实例ID列表。",
816
820
  "example": "[\"ins-og3j7lue\"]",
817
821
  "member": "string",
818
822
  "name": "InstanceIdSet",
819
823
  "output_required": true,
820
824
  "type": "list",
821
- "value_allowed_null": true
825
+ "value_allowed_null": false
822
826
  },
823
827
  {
824
828
  "disabled": false,
825
- "document": "该定期快照创建的快照可以保留的月数。\n注意:此字段可能返回 null,表示取不到有效值。",
829
+ "document": "该定期快照创建的快照可以保留的月数。",
826
830
  "example": "1",
827
831
  "member": "uint64",
828
832
  "name": "RetentionMonths",
829
833
  "output_required": true,
830
834
  "type": "int",
831
- "value_allowed_null": true
835
+ "value_allowed_null": false
832
836
  },
833
837
  {
834
838
  "disabled": false,
835
- "document": "该定期快照创建的快照最大保留数量。\n注意:此字段可能返回 null,表示取不到有效值。",
839
+ "document": "该定期快照创建的快照最大保留数量。",
836
840
  "example": "5",
837
841
  "member": "uint64",
838
842
  "name": "RetentionAmount",
839
843
  "output_required": true,
840
844
  "type": "int",
841
- "value_allowed_null": true
845
+ "value_allowed_null": false
842
846
  },
843
847
  {
844
848
  "disabled": false,
@@ -862,13 +866,13 @@
862
866
  },
863
867
  {
864
868
  "disabled": false,
865
- "document": "标签。\n注意:此字段可能返回 null,表示取不到有效值。",
869
+ "document": "标签。",
866
870
  "example": "[{'Key': 'test_key', 'Value': 'test_value'}]",
867
871
  "member": "Tag",
868
872
  "name": "Tags",
869
873
  "output_required": true,
870
874
  "type": "list",
871
- "value_allowed_null": true
875
+ "value_allowed_null": false
872
876
  }
873
877
  ],
874
878
  "usage": "out"
@@ -1030,13 +1034,13 @@
1030
1034
  },
1031
1035
  {
1032
1036
  "disabled": false,
1033
- "document": "独享集群的可用容量大小,单位GiB\n注意:此字段可能返回 null,表示取不到有效值。",
1037
+ "document": "独享集群的可用容量大小,单位GiB",
1034
1038
  "example": "100000",
1035
1039
  "member": "uint64",
1036
1040
  "name": "DiskAvailable",
1037
1041
  "output_required": false,
1038
1042
  "type": "int",
1039
- "value_allowed_null": true
1043
+ "value_allowed_null": false
1040
1044
  }
1041
1045
  ],
1042
1046
  "usage": "out"
@@ -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": "查询代理信息",