tccli 3.0.1343.1__py2.py3-none-any.whl → 3.0.1344.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.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +6 -0
- tccli/services/ams/v20201229/api.json +46 -46
- tccli/services/ams/v20201229/examples.json +1 -1
- tccli/services/batch/batch_client.py +53 -0
- tccli/services/batch/v20170312/api.json +125 -0
- tccli/services/batch/v20170312/examples.json +8 -0
- tccli/services/bh/v20230418/api.json +282 -1
- tccli/services/bh/v20230418/examples.json +3 -3
- tccli/services/bi/v20220105/api.json +9 -0
- tccli/services/ccc/v20200210/api.json +9 -0
- tccli/services/cdb/v20170320/api.json +38 -38
- tccli/services/cdb/v20170320/examples.json +3 -3
- tccli/services/cdwch/cdwch_client.py +53 -0
- tccli/services/cdwch/v20200915/api.json +410 -0
- tccli/services/cdwch/v20200915/examples.json +8 -0
- tccli/services/cdwdoris/v20211228/api.json +22 -2
- tccli/services/cfg/v20210820/api.json +72 -0
- tccli/services/ckafka/v20190819/api.json +21 -1
- tccli/services/csip/csip_client.py +163 -4
- tccli/services/csip/v20221121/api.json +967 -164
- tccli/services/csip/v20221121/examples.json +29 -5
- tccli/services/cvm/v20170312/api.json +16 -5
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/dlc/v20210125/api.json +61 -0
- tccli/services/emr/emr_client.py +167 -8
- tccli/services/emr/v20190103/api.json +809 -14
- tccli/services/emr/v20190103/examples.json +24 -0
- tccli/services/es/v20250101/examples.json +2 -2
- tccli/services/ess/v20201111/api.json +15 -6
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/gs/v20191118/api.json +40 -1
- tccli/services/gs/v20191118/examples.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/igtm/__init__.py +4 -0
- tccli/services/igtm/igtm_client.py +1373 -0
- tccli/services/igtm/v20231024/api.json +3569 -0
- tccli/services/igtm/v20231024/examples.json +207 -0
- tccli/services/ims/v20201229/api.json +20 -28
- tccli/services/ioa/ioa_client.py +114 -8
- tccli/services/ioa/v20220601/api.json +218 -3
- tccli/services/ioa/v20220601/examples.json +16 -0
- tccli/services/iss/v20230517/api.json +11 -2
- tccli/services/kms/v20190118/api.json +4 -4
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/mps/v20190612/api.json +43 -5
- tccli/services/ocr/v20181119/api.json +127 -118
- tccli/services/partners/v20180321/api.json +1 -1
- tccli/services/securitylake/__init__.py +4 -0
- tccli/services/securitylake/securitylake_client.py +207 -0
- tccli/services/securitylake/v20240117/api.json +723 -0
- tccli/services/securitylake/v20240117/examples.json +13 -0
- tccli/services/tcbr/v20220217/api.json +70 -0
- tccli/services/tdmq/v20200217/api.json +263 -5
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +40 -30
- tccli/services/teo/v20220901/examples.json +19 -19
- tccli/services/tione/tione_client.py +57 -4
- tccli/services/tione/v20211111/api.json +283 -1
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +37 -28
- tccli/services/tms/v20201229/api.json +14 -21
- tccli/services/trocket/v20230308/api.json +80 -80
- tccli/services/trocket/v20230308/examples.json +1 -1
- tccli/services/tsf/tsf_client.py +61 -8
- tccli/services/tsf/v20180326/api.json +3161 -2106
- tccli/services/tsf/v20180326/examples.json +8 -0
- tccli/services/vdb/v20230616/api.json +49 -0
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vm/v20210922/api.json +8 -8
- tccli/services/vpc/v20170312/api.json +1 -1
- tccli/services/wav/v20210129/api.json +10 -10
- tccli/services/wav/v20210129/examples.json +3 -3
- tccli/services/wedata/v20210820/api.json +11 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/RECORD +79 -71
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1343.1.dist-info → tccli-3.0.1344.1.dist-info}/license_files/LICENSE +0 -0
@@ -148,7 +148,7 @@
|
|
148
148
|
{
|
149
149
|
"document": "查询消费者客户端详情",
|
150
150
|
"input": "POST / HTTP/1.1\nHost: trocket.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeConsumerClient\n<公共请求参数>\n\n{\n \"InstanceId\": \"rmq-72mo3a9o\",\n \"Offset\": 0,\n \"Limit\": 1,\n \"ConsumerGroup\": \"group\",\n \"ClientId\": \"11.139.244.247@75043#6734858812769343\"\n}",
|
151
|
-
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"Client\": {\n \"ClientAddr\": \"11.139.244.247:58330\",\n \"ClientId\": \"11.139.244.247@75043#6734858812769343\",\n \"ConsumerLag\": 0,\n \"Language\": \"JAVA\",\n \"Version\": \"V4_9_3\"\n },\n \"RequestId\": \"7e3acbab-5b5f-457f-b276-68c2f7e16f5e\",\n \"TopicList\": [\n {\n \"ConsumerLag\": 0,\n \"LastUpdateTime\": 1683614607184,\n \"QueueNum\": 16,\n \"SubString\": \"test_tag\",\n \"Topic\": \"topic\",\n \"TopicType\": \"NORMAL\"\n }\n ]\n }\n}",
|
151
|
+
"output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"Client\": {\n \"ClientAddr\": \"11.139.244.247:58330\",\n \"ClientId\": \"11.139.244.247@75043#6734858812769343\",\n \"ConsumerLag\": 0,\n \"Language\": \"JAVA\",\n \"Version\": \"V4_9_3\",\n \"ChannelProtocol\": \"remoting\"\n },\n \"RequestId\": \"7e3acbab-5b5f-457f-b276-68c2f7e16f5e\",\n \"TopicList\": [\n {\n \"ConsumerLag\": 0,\n \"LastUpdateTime\": 1683614607184,\n \"QueueNum\": 16,\n \"SubString\": \"test_tag\",\n \"Topic\": \"topic\",\n \"TopicType\": \"NORMAL\"\n }\n ]\n }\n}",
|
152
152
|
"title": "查询消费者客户端详情"
|
153
153
|
}
|
154
154
|
],
|
tccli/services/tsf/tsf_client.py
CHANGED
@@ -121,7 +121,7 @@ def doDeletePublicConfig(args, parsed_globals):
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
122
|
|
123
123
|
|
124
|
-
def
|
124
|
+
def doCreateCluster(args, parsed_globals):
|
125
125
|
g_param = parse_global_arg(parsed_globals)
|
126
126
|
|
127
127
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -150,11 +150,11 @@ def doDescribeConfig(args, parsed_globals):
|
|
150
150
|
client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
|
151
151
|
client._sdkVersion += ("_CLI_" + __version__)
|
152
152
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
153
|
-
model = models.
|
153
|
+
model = models.CreateClusterRequest()
|
154
154
|
model.from_json_string(json.dumps(args))
|
155
155
|
start_time = time.time()
|
156
156
|
while True:
|
157
|
-
rsp = client.
|
157
|
+
rsp = client.CreateCluster(model)
|
158
158
|
result = rsp.to_json_string()
|
159
159
|
try:
|
160
160
|
json_obj = json.loads(result)
|
@@ -1161,7 +1161,7 @@ def doRevocationPublicConfig(args, parsed_globals):
|
|
1161
1161
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1162
1162
|
|
1163
1163
|
|
1164
|
-
def
|
1164
|
+
def doDescribeConfig(args, parsed_globals):
|
1165
1165
|
g_param = parse_global_arg(parsed_globals)
|
1166
1166
|
|
1167
1167
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1190,11 +1190,11 @@ def doCreateCluster(args, parsed_globals):
|
|
1190
1190
|
client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
|
1191
1191
|
client._sdkVersion += ("_CLI_" + __version__)
|
1192
1192
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1193
|
-
model = models.
|
1193
|
+
model = models.DescribeConfigRequest()
|
1194
1194
|
model.from_json_string(json.dumps(args))
|
1195
1195
|
start_time = time.time()
|
1196
1196
|
while True:
|
1197
|
-
rsp = client.
|
1197
|
+
rsp = client.DescribeConfig(model)
|
1198
1198
|
result = rsp.to_json_string()
|
1199
1199
|
try:
|
1200
1200
|
json_obj = json.loads(result)
|
@@ -5893,6 +5893,58 @@ def doCreateFileConfig(args, parsed_globals):
|
|
5893
5893
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5894
5894
|
|
5895
5895
|
|
5896
|
+
def doDeployContainerApplication(args, parsed_globals):
|
5897
|
+
g_param = parse_global_arg(parsed_globals)
|
5898
|
+
|
5899
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
5900
|
+
cred = credential.CVMRoleCredential()
|
5901
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
5902
|
+
cred = credential.STSAssumeRoleCredential(
|
5903
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
5904
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
5905
|
+
)
|
5906
|
+
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):
|
5907
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
5908
|
+
else:
|
5909
|
+
cred = credential.Credential(
|
5910
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
5911
|
+
)
|
5912
|
+
http_profile = HttpProfile(
|
5913
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
5914
|
+
reqMethod="POST",
|
5915
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
5916
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
5917
|
+
)
|
5918
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
5919
|
+
if g_param[OptionsDefine.Language]:
|
5920
|
+
profile.language = g_param[OptionsDefine.Language]
|
5921
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
5922
|
+
client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
|
5923
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
5924
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5925
|
+
model = models.DeployContainerApplicationRequest()
|
5926
|
+
model.from_json_string(json.dumps(args))
|
5927
|
+
start_time = time.time()
|
5928
|
+
while True:
|
5929
|
+
rsp = client.DeployContainerApplication(model)
|
5930
|
+
result = rsp.to_json_string()
|
5931
|
+
try:
|
5932
|
+
json_obj = json.loads(result)
|
5933
|
+
except TypeError as e:
|
5934
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
5935
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
5936
|
+
break
|
5937
|
+
cur_time = time.time()
|
5938
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
5939
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
5940
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
5941
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
5942
|
+
else:
|
5943
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
5944
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
5945
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5946
|
+
|
5947
|
+
|
5896
5948
|
def doRedoTask(args, parsed_globals):
|
5897
5949
|
g_param = parse_global_arg(parsed_globals)
|
5898
5950
|
|
@@ -11626,7 +11678,7 @@ MODELS_MAP = {
|
|
11626
11678
|
ACTION_MAP = {
|
11627
11679
|
"CreateTask": doCreateTask,
|
11628
11680
|
"DeletePublicConfig": doDeletePublicConfig,
|
11629
|
-
"
|
11681
|
+
"CreateCluster": doCreateCluster,
|
11630
11682
|
"StopTaskBatch": doStopTaskBatch,
|
11631
11683
|
"ModifyContainerReplicas": doModifyContainerReplicas,
|
11632
11684
|
"DescribeConfigSummary": doDescribeConfigSummary,
|
@@ -11646,7 +11698,7 @@ ACTION_MAP = {
|
|
11646
11698
|
"CreateConfigTemplate": doCreateConfigTemplate,
|
11647
11699
|
"DisableTaskFlow": doDisableTaskFlow,
|
11648
11700
|
"RevocationPublicConfig": doRevocationPublicConfig,
|
11649
|
-
"
|
11701
|
+
"DescribeConfig": doDescribeConfig,
|
11650
11702
|
"DescribeOverviewInvocation": doDescribeOverviewInvocation,
|
11651
11703
|
"StopTaskExecute": doStopTaskExecute,
|
11652
11704
|
"DescribeTaskDetail": doDescribeTaskDetail,
|
@@ -11737,6 +11789,7 @@ ACTION_MAP = {
|
|
11737
11789
|
"ShrinkInstances": doShrinkInstances,
|
11738
11790
|
"DisableUnitRule": doDisableUnitRule,
|
11739
11791
|
"CreateFileConfig": doCreateFileConfig,
|
11792
|
+
"DeployContainerApplication": doDeployContainerApplication,
|
11740
11793
|
"RedoTask": doRedoTask,
|
11741
11794
|
"DescribeContainerGroupAttribute": doDescribeContainerGroupAttribute,
|
11742
11795
|
"DescribePkgs": doDescribePkgs,
|