tccli 3.0.1373.1__py2.py3-none-any.whl → 3.0.1375.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/ai3d/v20250513/api.json +1 -1
  3. tccli/services/cbs/v20170312/api.json +11 -2
  4. tccli/services/ccc/v20200210/api.json +17 -8
  5. tccli/services/cls/v20201016/api.json +167 -31
  6. tccli/services/cls/v20201016/examples.json +2 -2
  7. tccli/services/csip/v20221121/api.json +1 -1
  8. tccli/services/cwp/v20180228/api.json +5 -5
  9. tccli/services/dlc/dlc_client.py +399 -28
  10. tccli/services/dlc/v20210125/api.json +557 -0
  11. tccli/services/dlc/v20210125/examples.json +56 -0
  12. tccli/services/emr/v20190103/api.json +2 -2
  13. tccli/services/es/v20180416/api.json +49 -0
  14. tccli/services/ess/v20201111/api.json +87 -0
  15. tccli/services/essbasic/v20210526/api.json +77 -0
  16. tccli/services/ioa/v20220601/api.json +48 -29
  17. tccli/services/lighthouse/v20200324/examples.json +3 -3
  18. tccli/services/live/v20180801/examples.json +1 -1
  19. tccli/services/lke/v20231130/api.json +1344 -246
  20. tccli/services/lke/v20231130/examples.json +1 -1
  21. tccli/services/mps/v20190612/api.json +34 -6
  22. tccli/services/ocr/v20181119/api.json +10 -0
  23. tccli/services/partners/v20180321/api.json +4 -4
  24. tccli/services/postgres/v20170312/api.json +1 -1
  25. tccli/services/rce/v20201103/api.json +1 -1
  26. tccli/services/sqlserver/v20180328/api.json +19 -17
  27. tccli/services/sqlserver/v20180328/examples.json +2 -2
  28. tccli/services/tbaas/v20180416/api.json +30 -30
  29. tccli/services/tbaas/v20180416/examples.json +4 -4
  30. tccli/services/tcaplusdb/v20190823/api.json +926 -900
  31. tccli/services/tcaplusdb/v20190823/examples.json +56 -56
  32. tccli/services/tcss/v20201101/api.json +4 -4
  33. tccli/services/tdmq/tdmq_client.py +53 -0
  34. tccli/services/tdmq/v20200217/api.json +35 -11
  35. tccli/services/tdmq/v20200217/examples.json +9 -1
  36. tccli/services/trabbit/v20230418/api.json +9 -0
  37. tccli/services/trocket/v20230308/api.json +2 -2
  38. tccli/services/tse/v20201207/api.json +9 -0
  39. tccli/services/tsf/v20180326/api.json +195 -98
  40. tccli/services/vod/v20180717/api.json +270 -6
  41. tccli/services/vod/v20180717/examples.json +32 -0
  42. tccli/services/vod/vod_client.py +212 -0
  43. {tccli-3.0.1373.1.dist-info → tccli-3.0.1375.1.dist-info}/METADATA +2 -2
  44. {tccli-3.0.1373.1.dist-info → tccli-3.0.1375.1.dist-info}/RECORD +47 -47
  45. {tccli-3.0.1373.1.dist-info → tccli-3.0.1375.1.dist-info}/WHEEL +0 -0
  46. {tccli-3.0.1373.1.dist-info → tccli-3.0.1375.1.dist-info}/entry_points.txt +0 -0
  47. {tccli-3.0.1373.1.dist-info → tccli-3.0.1375.1.dist-info}/license_files/LICENSE +0 -0
