tccli 3.0.1132.1__py2.py3-none-any.whl → 3.0.1134.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/apm/v20210622/api.json +1 -0
- tccli/services/apm/v20210622/examples.json +1 -1
- tccli/services/asr/v20190614/api.json +2 -2
- tccli/services/billing/v20180709/api.json +10 -0
- tccli/services/cam/v20190116/api.json +41 -12
- tccli/services/cdwch/v20200915/api.json +9 -9
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +18 -0
- tccli/services/cfw/v20190904/api.json +4 -4
- tccli/services/ckafka/v20190819/api.json +130 -74
- tccli/services/ckafka/v20190819/examples.json +17 -17
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cls/v20201016/examples.json +1 -1
- tccli/services/cmq/v20190304/api.json +53 -49
- tccli/services/cmq/v20190304/examples.json +2 -2
- tccli/services/cms/v20190321/api.json +2 -0
- tccli/services/cms/v20190321/examples.json +1 -1
- tccli/services/csip/v20221121/api.json +137 -42
- tccli/services/csip/v20221121/examples.json +4 -4
- tccli/services/cynosdb/cynosdb_client.py +57 -4
- tccli/services/cynosdb/v20190107/api.json +451 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dlc/dlc_client.py +106 -0
- tccli/services/dlc/v20210125/api.json +181 -0
- tccli/services/dlc/v20210125/examples.json +16 -0
- tccli/services/dsgc/v20190723/api.json +65 -58
- tccli/services/dsgc/v20190723/examples.json +5 -5
- tccli/services/dts/dts_client.py +0 -53
- tccli/services/dts/v20180330/api.json +0 -98
- tccli/services/dts/v20180330/examples.json +0 -8
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +5 -5
- tccli/services/ess/ess_client.py +411 -305
- tccli/services/ess/v20201111/api.json +144 -0
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/essbasic/essbasic_client.py +110 -4
- tccli/services/essbasic/v20210526/api.json +139 -4
- tccli/services/essbasic/v20210526/examples.json +16 -0
- tccli/services/gaap/v20180529/api.json +1 -1
- tccli/services/gaap/v20180529/examples.json +0 -6
- tccli/services/iecp/v20210914/api.json +40 -40
- tccli/services/ims/v20201229/api.json +2 -2
- tccli/services/lke/lke_client.py +171 -12
- tccli/services/lke/v20231130/api.json +524 -0
- tccli/services/lke/v20231130/examples.json +24 -0
- tccli/services/mongodb/mongodb_client.py +57 -4
- tccli/services/mongodb/v20190725/api.json +96 -0
- tccli/services/mongodb/v20190725/examples.json +8 -0
- tccli/services/monitor/v20180724/api.json +47 -19
- tccli/services/monitor/v20180724/examples.json +4 -4
- tccli/services/mps/v20190612/api.json +57 -7
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +373 -3
- tccli/services/organization/organization_client.py +118 -12
- tccli/services/organization/v20210331/api.json +68 -0
- tccli/services/organization/v20210331/examples.json +16 -0
- tccli/services/pts/v20210728/api.json +1 -1
- tccli/services/pts/v20210728/examples.json +1 -1
- tccli/services/rum/v20210622/api.json +2 -0
- tccli/services/rum/v20210622/examples.json +1 -1
- tccli/services/sms/v20210111/api.json +26 -26
- tccli/services/tcr/v20190924/api.json +13 -10
- tccli/services/tcr/v20190924/examples.json +2 -2
- tccli/services/tdmq/tdmq_client.py +443 -19
- tccli/services/tdmq/v20200217/api.json +570 -0
- tccli/services/tdmq/v20200217/examples.json +64 -0
- tccli/services/tke/tke_client.py +53 -0
- tccli/services/tke/v20180525/api.json +227 -41
- tccli/services/tke/v20180525/examples.json +26 -0
- tccli/services/trro/v20220325/api.json +6 -6
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tse/v20201207/api.json +13 -2
- tccli/services/tsf/v20180326/api.json +47 -35
- tccli/services/tsf/v20180326/examples.json +4 -4
- tccli/services/waf/v20180125/api.json +65 -9
- tccli/services/waf/v20180125/examples.json +1 -1
- tccli/services/wedata/v20210820/api.json +30 -19
- {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/RECORD +83 -83
- {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/license_files/LICENSE +0 -0
@@ -124,6 +124,14 @@
|
|
124
124
|
"title": "创建集群"
|
125
125
|
}
|
126
126
|
],
|
127
|
+
"CreateRocketMQEnvironmentRole": [
|
128
|
+
{
|
129
|
+
"document": "创建RocketMQ环境角色授权",
|
130
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRocketMQEnvironmentRole\n<公共请求参数>\n\n{\n \"EnvironmentId\": \"abc\",\n \"RoleName\": \"abc\",\n \"Permissions\": [\n \"abc\"\n ],\n \"ClusterId\": \"abc\"\n}",
|
131
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
132
|
+
"title": "创建RocketMQ环境角色授权"
|
133
|
+
}
|
134
|
+
],
|
127
135
|
"CreateRocketMQGroup": [
|
128
136
|
{
|
129
137
|
"document": "",
|
@@ -140,6 +148,14 @@
|
|
140
148
|
"title": "创建命名空间"
|
141
149
|
}
|
142
150
|
],
|
151
|
+
"CreateRocketMQRole": [
|
152
|
+
{
|
153
|
+
"document": "创建RocketMQ角色\n",
|
154
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRocketMQRole\n<公共请求参数>\n\n{\n \"RoleName\": \"abc\",\n \"Remark\": \"abc\",\n \"ClusterId\": \"abc\"\n}",
|
155
|
+
"output": "{\n \"Response\": {\n \"RoleName\": \"abc\",\n \"Token\": \"abc\",\n \"Remark\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
156
|
+
"title": "创建RocketMQ角色"
|
157
|
+
}
|
158
|
+
],
|
143
159
|
"CreateRocketMQTopic": [
|
144
160
|
{
|
145
161
|
"document": "创建主题",
|
@@ -268,6 +284,14 @@
|
|
268
284
|
"title": "删除集群"
|
269
285
|
}
|
270
286
|
],
|
287
|
+
"DeleteRocketMQEnvironmentRoles": [
|
288
|
+
{
|
289
|
+
"document": "删除环境角色授权",
|
290
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRocketMQEnvironmentRoles\n<公共请求参数>\n\n{\n \"EnvironmentId\": \"abc\",\n \"RoleNames\": [\n \"abc\"\n ],\n \"ClusterId\": \"abc\"\n}",
|
291
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
292
|
+
"title": "删除环境角色授权"
|
293
|
+
}
|
294
|
+
],
|
271
295
|
"DeleteRocketMQGroup": [
|
272
296
|
{
|
273
297
|
"document": "",
|
@@ -284,6 +308,14 @@
|
|
284
308
|
"title": "删除命名空间"
|
285
309
|
}
|
286
310
|
],
|
311
|
+
"DeleteRocketMQRoles": [
|
312
|
+
{
|
313
|
+
"document": "删除角色",
|
314
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRocketMQRoles\n<公共请求参数>\n\n{\n \"RoleNames\": [\n \"abc\"\n ],\n \"ClusterId\": \"abc\"\n}",
|
315
|
+
"output": "{\n \"Response\": {\n \"RoleNames\": [\n \"abc\"\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
316
|
+
"title": "删除角色"
|
317
|
+
}
|
318
|
+
],
|
287
319
|
"DeleteRocketMQTopic": [
|
288
320
|
{
|
289
321
|
"document": "",
|
@@ -620,6 +652,14 @@
|
|
620
652
|
"title": "获取指定消费组下当前客户端的连接情况"
|
621
653
|
}
|
622
654
|
],
|
655
|
+
"DescribeRocketMQEnvironmentRoles": [
|
656
|
+
{
|
657
|
+
"document": "获取RocketMQ命名空间角色列表\n",
|
658
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRocketMQEnvironmentRoles\n<公共请求参数>\n\n{\n \"EnvironmentId\": \"abc\",\n \"Offset\": 0,\n \"Limit\": 0,\n \"ClusterId\": \"abc\",\n \"RoleName\": \"abc\",\n \"Filters\": [\n {\n \"Name\": \"abc\",\n \"Values\": [\n \"abc\"\n ]\n }\n ]\n}",
|
659
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"EnvironmentRoleSets\": [\n {\n \"EnvironmentId\": \"abc\",\n \"RoleName\": \"abc\",\n \"Permissions\": [\n \"abc\"\n ],\n \"RoleDescribe\": \"abc\",\n \"CreateTime\": \"2020-09-22 00:00:00\",\n \"UpdateTime\": \"2020-09-22 00:00:00\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
660
|
+
"title": "获取RocketMQ命名空间角色列表"
|
661
|
+
}
|
662
|
+
],
|
623
663
|
"DescribeRocketMQGroups": [
|
624
664
|
{
|
625
665
|
"document": "test",
|
@@ -682,6 +722,14 @@
|
|
682
722
|
"title": "获取公网接入点信息"
|
683
723
|
}
|
684
724
|
],
|
725
|
+
"DescribeRocketMQRoles": [
|
726
|
+
{
|
727
|
+
"document": "获取RocketMQ角色列表\n",
|
728
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRocketMQRoles\n<公共请求参数>\n\n{\n \"RoleName\": \"abc\",\n \"Offset\": 0,\n \"Limit\": 0,\n \"ClusterId\": \"abc\",\n \"Filters\": [\n {\n \"Name\": \"abc\",\n \"Values\": [\n \"abc\"\n ]\n }\n ]\n}",
|
729
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"RoleSets\": [\n {\n \"RoleName\": \"abc\",\n \"Token\": \"abc\",\n \"Remark\": \"abc\",\n \"CreateTime\": \"2020-09-22 00:00:00\",\n \"UpdateTime\": \"2020-09-22 00:00:00\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
730
|
+
"title": "获取RocketMQ角色列表"
|
731
|
+
}
|
732
|
+
],
|
685
733
|
"DescribeRocketMQSmoothMigrationTask": [
|
686
734
|
{
|
687
735
|
"document": "查询迁移任务详情",
|
@@ -924,6 +972,14 @@
|
|
924
972
|
"title": "修改集群信息"
|
925
973
|
}
|
926
974
|
],
|
975
|
+
"ModifyRocketMQEnvironmentRole": [
|
976
|
+
{
|
977
|
+
"document": "修改RocketMQ环境角色授权\n",
|
978
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRocketMQEnvironmentRole\n<公共请求参数>\n\n{\n \"EnvironmentId\": \"abc\",\n \"RoleName\": \"abc\",\n \"Permissions\": [\n \"abc\"\n ],\n \"ClusterId\": \"abc\"\n}",
|
979
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
980
|
+
"title": "修改RocketMQ环境角色授权"
|
981
|
+
}
|
982
|
+
],
|
927
983
|
"ModifyRocketMQGroup": [
|
928
984
|
{
|
929
985
|
"document": "",
|
@@ -948,6 +1004,14 @@
|
|
948
1004
|
"title": "修改命名空间信息"
|
949
1005
|
}
|
950
1006
|
],
|
1007
|
+
"ModifyRocketMQRole": [
|
1008
|
+
{
|
1009
|
+
"document": "RocketMQ角色修改\n",
|
1010
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRocketMQRole\n<公共请求参数>\n\n{\n \"RoleName\": \"abc\",\n \"Remark\": \"abc\",\n \"ClusterId\": \"abc\"\n}",
|
1011
|
+
"output": "{\n \"Response\": {\n \"RoleName\": \"abc\",\n \"Remark\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
1012
|
+
"title": "RocketMQ角色修改"
|
1013
|
+
}
|
1014
|
+
],
|
951
1015
|
"ModifyRocketMQTopic": [
|
952
1016
|
{
|
953
1017
|
"document": "",
|
tccli/services/tke/tke_client.py
CHANGED
@@ -1683,6 +1683,58 @@ def doDescribePrometheusTempSync(args, parsed_globals):
|
|
1683
1683
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1684
1684
|
|
1685
1685
|
|
1686
|
+
def doDescribePodChargeInfo(args, parsed_globals):
|
1687
|
+
g_param = parse_global_arg(parsed_globals)
|
1688
|
+
|
1689
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1690
|
+
cred = credential.CVMRoleCredential()
|
1691
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1692
|
+
cred = credential.STSAssumeRoleCredential(
|
1693
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1694
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1695
|
+
)
|
1696
|
+
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):
|
1697
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1698
|
+
else:
|
1699
|
+
cred = credential.Credential(
|
1700
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1701
|
+
)
|
1702
|
+
http_profile = HttpProfile(
|
1703
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1704
|
+
reqMethod="POST",
|
1705
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1706
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1707
|
+
)
|
1708
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1709
|
+
if g_param[OptionsDefine.Language]:
|
1710
|
+
profile.language = g_param[OptionsDefine.Language]
|
1711
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1712
|
+
client = mod.TkeClient(cred, g_param[OptionsDefine.Region], profile)
|
1713
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1714
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1715
|
+
model = models.DescribePodChargeInfoRequest()
|
1716
|
+
model.from_json_string(json.dumps(args))
|
1717
|
+
start_time = time.time()
|
1718
|
+
while True:
|
1719
|
+
rsp = client.DescribePodChargeInfo(model)
|
1720
|
+
result = rsp.to_json_string()
|
1721
|
+
try:
|
1722
|
+
json_obj = json.loads(result)
|
1723
|
+
except TypeError as e:
|
1724
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1725
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1726
|
+
break
|
1727
|
+
cur_time = time.time()
|
1728
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1729
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1730
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1731
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1732
|
+
else:
|
1733
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1734
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1735
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1736
|
+
|
1737
|
+
|
1686
1738
|
def doDescribeVersions(args, parsed_globals):
|
1687
1739
|
g_param = parse_global_arg(parsed_globals)
|
1688
1740
|
|
@@ -11712,6 +11764,7 @@ ACTION_MAP = {
|
|
11712
11764
|
"DescribeAvailableTKEEdgeVersion": doDescribeAvailableTKEEdgeVersion,
|
11713
11765
|
"DescribeTKEEdgeClusters": doDescribeTKEEdgeClusters,
|
11714
11766
|
"DescribePrometheusTempSync": doDescribePrometheusTempSync,
|
11767
|
+
"DescribePodChargeInfo": doDescribePodChargeInfo,
|
11715
11768
|
"DescribeVersions": doDescribeVersions,
|
11716
11769
|
"DescribePrometheusAlertPolicy": doDescribePrometheusAlertPolicy,
|
11717
11770
|
"DescribeEdgeClusterExtraArgs": doDescribeEdgeClusterExtraArgs,
|