tccli 3.0.1293.1__py2.py3-none-any.whl → 3.0.1295.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/bh/v20230418/api.json +35 -17
  3. tccli/services/bh/v20230418/examples.json +1 -1
  4. tccli/services/cam/v20190116/api.json +1 -1
  5. tccli/services/cam/v20190116/examples.json +5 -5
  6. tccli/services/captcha/v20190722/api.json +49 -39
  7. tccli/services/cbs/v20170312/api.json +16 -16
  8. tccli/services/ccc/v20200210/api.json +89 -6
  9. tccli/services/ccc/v20200210/examples.json +1 -1
  10. tccli/services/cdc/v20201214/api.json +1 -1
  11. tccli/services/cdwdoris/v20211228/api.json +191 -0
  12. tccli/services/cdwpg/v20201230/api.json +282 -247
  13. tccli/services/cdwpg/v20201230/examples.json +39 -39
  14. tccli/services/chc/v20230418/api.json +92 -92
  15. tccli/services/chc/v20230418/examples.json +5 -5
  16. tccli/services/clb/v20180317/api.json +40 -21
  17. tccli/services/cloudaudit/v20190319/api.json +38 -23
  18. tccli/services/controlcenter/v20230110/api.json +2 -2
  19. tccli/services/controlcenter/v20230110/examples.json +1 -1
  20. tccli/services/dbbrain/v20210527/api.json +8 -8
  21. tccli/services/dbdc/v20201029/api.json +42 -42
  22. tccli/services/dcdb/v20180411/api.json +66 -66
  23. tccli/services/dcdb/v20180411/examples.json +7 -7
  24. tccli/services/dlc/v20210125/api.json +212 -17
  25. tccli/services/emr/v20190103/api.json +89 -89
  26. tccli/services/emr/v20190103/examples.json +1 -1
  27. tccli/services/ess/v20201111/api.json +2 -2
  28. tccli/services/ess/v20201111/examples.json +3 -3
  29. tccli/services/essbasic/v20210526/api.json +4 -4
  30. tccli/services/essbasic/v20210526/examples.json +3 -3
  31. tccli/services/gs/v20191118/api.json +80 -82
  32. tccli/services/gs/v20191118/examples.json +29 -29
  33. tccli/services/hai/v20230812/api.json +98 -98
  34. tccli/services/hunyuan/v20230901/api.json +3 -3
  35. tccli/services/iap/v20240713/api.json +13 -13
  36. tccli/services/iap/v20240713/examples.json +3 -3
  37. tccli/services/iotcloud/v20210408/api.json +29 -29
  38. tccli/services/iotcloud/v20210408/examples.json +6 -6
  39. tccli/services/iotexplorer/v20190423/api.json +1 -1
  40. tccli/services/iotvideo/v20191126/api.json +35 -34
  41. tccli/services/iotvideo/v20191126/examples.json +2 -2
  42. tccli/services/iotvideo/v20201215/api.json +310 -292
  43. tccli/services/iotvideo/v20201215/examples.json +54 -54
  44. tccli/services/iotvideo/v20211125/api.json +283 -275
  45. tccli/services/iotvideo/v20211125/examples.json +64 -64
  46. tccli/services/iotvideoindustry/v20201201/api.json +38 -35
  47. tccli/services/lcic/v20220817/api.json +46 -44
  48. tccli/services/lcic/v20220817/examples.json +1 -1
  49. tccli/services/live/v20180801/api.json +8 -8
  50. tccli/services/lkeap/v20240522/api.json +1 -1
  51. tccli/services/mariadb/v20170312/api.json +76 -76
  52. tccli/services/mariadb/v20170312/examples.json +5 -5
  53. tccli/services/monitor/v20180724/api.json +59 -3
  54. tccli/services/monitor/v20180724/examples.json +2 -2
  55. tccli/services/mps/v20190612/api.json +123 -4
  56. tccli/services/mqtt/v20240516/api.json +182 -182
  57. tccli/services/mqtt/v20240516/examples.json +7 -13
  58. tccli/services/organization/v20210331/api.json +61 -43
  59. tccli/services/organization/v20210331/examples.json +25 -25
  60. tccli/services/privatedns/v20201028/api.json +32 -32
  61. tccli/services/region/v20220627/examples.json +1 -1
  62. tccli/services/taf/taf_client.py +53 -0
  63. tccli/services/taf/v20200210/api.json +138 -0
  64. tccli/services/taf/v20200210/examples.json +8 -0
  65. tccli/services/tag/v20180813/api.json +2 -2
  66. tccli/services/tbaas/v20180416/api.json +74 -64
  67. tccli/services/tcr/v20190924/api.json +209 -188
  68. tccli/services/tcr/v20190924/examples.json +1 -1
  69. tccli/services/tdmq/v20200217/api.json +16 -16
  70. tccli/services/thpc/v20230321/api.json +9 -0
  71. tccli/services/tke/tke_client.py +61 -8
  72. tccli/services/tke/v20180525/api.json +430 -320
  73. tccli/services/tke/v20180525/examples.json +14 -0
  74. tccli/services/trocket/v20230308/api.json +24 -24
  75. tccli/services/tsf/v20180326/api.json +351 -198
  76. tccli/services/vcube/v20220410/api.json +382 -327
  77. tccli/services/vcube/v20220410/examples.json +56 -56
  78. tccli/services/vod/v20180717/api.json +827 -814
  79. tccli/services/vod/v20180717/examples.json +19 -19
  80. tccli/services/vpc/v20170312/api.json +84 -3
  81. tccli/services/waf/v20180125/api.json +2 -2
  82. tccli/services/waf/v20180125/examples.json +2 -2
  83. tccli/services/wedata/v20210820/api.json +10 -0
  84. {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/METADATA +2 -2
  85. {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/RECORD +88 -88
  86. {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/WHEEL +0 -0
  87. {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/entry_points.txt +0 -0
  88. {tccli-3.0.1293.1.dist-info → tccli-3.0.1295.1.dist-info}/license_files/LICENSE +0 -0
@@ -326,7 +326,7 @@
326
326
  ],
327
327
  "DeleteRepository": [
328
328
  {
329
- "document": "",
329
+ "document": "删除镜像仓库以及仓库内的镜像列表",
330
330
  "input": "POST / HTTP/1.1\nHost: tcr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRepository\n<公共请求参数>\n\n{\n \"RegistryId\": \"tcr-dg284imq\",\n \"NamespaceName\": \"private\",\n \"RepositoryName\": \"golang\"\n}",
331
331
  "output": "{\n \"Response\": {\n \"RequestId\": \"ca2eddea-14cc-4c3f-96e5-de50fd1fd4c0\"\n }\n}",
332
332
  "title": "删除镜像仓库"
@@ -14039,13 +14039,13 @@
14039
14039
  "members": [
14040
14040
  {
14041
14041
  "disabled": false,
14042
- "document": "订单号\n注意:此字段可能返回 null,表示取不到有效值。",
14042
+ "document": "订单号",
14043
14043
  "example": "TDMQ20121212312322",
14044
14044
  "member": "string",
14045
14045
  "name": "OrderId",
14046
14046
  "output_required": true,
14047
14047
  "type": "string",
14048
- "value_allowed_null": true
14048
+ "value_allowed_null": false
14049
14049
  },
14050
14050
  {
14051
14051
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
@@ -19349,13 +19349,13 @@
19349
19349
  },
19350
19350
  {
19351
19351
  "disabled": false,
19352
- "document": "实例版本\n注意:此字段可能返回 null,表示取不到有效值。",
19352
+ "document": "实例版本",
19353
19353
  "example": "4.9.3",
19354
19354
  "member": "string",
19355
19355
  "name": "InstanceVersion",
19356
19356
  "output_required": true,
19357
19357
  "type": "string",
19358
- "value_allowed_null": true
19358
+ "value_allowed_null": false
19359
19359
  },
19360
19360
  {
19361
19361
  "disabled": false,
@@ -19449,13 +19449,13 @@
19449
19449
  },
19450
19450
  {
19451
19451
  "disabled": false,
19452
- "document": "备注信息\n注意:此字段可能返回 null,表示取不到有效值。",
19452
+ "document": "备注信息",
19453
19453
  "example": "remark-info",
19454
19454
  "member": "string",
19455
19455
  "name": "Remark",
19456
19456
  "output_required": true,
19457
19457
  "type": "string",
19458
- "value_allowed_null": true
19458
+ "value_allowed_null": false
19459
19459
  },
19460
19460
  {
19461
19461
  "disabled": false,
@@ -19469,53 +19469,53 @@
19469
19469
  },
19470
19470
  {
19471
19471
  "disabled": false,
19472
- "document": "最大可设置消息保留时间,小时为单位\n注意:此字段可能返回 null,表示取不到有效值。",
19472
+ "document": "最大可设置消息保留时间,小时为单位",
19473
19473
  "example": "168",
19474
19474
  "member": "int64",
19475
19475
  "name": "MaxRetention",
19476
19476
  "output_required": true,
19477
19477
  "type": "int",
19478
- "value_allowed_null": true
19478
+ "value_allowed_null": false
19479
19479
  },
19480
19480
  {
19481
19481
  "disabled": false,
19482
- "document": "最小可设置消息保留时间,小时为单位\n注意:此字段可能返回 null,表示取不到有效值。",
19482
+ "document": "最小可设置消息保留时间,小时为单位",
19483
19483
  "example": "24",
19484
19484
  "member": "int64",
19485
19485
  "name": "MinRetention",
19486
19486
  "output_required": true,
19487
19487
  "type": "int",
19488
- "value_allowed_null": true
19488
+ "value_allowed_null": false
19489
19489
  },
19490
19490
  {
19491
19491
  "disabled": false,
19492
- "document": "实例消息保留时间,小时为单位\n注意:此字段可能返回 null,表示取不到有效值。",
19492
+ "document": "实例消息保留时间,小时为单位",
19493
19493
  "example": "72",
19494
19494
  "member": "int64",
19495
19495
  "name": "Retention",
19496
19496
  "output_required": true,
19497
19497
  "type": "int",
19498
- "value_allowed_null": true
19498
+ "value_allowed_null": false
19499
19499
  },
19500
19500
  {
19501
19501
  "disabled": false,
19502
- "document": "是否开启ACL鉴权\n注意:此字段可能返回 null,表示取不到有效值。",
19502
+ "document": "是否开启ACL鉴权",
19503
19503
  "example": "true",
19504
19504
  "member": "bool",
19505
19505
  "name": "AclEnabled",
19506
19506
  "output_required": true,
19507
19507
  "type": "bool",
19508
- "value_allowed_null": true
19508
+ "value_allowed_null": false
19509
19509
  },
19510
19510
  {
19511
19511
  "disabled": false,
19512
- "document": "销毁时间\n注意:此字段可能返回 null,表示取不到有效值。",
19512
+ "document": "销毁时间",
19513
19513
  "example": "369182637452345",
19514
19514
  "member": "uint64",
19515
19515
  "name": "DestroyTime",
19516
19516
  "output_required": false,
19517
19517
  "type": "int",
19518
- "value_allowed_null": true
19518
+ "value_allowed_null": false
19519
19519
  }
19520
19520
  ],
19521
19521
  "usage": "out"
@@ -1803,6 +1803,15 @@
1803
1803
  "name": "Limit",
1804
1804
  "required": false,
1805
1805
  "type": "int"
1806
+ },
1807
+ {
1808
+ "disabled": false,
1809
+ "document": "<ul>\n <li><strong>cluster-type</strong>\n <p style=\"padding-left: 30px;\">按照【<strong>集群类型</strong>】进行过滤</p>\n <p style=\"padding-left: 30px;\">类型:String</p>\n <p style=\"padding-left: 30px;\">必选:否</p>\n </li>\n</ul>\n<p style=\"padding-left: 30px;\">每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。</p>",
1810
+ "example": "无",
1811
+ "member": "Filter",
1812
+ "name": "Filters",
1813
+ "required": false,
1814
+ "type": "list"
1806
1815
  }
1807
1816
  ],
1808
1817
  "type": "object"
@@ -747,7 +747,7 @@ def doDeleteEdgeClusterInstances(args, parsed_globals):
747
747
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
748
748
 
749
749
 
750
- def doModifyPrometheusAlertRule(args, parsed_globals):
750
+ def doDescribeTKEEdgeExternalKubeconfig(args, parsed_globals):
751
751
  g_param = parse_global_arg(parsed_globals)
752
752
 
753
753
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -776,11 +776,11 @@ def doModifyPrometheusAlertRule(args, parsed_globals):
776
776
  client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
777
777
  client._sdkVersion += ("_CLI_" + __version__)
778
778
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
779
- model = models.ModifyPrometheusAlertRuleRequest()
779
+ model = models.DescribeTKEEdgeExternalKubeconfigRequest()
780
780
  model.from_json_string(json.dumps(args))
781
781
  start_time = time.time()
782
782
  while True:
783
- rsp = client.ModifyPrometheusAlertRule(model)
783
+ rsp = client.DescribeTKEEdgeExternalKubeconfig(model)
784
784
  result = rsp.to_json_string()
785
785
  try:
786
786
  json_obj = json.loads(result)
@@ -2203,7 +2203,7 @@ def doModifyReservedInstanceScope(args, parsed_globals):
2203
2203
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2204
2204
 
2205
2205
 
2206
- def doDescribeTKEEdgeExternalKubeconfig(args, parsed_globals):
2206
+ def doDescribeOSImages(args, parsed_globals):
2207
2207
  g_param = parse_global_arg(parsed_globals)
2208
2208
 
2209
2209
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2232,11 +2232,11 @@ def doDescribeTKEEdgeExternalKubeconfig(args, parsed_globals):
2232
2232
  client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
2233
2233
  client._sdkVersion += ("_CLI_" + __version__)
2234
2234
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2235
- model = models.DescribeTKEEdgeExternalKubeconfigRequest()
2235
+ model = models.DescribeOSImagesRequest()
2236
2236
  model.from_json_string(json.dumps(args))
2237
2237
  start_time = time.time()
2238
2238
  while True:
2239
- rsp = client.DescribeTKEEdgeExternalKubeconfig(model)
2239
+ rsp = client.DescribeOSImages(model)
2240
2240
  result = rsp.to_json_string()
2241
2241
  try:
2242
2242
  json_obj = json.loads(result)
@@ -4699,6 +4699,58 @@ def doAddExistedInstances(args, parsed_globals):
4699
4699
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4700
4700
 
4701
4701
 
4702
+ def doModifyPrometheusAlertRule(args, parsed_globals):
4703
+ g_param = parse_global_arg(parsed_globals)
4704
+
4705
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4706
+ cred = credential.CVMRoleCredential()
4707
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4708
+ cred = credential.STSAssumeRoleCredential(
4709
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4710
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4711
+ )
4712
+ 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):
4713
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4714
+ else:
4715
+ cred = credential.Credential(
4716
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4717
+ )
4718
+ http_profile = HttpProfile(
4719
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4720
+ reqMethod="POST",
4721
+ endpoint=g_param[OptionsDefine.Endpoint],
4722
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4723
+ )
4724
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4725
+ if g_param[OptionsDefine.Language]:
4726
+ profile.language = g_param[OptionsDefine.Language]
4727
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4728
+ client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
4729
+ client._sdkVersion += ("_CLI_" + __version__)
4730
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4731
+ model = models.ModifyPrometheusAlertRuleRequest()
4732
+ model.from_json_string(json.dumps(args))
4733
+ start_time = time.time()
4734
+ while True:
4735
+ rsp = client.ModifyPrometheusAlertRule(model)
4736
+ result = rsp.to_json_string()
4737
+ try:
4738
+ json_obj = json.loads(result)
4739
+ except TypeError as e:
4740
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4741
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4742
+ break
4743
+ cur_time = time.time()
4744
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4745
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4746
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4747
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4748
+ else:
4749
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4750
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4751
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4752
+
4753
+
4702
4754
  def doCreateEdgeCVMInstances(args, parsed_globals):
4703
4755
  g_param = parse_global_arg(parsed_globals)
4704
4756
 
@@ -12578,7 +12630,7 @@ ACTION_MAP = {
12578
12630
  "UpdateEdgeClusterVersion": doUpdateEdgeClusterVersion,
12579
12631
  "DescribeExternalNodeSupportConfig": doDescribeExternalNodeSupportConfig,
12580
12632
  "DeleteEdgeClusterInstances": doDeleteEdgeClusterInstances,
12581
- "ModifyPrometheusAlertRule": doModifyPrometheusAlertRule,
12633
+ "DescribeTKEEdgeExternalKubeconfig": doDescribeTKEEdgeExternalKubeconfig,
12582
12634
  "SetNodePoolNodeProtection": doSetNodePoolNodeProtection,
12583
12635
  "DescribeEKSContainerInstanceEvent": doDescribeEKSContainerInstanceEvent,
12584
12636
  "DescribeEdgeAvailableExtraArgs": doDescribeEdgeAvailableExtraArgs,
@@ -12606,7 +12658,7 @@ ACTION_MAP = {
12606
12658
  "DeleteEKSCluster": doDeleteEKSCluster,
12607
12659
  "AddNodeToNodePool": doAddNodeToNodePool,
12608
12660
  "ModifyReservedInstanceScope": doModifyReservedInstanceScope,
12609
- "DescribeTKEEdgeExternalKubeconfig": doDescribeTKEEdgeExternalKubeconfig,
12661
+ "DescribeOSImages": doDescribeOSImages,
12610
12662
  "DescribeClusters": doDescribeClusters,
12611
12663
  "CreateCLSLogConfig": doCreateCLSLogConfig,
12612
12664
  "EnableClusterAudit": doEnableClusterAudit,
@@ -12654,6 +12706,7 @@ ACTION_MAP = {
12654
12706
  "DescribeRegions": doDescribeRegions,
12655
12707
  "DescribeReservedInstanceUtilizationRate": doDescribeReservedInstanceUtilizationRate,
12656
12708
  "AddExistedInstances": doAddExistedInstances,
12709
+ "ModifyPrometheusAlertRule": doModifyPrometheusAlertRule,
12657
12710
  "CreateEdgeCVMInstances": doCreateEdgeCVMInstances,
12658
12711
  "DisableClusterDeletionProtection": doDisableClusterDeletionProtection,
12659
12712
  "DescribePrometheusTargets": doDescribePrometheusTargets,