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.
- tccli/__init__.py +1 -1
- tccli/services/ams/v20201229/api.json +20 -0
- tccli/services/ams/v20201229/examples.json +1 -1
- tccli/services/asr/asr_client.py +229 -17
- tccli/services/asr/v20190614/api.json +379 -0
- tccli/services/asr/v20190614/examples.json +32 -0
- tccli/services/bi/v20220105/api.json +10 -0
- tccli/services/cdwdoris/v20211228/api.json +189 -8
- tccli/services/cdwdoris/v20211228/examples.json +3 -3
- tccli/services/cfg/v20210820/api.json +134 -11
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +44 -0
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/ckafka/v20190819/api.json +46 -16
- tccli/services/ckafka/v20190819/examples.json +8 -8
- tccli/services/clb/v20180317/api.json +40 -1
- tccli/services/cynosdb/cynosdb_client.py +110 -4
- tccli/services/cynosdb/v20190107/api.json +246 -0
- tccli/services/cynosdb/v20190107/examples.json +16 -0
- tccli/services/dasb/v20191018/api.json +9 -0
- tccli/services/dbbrain/v20210527/api.json +15 -15
- tccli/services/dc/v20180410/api.json +117 -73
- tccli/services/dc/v20180410/examples.json +11 -11
- tccli/services/dcdb/dcdb_client.py +53 -0
- tccli/services/dcdb/v20180411/api.json +54 -0
- tccli/services/dcdb/v20180411/examples.json +8 -0
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +52 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +63 -0
- tccli/services/es/v20180416/examples.json +8 -0
- tccli/services/ess/v20201111/examples.json +3 -3
- tccli/services/essbasic/v20210526/api.json +8 -8
- tccli/services/essbasic/v20210526/examples.json +9 -9
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/ims/v20201229/api.json +1 -1
- tccli/services/iss/v20230517/api.json +18 -0
- tccli/services/iss/v20230517/examples.json +3 -3
- tccli/services/lke/v20231130/api.json +142 -3
- tccli/services/mariadb/mariadb_client.py +57 -4
- tccli/services/mariadb/v20170312/api.json +54 -0
- tccli/services/mariadb/v20170312/examples.json +8 -0
- tccli/services/oceanus/v20190422/api.json +19 -0
- tccli/services/oceanus/v20190422/examples.json +1 -1
- tccli/services/ocr/v20181119/api.json +7 -7
- tccli/services/postgres/v20170312/api.json +3 -0
- tccli/services/scf/v20180416/api.json +8 -8
- tccli/services/sms/v20190711/api.json +49 -49
- tccli/services/sms/v20190711/examples.json +2 -2
- tccli/services/ssl/ssl_client.py +65 -12
- tccli/services/ssl/v20191205/api.json +133 -3
- tccli/services/ssl/v20191205/examples.json +10 -2
- tccli/services/tdmq/v20200217/api.json +170 -93
- tccli/services/tdmq/v20200217/examples.json +8 -8
- tccli/services/thpc/thpc_client.py +53 -0
- tccli/services/thpc/v20230321/api.json +561 -0
- tccli/services/thpc/v20230321/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +14 -2
- tccli/services/tke/v20180525/examples.json +3 -3
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/trocket/v20230308/api.json +62 -12
- tccli/services/trtc/v20190722/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +23 -0
- tccli/services/wedata/v20210820/api.json +176 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +53 -0
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/RECORD +72 -72
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1182.1.dist-info → tccli-3.0.1184.1.dist-info}/license_files/LICENSE +0 -0
@@ -392,7 +392,7 @@
|
|
392
392
|
{
|
393
393
|
"document": "",
|
394
394
|
"input": "https://tdmq.tencentcloudapi.com/?Action=DescribeClusterDetail\n&ClusterId=pulsar-xxxxxxxx\n&<公共请求参数>",
|
395
|
-
"output": "{\n \"Response\": {\n \"ClusterSet\": {\n \"ClusterId\": \"
|
395
|
+
"output": "{\n \"Response\": {\n \"ClusterSet\": {\n \"ClusterId\": \"abc\",\n \"ClusterName\": \"abc\",\n \"Remark\": \"abc\",\n \"EndPointNum\": 0,\n \"CreateTime\": \"abc\",\n \"Healthy\": 0,\n \"HealthyInfo\": \"abc\",\n \"Status\": 0,\n \"MaxNamespaceNum\": 0,\n \"MaxTopicNum\": 0,\n \"MaxQps\": 0,\n \"MessageRetentionTime\": 0,\n \"MaxStorageCapacity\": 0,\n \"Version\": \"abc\",\n \"PublicEndPoint\": \"abc\",\n \"VpcEndPoint\": \"abc\",\n \"NamespaceNum\": 0,\n \"UsedStorageBudget\": 0,\n \"MaxPublishRateInMessages\": 0,\n \"MaxDispatchRateInMessages\": 0,\n \"MaxPublishRateInBytes\": 0,\n \"MaxDispatchRateInBytes\": 0,\n \"TopicNum\": 0,\n \"MaxMessageDelayInSeconds\": 0,\n \"PublicAccessEnabled\": true,\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"abc\"\n }\n ],\n \"PayMode\": 0,\n \"ProjectId\": 0,\n \"ProjectName\": \"abc\"\n },\n \"RequestId\": \"abc\"\n }\n}",
|
396
396
|
"title": "获取集群的详细信息"
|
397
397
|
}
|
398
398
|
],
|
@@ -424,7 +424,7 @@
|
|
424
424
|
{
|
425
425
|
"document": "",
|
426
426
|
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCmqQueues\n<公共请求参数>\n\n{\n \"Limit\": \"1\",\n \"Offset\": \"0\"\n}",
|
427
|
-
"output": "{\n \"Response\": {\n \"TotalCount\":
|
427
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"730b0b3e-4c67-4a11-a15b-90e6f7c18402\",\n \"TotalCount\": 1,\n \"QueueList\": [\n {\n \"QueueId\": \"cmqq-bzgqn83nv\",\n \"QueueName\": \"test0829\",\n \"Qps\": 5000,\n \"Bps\": 52428800,\n \"MaxDelaySeconds\": 3600,\n \"MaxMsgHeapNum\": 1000000,\n \"PollingWaitSeconds\": 3,\n \"MsgRetentionSeconds\": 7200,\n \"VisibilityTimeout\": 30,\n \"MaxMsgSize\": 1048576,\n \"RewindSeconds\": 0,\n \"RetentionSizeInMB\": 0,\n \"CreateTime\": 1724918937000,\n \"LastModifyTime\": 1724924966000,\n \"ActiveMsgNum\": 0,\n \"InactiveMsgNum\": 0,\n \"DelayMsgNum\": null,\n \"RewindMsgNum\": null,\n \"MinMsgTime\": null,\n \"MaxUnackedMsgNum\": 100000,\n \"DeadLetterPolicy\": {\n \"DeadLetterQueue\": \"rmqbroker-nj\",\n \"Policy\": 0,\n \"MaxTimeToLive\": 0,\n \"MaxReceiveCount\": 22\n },\n \"DeadLetterSource\": null,\n \"Transaction\": null,\n \"TransactionPolicy\": null,\n \"CreateUin\": null,\n \"Trace\": null,\n \"Tags\": null,\n \"TenantId\": \"cmq-13179472\",\n \"NamespaceName\": \"CMQ_QUEUE-test0829\",\n \"Status\": 1,\n \"MaxMsgBacklogSize\": 10737418240\n }\n ]\n }\n}",
|
428
428
|
"title": "枚举队列(不区分用户)"
|
429
429
|
}
|
430
430
|
],
|
@@ -440,7 +440,7 @@
|
|
440
440
|
{
|
441
441
|
"document": "",
|
442
442
|
"input": "https://tdmq.tencentcloudapi.com/?Action=DescribeCmqTopicDetail\n&<公共请求参数>",
|
443
|
-
"output": "{\n \"Response\": {\n \"TopicDescribe\": {\n \"
|
443
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"cbeef60c-6525-484a-83e8-6c590e81e749\",\n \"TopicDescribe\": {\n \"TopicId\": \"cmqt-w4nb4z27\",\n \"TopicName\": \"rmqbroker-nj\",\n \"MaxMsgSize\": 1048576,\n \"FilterType\": 1,\n \"MsgRetentionSeconds\": 86400,\n \"Qps\": 5000,\n \"CreateTime\": 1692691276000,\n \"LastModifyTime\": 1692691276000,\n \"MsgCount\": 0,\n \"CreateUin\": null,\n \"Trace\": null,\n \"Tags\": null,\n \"TenantId\": \"cmq-1317947242\",\n \"NamespaceName\": \"CMQ_TOPIC-rmqbroker-nj\",\n \"Status\": 1,\n \"BrokerType\": 1,\n \"SubscriptionCount\": 1\n }\n }\n}",
|
444
444
|
"title": "cmq查询主题详情"
|
445
445
|
}
|
446
446
|
],
|
@@ -448,7 +448,7 @@
|
|
448
448
|
{
|
449
449
|
"document": "",
|
450
450
|
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCmqTopics\n<公共请求参数>\n\n{\n \"Limit\": \"1\",\n \"Offset\": \"0\"\n}",
|
451
|
-
"output": "{\n \"Response\": {\n \"TotalCount\":
|
451
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3fe52209-a1e2-462c-a948-defb864d14e3\",\n \"TotalCount\": 1,\n \"TopicList\": [\n {\n \"TopicId\": \"cmqt-w4nb4zonn\",\n \"TopicName\": \"rtopic\",\n \"MaxMsgSize\": 1048576,\n \"FilterType\": 1,\n \"MsgRetentionSeconds\": 86400,\n \"Qps\": 5000,\n \"CreateTime\": 1692691276000,\n \"LastModifyTime\": 1692691276000,\n \"MsgCount\": 0,\n \"CreateUin\": null,\n \"Trace\": null,\n \"Tags\": null,\n \"TenantId\": \"cmq-1317947242\",\n \"NamespaceName\": \"CMQ_TOPIC-rtopic\",\n \"Status\": 1,\n \"BrokerType\": 1,\n \"SubscriptionCount\": 1\n }\n ]\n }\n}",
|
452
452
|
"title": "枚举主题(不区分用户)"
|
453
453
|
}
|
454
454
|
],
|
@@ -786,7 +786,7 @@
|
|
786
786
|
{
|
787
787
|
"document": "",
|
788
788
|
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRocketMQSubscriptions\n<公共请求参数>\n\n{\n \"Limit\": \"10\",\n \"ClusterId\": \"rocketmq-a5nzx52ab7jb\",\n \"Namespace\": \"test\",\n \"Group\": \"consume_group\",\n \"Offset\": \"0\"\n}",
|
789
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"cde7c1eb-c631-453a-999b-03c9ed38b892\",\n \"TotalCount\": 2,\n \"Subscriptions\": [\n {\n \"Topic\": \"test\",\n \"Type\": \"Normal\",\n \"PartitionNum\": 3,\n \"ExpressionType\": \"TAG\",\n \"SubString\": \"*\",\n \"Status\": 0
|
789
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"cde7c1eb-c631-453a-999b-03c9ed38b892\",\n \"TotalCount\": 2,\n \"Subscriptions\": [\n {\n \"Topic\": \"test\",\n \"Type\": \"Normal\",\n \"PartitionNum\": 3,\n \"ExpressionType\": \"TAG\",\n \"SubString\": \"*\",\n \"Status\": 0,\n \"ConsumerLag\": 0\n }\n ]\n }\n}",
|
790
790
|
"title": "获取rocketmq消费组订阅关系"
|
791
791
|
}
|
792
792
|
],
|
@@ -1072,7 +1072,7 @@
|
|
1072
1072
|
{
|
1073
1073
|
"document": "",
|
1074
1074
|
"input": "https://tdmq.tencentcloudapi.com/?Action=PublishCmqMsg\n&TopicName=test-queue\n&MsgContent=test\n&<公共请求参数>",
|
1075
|
-
"output": "{\n \"Response\": {\n \"Result\": true,\n \"MsgId\": \"
|
1075
|
+
"output": "{\n \"Response\": {\n \"Result\": true,\n \"MsgId\": \"1EAD5E05003A6767C1FC9160304F98\",\n \"RequestId\": \"3593f784-fcfb-4f23-b3dd-4751cba3aec7\"\n }\n}",
|
1076
1076
|
"title": "发送cmq主题消息"
|
1077
1077
|
}
|
1078
1078
|
],
|
@@ -1167,8 +1167,8 @@
|
|
1167
1167
|
"VerifyRocketMQConsume": [
|
1168
1168
|
{
|
1169
1169
|
"document": "",
|
1170
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VerifyRocketMQConsume\n<公共请求参数>\n\n{\n \"NamespaceId\": \"
|
1171
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
1170
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VerifyRocketMQConsume\n<公共请求参数>\n\n{\n \"NamespaceId\": \"test_ns\",\n \"MsgId\": \"abc\",\n \"ClusterId\": \"rocketmq-abc\",\n \"GroupId\": \"test_group\",\n \"TopicName\": \"test_topic\",\n \"ClientId\": \"1.1.1.1@abc\"\n}",
|
1171
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
1172
1172
|
"title": "示例"
|
1173
1173
|
}
|
1174
1174
|
]
|
@@ -489,6 +489,58 @@ def doDescribeNodes(args, parsed_globals):
|
|
489
489
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
490
490
|
|
491
491
|
|
492
|
+
def doCreateWorkspaces(args, parsed_globals):
|
493
|
+
g_param = parse_global_arg(parsed_globals)
|
494
|
+
|
495
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
496
|
+
cred = credential.CVMRoleCredential()
|
497
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
498
|
+
cred = credential.STSAssumeRoleCredential(
|
499
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
500
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
501
|
+
)
|
502
|
+
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):
|
503
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
504
|
+
else:
|
505
|
+
cred = credential.Credential(
|
506
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
507
|
+
)
|
508
|
+
http_profile = HttpProfile(
|
509
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
510
|
+
reqMethod="POST",
|
511
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
512
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
513
|
+
)
|
514
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
515
|
+
if g_param[OptionsDefine.Language]:
|
516
|
+
profile.language = g_param[OptionsDefine.Language]
|
517
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
518
|
+
client = mod.ThpcClient(cred, g_param[OptionsDefine.Region], profile)
|
519
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
520
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
521
|
+
model = models.CreateWorkspacesRequest()
|
522
|
+
model.from_json_string(json.dumps(args))
|
523
|
+
start_time = time.time()
|
524
|
+
while True:
|
525
|
+
rsp = client.CreateWorkspaces(model)
|
526
|
+
result = rsp.to_json_string()
|
527
|
+
try:
|
528
|
+
json_obj = json.loads(result)
|
529
|
+
except TypeError as e:
|
530
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
531
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
532
|
+
break
|
533
|
+
cur_time = time.time()
|
534
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
535
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
536
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
537
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
538
|
+
else:
|
539
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
540
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
541
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
542
|
+
|
543
|
+
|
492
544
|
def doDescribeInitNodeScripts(args, parsed_globals):
|
493
545
|
g_param = parse_global_arg(parsed_globals)
|
494
546
|
|
@@ -1085,6 +1137,7 @@ ACTION_MAP = {
|
|
1085
1137
|
"SetAutoScalingConfiguration": doSetAutoScalingConfiguration,
|
1086
1138
|
"AddQueue": doAddQueue,
|
1087
1139
|
"DescribeNodes": doDescribeNodes,
|
1140
|
+
"CreateWorkspaces": doCreateWorkspaces,
|
1088
1141
|
"DescribeInitNodeScripts": doDescribeInitNodeScripts,
|
1089
1142
|
"AttachNodes": doAttachNodes,
|
1090
1143
|
"DescribeQueues": doDescribeQueues,
|