@@ -15434,7 +15434,7 @@
15434
15434
  {
15435
15435
  "disabled": false,
15436
15436
  "document": "过滤条件。\n<li>ImageName- String - 是否必填:否 - 镜像名称筛选,</li>\n<li>ScanStatus - String - 是否必填:否 - 镜像扫描状态notScan,scanning,scanned,scanErr</li>\n<li>ImageID- String - 是否必填:否 - 镜像ID筛选,</li>\n<li>SecurityRisk- String - 是否必填:否 - 安全风险,VulCnt 、VirusCnt、RiskCnt、IsTrustImage</li>",
15437
- "example": "[{\"Name\":\"ScanStatus\",\"Values\":[\"notScan\"]}]",
15437
+ "example": "",
15438
15438
  "member": "AssetFilters",
15439
15439
  "name": "Filters",
15440
15440
  "required": false,
@@ -34285,7 +34285,7 @@
34285
34285
  {
34286
34286
  "disabled": false,
34287
34287
  "document": "镜像id",
34288
- "example": "sha256:80beff5ff34259ceb7fbe9cd10b2d94912618f5b5595f234349c5bb0cd4f****",
34288
+ "example": "sha256:****",
34289
34289
  "member": "string",
34290
34290
  "name": "ImageID",
34291
34291
  "output_required": true,
@@ -34295,7 +34295,7 @@
34295
34295
  {
34296
34296
  "disabled": false,
34297
34297
  "document": "镜像名称",
34298
- "example": "registry.jiguang.woa.com/tcloud-yunjing-cwp-detection/tcloud-yunjing-cwp-detection:0.0.1-20241023-141138-920a71a.rhel.a****",
34298
+ "example": "imageName-01:latest",
34299
34299
  "member": "string",
34300
34300
  "name": "ImageName",
34301
34301
  "output_required": true,
@@ -34395,7 +34395,7 @@
34395
34395
  {
34396
34396
  "disabled": false,
34397
34397
  "document": "是否信任镜像",
34398
- "example": "False",
34398
+ "example": "true",
34399
34399
  "member": "bool",
34400
34400
  "name": "IsTrustImage",
34401
34401
  "output_required": true,
@@ -1629,6 +1629,58 @@ def doModifyRocketMQTopic(args, parsed_globals):
1629
1629
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1630
1630
 
1631
1631
 
1632
+ def doExecuteDisasterRecovery(args, parsed_globals):
1633
+ g_param = parse_global_arg(parsed_globals)
1634
+
1635
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1636
+ cred = credential.CVMRoleCredential()
1637
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1638
+ cred = credential.STSAssumeRoleCredential(
1639
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1640
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1641
+ )
1642
+ 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):
1643
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1644
+ else:
1645
+ cred = credential.Credential(
1646
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1647
+ )
1648
+ http_profile = HttpProfile(
1649
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1650
+ reqMethod="POST",
1651
+ endpoint=g_param[OptionsDefine.Endpoint],
1652
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1653
+ )
1654
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1655
+ if g_param[OptionsDefine.Language]:
1656
+ profile.language = g_param[OptionsDefine.Language]
1657
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1658
+ client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
1659
+ client._sdkVersion += ("_CLI_" + __version__)
1660
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1661
+ model = models.ExecuteDisasterRecoveryRequest()
1662
+ model.from_json_string(json.dumps(args))
1663
+ start_time = time.time()
1664
+ while True:
1665
+ rsp = client.ExecuteDisasterRecovery(model)
1666
+ result = rsp.to_json_string()
1667
+ try:
1668
+ json_obj = json.loads(result)
1669
+ except TypeError as e:
1670
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1671
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1672
+ break
1673
+ cur_time = time.time()
1674
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1675
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1676
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1677
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1678
+ else:
1679
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1680
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1681
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
+
1683
+
1632
1684
  def doDescribeRocketMQTopicMsgs(args, parsed_globals):
1633
1685
  g_param = parse_global_arg(parsed_globals)
1634
1686
 
@@ -7755,6 +7807,7 @@ ACTION_MAP = {
7755
7807
  "ModifyPublicNetworkSecurityPolicy": doModifyPublicNetworkSecurityPolicy,
7756
7808
  "ModifyRocketMQEnvironmentRole": doModifyRocketMQEnvironmentRole,
7757
7809
  "ModifyRocketMQTopic": doModifyRocketMQTopic,
7810
+ "ExecuteDisasterRecovery": doExecuteDisasterRecovery,
7758
7811
  "DescribeRocketMQTopicMsgs": doDescribeRocketMQTopicMsgs,
7759
7812
  "DescribeEnvironmentAttributes": doDescribeEnvironmentAttributes,
7760
7813
  "GetTopicList": doGetTopicList,
@@ -763,6 +763,13 @@
763
763
  "output": "DescribeTopicsResponse",
764
764
  "status": "online"
765
765
  },
766
+ "ExecuteDisasterRecovery": {
767
+ "document": "执行域名异地访问切换,域名的访问指向将切换至备份集群。",
768
+ "input": "ExecuteDisasterRecoveryRequest",
769
+ "name": "执行异地访问切换",
770
+ "output": "ExecuteDisasterRecoveryResponse",
771
+ "status": "online"
772
+ },
766
773
  "ExportRocketMQMessageDetail": {
767
774
  "document": "导出RocketMQ消息详情",
768
775
  "input": "ExportRocketMQMessageDetailRequest",
@@ -6859,8 +6866,17 @@
6859
6866
  "members": [
6860
6867
  {
6861
6868
  "disabled": false,
6862
- "document": "必填字段,环境(命名空间)名称。",
6863
- "example": "default",
6869
+ "document": "Pulsar 集群的ID",
6870
+ "example": "pulsar-ge3n43v3wj",
6871
+ "member": "string",
6872
+ "name": "ClusterId",
6873
+ "required": true,
6874
+ "type": "string"
6875
+ },
6876
+ {
6877
+ "disabled": false,
6878
+ "document": "环境(命名空间)名称。",
6879
+ "example": "ns-test",
6864
6880
  "member": "string",
6865
6881
  "name": "EnvironmentId",
6866
6882
  "required": false,
@@ -6884,15 +6900,6 @@
6884
6900
  "required": false,
6885
6901
  "type": "int"
6886
6902
  },
6887
- {
6888
- "disabled": false,
6889
- "document": "必填字段,Pulsar 集群的ID",
6890
- "example": "pulsar-ge3n43v3wj",
6891
- "member": "string",
6892
- "name": "ClusterId",
6893
- "required": false,
6894
- "type": "string"
6895
- },
6896
6903
  {
6897
6904
  "disabled": false,
6898
6905
  "document": "角色名称",
@@ -12283,6 +12290,23 @@
12283
12290
  ],
12284
12291
  "usage": "out"
12285
12292
  },
12293
+ "ExecuteDisasterRecoveryRequest": {
12294
+ "document": "ExecuteDisasterRecovery请求参数结构体",
12295
+ "members": [],
12296
+ "type": "object"
12297
+ },
12298
+ "ExecuteDisasterRecoveryResponse": {
12299
+ "document": "ExecuteDisasterRecovery返回参数结构体",
12300
+ "members": [
12301
+ {
12302
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12303
+ "member": "string",
12304
+ "name": "RequestId",
12305
+ "type": "string"
12306
+ }
12307
+ ],
12308
+ "type": "object"
12309
+ },
12286
12310
  "ExportRocketMQMessageDetailRequest": {
12287
12311
  "document": "ExportRocketMQMessageDetail请求参数结构体",
12288
12312
  "members": [
@@ -473,7 +473,7 @@
473
473
  "DescribeEnvironmentRoles": [
474
474
  {
475
475
  "document": "",
476
- "input": "https://tdmq.tencentcloudapi.com/?Action=DescribeEnvironmentRoles\n&EnvironmentId=default\n&<公共请求参数>",
476
+ "input": "https://tdmq.tencentcloudapi.com/?Action=DescribeEnvironmentRoles\n&ClusterId=pulsar-asyewnnedas\n&EnvironmentId=default\n&<公共请求参数>",
477
477
  "output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"EnvironmentRoleSets\": [\n {\n \"EnvironmentId\": \"default\",\n \"RoleName\": \"test_role\",\n \"Permissions\": [\n \"produce\",\n \"consume\"\n ],\n \"RoleDescribe\": \"Remark1\",\n \"CreateTime\": \"2020-08-03 19:46:37\",\n \"UpdateTime\": \"2020-08-04 15:59:29\"\n }\n ],\n \"RequestId\": \"1004f1de-6fb8-41d5-965e-3aae8c87183a\"\n }\n}",
478
478
  "title": "获取命名空间角色列表"
479
479
  }
@@ -896,6 +896,14 @@
896
896
  "title": "获取环境下主题列表"
897
897
  }
898
898
  ],
899
+ "ExecuteDisasterRecovery": [
900
+ {
901
+ "document": "",
902
+ "input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ExecuteDisasterRecovery\n<公共请求参数>\n\n{}",
903
+ "output": "{\n \"Response\": {\n \"RequestId\": \"0799dd77-707b-40d7-a4b5-4140b11f6c97\"\n }\n}",
904
+ "title": "异地切换"
905
+ }
906
+ ],
899
907
  "ExportRocketMQMessageDetail": [
900
908
  {
901
909
  "document": "",
@@ -2736,6 +2736,15 @@
2736
2736
  "name": "TraceFlag",
2737
2737
  "required": false,
2738
2738
  "type": "bool"
2739
+ },
2740
+ {
2741
+ "disabled": false,
2742
+ "document": "限流生产消费比例",
2743
+ "example": "0.5",
2744
+ "member": "float",
2745
+ "name": "SendReceiveRatio",
2746
+ "required": false,
2747
+ "type": "float"
2739
2748
  }
2740
2749
  ],
2741
2750
  "type": "object"
@@ -5333,7 +5333,7 @@
5333
5333
  },
5334
5334
  {
5335
5335
  "disabled": false,
5336
- "document": "必填,是否忽略当前检查",
5336
+ "document": "是否忽略当前检查",
5337
5337
  "example": "true",
5338
5338
  "member": "bool",
5339
5339
  "name": "IgnoreCheck",
@@ -5343,7 +5343,7 @@
5343
5343
  {
5344
5344
  "disabled": false,
5345
5345
  "document": "命名空间,仅迁移至4.x集群有效,可在[DescribeMigratingTopicList](https://cloud.tencent.com/document/api/1493/118007)接口返回的[MigratingTopic](https://cloud.tencent.com/document/api/1493/96031#MigratingTopic)数据结构中获得。",
5346
- "example": "tdmq-default",
5346
+ "example": "ns1",
5347
5347
  "member": "string",
5348
5348
  "name": "Namespace",
5349
5349
  "required": false,
@@ -5894,6 +5894,15 @@
5894
5894
  "name": "Name",
5895
5895
  "required": true,
5896
5896
  "type": "string"
5897
+ },
5898
+ {
5899
+ "disabled": false,
5900
+ "document": "是否同步删除服务上绑定的路由",
5901
+ "example": "false",
5902
+ "member": "bool",
5903
+ "name": "DeleteRoutes",
5904
+ "required": false,
5905
+ "type": "bool"
5897
5906
  }
5898
5907
  ],
5899
5908
  "type": "object"