tccli 3.0.1366.1__py2.py3-none-any.whl → 3.0.1368.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/apm/v20210622/api.json +16 -4
- tccli/services/cdb/v20170320/api.json +1 -1
- tccli/services/cdn/v20180606/api.json +17 -4
- tccli/services/cfw/cfw_client.py +34 -193
- tccli/services/cfw/v20190904/api.json +21 -341
- tccli/services/cfw/v20190904/examples.json +2 -26
- tccli/services/cls/v20201016/api.json +20 -18
- tccli/services/cls/v20201016/examples.json +7 -7
- tccli/services/ctem/v20231128/api.json +5 -5
- tccli/services/cwp/v20180228/api.json +12 -12
- tccli/services/cwp/v20180228/examples.json +4 -4
- tccli/services/dlc/v20210125/api.json +77 -9
- tccli/services/dlc/v20210125/examples.json +1 -1
- tccli/services/es/v20180416/api.json +132 -3
- tccli/services/es/v20250101/api.json +6 -6
- tccli/services/es/v20250101/examples.json +8 -8
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +72 -2
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/ocr/v20181119/api.json +123 -123
- tccli/services/sqlserver/v20180328/api.json +14 -14
- tccli/services/sqlserver/v20180328/examples.json +3 -3
- tccli/services/ssl/v20191205/api.json +40 -0
- tccli/services/ssl/v20191205/examples.json +1 -1
- tccli/services/sts/v20180813/api.json +1 -1
- tccli/services/tdmq/v20200217/api.json +62 -2
- tccli/services/teo/v20220901/api.json +11 -11
- tccli/services/thpc/thpc_client.py +330 -12
- tccli/services/thpc/v20230321/api.json +718 -0
- tccli/services/thpc/v20230321/examples.json +48 -0
- tccli/services/trocket/v20230308/api.json +40 -0
- tccli/services/tsf/tsf_client.py +159 -0
- tccli/services/tsf/v20180326/api.json +583 -0
- tccli/services/tsf/v20180326/examples.json +24 -0
- tccli/services/tts/v20190823/api.json +1 -1
- tccli/services/vod/v20180717/api.json +5 -5
- tccli/services/vrs/v20200824/api.json +1 -1
- tccli/services/wedata/v20210820/api.json +173 -21
- tccli/services/wedata/v20210820/examples.json +3 -9
- {tccli-3.0.1366.1.dist-info → tccli-3.0.1368.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1366.1.dist-info → tccli-3.0.1368.1.dist-info}/RECORD +47 -47
- {tccli-3.0.1366.1.dist-info → tccli-3.0.1368.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1366.1.dist-info → tccli-3.0.1368.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1366.1.dist-info → tccli-3.0.1368.1.dist-info}/license_files/LICENSE +0 -0
@@ -64,6 +64,14 @@
|
|
64
64
|
"title": "删除集群存储选项信息。"
|
65
65
|
}
|
66
66
|
],
|
67
|
+
"DeleteJob": [
|
68
|
+
{
|
69
|
+
"document": "删除指定作业任务",
|
70
|
+
"input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteJob\n<公共请求参数>\n\n{\n \"JobId\": \"job-7lbm9sss8\"\n}",
|
71
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5e8b3df3-0c0d-4f5a-b103-a9cf8sacs0865b\"\n }\n}",
|
72
|
+
"title": "删除指定作业任务"
|
73
|
+
}
|
74
|
+
],
|
67
75
|
"DeleteNodes": [
|
68
76
|
{
|
69
77
|
"document": "批量删除节点。",
|
@@ -120,6 +128,30 @@
|
|
120
128
|
"title": "查询节点初始化脚本信息"
|
121
129
|
}
|
122
130
|
],
|
131
|
+
"DescribeJobSubmitInfo": [
|
132
|
+
{
|
133
|
+
"document": "查询指定作业的提交信息",
|
134
|
+
"input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobSubmitInfo\n<公共请求参数>\n\n{\n \"JobId\": \"job-7lbm9sss8\"\n}",
|
135
|
+
"output": "{\n \"Response\": {\n \"ClusterId\": \"hpc-qjwi17gr\",\n \"QueueName\": \"compute\",\n \"Job\": {\n \"JobName\": \"jobj-test\",\n \"JobDescription\": \"demo\",\n \"Priority\": 1,\n \"Tasks\": [\n {\n \"TaskInstanceNum\": 1,\n \"Application\": {\n \"Commands\": [\n {\n \"Command\": \"sleep 30\"\n }\n ],\n \"Docker\": {\n \"Image\": \"ccr.ccs.tencentyun.com/taco/taco-train:ngc24.03-ofed5.8-hccpnv6-v1.0\",\n \"RunArgs\": [\n \"--privileged\",\n \"--cap-add=IPC_LOCK\",\n \"--ulimit memlock=-1\",\n \"--ulimit stack=67108864\",\n \"--net=host\",\n \"--ipc=host\",\n \"--gpus all\"\n ]\n },\n \"JobType\": \"Custom\"\n },\n \"Timeout\": 86400,\n \"TaskName\": \"Task_1\"\n }\n ]\n },\n \"RequestId\": \"d00db282-3ebb-438d-82da-73e376ff9b31\"\n }\n}",
|
136
|
+
"title": "查询指定作业的提交信息"
|
137
|
+
}
|
138
|
+
],
|
139
|
+
"DescribeJobs": [
|
140
|
+
{
|
141
|
+
"document": "查询指定作业ID的任务列表信息",
|
142
|
+
"input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobs\n<公共请求参数>\n\n{\n \"JobIds\": [\n \"job-mudo8mj\"\n ]\n}",
|
143
|
+
"output": "{\n \"Response\": {\n \"JobSet\": [\n {\n \"ClusterId\": \"hpc-59wddafa\",\n \"CreateTime\": \"2024-12-17 15:31:14\",\n \"EndTime\": \"1753-01-01 00:00:00\",\n \"JobDescription\": \"job test\",\n \"JobId\": \"job-mudo8mij\",\n \"JobName\": \"nj-test\",\n \"JobState\": \"RUNNING\",\n \"Priority\": 1,\n \"QueueName\": \"compute\"\n }\n ],\n \"RequestId\": \"a0a8bfa0-43cd-424e-9b12-eb01fadfadc6c1\",\n \"TotalCount\": 1\n }\n}",
|
144
|
+
"title": "查询指定作业ID的任务列表信息"
|
145
|
+
}
|
146
|
+
],
|
147
|
+
"DescribeJobsOverview": [
|
148
|
+
{
|
149
|
+
"document": "thpc查看集群下的作业概览信息",
|
150
|
+
"input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeJobs\n<公共请求参数>\n\n{}",
|
151
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a0a8bfa0-43cd-424e-9b12-eb01fadfadc6c1\"\n }\n}",
|
152
|
+
"title": "thpc查看集群下的作业概览信息"
|
153
|
+
}
|
154
|
+
],
|
123
155
|
"DescribeNodes": [
|
124
156
|
{
|
125
157
|
"document": "查询指定集群节点概览信息,集群ID为hpc-ggaqjyax。",
|
@@ -184,6 +216,22 @@
|
|
184
216
|
"title": "设置弹性伸缩配置"
|
185
217
|
}
|
186
218
|
],
|
219
|
+
"SubmitJob": [
|
220
|
+
{
|
221
|
+
"document": "提交一个\"hello world\"作业任务",
|
222
|
+
"input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitJob\n<公共请求参数>\n\n{}",
|
223
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"ef8a9572-db7f-450b-b736-265feffafda34\"\n }\n}",
|
224
|
+
"title": "提交一个\"hello world\"作业任务"
|
225
|
+
}
|
226
|
+
],
|
227
|
+
"TerminateJob": [
|
228
|
+
{
|
229
|
+
"document": "终止指定的作业任务",
|
230
|
+
"input": "POST / HTTP/1.1\nHost: thpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TerminateJob\n<公共请求参数>\n\n{\n \"JobId\": \"job-n27m0dx9\"\n}",
|
231
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"c2781659-7d40-4d4e-bee6-40a1e5fdadfae3c\"\n }\n}",
|
232
|
+
"title": "终止指定的作业任务"
|
233
|
+
}
|
234
|
+
],
|
187
235
|
"TerminateWorkspaces": [
|
188
236
|
{
|
189
237
|
"document": "",
|
@@ -714,6 +714,28 @@
|
|
714
714
|
"required": false,
|
715
715
|
"type": "string",
|
716
716
|
"value_allowed_null": true
|
717
|
+
},
|
718
|
+
{
|
719
|
+
"disabled": false,
|
720
|
+
"document": "订阅的主题个数",
|
721
|
+
"example": "10",
|
722
|
+
"member": "int64",
|
723
|
+
"name": "SubscribeTopicNum",
|
724
|
+
"output_required": false,
|
725
|
+
"required": false,
|
726
|
+
"type": "int",
|
727
|
+
"value_allowed_null": false
|
728
|
+
},
|
729
|
+
{
|
730
|
+
"disabled": false,
|
731
|
+
"document": "1753153590\n注意:此字段可能返回 null,表示取不到有效值。",
|
732
|
+
"example": "创建时间",
|
733
|
+
"member": "int64",
|
734
|
+
"name": "CreateTime",
|
735
|
+
"output_required": false,
|
736
|
+
"required": false,
|
737
|
+
"type": "int",
|
738
|
+
"value_allowed_null": true
|
717
739
|
}
|
718
740
|
],
|
719
741
|
"usage": "both"
|
@@ -2096,6 +2118,24 @@
|
|
2096
2118
|
"name": "FromTopic",
|
2097
2119
|
"required": false,
|
2098
2120
|
"type": "string"
|
2121
|
+
},
|
2122
|
+
{
|
2123
|
+
"disabled": false,
|
2124
|
+
"document": "按照指定字段排序,枚举值如下:\n- subscribeNum:订阅 Topic 个数",
|
2125
|
+
"example": "subscribeNum",
|
2126
|
+
"member": "string",
|
2127
|
+
"name": "SortedBy",
|
2128
|
+
"required": false,
|
2129
|
+
"type": "string"
|
2130
|
+
},
|
2131
|
+
{
|
2132
|
+
"disabled": false,
|
2133
|
+
"document": "按升序或降序排列,枚举值如下:\n\n- asc:升序\n- desc:降序",
|
2134
|
+
"example": "asc",
|
2135
|
+
"member": "string",
|
2136
|
+
"name": "SortOrder",
|
2137
|
+
"required": false,
|
2138
|
+
"type": "string"
|
2099
2139
|
}
|
2100
2140
|
],
|
2101
2141
|
"type": "object"
|
tccli/services/tsf/tsf_client.py
CHANGED
@@ -4437,6 +4437,58 @@ def doCreatePublicConfigWithDetailResp(args, parsed_globals):
|
|
4437
4437
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4438
4438
|
|
4439
4439
|
|
4440
|
+
def doDescribeLicenses(args, parsed_globals):
|
4441
|
+
g_param = parse_global_arg(parsed_globals)
|
4442
|
+
|
4443
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
4444
|
+
cred = credential.CVMRoleCredential()
|
4445
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
4446
|
+
cred = credential.STSAssumeRoleCredential(
|
4447
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
4448
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
4449
|
+
)
|
4450
|
+
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):
|
4451
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
4452
|
+
else:
|
4453
|
+
cred = credential.Credential(
|
4454
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
4455
|
+
)
|
4456
|
+
http_profile = HttpProfile(
|
4457
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
4458
|
+
reqMethod="POST",
|
4459
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
4460
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
4461
|
+
)
|
4462
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
4463
|
+
if g_param[OptionsDefine.Language]:
|
4464
|
+
profile.language = g_param[OptionsDefine.Language]
|
4465
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
4466
|
+
client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
|
4467
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
4468
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4469
|
+
model = models.DescribeLicensesRequest()
|
4470
|
+
model.from_json_string(json.dumps(args))
|
4471
|
+
start_time = time.time()
|
4472
|
+
while True:
|
4473
|
+
rsp = client.DescribeLicenses(model)
|
4474
|
+
result = rsp.to_json_string()
|
4475
|
+
try:
|
4476
|
+
json_obj = json.loads(result)
|
4477
|
+
except TypeError as e:
|
4478
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
4479
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
4480
|
+
break
|
4481
|
+
cur_time = time.time()
|
4482
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
4483
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
4484
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
4485
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
4486
|
+
else:
|
4487
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
4488
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
4489
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
4490
|
+
|
4491
|
+
|
4440
4492
|
def doCreateUnitRuleWithDetailResp(args, parsed_globals):
|
4441
4493
|
g_param = parse_global_arg(parsed_globals)
|
4442
4494
|
|
@@ -9793,6 +9845,58 @@ def doDeployGroup(args, parsed_globals):
|
|
9793
9845
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9794
9846
|
|
9795
9847
|
|
9848
|
+
def doDescribeLogCapacity(args, parsed_globals):
|
9849
|
+
g_param = parse_global_arg(parsed_globals)
|
9850
|
+
|
9851
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
9852
|
+
cred = credential.CVMRoleCredential()
|
9853
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
9854
|
+
cred = credential.STSAssumeRoleCredential(
|
9855
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
9856
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
9857
|
+
)
|
9858
|
+
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):
|
9859
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
9860
|
+
else:
|
9861
|
+
cred = credential.Credential(
|
9862
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
9863
|
+
)
|
9864
|
+
http_profile = HttpProfile(
|
9865
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
9866
|
+
reqMethod="POST",
|
9867
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
9868
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
9869
|
+
)
|
9870
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
9871
|
+
if g_param[OptionsDefine.Language]:
|
9872
|
+
profile.language = g_param[OptionsDefine.Language]
|
9873
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
9874
|
+
client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
|
9875
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
9876
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9877
|
+
model = models.DescribeLogCapacityRequest()
|
9878
|
+
model.from_json_string(json.dumps(args))
|
9879
|
+
start_time = time.time()
|
9880
|
+
while True:
|
9881
|
+
rsp = client.DescribeLogCapacity(model)
|
9882
|
+
result = rsp.to_json_string()
|
9883
|
+
try:
|
9884
|
+
json_obj = json.loads(result)
|
9885
|
+
except TypeError as e:
|
9886
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
9887
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
9888
|
+
break
|
9889
|
+
cur_time = time.time()
|
9890
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
9891
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
9892
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
9893
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
9894
|
+
else:
|
9895
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
9896
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
9897
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9898
|
+
|
9899
|
+
|
9796
9900
|
def doReleasePublicConfig(args, parsed_globals):
|
9797
9901
|
g_param = parse_global_arg(parsed_globals)
|
9798
9902
|
|
@@ -11665,6 +11769,58 @@ def doDisableLaneRule(args, parsed_globals):
|
|
11665
11769
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11666
11770
|
|
11667
11771
|
|
11772
|
+
def doDescribeResourceConfig(args, parsed_globals):
|
11773
|
+
g_param = parse_global_arg(parsed_globals)
|
11774
|
+
|
11775
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
11776
|
+
cred = credential.CVMRoleCredential()
|
11777
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
11778
|
+
cred = credential.STSAssumeRoleCredential(
|
11779
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
11780
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
11781
|
+
)
|
11782
|
+
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):
|
11783
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
11784
|
+
else:
|
11785
|
+
cred = credential.Credential(
|
11786
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
11787
|
+
)
|
11788
|
+
http_profile = HttpProfile(
|
11789
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
11790
|
+
reqMethod="POST",
|
11791
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
11792
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
11793
|
+
)
|
11794
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
11795
|
+
if g_param[OptionsDefine.Language]:
|
11796
|
+
profile.language = g_param[OptionsDefine.Language]
|
11797
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
11798
|
+
client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
|
11799
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
11800
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
11801
|
+
model = models.DescribeResourceConfigRequest()
|
11802
|
+
model.from_json_string(json.dumps(args))
|
11803
|
+
start_time = time.time()
|
11804
|
+
while True:
|
11805
|
+
rsp = client.DescribeResourceConfig(model)
|
11806
|
+
result = rsp.to_json_string()
|
11807
|
+
try:
|
11808
|
+
json_obj = json.loads(result)
|
11809
|
+
except TypeError as e:
|
11810
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
11811
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
11812
|
+
break
|
11813
|
+
cur_time = time.time()
|
11814
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
11815
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
11816
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
11817
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
11818
|
+
else:
|
11819
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
11820
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
11821
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11822
|
+
|
11823
|
+
|
11668
11824
|
CLIENT_MAP = {
|
11669
11825
|
"v20180326": tsf_client_v20180326,
|
11670
11826
|
|
@@ -11761,6 +11917,7 @@ ACTION_MAP = {
|
|
11761
11917
|
"DescribeClusters": doDescribeClusters,
|
11762
11918
|
"DescribeBusinessLogConfigs": doDescribeBusinessLogConfigs,
|
11763
11919
|
"CreatePublicConfigWithDetailResp": doCreatePublicConfigWithDetailResp,
|
11920
|
+
"DescribeLicenses": doDescribeLicenses,
|
11764
11921
|
"CreateUnitRuleWithDetailResp": doCreateUnitRuleWithDetailResp,
|
11765
11922
|
"ReleaseConfig": doReleaseConfig,
|
11766
11923
|
"DescribePublicConfigReleases": doDescribePublicConfigReleases,
|
@@ -11864,6 +12021,7 @@ ACTION_MAP = {
|
|
11864
12021
|
"DescribeTaskRecords": doDescribeTaskRecords,
|
11865
12022
|
"DescribeBasicResourceUsage": doDescribeBasicResourceUsage,
|
11866
12023
|
"DeployGroup": doDeployGroup,
|
12024
|
+
"DescribeLogCapacity": doDescribeLogCapacity,
|
11867
12025
|
"ReleasePublicConfig": doReleasePublicConfig,
|
11868
12026
|
"DeleteUnitNamespaces": doDeleteUnitNamespaces,
|
11869
12027
|
"DescribeInstances": doDescribeInstances,
|
@@ -11900,6 +12058,7 @@ ACTION_MAP = {
|
|
11900
12058
|
"StartGroup": doStartGroup,
|
11901
12059
|
"ModifyContainerGroup": doModifyContainerGroup,
|
11902
12060
|
"DisableLaneRule": doDisableLaneRule,
|
12061
|
+
"DescribeResourceConfig": doDescribeResourceConfig,
|
11903
12062
|
|
11904
12063
|
}
|
11905
12064
|
|