tccli 3.0.1405.1__py2.py3-none-any.whl → 3.0.1407.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/autoscaling/v20180419/api.json +1 -1
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/cdb/v20170320/api.json +31 -21
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/cloudhsm/v20191112/api.json +10 -10
- tccli/services/cls/v20201016/api.json +40 -31
- tccli/services/cls/v20201016/examples.json +8 -2
- tccli/services/ctem/v20231128/api.json +30 -0
- tccli/services/dbbrain/v20210527/api.json +17 -7
- tccli/services/dbbrain/v20210527/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +16 -6
- tccli/services/emr/v20190103/api.json +9 -0
- tccli/services/es/es_client.py +57 -4
- tccli/services/es/v20250101/api.json +133 -0
- tccli/services/es/v20250101/examples.json +8 -0
- tccli/services/ess/ess_client.py +212 -0
- tccli/services/ess/v20201111/api.json +508 -24
- tccli/services/ess/v20201111/examples.json +41 -3
- tccli/services/essbasic/v20210526/api.json +12 -3
- tccli/services/essbasic/v20210526/examples.json +2 -2
- tccli/services/gwlb/gwlb_client.py +53 -0
- tccli/services/gwlb/v20240906/api.json +80 -0
- tccli/services/gwlb/v20240906/examples.json +8 -0
- tccli/services/hunyuan/v20230901/api.json +2 -2
- tccli/services/ioa/ioa_client.py +220 -8
- tccli/services/ioa/v20220601/api.json +559 -0
- tccli/services/ioa/v20220601/examples.json +38 -0
- tccli/services/iotexplorer/iotexplorer_client.py +220 -8
- tccli/services/iotexplorer/v20190423/api.json +959 -12
- tccli/services/iotexplorer/v20190423/examples.json +68 -0
- tccli/services/lcic/v20220817/api.json +2 -2
- tccli/services/lke/v20231130/api.json +1 -1
- tccli/services/lke/v20231130/examples.json +2 -2
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/lkeap/v20240522/examples.json +7 -1
- tccli/services/monitor/monitor_client.py +53 -0
- tccli/services/monitor/v20180724/api.json +248 -0
- tccli/services/monitor/v20180724/examples.json +8 -0
- tccli/services/mps/v20190612/api.json +384 -2
- tccli/services/mqtt/v20240516/api.json +10 -0
- tccli/services/mqtt/v20240516/examples.json +3 -9
- tccli/services/nlp/v20190408/api.json +6 -6
- tccli/services/oceanus/oceanus_client.py +110 -4
- tccli/services/oceanus/v20190422/api.json +152 -8
- tccli/services/oceanus/v20190422/examples.json +16 -0
- tccli/services/ocr/v20181119/api.json +10 -0
- tccli/services/privatedns/privatedns_client.py +641 -58
- tccli/services/privatedns/v20201028/api.json +923 -12
- tccli/services/privatedns/v20201028/examples.json +88 -0
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/teo/v20220901/api.json +206 -66
- tccli/services/teo/v20220901/examples.json +32 -8
- tccli/services/tione/v20211111/api.json +1 -1
- tccli/services/tke/v20180525/api.json +23 -14
- tccli/services/tke/v20180525/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +9 -9
- tccli/services/trtc/v20190722/examples.json +1 -1
- tccli/services/tse/v20201207/api.json +30 -1
- tccli/services/vpc/v20170312/api.json +11 -2
- tccli/services/wedata/v20210820/api.json +1281 -601
- tccli/services/wedata/v20210820/examples.json +127 -157
- tccli/services/wedata/v20250806/api.json +480 -18
- tccli/services/wedata/v20250806/examples.json +38 -6
- tccli/services/wedata/wedata_client.py +216 -4
- {tccli-3.0.1405.1.dist-info → tccli-3.0.1407.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1405.1.dist-info → tccli-3.0.1407.1.dist-info}/RECORD +70 -70
- {tccli-3.0.1405.1.dist-info → tccli-3.0.1407.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1405.1.dist-info → tccli-3.0.1407.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1405.1.dist-info → tccli-3.0.1407.1.dist-info}/license_files/LICENSE +0 -0
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"CreateProjectMember": [
|
|
74
74
|
{
|
|
75
75
|
"document": "",
|
|
76
|
-
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateProjectMember\n<公共请求参数>\n\n{\n \"ProjectId\": \"
|
|
77
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"Status\": true\n },\n \"RequestId\": \"
|
|
76
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateProjectMember\n<公共请求参数>\n\n{\n \"ProjectId\": \"1470547050521227264\",\n \"UserUins\": [\n \"100028721707\"\n ],\n \"RoleIds\": [\n \"308335260274237440\"\n ]\n}",
|
|
77
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Status\": true\n },\n \"RequestId\": \"f432ec95-2d32-4f97-836d-e8af6612a66a\"\n }\n}",
|
|
78
78
|
"title": "成功调用"
|
|
79
79
|
}
|
|
80
80
|
],
|
|
@@ -294,6 +294,22 @@
|
|
|
294
294
|
"title": "GetCodeFile"
|
|
295
295
|
}
|
|
296
296
|
],
|
|
297
|
+
"GetCodeFolder": [
|
|
298
|
+
{
|
|
299
|
+
"document": "",
|
|
300
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetCodeFolder\n<公共请求参数>\n\n{\n \"ProjectId\": \"1464962169590902784\",\n \"FolderId\": \"fa659130-3ea8-4332-bd2a-05d87d92c04a\"\n}",
|
|
301
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"AccessScope\": \"SHARED\",\n \"Children\": null,\n \"CreateUserUin\": \"100029411056\",\n \"Id\": \"fa659130-3ea8-4332-bd2a-05d87d92c04a\",\n \"IsLeaf\": false,\n \"NodePermission\": null,\n \"OwnerUin\": \"100029411056\",\n \"Params\": null,\n \"Path\": \"/test2\",\n \"Title\": \"test2\",\n \"Type\": \"folder\"\n },\n \"RequestId\": \"d96fdf5f-c195-4fbd-b6a4-3bcaf4f15742\"\n }\n}",
|
|
302
|
+
"title": "获取codestudio文件夹详情"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"GetDataBackfillPlan": [
|
|
306
|
+
{
|
|
307
|
+
"document": "",
|
|
308
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetDataBackfillPlan\n<公共请求参数>\n\n{\n \"ProjectId\": \"1460947878944567296\",\n \"DataBackfillPlanId\": \"13faeebf-4c61-4289-924b-7fc8b6f8ca6a\",\n \"TimeZone\": \"UTC+8\"\n}",
|
|
309
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"CheckParentType\": \"NONE\",\n \"CompletePercent\": 0,\n \"CreateUserUin\": \"100028579606\",\n \"DataBackfillPlanId\": \"13faeebf-4c61-4289-924b-7fc8b6f8ca6a\",\n \"DataBackfillPlanName\": \"5949f539-721c-499c-87ce-3f027550b02a\",\n \"DataBackfillRangeList\": [\n {\n \"EndDate\": \"2025-09-02\",\n \"ExecutionEndTime\": \"23:59\",\n \"ExecutionStartTime\": \"00:00\",\n \"StartDate\": \"2025-09-02\"\n }\n ],\n \"DataTimeOrder\": \"NORMAL\",\n \"EndTime\": null,\n \"IntegrationResourceGroupId\": null,\n \"ProjectId\": \"1460947878944567296\",\n \"RedefineCycleType\": null,\n \"RedefineParallelNum\": null,\n \"RedefineParamList\": null,\n \"RedefineSelfWorkflowDependency\": \"no\",\n \"SchedulerResourceGroupId\": \"20240222212719833743\",\n \"SkipEventListening\": true,\n \"StartTime\": null,\n \"SuccessPercent\": 0,\n \"TaskIds\": [\n \"20250827115253729\"\n ]\n },\n \"RequestId\": \"d755a2d0-fb5c-463b-8d7e-5e360b46a941\"\n }\n}",
|
|
310
|
+
"title": "获取补录详情"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
297
313
|
"GetDataSource": [
|
|
298
314
|
{
|
|
299
315
|
"document": "",
|
|
@@ -374,6 +390,14 @@
|
|
|
374
390
|
"title": "获取执行机指标"
|
|
375
391
|
}
|
|
376
392
|
],
|
|
393
|
+
"GetSQLFolder": [
|
|
394
|
+
{
|
|
395
|
+
"document": "",
|
|
396
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetSQLFolder\n<公共请求参数>\n\n{\n \"ProjectId\": \"1464962169590902784\",\n \"FolderId\": \"8b6d64db-98a5-492b-9a39-6bab69ebca5c\"\n}",
|
|
397
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"AccessScope\": \"SHARED\",\n \"Children\": null,\n \"CreateUserUin\": \"100028649389\",\n \"Id\": \"8b6d64db-98a5-492b-9a39-6bab69ebca5c\",\n \"IsLeaf\": null,\n \"Name\": \"develop_test\",\n \"NodePermission\": null,\n \"OwnerUin\": \"100028649389\",\n \"Params\": null,\n \"ParentFolderPath\": null,\n \"Path\": \"/develop_test\",\n \"Type\": null\n },\n \"RequestId\": \"a60c81cd-6e53-4154-a815-d84c3a899b67\"\n }\n}",
|
|
398
|
+
"title": "获取sql文件夹详情"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
377
401
|
"GetSQLScript": [
|
|
378
402
|
{
|
|
379
403
|
"document": "",
|
|
@@ -461,8 +485,8 @@
|
|
|
461
485
|
"GrantMemberProjectRole": [
|
|
462
486
|
{
|
|
463
487
|
"document": "",
|
|
464
|
-
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GrantMemberProjectRole\n<公共请求参数>\n\n{\n \"ProjectId\": \"
|
|
465
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
488
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GrantMemberProjectRole\n<公共请求参数>\n\n{\n \"ProjectId\": \"2982744633770700800\",\n \"UserUin\": \"100028721707\",\n \"RoleIds\": [\n \"308335260945326080\"\n ]\n}",
|
|
489
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e12df3f7-62ec-4fcc-989d-3ea3d99ae32f\"\n }\n}",
|
|
466
490
|
"title": "成功调用"
|
|
467
491
|
}
|
|
468
492
|
],
|
|
@@ -797,8 +821,8 @@
|
|
|
797
821
|
"RemoveMemberProjectRole": [
|
|
798
822
|
{
|
|
799
823
|
"document": "",
|
|
800
|
-
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveMemberProjectRole\n<公共请求参数>\n\n{\n \"ProjectId\": \"
|
|
801
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
|
824
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveMemberProjectRole\n<公共请求参数>\n\n{\n \"ProjectId\": \"2982744633770700800\",\n \"UserUin\": \"100028721707\",\n \"RoleIds\": [\n \"308335260945326080\"\n ]\n}",
|
|
825
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"cada41f6-d18e-4173-9407-d9dd13351f50\"\n }\n}",
|
|
802
826
|
"title": "成功调用"
|
|
803
827
|
}
|
|
804
828
|
],
|
|
@@ -826,6 +850,14 @@
|
|
|
826
850
|
"title": "异步置成功实例"
|
|
827
851
|
}
|
|
828
852
|
],
|
|
853
|
+
"StartOpsTasks": [
|
|
854
|
+
{
|
|
855
|
+
"document": "运维中心-任务运维-启动任务",
|
|
856
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartOpsTasks\n<公共请求参数>\n\n{\n \"ProjectId\": \"1460947878944567296\",\n \"TaskIds\": [\n \"20250630162948606\"\n ]\n}",
|
|
857
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"Status\": false\n },\n \"RequestId\": \"4836d926-ec18-4c77-9e73-f5365843758c\"\n }\n}",
|
|
858
|
+
"title": "启动任务"
|
|
859
|
+
}
|
|
860
|
+
],
|
|
829
861
|
"StopOpsTasksAsync": [
|
|
830
862
|
{
|
|
831
863
|
"document": "运维中心-任务运维-任务下线",
|
|
@@ -5791,6 +5791,58 @@ def doDescribeInstanceLogList(args, parsed_globals):
|
|
|
5791
5791
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5792
5792
|
|
|
5793
5793
|
|
|
5794
|
+
def doGetDataBackfillPlan(args, parsed_globals):
|
|
5795
|
+
g_param = parse_global_arg(parsed_globals)
|
|
5796
|
+
|
|
5797
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
5798
|
+
cred = credential.CVMRoleCredential()
|
|
5799
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
5800
|
+
cred = credential.STSAssumeRoleCredential(
|
|
5801
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
5802
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
5803
|
+
)
|
|
5804
|
+
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):
|
|
5805
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
5806
|
+
else:
|
|
5807
|
+
cred = credential.Credential(
|
|
5808
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
5809
|
+
)
|
|
5810
|
+
http_profile = HttpProfile(
|
|
5811
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
5812
|
+
reqMethod="POST",
|
|
5813
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
5814
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
5815
|
+
)
|
|
5816
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
5817
|
+
if g_param[OptionsDefine.Language]:
|
|
5818
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
5819
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
5820
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5821
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
5822
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5823
|
+
model = models.GetDataBackfillPlanRequest()
|
|
5824
|
+
model.from_json_string(json.dumps(args))
|
|
5825
|
+
start_time = time.time()
|
|
5826
|
+
while True:
|
|
5827
|
+
rsp = client.GetDataBackfillPlan(model)
|
|
5828
|
+
result = rsp.to_json_string()
|
|
5829
|
+
try:
|
|
5830
|
+
json_obj = json.loads(result)
|
|
5831
|
+
except TypeError as e:
|
|
5832
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
5833
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
5834
|
+
break
|
|
5835
|
+
cur_time = time.time()
|
|
5836
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
5837
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
5838
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
5839
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
5840
|
+
else:
|
|
5841
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
5842
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
5843
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5844
|
+
|
|
5845
|
+
|
|
5794
5846
|
def doCreateTaskVersionDs(args, parsed_globals):
|
|
5795
5847
|
g_param = parse_global_arg(parsed_globals)
|
|
5796
5848
|
|
|
@@ -9327,6 +9379,58 @@ def doModifyDataSource(args, parsed_globals):
|
|
|
9327
9379
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9328
9380
|
|
|
9329
9381
|
|
|
9382
|
+
def doGetCodeFolder(args, parsed_globals):
|
|
9383
|
+
g_param = parse_global_arg(parsed_globals)
|
|
9384
|
+
|
|
9385
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
9386
|
+
cred = credential.CVMRoleCredential()
|
|
9387
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
9388
|
+
cred = credential.STSAssumeRoleCredential(
|
|
9389
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
9390
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
9391
|
+
)
|
|
9392
|
+
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):
|
|
9393
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
9394
|
+
else:
|
|
9395
|
+
cred = credential.Credential(
|
|
9396
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
9397
|
+
)
|
|
9398
|
+
http_profile = HttpProfile(
|
|
9399
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
9400
|
+
reqMethod="POST",
|
|
9401
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
9402
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
9403
|
+
)
|
|
9404
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
9405
|
+
if g_param[OptionsDefine.Language]:
|
|
9406
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
9407
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
9408
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
|
9409
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
9410
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
9411
|
+
model = models.GetCodeFolderRequest()
|
|
9412
|
+
model.from_json_string(json.dumps(args))
|
|
9413
|
+
start_time = time.time()
|
|
9414
|
+
while True:
|
|
9415
|
+
rsp = client.GetCodeFolder(model)
|
|
9416
|
+
result = rsp.to_json_string()
|
|
9417
|
+
try:
|
|
9418
|
+
json_obj = json.loads(result)
|
|
9419
|
+
except TypeError as e:
|
|
9420
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
9421
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
9422
|
+
break
|
|
9423
|
+
cur_time = time.time()
|
|
9424
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
9425
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
9426
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
9427
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
9428
|
+
else:
|
|
9429
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
9430
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
9431
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9432
|
+
|
|
9433
|
+
|
|
9330
9434
|
def doModifyTaskAlarmRegular(args, parsed_globals):
|
|
9331
9435
|
g_param = parse_global_arg(parsed_globals)
|
|
9332
9436
|
|
|
@@ -9431,6 +9535,58 @@ def doDescribeBaseBizCatalogs(args, parsed_globals):
|
|
|
9431
9535
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9432
9536
|
|
|
9433
9537
|
|
|
9538
|
+
def doListTaskInstances(args, parsed_globals):
|
|
9539
|
+
g_param = parse_global_arg(parsed_globals)
|
|
9540
|
+
|
|
9541
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
9542
|
+
cred = credential.CVMRoleCredential()
|
|
9543
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
9544
|
+
cred = credential.STSAssumeRoleCredential(
|
|
9545
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
9546
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
9547
|
+
)
|
|
9548
|
+
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):
|
|
9549
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
9550
|
+
else:
|
|
9551
|
+
cred = credential.Credential(
|
|
9552
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
9553
|
+
)
|
|
9554
|
+
http_profile = HttpProfile(
|
|
9555
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
9556
|
+
reqMethod="POST",
|
|
9557
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
9558
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
9559
|
+
)
|
|
9560
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
9561
|
+
if g_param[OptionsDefine.Language]:
|
|
9562
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
9563
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
9564
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
|
9565
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
9566
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
9567
|
+
model = models.ListTaskInstancesRequest()
|
|
9568
|
+
model.from_json_string(json.dumps(args))
|
|
9569
|
+
start_time = time.time()
|
|
9570
|
+
while True:
|
|
9571
|
+
rsp = client.ListTaskInstances(model)
|
|
9572
|
+
result = rsp.to_json_string()
|
|
9573
|
+
try:
|
|
9574
|
+
json_obj = json.loads(result)
|
|
9575
|
+
except TypeError as e:
|
|
9576
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
9577
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
9578
|
+
break
|
|
9579
|
+
cur_time = time.time()
|
|
9580
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
9581
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
9582
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
9583
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
9584
|
+
else:
|
|
9585
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
9586
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
9587
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
9588
|
+
|
|
9589
|
+
|
|
9434
9590
|
def doCreateIntegrationNode(args, parsed_globals):
|
|
9435
9591
|
g_param = parse_global_arg(parsed_globals)
|
|
9436
9592
|
|
|
@@ -14839,6 +14995,58 @@ def doDescribeTaskAlarmRegulations(args, parsed_globals):
|
|
|
14839
14995
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
14840
14996
|
|
|
14841
14997
|
|
|
14998
|
+
def doStartOpsTasks(args, parsed_globals):
|
|
14999
|
+
g_param = parse_global_arg(parsed_globals)
|
|
15000
|
+
|
|
15001
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
15002
|
+
cred = credential.CVMRoleCredential()
|
|
15003
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
15004
|
+
cred = credential.STSAssumeRoleCredential(
|
|
15005
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
15006
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
15007
|
+
)
|
|
15008
|
+
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):
|
|
15009
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
15010
|
+
else:
|
|
15011
|
+
cred = credential.Credential(
|
|
15012
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
15013
|
+
)
|
|
15014
|
+
http_profile = HttpProfile(
|
|
15015
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
15016
|
+
reqMethod="POST",
|
|
15017
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
15018
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
15019
|
+
)
|
|
15020
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
15021
|
+
if g_param[OptionsDefine.Language]:
|
|
15022
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
15023
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
15024
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
|
15025
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
15026
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
15027
|
+
model = models.StartOpsTasksRequest()
|
|
15028
|
+
model.from_json_string(json.dumps(args))
|
|
15029
|
+
start_time = time.time()
|
|
15030
|
+
while True:
|
|
15031
|
+
rsp = client.StartOpsTasks(model)
|
|
15032
|
+
result = rsp.to_json_string()
|
|
15033
|
+
try:
|
|
15034
|
+
json_obj = json.loads(result)
|
|
15035
|
+
except TypeError as e:
|
|
15036
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
15037
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
15038
|
+
break
|
|
15039
|
+
cur_time = time.time()
|
|
15040
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
15041
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
15042
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
15043
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
15044
|
+
else:
|
|
15045
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
15046
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
15047
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
15048
|
+
|
|
15049
|
+
|
|
14842
15050
|
def doDeleteOpsAlarmRule(args, parsed_globals):
|
|
14843
15051
|
g_param = parse_global_arg(parsed_globals)
|
|
14844
15052
|
|
|
@@ -18687,7 +18895,7 @@ def doUpdateOpsAlarmRule(args, parsed_globals):
|
|
|
18687
18895
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
18688
18896
|
|
|
18689
18897
|
|
|
18690
|
-
def
|
|
18898
|
+
def doGetSQLFolder(args, parsed_globals):
|
|
18691
18899
|
g_param = parse_global_arg(parsed_globals)
|
|
18692
18900
|
|
|
18693
18901
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -18716,11 +18924,11 @@ def doListTaskInstances(args, parsed_globals):
|
|
|
18716
18924
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
|
18717
18925
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
18718
18926
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
18719
|
-
model = models.
|
|
18927
|
+
model = models.GetSQLFolderRequest()
|
|
18720
18928
|
model.from_json_string(json.dumps(args))
|
|
18721
18929
|
start_time = time.time()
|
|
18722
18930
|
while True:
|
|
18723
|
-
rsp = client.
|
|
18931
|
+
rsp = client.GetSQLFolder(model)
|
|
18724
18932
|
result = rsp.to_json_string()
|
|
18725
18933
|
try:
|
|
18726
18934
|
json_obj = json.loads(result)
|
|
@@ -21203,6 +21411,7 @@ ACTION_MAP = {
|
|
|
21203
21411
|
"DeleteCodeTemplate": doDeleteCodeTemplate,
|
|
21204
21412
|
"DescribeDsParentFolderTree": doDescribeDsParentFolderTree,
|
|
21205
21413
|
"DescribeInstanceLogList": doDescribeInstanceLogList,
|
|
21414
|
+
"GetDataBackfillPlan": doGetDataBackfillPlan,
|
|
21206
21415
|
"CreateTaskVersionDs": doCreateTaskVersionDs,
|
|
21207
21416
|
"BatchModifyOpsOwners": doBatchModifyOpsOwners,
|
|
21208
21417
|
"DownloadLogByLine": doDownloadLogByLine,
|
|
@@ -21271,8 +21480,10 @@ ACTION_MAP = {
|
|
|
21271
21480
|
"ListBatchDetail": doListBatchDetail,
|
|
21272
21481
|
"DescribeDependTaskLists": doDescribeDependTaskLists,
|
|
21273
21482
|
"ModifyDataSource": doModifyDataSource,
|
|
21483
|
+
"GetCodeFolder": doGetCodeFolder,
|
|
21274
21484
|
"ModifyTaskAlarmRegular": doModifyTaskAlarmRegular,
|
|
21275
21485
|
"DescribeBaseBizCatalogs": doDescribeBaseBizCatalogs,
|
|
21486
|
+
"ListTaskInstances": doListTaskInstances,
|
|
21276
21487
|
"CreateIntegrationNode": doCreateIntegrationNode,
|
|
21277
21488
|
"BatchSuspendIntegrationTasks": doBatchSuspendIntegrationTasks,
|
|
21278
21489
|
"DescribeInstanceLastLog": doDescribeInstanceLastLog,
|
|
@@ -21377,6 +21588,7 @@ ACTION_MAP = {
|
|
|
21377
21588
|
"DeleteTaskAlarmRegular": doDeleteTaskAlarmRegular,
|
|
21378
21589
|
"FreezeTasksByWorkflowIds": doFreezeTasksByWorkflowIds,
|
|
21379
21590
|
"DescribeTaskAlarmRegulations": doDescribeTaskAlarmRegulations,
|
|
21591
|
+
"StartOpsTasks": doStartOpsTasks,
|
|
21380
21592
|
"DeleteOpsAlarmRule": doDeleteOpsAlarmRule,
|
|
21381
21593
|
"DescribeIntegrationTask": doDescribeIntegrationTask,
|
|
21382
21594
|
"RerunTaskInstancesAsync": doRerunTaskInstancesAsync,
|
|
@@ -21451,7 +21663,7 @@ ACTION_MAP = {
|
|
|
21451
21663
|
"ListResourceGroups": doListResourceGroups,
|
|
21452
21664
|
"UploadContent": doUploadContent,
|
|
21453
21665
|
"UpdateOpsAlarmRule": doUpdateOpsAlarmRule,
|
|
21454
|
-
"
|
|
21666
|
+
"GetSQLFolder": doGetSQLFolder,
|
|
21455
21667
|
"BatchRunOpsTask": doBatchRunOpsTask,
|
|
21456
21668
|
"RunRerunScheduleInstances": doRunRerunScheduleInstances,
|
|
21457
21669
|
"RegisterDsEvent": doRegisterDsEvent,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tccli
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1407.1
|
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
|
15
15
|
Requires-Dist: six==1.16.0
|
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1407
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
19
|
# 命令行工具简介
|