tccli 3.0.1182.1__py2.py3-none-any.whl → 3.0.1184.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 (72) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/ams/v20201229/api.json +20 -0
  3. tccli/services/ams/v20201229/examples.json +1 -1
  4. tccli/services/asr/asr_client.py +229 -17
  5. tccli/services/asr/v20190614/api.json +379 -0
  6. tccli/services/asr/v20190614/examples.json +32 -0
  7. tccli/services/bi/v20220105/api.json +10 -0
  8. tccli/services/cdwdoris/v20211228/api.json +189 -8
  9. tccli/services/cdwdoris/v20211228/examples.json +3 -3
  10. tccli/services/cfg/v20210820/api.json +134 -11
  11. tccli/services/cfw/cfw_client.py +53 -0
  12. tccli/services/cfw/v20190904/api.json +44 -0
  13. tccli/services/cfw/v20190904/examples.json +8 -0
  14. tccli/services/ckafka/v20190819/api.json +46 -16
  15. tccli/services/ckafka/v20190819/examples.json +8 -8
  16. tccli/services/clb/v20180317/api.json +40 -1
  17. tccli/services/cynosdb/cynosdb_client.py +110 -4
  18. tccli/services/cynosdb/v20190107/api.json +246 -0
  19. tccli/services/cynosdb/v20190107/examples.json +16 -0
  20. tccli/services/dasb/v20191018/api.json +9 -0
  21. tccli/services/dbbrain/v20210527/api.json +15 -15
  22. tccli/services/dc/v20180410/api.json +117 -73
  23. tccli/services/dc/v20180410/examples.json +11 -11
  24. tccli/services/dcdb/dcdb_client.py +53 -0
  25. tccli/services/dcdb/v20180411/api.json +54 -0
  26. tccli/services/dcdb/v20180411/examples.json +8 -0
  27. tccli/services/emr/emr_client.py +53 -0
  28. tccli/services/emr/v20190103/api.json +52 -0
  29. tccli/services/emr/v20190103/examples.json +8 -0
  30. tccli/services/es/es_client.py +53 -0
  31. tccli/services/es/v20180416/api.json +63 -0
  32. tccli/services/es/v20180416/examples.json +8 -0
  33. tccli/services/ess/v20201111/examples.json +3 -3
  34. tccli/services/essbasic/v20210526/api.json +8 -8
  35. tccli/services/essbasic/v20210526/examples.json +9 -9
  36. tccli/services/hunyuan/v20230901/api.json +1 -1
  37. tccli/services/ims/v20201229/api.json +1 -1
  38. tccli/services/iss/v20230517/api.json +18 -0
  39. tccli/services/iss/v20230517/examples.json +3 -3
  40. tccli/services/lke/v20231130/api.json +142 -3
  41. tccli/services/mariadb/mariadb_client.py +57 -4
  42. tccli/services/mariadb/v20170312/api.json +54 -0
  43. tccli/services/mariadb/v20170312/examples.json +8 -0
  44. tccli/services/oceanus/v20190422/api.json +19 -0
  45. tccli/services/oceanus/v20190422/examples.json +1 -1
  46. tccli/services/ocr/v20181119/api.json +7 -7
  47. tccli/services/postgres/v20170312/api.json +3 -0
  48. tccli/services/scf/v20180416/api.json +8 -8
  49. tccli/services/sms/v20190711/api.json +49 -49
  50. tccli/services/sms/v20190711/examples.json +2 -2
  51. tccli/services/ssl/ssl_client.py +65 -12
  52. tccli/services/ssl/v20191205/api.json +133 -3
  53. tccli/services/ssl/v20191205/examples.json +10 -2
  54. tccli/services/tdmq/v20200217/api.json +170 -93
  55. tccli/services/tdmq/v20200217/examples.json +8 -8
  56. tccli/services/thpc/thpc_client.py +53 -0
  57. tccli/services/thpc/v20230321/api.json +561 -0
  58. tccli/services/thpc/v20230321/examples.json +8 -0
  59. tccli/services/tke/v20180525/api.json +14 -2
  60. tccli/services/tke/v20180525/examples.json +3 -3
  61. tccli/services/tmt/v20180321/api.json +1 -1
  62. tccli/services/trocket/v20230308/api.json +62 -12
  63. tccli/services/trtc/v20190722/api.json +2 -2
  64. tccli/services/vpc/v20170312/api.json +23 -0
  65. tccli/services/wedata/v20210820/api.json +176 -0
  66. tccli/services/wedata/v20210820/examples.json +8 -0
  67. tccli/services/wedata/wedata_client.py +53 -0
  68. {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/METADATA +2 -2
  69. {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/RECORD +72 -72
  70. {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/WHEEL +0 -0
  71. {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/entry_points.txt +0 -0
  72. {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/license_files/LICENSE +0 -0
@@ -70,7 +70,7 @@
70
70
  ],
71
71
  "DeleteDirectConnect": [
72
72
  {
73
- "document": "",
73
+ "document": "删除物理专线",
74
74
  "input": "https://dc.tencentcloudapi.com/?Action=DeleteDirectConnect\r\n&DirectConnectId=dc-abcdefgh\r\n&<公共请求参数>",
75
75
  "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
76
76
  "title": "删除物理专线"
@@ -78,7 +78,7 @@
78
78
  ],
79
79
  "DeleteDirectConnectTunnel": [
80
80
  {
81
- "document": "",
81
+ "document": "删除专用通道",
82
82
  "input": "https://dc.tencentcloudapi.com/?Action=DeleteDirectConnectTunnel\n&DirectConnectTunnelId=dcx-abcdefgh\n&<公共请求参数>",
83
83
  "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
84
84
  "title": "删除专用通道"
@@ -122,15 +122,15 @@
122
122
  ],
123
123
  "DescribeDirectConnects": [
124
124
  {
125
- "document": "使用Filter进行筛选,用direct-connect-name进行筛选;",
125
+ "document": "使用Filter进行筛选,用direct-connect-name进行筛选。",
126
126
  "input": "https://dc.tencentcloudapi.com/?Action=DescribeDirectConnects\r\n&Filters.0.Name=direct-connect-name\r\n&Filters.0.Values.0=专线接入\r\n&<公共请求参数>",
127
- "output": "{\n \"Response\": {\n \"DirectConnectSet\": [\n {\n \"EnabledTime\": \"2018-06-02 15:12:34\",\n \"CustomerContactNumber\": \"18812345678\",\n \"AccessPointId\": \"ap-cn-shenzhen-ns-A\",\n \"ChargeState\": \"NORMAL\",\n \"DirectConnectId\": \"dc-gd3u0zov\",\n \"State\": \"AVAILABLE\",\n \"ExpiredTime\": null,\n \"Location\": \"深南大道万利达大厦13楼591\",\n \"CreatedTime\": \"2018-05-03 15:12:34\",\n \"PortType\": \"1000Base-T\",\n \"CustomerName\": \"张三\",\n \"LineOperator\": \"ChinaTelecom\",\n \"TencentAddress\": \"192.168.1.2/30\",\n \"CircuitCode\": \"\",\n \"CustomerAddress\": \"192.168.1.1/30\",\n \"CustomerContactMail\": \"zzuzxy1111@163.com\",\n \"Vlan\": 10,\n \"Bandwidth\": 100,\n \"DirectConnectName\": \"用户自建专线接入\",\n \"ChargeType\": \"NON_RECURRING_CHARGE\",\n \"RedundantDirectConnectId\": \"\"\n },\n {\n \"EnabledTime\": \"2018-05-23 11:10:46\",\n \"CustomerContactNumber\": \"18812345678\",\n \"AccessPointId\": \"ap-cn-beijing-hx\",\n \"ChargeState\": \"NORMAL\",\n \"DirectConnectId\": \"dc-2zeyish1\",\n \"State\": \"BUILDING\",\n \"ExpiredTime\": null,\n \"Location\": \"西土城路10号北京邮电大学\",\n \"CreatedTime\": \"2018-04-23 11:10:46\",\n \"PortType\": \"1000Base-T\",\n \"CustomerName\": \"张三\",\n \"LineOperator\": \"ChinaMobile\",\n \"TencentAddress\": \"192.168.1.156/24\",\n \"CircuitCode\": \"\",\n \"CustomerAddress\": \"192.168.1.157/24\",\n \"CustomerContactMail\": \"zzuzxy@163.com\",\n \"Vlan\": 253,\n \"Bandwidth\": 2,\n \"DirectConnectName\": \"专线接入一次性付费测试\",\n \"ChargeType\": \"PREPAID_BY_YEAR\",\n \"RedundantDirectConnectId\": \"\"\n },\n {\n \"EnabledTime\": \"2018-05-23 10:28:12\",\n \"CustomerContactNumber\": \"18812345678\",\n \"AccessPointId\": \"ap-cn-shenzhen-ns-A\",\n \"ChargeState\": \"NORMAL\",\n \"DirectConnectId\": \"dc-epeq2tj7\",\n \"State\": \"BUILDING\",\n \"ExpiredTime\": null,\n \"Location\": \"万利达大厦13楼591房间\",\n \"CreatedTime\": \"2018-04-23 10:28:12\",\n \"PortType\": \"1000Base-T\",\n \"CustomerName\": \"张三\",\n \"LineOperator\": \"ChinaMobile\",\n \"TencentAddress\": \"192.168.1.2/30\",\n \"CircuitCode\": \"\",\n \"CustomerAddress\": \"192.168.1.1/30\",\n \"CustomerContactMail\": \"zzuzxy@163.com\",\n \"Vlan\": 100,\n \"Bandwidth\": 2,\n \"DirectConnectName\": \"专线接入一次性付费测试\",\n \"ChargeType\": \"NON_RECURRING_CHARGE\",\n \"RedundantDirectConnectId\": \"\"\n }\n ],\n \"RequestId\": \"70d690c8-477a-4e5d-99c0-fa1bb012a105\",\n \"TotalCount\": 3\n }\n}",
128
- "title": "查询物理专线列表"
127
+ "output": "{\n \"Response\": {\n \"DirectConnectSet\": [\n {\n \"DirectConnectId\": \"dc-c3hbbsw9\",\n \"DirectConnectName\": \"专线接入测试\",\n \"RedundantDirectConnectId\": \"\",\n \"State\": \"AVAILABLE\",\n \"ChargeState\": \"NORMAL\",\n \"AccessPointId\": \"ap-cn-guangzhou-kxc\",\n \"AccessPointName\": \"广州科丰路\",\n \"AccessPointType\": \"VXLAN\",\n \"Bandwidth\": 10000,\n \"LineOperator\": \"ChinaOther\",\n \"Construct\": 1,\n \"Location\": \"广东省广州市华新园0602-A01机架7号位\",\n \"PortType\": \"10GBase-LR\",\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"StartTime\": \"2019-09-12 17:09:07\",\n \"CircuitCode\": \"唐镇0103-A09-PL01-1\",\n \"Vlan\": 100,\n \"CustomerName\": \"张三\",\n \"CustomerContactMail\": \"zhangsan@tencent.com\",\n \"CustomerContactNumber\": \"13888888888\",\n \"FaultReportContactPerson\": \"李四\",\n \"FaultReportContactNumber\": \"15999999999\",\n \"IdcCity\": \"广东省广州市华新园0602-A01机架7号位\",\n \"SignLaw\": false,\n \"LocalZone\": false,\n \"VlanZeroDirectConnectTunnelCount\": 0,\n \"OtherVlanDirectConnectTunnelCount\": 0,\n \"MinBandwidth\": 0,\n \"ExpiredTime\": null,\n \"EnabledTime\": \"2020-09-22T00:00:00+00:00\",\n \"TencentAddress\": \"192.168.1.2/24\",\n \"CustomerAddress\": \"192.168.1.1/24\",\n \"ChargeType\": \"NON_RECURRING_CHARGE\",\n \"TagSet\": []\n }\n ],\n \"RequestId\": \"edafc0e0-3a01-4ac3-848d-e402ff04c1f3\",\n \"TotalCount\": 1,\n \"AllSignLaw\": false\n }\n}",
128
+ "title": "查询物理专线列表-1"
129
129
  },
130
130
  {
131
- "document": "",
132
- "input": "https://dc.tencentcloudapi.com/?Action=DescribeDirectConnects\r\n&DirectConnectIds.0=dc-6mqd6t9j\r\n&<公共请求参数>",
133
- "output": "{\n \"Response\": {\n \"DirectConnectSet\": [\n {\n \"EnabledTime\": \"2019-03-30 09:48:39\",\n \"CustomerContactNumber\": \"13924777788\",\n \"AccessPointId\": \"ap-cn-shenzhen-ns-A\",\n \"ChargeState\": \"NORMAL\",\n \"DirectConnectId\": \"dc-6mqd6t9j\",\n \"State\": \"PENDING\",\n \"ExpiredTime\": null,\n \"Location\": \"腾讯大厦\",\n \"CreatedTime\": \"2019-02-28 09:48:39\",\n \"PortType\": \"1000Base-LX\",\n \"CustomerName\": \"张三\",\n \"LineOperator\": \"ChinaTelecom\",\n \"TencentAddress\": \"\",\n \"CircuitCode\": \"\",\n \"CustomerAddress\": \"\",\n \"CustomerContactMail\": \"zzubupt@163.com\",\n \"Vlan\": -1,\n \"Bandwidth\": 100,\n \"DirectConnectName\": \"bbb\",\n \"ChargeType\": \"PREPAID_BY_YEAR\",\n \"RedundantDirectConnectId\": \"\"\n }\n ],\n \"RequestId\": \"a17e965b-5c58-4cf2-b5fb-2e00946deea8\",\n \"TotalCount\": 1\n }\n}",
131
+ "document": "指定DirectConnectIds查询物理专线列表。",
132
+ "input": "https://dc.tencentcloudapi.com/?Action=DescribeDirectConnects\n&DirectConnectIds.0=dc-c3hbbsw9\n&<公共请求参数>",
133
+ "output": "{\n \"Response\": {\n \"DirectConnectSet\": [\n {\n \"DirectConnectId\": \"dc-c3hbbsw9\",\n \"DirectConnectName\": \"专线接入测试\",\n \"RedundantDirectConnectId\": \"\",\n \"State\": \"AVAILABLE\",\n \"ChargeState\": \"NORMAL\",\n \"AccessPointId\": \"ap-cn-guangzhou-kxc\",\n \"AccessPointName\": \"广州科丰路\",\n \"AccessPointType\": \"VXLAN\",\n \"Bandwidth\": 10000,\n \"LineOperator\": \"ChinaOther\",\n \"Construct\": 1,\n \"Location\": \"广东省广州市华新园0602-A01机架7号位\",\n \"PortType\": \"10GBase-LR\",\n \"CreatedTime\": \"2020-09-22T00:00:00+00:00\",\n \"StartTime\": \"2019-09-12 17:09:07\",\n \"CircuitCode\": \"唐镇0103-A09-PL01-1\",\n \"Vlan\": 100,\n \"CustomerName\": \"张三\",\n \"CustomerContactMail\": \"zhangsan@tencent.com\",\n \"CustomerContactNumber\": \"13888888888\",\n \"FaultReportContactPerson\": \"李四\",\n \"FaultReportContactNumber\": \"15999999999\",\n \"IdcCity\": \"广东省广州市华新园0602-A01机架7号位\",\n \"SignLaw\": false,\n \"LocalZone\": false,\n \"VlanZeroDirectConnectTunnelCount\": 0,\n \"OtherVlanDirectConnectTunnelCount\": 0,\n \"MinBandwidth\": 0,\n \"ExpiredTime\": null,\n \"EnabledTime\": \"2020-09-22T00:00:00+00:00\",\n \"TencentAddress\": \"192.168.1.2/24\",\n \"CustomerAddress\": \"192.168.1.1/24\",\n \"ChargeType\": \"NON_RECURRING_CHARGE\",\n \"TagSet\": []\n }\n ],\n \"RequestId\": \"edafc0e0-3a01-4ac3-848d-e402ff04c1f3\",\n \"TotalCount\": 1,\n \"AllSignLaw\": false\n }\n}",
134
134
  "title": "查询物理专线列表-2"
135
135
  }
136
136
  ],
@@ -184,7 +184,7 @@
184
184
  ],
185
185
  "ModifyDirectConnectAttribute": [
186
186
  {
187
- "document": "",
187
+ "document": "修改物理专线属性信息",
188
188
  "input": "https://dc.tencentcloudapi.com/?Action=ModifyDirectConnectAttribute\n&DirectConnectId=dcx-abcdefgh\n&DirectConnectName=abc\n&CircuitCode=ABF_123\n&Vlan=100\n&TencentAddress=172.168.1.1/30\n&CustomerAddress=172.168.1.2/30\n&CustomerName=张三\n&CustomerContactMail=12345@qq.com\n&CustomerContactNumber=18812345678\n&Bandwidth=1000\n&<公共请求参数>",
189
189
  "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
190
190
  "title": "修改物理专线属性信息"
@@ -192,13 +192,13 @@
192
192
  ],
193
193
  "ModifyDirectConnectTunnelAttribute": [
194
194
  {
195
- "document": "",
195
+ "document": "修改路由模式是BGP的专用通道",
196
196
  "input": "https://dc.tencentcloudapi.com/?Action=ModifyDirectConnectTunnelAttribute\n&DirectConnectTunnelId=dcx-abcdefgh\n&DirectConnectTunnelName=Test\n&Bandwidth=100\n&TencentAddress=192.168.1.1/30\n&CustomerAddress=192.168.1.2/30\n&BgpPeer.Asn=65128\n&BgpPeer.AuthKey=abcdefg\n&<公共请求参数>",
197
197
  "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
198
198
  "title": "修改路由模式是BGP的专用通道"
199
199
  },
200
200
  {
201
- "document": "",
201
+ "document": "修改路由模式是STATIC的专用通道",
202
202
  "input": "https://dc.tencentcloudapi.com/?Action=ModifyDirectConnectTunnelAttribute\n&DirectConnectTunnelId=dcx-abcdefgh\n&DirectConnectTunnelName=Test\n&Bandwidth=100\n&TencentAddress=192.168.1.1/30\n&CustomerAddress=192.168.1.2/30\n&RouteFilterPrefixes.0.Cidr=192.168.0.0/24\n&RouteFilterPrefixes.1.Cidr=192.168.1.0/24\n&RouteFilterPrefixes.2.Cidr=192.168.2.0/24\n&<公共请求参数>",
203
203
  "output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
204
204
  "title": "修改路由模式是STATIC的专用通道"
@@ -1681,6 +1681,58 @@ def doDescribeDBSyncMode(args, parsed_globals):
1681
1681
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1682
1682
 
1683
1683
 
1684
+ def doDescribeDCDBBinlogTime(args, parsed_globals):
1685
+ g_param = parse_global_arg(parsed_globals)
1686
+
1687
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1688
+ cred = credential.CVMRoleCredential()
1689
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1690
+ cred = credential.STSAssumeRoleCredential(
1691
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1692
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1693
+ )
1694
+ 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):
1695
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1696
+ else:
1697
+ cred = credential.Credential(
1698
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1699
+ )
1700
+ http_profile = HttpProfile(
1701
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1702
+ reqMethod="POST",
1703
+ endpoint=g_param[OptionsDefine.Endpoint],
1704
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1705
+ )
1706
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1707
+ if g_param[OptionsDefine.Language]:
1708
+ profile.language = g_param[OptionsDefine.Language]
1709
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1710
+ client = mod.DcdbClient(cred, g_param[OptionsDefine.Region], profile)
1711
+ client._sdkVersion += ("_CLI_" + __version__)
1712
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1713
+ model = models.DescribeDCDBBinlogTimeRequest()
1714
+ model.from_json_string(json.dumps(args))
1715
+ start_time = time.time()
1716
+ while True:
1717
+ rsp = client.DescribeDCDBBinlogTime(model)
1718
+ result = rsp.to_json_string()
1719
+ try:
1720
+ json_obj = json.loads(result)
1721
+ except TypeError as e:
1722
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1723
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1724
+ break
1725
+ cur_time = time.time()
1726
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1727
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1728
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1729
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1730
+ else:
1731
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1732
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1733
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1734
+
1735
+
1684
1736
  def doUpgradeHourDCDBInstance(args, parsed_globals):
1685
1737
  g_param = parse_global_arg(parsed_globals)
1686
1738
 
@@ -3856,6 +3908,7 @@ ACTION_MAP = {
3856
3908
  "DescribeDBLogFiles": doDescribeDBLogFiles,
3857
3909
  "IsolateHourDCDBInstance": doIsolateHourDCDBInstance,
3858
3910
  "DescribeDBSyncMode": doDescribeDBSyncMode,
3911
+ "DescribeDCDBBinlogTime": doDescribeDCDBBinlogTime,
3859
3912
  "UpgradeHourDCDBInstance": doUpgradeHourDCDBInstance,
3860
3913
  "AssociateSecurityGroups": doAssociateSecurityGroups,
3861
3914
  "DescribeDCDBPrice": doDescribeDCDBPrice,
@@ -154,6 +154,13 @@
154
154
  "output": "DescribeDBTmpInstancesResponse",
155
155
  "status": "online"
156
156
  },
157
+ "DescribeDCDBBinlogTime": {
158
+ "document": "获取实例回档时可选的时间范围",
159
+ "input": "DescribeDCDBBinlogTimeRequest",
160
+ "name": "获取实例回档时可选的时间范围",
161
+ "output": "DescribeDCDBBinlogTimeResponse",
162
+ "status": "online"
163
+ },
157
164
  "DescribeDCDBInstanceDetail": {
158
165
  "document": "本接口(DescribeDCDBInstanceDetail)用于获取TDSQL实例详情",
159
166
  "input": "DescribeDCDBInstanceDetailRequest",
@@ -4245,6 +4252,53 @@
4245
4252
  ],
4246
4253
  "type": "object"
4247
4254
  },
4255
+ "DescribeDCDBBinlogTimeRequest": {
4256
+ "document": "DescribeDCDBBinlogTime请求参数结构体",
4257
+ "members": [
4258
+ {
4259
+ "disabled": false,
4260
+ "document": "需要回档的实例ID",
4261
+ "example": "tdsql-xxx",
4262
+ "member": "string",
4263
+ "name": "InstanceId",
4264
+ "required": true,
4265
+ "type": "string"
4266
+ }
4267
+ ],
4268
+ "type": "object"
4269
+ },
4270
+ "DescribeDCDBBinlogTimeResponse": {
4271
+ "document": "DescribeDCDBBinlogTime返回参数结构体",
4272
+ "members": [
4273
+ {
4274
+ "disabled": false,
4275
+ "document": "开始时间",
4276
+ "example": "2019-01-01 10:00:00",
4277
+ "member": "datetime",
4278
+ "name": "StartTime",
4279
+ "required": true,
4280
+ "type": "string",
4281
+ "value_allowed_null": false
4282
+ },
4283
+ {
4284
+ "disabled": false,
4285
+ "document": "结束时间",
4286
+ "example": "2019-01-01 12:00:00",
4287
+ "member": "datetime",
4288
+ "name": "EndTime",
4289
+ "required": true,
4290
+ "type": "string",
4291
+ "value_allowed_null": false
4292
+ },
4293
+ {
4294
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4295
+ "member": "string",
4296
+ "name": "RequestId",
4297
+ "type": "string"
4298
+ }
4299
+ ],
4300
+ "type": "object"
4301
+ },
4248
4302
  "DescribeDCDBInstanceDetailRequest": {
4249
4303
  "document": "DescribeDCDBInstanceDetail请求参数结构体",
4250
4304
  "members": [
@@ -176,6 +176,14 @@
176
176
  "title": "无"
177
177
  }
178
178
  ],
179
+ "DescribeDCDBBinlogTime": [
180
+ {
181
+ "document": "",
182
+ "input": "POST / HTTP/1.1\nHost: dcdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDCDBBinlogTime\n<公共请求参数>\n\n{\n \"InstanceId\": \"dcdbt-21dfpcv1\"\n}",
183
+ "output": "{\n \"Response\": {\n \"EndTime\": \"2022-03-24 16:12:47\",\n \"RequestId\": \"e7ffa51c-7e37-4254-9b56-65e0583cbe42\",\n \"StartTime\": \"2022-03-24 16:12:47\"\n }\n}",
184
+ "title": "无"
185
+ }
186
+ ],
179
187
  "DescribeDCDBInstanceDetail": [
180
188
  {
181
189
  "document": "查询分布式实例 dcdbt-21dfpcv1 的详细信息",
@@ -1213,6 +1213,58 @@ def doAddUsersForUserManager(args, parsed_globals):
1213
1213
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
1214
 
1215
1215
 
1216
+ def doModifyAutoRenewFlag(args, parsed_globals):
1217
+ g_param = parse_global_arg(parsed_globals)
1218
+
1219
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1220
+ cred = credential.CVMRoleCredential()
1221
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1222
+ cred = credential.STSAssumeRoleCredential(
1223
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1224
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1225
+ )
1226
+ 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):
1227
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1228
+ else:
1229
+ cred = credential.Credential(
1230
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1231
+ )
1232
+ http_profile = HttpProfile(
1233
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1234
+ reqMethod="POST",
1235
+ endpoint=g_param[OptionsDefine.Endpoint],
1236
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1237
+ )
1238
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1239
+ if g_param[OptionsDefine.Language]:
1240
+ profile.language = g_param[OptionsDefine.Language]
1241
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1242
+ client = mod.EmrClient(cred, g_param[OptionsDefine.Region], profile)
1243
+ client._sdkVersion += ("_CLI_" + __version__)
1244
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1245
+ model = models.ModifyAutoRenewFlagRequest()
1246
+ model.from_json_string(json.dumps(args))
1247
+ start_time = time.time()
1248
+ while True:
1249
+ rsp = client.ModifyAutoRenewFlag(model)
1250
+ result = rsp.to_json_string()
1251
+ try:
1252
+ json_obj = json.loads(result)
1253
+ except TypeError as e:
1254
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1255
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1256
+ break
1257
+ cur_time = time.time()
1258
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1259
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1260
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1261
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1262
+ else:
1263
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1264
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1265
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1266
+
1267
+
1216
1268
  def doModifyAutoScaleStrategy(args, parsed_globals):
1217
1269
  g_param = parse_global_arg(parsed_globals)
1218
1270
 
@@ -2547,6 +2599,7 @@ ACTION_MAP = {
2547
2599
  "DescribeUsersForUserManager": doDescribeUsersForUserManager,
2548
2600
  "DeleteUserManagerUserList": doDeleteUserManagerUserList,
2549
2601
  "AddUsersForUserManager": doAddUsersForUserManager,
2602
+ "ModifyAutoRenewFlag": doModifyAutoRenewFlag,
2550
2603
  "ModifyAutoScaleStrategy": doModifyAutoScaleStrategy,
2551
2604
  "DeleteAutoScaleStrategy": doDeleteAutoScaleStrategy,
2552
2605
  "DescribeEmrApplicationStatics": doDescribeEmrApplicationStatics,
@@ -231,6 +231,13 @@
231
231
  "output": "InquiryPriceUpdateInstanceResponse",
232
232
  "status": "online"
233
233
  },
234
+ "ModifyAutoRenewFlag": {
235
+ "document": "前提:预付费集群\n资源级别开启或关闭自动续费",
236
+ "input": "ModifyAutoRenewFlagRequest",
237
+ "name": "开启关闭自动续费接口",
238
+ "output": "ModifyAutoRenewFlagResponse",
239
+ "status": "online"
240
+ },
234
241
  "ModifyAutoScaleStrategy": {
235
242
  "document": "修改自动扩缩容规则",
236
243
  "input": "ModifyAutoScaleStrategyRequest",
@@ -7877,6 +7884,51 @@
7877
7884
  ],
7878
7885
  "usage": "both"
7879
7886
  },
7887
+ "ModifyAutoRenewFlagRequest": {
7888
+ "document": "ModifyAutoRenewFlag请求参数结构体",
7889
+ "members": [
7890
+ {
7891
+ "disabled": false,
7892
+ "document": "集群ID",
7893
+ "example": "emr-djj13azf",
7894
+ "member": "string",
7895
+ "name": "InstanceId",
7896
+ "required": true,
7897
+ "type": "string"
7898
+ },
7899
+ {
7900
+ "disabled": false,
7901
+ "document": "实例ID",
7902
+ "example": "[emr-vm-4slr7ad7,emr--vm-daa23n1]",
7903
+ "member": "string",
7904
+ "name": "ResourceIds",
7905
+ "required": true,
7906
+ "type": "list"
7907
+ },
7908
+ {
7909
+ "disabled": false,
7910
+ "document": "NOTIFY_AND_MANUAL_RENEW:表示通知即将过期,但不自动续费 NOTIFY_AND_AUTO_RENEW:表示通知即将过期,而且自动续费 DISABLE_NOTIFY_AND_MANUAL_RENEW:表示不通知即将过期,也不自动续费。",
7911
+ "example": "NOTIFY_AND_MANUAL_RENEW",
7912
+ "member": "string",
7913
+ "name": "RenewFlag",
7914
+ "required": true,
7915
+ "type": "string"
7916
+ }
7917
+ ],
7918
+ "type": "object"
7919
+ },
7920
+ "ModifyAutoRenewFlagResponse": {
7921
+ "document": "ModifyAutoRenewFlag返回参数结构体",
7922
+ "members": [
7923
+ {
7924
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
7925
+ "member": "string",
7926
+ "name": "RequestId",
7927
+ "type": "string"
7928
+ }
7929
+ ],
7930
+ "type": "object"
7931
+ },
7880
7932
  "ModifyAutoScaleStrategyRequest": {
7881
7933
  "document": "ModifyAutoScaleStrategy请求参数结构体",
7882
7934
  "members": [
@@ -270,6 +270,14 @@
270
270
  "title": "变配询价"
271
271
  }
272
272
  ],
273
+ "ModifyAutoRenewFlag": [
274
+ {
275
+ "document": "",
276
+ "input": "POST / HTTP/1.1\nHost: emr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyAutoRenewFlag\n<公共请求参数>\n\n{\n \"InstanceId\": \"emr-xxxxx\",\n \"ResourceIds\": [\n \"emr-vm-xxxx1\",\n \"emr-vm-xxxx2\",\n \"emr-vm-xxxx3\"\n ],\n \"RenewFlag\": \"NOTIFY_AND_MANUAL_RENEW\"\n}",
277
+ "output": "{\n \"Response\": {\n \"RequestId\": \"4d701c1e-8507-47e1-8c69-a8f06a236f24\"\n }\n}",
278
+ "title": "开启关闭自动续费接口"
279
+ }
280
+ ],
273
281
  "ModifyAutoScaleStrategy": [
274
282
  {
275
283
  "document": "修改扩缩容规则",
@@ -329,6 +329,58 @@ def doDescribeServerlessSpaces(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
+ def doInstallInstanceModel(args, parsed_globals):
333
+ g_param = parse_global_arg(parsed_globals)
334
+
335
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
336
+ cred = credential.CVMRoleCredential()
337
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
+ cred = credential.STSAssumeRoleCredential(
339
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
341
+ )
342
+ 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):
343
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
344
+ else:
345
+ cred = credential.Credential(
346
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
347
+ )
348
+ http_profile = HttpProfile(
349
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
350
+ reqMethod="POST",
351
+ endpoint=g_param[OptionsDefine.Endpoint],
352
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
353
+ )
354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
355
+ if g_param[OptionsDefine.Language]:
356
+ profile.language = g_param[OptionsDefine.Language]
357
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
358
+ client = mod.EsClient(cred, g_param[OptionsDefine.Region], profile)
359
+ client._sdkVersion += ("_CLI_" + __version__)
360
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
+ model = models.InstallInstanceModelRequest()
362
+ model.from_json_string(json.dumps(args))
363
+ start_time = time.time()
364
+ while True:
365
+ rsp = client.InstallInstanceModel(model)
366
+ result = rsp.to_json_string()
367
+ try:
368
+ json_obj = json.loads(result)
369
+ except TypeError as e:
370
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
371
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
372
+ break
373
+ cur_time = time.time()
374
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
375
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
376
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
377
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
378
+ else:
379
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
380
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
381
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
+
383
+
332
384
  def doDescribeUserCosSnapshotList(args, parsed_globals):
333
385
  g_param = parse_global_arg(parsed_globals)
334
386
 
@@ -2894,6 +2946,7 @@ ACTION_MAP = {
2894
2946
  "GetRequestTargetNodeTypes": doGetRequestTargetNodeTypes,
2895
2947
  "StopLogstashPipelines": doStopLogstashPipelines,
2896
2948
  "DescribeServerlessSpaces": doDescribeServerlessSpaces,
2949
+ "InstallInstanceModel": doInstallInstanceModel,
2897
2950
  "DescribeUserCosSnapshotList": doDescribeUserCosSnapshotList,
2898
2951
  "DeleteInstance": doDeleteInstance,
2899
2952
  "GetDiagnoseSettings": doGetDiagnoseSettings,
@@ -238,6 +238,13 @@
238
238
  "output": "InquirePriceRenewInstanceResponse",
239
239
  "status": "online"
240
240
  },
241
+ "InstallInstanceModel": {
242
+ "document": "ES集群安装模型接口",
243
+ "input": "InstallInstanceModelRequest",
244
+ "name": "安装ES集群模型",
245
+ "output": "InstallInstanceModelResponse",
246
+ "status": "online"
247
+ },
241
248
  "ModifyEsVipSecurityGroup": {
242
249
  "document": "修改绑定VIP的安全组,传安全组id列表",
243
250
  "input": "ModifyEsVipSecurityGroupRequest",
@@ -5299,6 +5306,62 @@
5299
5306
  ],
5300
5307
  "type": "object"
5301
5308
  },
5309
+ "InstallInstanceModelRequest": {
5310
+ "document": "InstallInstanceModel请求参数结构体",
5311
+ "members": [
5312
+ {
5313
+ "disabled": false,
5314
+ "document": "实例ID",
5315
+ "example": "es-xxxxxxxx",
5316
+ "member": "string",
5317
+ "name": "InstanceId",
5318
+ "required": true,
5319
+ "type": "string"
5320
+ },
5321
+ {
5322
+ "disabled": false,
5323
+ "document": "客户上传到自己cos的地址列表",
5324
+ "example": "[\"cos1\", \"cos2\"]",
5325
+ "member": "string",
5326
+ "name": "UsrCosModelUrlList",
5327
+ "required": false,
5328
+ "type": "list"
5329
+ }
5330
+ ],
5331
+ "type": "object"
5332
+ },
5333
+ "InstallInstanceModelResponse": {
5334
+ "document": "InstallInstanceModel返回参数结构体",
5335
+ "members": [
5336
+ {
5337
+ "disabled": false,
5338
+ "document": "发起异步流程的flowId",
5339
+ "example": "1111111",
5340
+ "member": "string",
5341
+ "name": "FlowId",
5342
+ "output_required": false,
5343
+ "type": "string",
5344
+ "value_allowed_null": false
5345
+ },
5346
+ {
5347
+ "disabled": false,
5348
+ "document": "调用接口的错误信息",
5349
+ "example": "\"\"",
5350
+ "member": "string",
5351
+ "name": "ErrMsg",
5352
+ "output_required": false,
5353
+ "type": "string",
5354
+ "value_allowed_null": false
5355
+ },
5356
+ {
5357
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
5358
+ "member": "string",
5359
+ "name": "RequestId",
5360
+ "type": "string"
5361
+ }
5362
+ ],
5363
+ "type": "object"
5364
+ },
5302
5365
  "InstanceInfo": {
5303
5366
  "document": "实例详细信息",
5304
5367
  "members": [
@@ -272,6 +272,14 @@
272
272
  "title": "ES集群实例续费询价"
273
273
  }
274
274
  ],
275
+ "InstallInstanceModel": [
276
+ {
277
+ "document": "",
278
+ "input": "POST / HTTP/1.1\nHost: es.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallInstanceModel\n<公共请求参数>\n\n{\n \"InstanceId\": \"abc\",\n \"UsrCosModelUrlList\": [\n \"abc\"\n ]\n}",
279
+ "output": "{\n \"Response\": {\n \"RequestId\": \"d6c1d15f-5eab-11ef-9b1d-525400a23f29\",\n \"FlowId\": \"17279\"\n }\n}",
280
+ "title": "安装模型调用示例"
281
+ }
282
+ ],
275
283
  "ModifyEsVipSecurityGroup": [
276
284
  {
277
285
  "document": "修改集群VIP绑定的安全组信息",