tccli 3.0.1091.1__py2.py3-none-any.whl → 3.0.1093.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/examples/cdb/v20170320/CheckMigrateCluster.md +18 -0
- tccli/examples/cdb/v20170320/DescribeClusterInfo.md +59 -0
- tccli/examples/domain/v20180808/BidPreDomains.md +21 -0
- tccli/examples/domain/v20180808/DescribeReservedBidInfo.md +43 -0
- tccli/examples/domain/v20180808/DescribeReservedPreDomainInfo.md +31 -0
- tccli/examples/es/v20180416/UpdateInstance.md +27 -27
- tccli/examples/es/v20180416/UpdatePlugins.md +6 -6
- tccli/examples/ess/v20201111/CreateBatchOrganizationRegistrationTasks.md +146 -0
- tccli/examples/ess/v20201111/CreateOrganizationAuthUrl.md +28 -0
- tccli/examples/ess/v20201111/CreateOrganizationBatchSignUrl.md +28 -0
- tccli/examples/hunyuan/v20230901/ChatPro.md +69 -31
- tccli/examples/hunyuan/v20230901/ChatStd.md +40 -1
- tccli/examples/lke/v20231130/CheckAttributeLabelExist.md +24 -0
- tccli/examples/lke/v20231130/CheckAttributeLabelRefer.md +23 -0
- tccli/examples/lke/v20231130/CreateApp.md +24 -0
- tccli/examples/lke/v20231130/CreateAttributeLabel.md +24 -0
- tccli/examples/lke/v20231130/CreateCorp.md +24 -0
- tccli/examples/lke/v20231130/CreateQA.md +24 -0
- tccli/examples/lke/v20231130/CreateQACate.md +26 -0
- tccli/examples/lke/v20231130/CreateRejectedQuestion.md +22 -0
- tccli/examples/lke/v20231130/CreateRelease.md +21 -0
- tccli/examples/lke/v20231130/DeleteApp.md +21 -0
- tccli/examples/lke/v20231130/DeleteAttributeLabel.md +21 -0
- tccli/examples/lke/v20231130/DeleteDoc.md +21 -0
- tccli/examples/lke/v20231130/DeleteQA.md +21 -0
- tccli/examples/lke/v20231130/DeleteQACate.md +21 -0
- tccli/examples/lke/v20231130/DeleteRejectedQuestion.md +21 -0
- tccli/examples/lke/v20231130/DescribeApp.md +29 -0
- tccli/examples/lke/v20231130/DescribeAttributeLabel.md +28 -0
- tccli/examples/lke/v20231130/DescribeCorp.md +21 -0
- tccli/examples/lke/v20231130/DescribeDoc.md +44 -0
- tccli/examples/lke/v20231130/DescribeQA.md +42 -0
- tccli/examples/lke/v20231130/DescribeRefer.md +35 -0
- tccli/examples/lke/v20231130/DescribeRelease.md +25 -0
- tccli/examples/lke/v20231130/DescribeReleaseInfo.md +24 -0
- tccli/examples/lke/v20231130/DescribeRobotBizIDByAppKey.md +21 -0
- tccli/examples/lke/v20231130/DescribeStorageCredential.md +32 -0
- tccli/examples/lke/v20231130/DescribeUnsatisfiedReplyContext.md +121 -0
- tccli/examples/lke/v20231130/ExportAttributeLabel.md +21 -0
- tccli/examples/lke/v20231130/ExportQAList.md +21 -0
- tccli/examples/lke/v20231130/ExportUnsatisfiedReply.md +21 -0
- tccli/examples/lke/v20231130/GenerateQA.md +21 -0
- tccli/examples/lke/v20231130/GetAppKnowledgeCount.md +22 -0
- tccli/examples/lke/v20231130/GetAppSecret.md +24 -0
- tccli/examples/lke/v20231130/GetDocPreview.md +26 -0
- tccli/examples/lke/v20231130/GetEmbedding.md +29 -0
- tccli/examples/lke/v20231130/GetMsgRecord.md +51 -0
- tccli/examples/lke/v20231130/GetTaskStatus.md +0 -0
- tccli/examples/lke/v20231130/GetWsToken.md +44 -0
- tccli/examples/lke/v20231130/GroupQA.md +44 -0
- tccli/examples/lke/v20231130/IgnoreUnsatisfiedReply.md +21 -0
- tccli/examples/lke/v20231130/IsTransferIntent.md +22 -0
- tccli/examples/lke/v20231130/ListApp.md +36 -0
- tccli/examples/lke/v20231130/ListAppCategory.md +25 -0
- tccli/examples/lke/v20231130/ListAttributeLabel.md +33 -0
- tccli/examples/lke/v20231130/ListDoc.md +52 -0
- tccli/examples/lke/v20231130/ListModel.md +31 -0
- tccli/examples/lke/v20231130/ListQA.md +66 -0
- tccli/examples/lke/v20231130/ListQACate.md +41 -0
- tccli/examples/lke/v20231130/ListRejectedQuestion.md +52 -0
- tccli/examples/lke/v20231130/ListRejectedQuestionPreview.md +37 -0
- tccli/examples/lke/v20231130/ListRelease.md +36 -0
- tccli/examples/lke/v20231130/ListReleaseConfigPreview.md +129 -0
- tccli/examples/lke/v20231130/ListReleaseDocPreview.md +38 -0
- tccli/examples/lke/v20231130/ListReleaseQAPreview.md +107 -0
- tccli/examples/lke/v20231130/ListSelectDoc.md +27 -0
- tccli/examples/lke/v20231130/ListUnsatisfiedReply.md +24 -0
- tccli/examples/lke/v20231130/ModifyApp.md +25 -0
- tccli/examples/lke/v20231130/ModifyAttributeLabel.md +23 -0
- tccli/examples/lke/v20231130/ModifyDoc.md +25 -0
- tccli/examples/lke/v20231130/ModifyDocAttrRange.md +25 -0
- tccli/examples/lke/v20231130/ModifyQA.md +24 -0
- tccli/examples/lke/v20231130/ModifyQAAttrRange.md +25 -0
- tccli/examples/lke/v20231130/ModifyQACate.md +22 -0
- tccli/examples/lke/v20231130/ModifyRejectedQuestion.md +22 -0
- tccli/examples/lke/v20231130/ParseDoc.md +25 -0
- tccli/examples/lke/v20231130/QueryParseDocResult.md +24 -0
- tccli/examples/lke/v20231130/QueryRewrite.md +25 -0
- tccli/examples/lke/v20231130/RateMsgRecord.md +22 -0
- tccli/examples/lke/v20231130/ResetSession.md +20 -0
- tccli/examples/lke/v20231130/RetryDocAudit.md +21 -0
- tccli/examples/lke/v20231130/RetryDocParse.md +21 -0
- tccli/examples/lke/v20231130/RetryRelease.md +21 -0
- tccli/examples/lke/v20231130/SaveDoc.md +34 -0
- tccli/examples/lke/v20231130/StopDocParse.md +21 -0
- tccli/examples/lke/v20231130/UploadAttributeLabel.md +27 -0
- tccli/examples/lke/v20231130/VerifyQA.md +27 -0
- tccli/examples/mna/v20210119/GetFlowPackages.md +3 -1
- tccli/examples/mna/v20210119/GetFlowStatistic.md +42 -0
- tccli/examples/ocr/v20181119/GeneralBasicOCR.md +0 -1
- tccli/examples/rce/v20201103/ManageMarketingRisk.md +19 -56
- tccli/examples/sqlserver/v20180328/DescribeRestoreTimeRange.md +23 -0
- tccli/examples/svp/v20240125/CreateSavingPlanOrder.md +1 -1
- tccli/examples/tke/v20180525/DescribeSupportedRuntime.md +25 -0
- tccli/examples/tke/v20180525/ModifyClusterRuntimeConfig.md +27 -0
- tccli/examples/vod/v20180717/CreateSubAppId.md +1 -1
- tccli/examples/vod/v20180717/DescribeAdaptiveDynamicStreamingTemplates.md +5 -1
- tccli/examples/vod/v20180717/DescribeSubAppIds.md +8 -8
- tccli/examples/vod/v20180717/ModifySubAppIdInfo.md +3 -3
- tccli/examples/vod/v20180717/ModifySubAppIdStatus.md +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/aiart/v20221229/api.json +25 -6
- tccli/services/antiddos/v20200309/api.json +10 -0
- tccli/services/asr/v20190614/api.json +4 -4
- tccli/services/bsca/v20210811/api.json +19 -1
- tccli/services/ccc/v20200210/api.json +12 -12
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +255 -0
- tccli/services/cdb/v20170320/examples.json +16 -0
- tccli/services/cdn/v20180606/api.json +4 -4
- tccli/services/ckafka/v20190819/api.json +29 -24
- tccli/services/domain/domain_client.py +114 -8
- tccli/services/domain/v20180808/api.json +177 -4
- tccli/services/domain/v20180808/examples.json +22 -0
- tccli/services/dts/v20211206/api.json +2 -2
- tccli/services/es/v20180416/api.json +12 -12
- tccli/services/es/v20180416/examples.json +21 -21
- tccli/services/ess/ess_client.py +149 -43
- tccli/services/ess/v20201111/api.json +406 -4
- tccli/services/ess/v20201111/examples.json +34 -0
- tccli/services/essbasic/v20210526/api.json +2 -2
- tccli/services/faceid/v20180301/api.json +10 -1
- tccli/services/hunyuan/v20230901/api.json +67 -21
- tccli/services/hunyuan/v20230901/examples.json +17 -5
- tccli/services/iai/v20180301/api.json +19 -19
- tccli/services/lcic/v20220817/api.json +49 -0
- tccli/services/lke/__init__.py +4 -0
- tccli/services/lke/lke_client.py +4117 -0
- tccli/services/lke/v20231130/api.json +9020 -0
- tccli/services/lke/v20231130/examples.json +617 -0
- tccli/services/mna/v20210119/api.json +249 -29
- tccli/services/mna/v20210119/examples.json +7 -1
- tccli/services/monitor/v20180724/api.json +30 -10
- tccli/services/ocr/v20181119/api.json +29 -15
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/rce/v20201103/api.json +4 -4
- tccli/services/rce/v20201103/examples.json +3 -3
- tccli/services/redis/v20180412/api.json +1 -1
- tccli/services/scf/v20180416/api.json +18 -9
- tccli/services/sms/v20210111/api.json +1 -1
- tccli/services/sqlserver/sqlserver_client.py +110 -57
- tccli/services/sqlserver/v20180328/api.json +63 -0
- tccli/services/sqlserver/v20180328/examples.json +8 -0
- tccli/services/svp/v20240125/examples.json +1 -1
- tccli/services/tat/v20201028/api.json +3 -3
- tccli/services/tione/v20211111/api.json +25 -1
- tccli/services/tke/tke_client.py +106 -0
- tccli/services/tke/v20180525/api.json +229 -17
- tccli/services/tke/v20180525/examples.json +17 -1
- tccli/services/trtc/v20190722/api.json +46 -4
- tccli/services/vod/v20180717/api.json +24 -24
- tccli/services/vod/v20180717/examples.json +8 -8
- tccli/services/wedata/v20210820/api.json +295 -1437
- tccli/services/wedata/v20210820/examples.json +0 -88
- tccli/services/wedata/wedata_client.py +33 -616
- {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/RECORD +161 -73
- {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/license_files/LICENSE +0 -0
@@ -693,58 +693,6 @@ def doDescribeTaskByCycleReport(args, parsed_globals):
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
694
|
|
695
695
|
|
696
|
-
def doDescribeTableQualityDetails(args, parsed_globals):
|
697
|
-
g_param = parse_global_arg(parsed_globals)
|
698
|
-
|
699
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
700
|
-
cred = credential.CVMRoleCredential()
|
701
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
702
|
-
cred = credential.STSAssumeRoleCredential(
|
703
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
704
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
705
|
-
)
|
706
|
-
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):
|
707
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
708
|
-
else:
|
709
|
-
cred = credential.Credential(
|
710
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
711
|
-
)
|
712
|
-
http_profile = HttpProfile(
|
713
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
714
|
-
reqMethod="POST",
|
715
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
716
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
717
|
-
)
|
718
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
719
|
-
if g_param[OptionsDefine.Language]:
|
720
|
-
profile.language = g_param[OptionsDefine.Language]
|
721
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
722
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
723
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
724
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
-
model = models.DescribeTableQualityDetailsRequest()
|
726
|
-
model.from_json_string(json.dumps(args))
|
727
|
-
start_time = time.time()
|
728
|
-
while True:
|
729
|
-
rsp = client.DescribeTableQualityDetails(model)
|
730
|
-
result = rsp.to_json_string()
|
731
|
-
try:
|
732
|
-
json_obj = json.loads(result)
|
733
|
-
except TypeError as e:
|
734
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
735
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
736
|
-
break
|
737
|
-
cur_time = time.time()
|
738
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
739
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
740
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
741
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
742
|
-
else:
|
743
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
744
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
745
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
|
-
|
747
|
-
|
748
696
|
def doDescribeDataCheckStat(args, parsed_globals):
|
749
697
|
g_param = parse_global_arg(parsed_globals)
|
750
698
|
|
@@ -849,110 +797,6 @@ def doDescribeRuleExecResultsByPage(args, parsed_globals):
|
|
849
797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
798
|
|
851
799
|
|
852
|
-
def doDescribeInLongAgentVpcList(args, parsed_globals):
|
853
|
-
g_param = parse_global_arg(parsed_globals)
|
854
|
-
|
855
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
856
|
-
cred = credential.CVMRoleCredential()
|
857
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
858
|
-
cred = credential.STSAssumeRoleCredential(
|
859
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
860
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
861
|
-
)
|
862
|
-
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):
|
863
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
864
|
-
else:
|
865
|
-
cred = credential.Credential(
|
866
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
867
|
-
)
|
868
|
-
http_profile = HttpProfile(
|
869
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
870
|
-
reqMethod="POST",
|
871
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
872
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
873
|
-
)
|
874
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
875
|
-
if g_param[OptionsDefine.Language]:
|
876
|
-
profile.language = g_param[OptionsDefine.Language]
|
877
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
878
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
879
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
880
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
881
|
-
model = models.DescribeInLongAgentVpcListRequest()
|
882
|
-
model.from_json_string(json.dumps(args))
|
883
|
-
start_time = time.time()
|
884
|
-
while True:
|
885
|
-
rsp = client.DescribeInLongAgentVpcList(model)
|
886
|
-
result = rsp.to_json_string()
|
887
|
-
try:
|
888
|
-
json_obj = json.loads(result)
|
889
|
-
except TypeError as e:
|
890
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
891
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
892
|
-
break
|
893
|
-
cur_time = time.time()
|
894
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
895
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
896
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
897
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
898
|
-
else:
|
899
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
900
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
901
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
|
-
|
903
|
-
|
904
|
-
def doDescribeInLongAgentList(args, parsed_globals):
|
905
|
-
g_param = parse_global_arg(parsed_globals)
|
906
|
-
|
907
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
908
|
-
cred = credential.CVMRoleCredential()
|
909
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
910
|
-
cred = credential.STSAssumeRoleCredential(
|
911
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
912
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
913
|
-
)
|
914
|
-
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):
|
915
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
916
|
-
else:
|
917
|
-
cred = credential.Credential(
|
918
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
919
|
-
)
|
920
|
-
http_profile = HttpProfile(
|
921
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
922
|
-
reqMethod="POST",
|
923
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
924
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
925
|
-
)
|
926
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
927
|
-
if g_param[OptionsDefine.Language]:
|
928
|
-
profile.language = g_param[OptionsDefine.Language]
|
929
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
930
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
931
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
932
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
933
|
-
model = models.DescribeInLongAgentListRequest()
|
934
|
-
model.from_json_string(json.dumps(args))
|
935
|
-
start_time = time.time()
|
936
|
-
while True:
|
937
|
-
rsp = client.DescribeInLongAgentList(model)
|
938
|
-
result = rsp.to_json_string()
|
939
|
-
try:
|
940
|
-
json_obj = json.loads(result)
|
941
|
-
except TypeError as e:
|
942
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
943
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
944
|
-
break
|
945
|
-
cur_time = time.time()
|
946
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
947
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
948
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
949
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
950
|
-
else:
|
951
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
952
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
953
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
954
|
-
|
955
|
-
|
956
800
|
def doKillInstances(args, parsed_globals):
|
957
801
|
g_param = parse_global_arg(parsed_globals)
|
958
802
|
|
@@ -1265,58 +1109,6 @@ def doDescribeDrInstancePage(args, parsed_globals):
|
|
1265
1109
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1266
1110
|
|
1267
1111
|
|
1268
|
-
def doDescribeClusterNamespaceList(args, parsed_globals):
|
1269
|
-
g_param = parse_global_arg(parsed_globals)
|
1270
|
-
|
1271
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1272
|
-
cred = credential.CVMRoleCredential()
|
1273
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1274
|
-
cred = credential.STSAssumeRoleCredential(
|
1275
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1276
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1277
|
-
)
|
1278
|
-
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):
|
1279
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1280
|
-
else:
|
1281
|
-
cred = credential.Credential(
|
1282
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1283
|
-
)
|
1284
|
-
http_profile = HttpProfile(
|
1285
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1286
|
-
reqMethod="POST",
|
1287
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
1288
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1289
|
-
)
|
1290
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1291
|
-
if g_param[OptionsDefine.Language]:
|
1292
|
-
profile.language = g_param[OptionsDefine.Language]
|
1293
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1294
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
1295
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1296
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1297
|
-
model = models.DescribeClusterNamespaceListRequest()
|
1298
|
-
model.from_json_string(json.dumps(args))
|
1299
|
-
start_time = time.time()
|
1300
|
-
while True:
|
1301
|
-
rsp = client.DescribeClusterNamespaceList(model)
|
1302
|
-
result = rsp.to_json_string()
|
1303
|
-
try:
|
1304
|
-
json_obj = json.loads(result)
|
1305
|
-
except TypeError as e:
|
1306
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1307
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1308
|
-
break
|
1309
|
-
cur_time = time.time()
|
1310
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1311
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1312
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1313
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1314
|
-
else:
|
1315
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1316
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1317
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
|
-
|
1319
|
-
|
1320
1112
|
def doDescribeOperateOpsTasks(args, parsed_globals):
|
1321
1113
|
g_param = parse_global_arg(parsed_globals)
|
1322
1114
|
|
@@ -1577,58 +1369,6 @@ def doDescribeDatabaseMetas(args, parsed_globals):
|
|
1577
1369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1578
1370
|
|
1579
1371
|
|
1580
|
-
def doDescribeStandardRuleDetailInfoList(args, parsed_globals):
|
1581
|
-
g_param = parse_global_arg(parsed_globals)
|
1582
|
-
|
1583
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1584
|
-
cred = credential.CVMRoleCredential()
|
1585
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1586
|
-
cred = credential.STSAssumeRoleCredential(
|
1587
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1588
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1589
|
-
)
|
1590
|
-
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):
|
1591
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1592
|
-
else:
|
1593
|
-
cred = credential.Credential(
|
1594
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1595
|
-
)
|
1596
|
-
http_profile = HttpProfile(
|
1597
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1598
|
-
reqMethod="POST",
|
1599
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
1600
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1601
|
-
)
|
1602
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1603
|
-
if g_param[OptionsDefine.Language]:
|
1604
|
-
profile.language = g_param[OptionsDefine.Language]
|
1605
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1606
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
1607
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
1608
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1609
|
-
model = models.DescribeStandardRuleDetailInfoListRequest()
|
1610
|
-
model.from_json_string(json.dumps(args))
|
1611
|
-
start_time = time.time()
|
1612
|
-
while True:
|
1613
|
-
rsp = client.DescribeStandardRuleDetailInfoList(model)
|
1614
|
-
result = rsp.to_json_string()
|
1615
|
-
try:
|
1616
|
-
json_obj = json.loads(result)
|
1617
|
-
except TypeError as e:
|
1618
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1619
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1620
|
-
break
|
1621
|
-
cur_time = time.time()
|
1622
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1623
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1624
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1625
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1626
|
-
else:
|
1627
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1628
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1629
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1630
|
-
|
1631
|
-
|
1632
1372
|
def doDescribeTaskByCycle(args, parsed_globals):
|
1633
1373
|
g_param = parse_global_arg(parsed_globals)
|
1634
1374
|
|
@@ -2149,58 +1889,6 @@ def doDeleteWorkflowNew(args, parsed_globals):
|
|
2149
1889
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2150
1890
|
|
2151
1891
|
|
2152
|
-
def doDescribeIntegrationStatisticsAgentStatus(args, parsed_globals):
|
2153
|
-
g_param = parse_global_arg(parsed_globals)
|
2154
|
-
|
2155
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2156
|
-
cred = credential.CVMRoleCredential()
|
2157
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2158
|
-
cred = credential.STSAssumeRoleCredential(
|
2159
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2160
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2161
|
-
)
|
2162
|
-
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):
|
2163
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2164
|
-
else:
|
2165
|
-
cred = credential.Credential(
|
2166
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2167
|
-
)
|
2168
|
-
http_profile = HttpProfile(
|
2169
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2170
|
-
reqMethod="POST",
|
2171
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
2172
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2173
|
-
)
|
2174
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2175
|
-
if g_param[OptionsDefine.Language]:
|
2176
|
-
profile.language = g_param[OptionsDefine.Language]
|
2177
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2178
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
2179
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
2180
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2181
|
-
model = models.DescribeIntegrationStatisticsAgentStatusRequest()
|
2182
|
-
model.from_json_string(json.dumps(args))
|
2183
|
-
start_time = time.time()
|
2184
|
-
while True:
|
2185
|
-
rsp = client.DescribeIntegrationStatisticsAgentStatus(model)
|
2186
|
-
result = rsp.to_json_string()
|
2187
|
-
try:
|
2188
|
-
json_obj = json.loads(result)
|
2189
|
-
except TypeError as e:
|
2190
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2191
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2192
|
-
break
|
2193
|
-
cur_time = time.time()
|
2194
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2195
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2196
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2197
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2198
|
-
else:
|
2199
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2200
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2201
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
|
-
|
2203
|
-
|
2204
1892
|
def doStopBaseline(args, parsed_globals):
|
2205
1893
|
g_param = parse_global_arg(parsed_globals)
|
2206
1894
|
|
@@ -3742,59 +3430,7 @@ def doDescribeTaskRunHistory(args, parsed_globals):
|
|
3742
3430
|
model.from_json_string(json.dumps(args))
|
3743
3431
|
start_time = time.time()
|
3744
3432
|
while True:
|
3745
|
-
rsp = client.DescribeTaskRunHistory(model)
|
3746
|
-
result = rsp.to_json_string()
|
3747
|
-
try:
|
3748
|
-
json_obj = json.loads(result)
|
3749
|
-
except TypeError as e:
|
3750
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3751
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3752
|
-
break
|
3753
|
-
cur_time = time.time()
|
3754
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3755
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3756
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3757
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3758
|
-
else:
|
3759
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3760
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3761
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3762
|
-
|
3763
|
-
|
3764
|
-
def doRunForceSucScheduleInstances(args, parsed_globals):
|
3765
|
-
g_param = parse_global_arg(parsed_globals)
|
3766
|
-
|
3767
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3768
|
-
cred = credential.CVMRoleCredential()
|
3769
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3770
|
-
cred = credential.STSAssumeRoleCredential(
|
3771
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3772
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3773
|
-
)
|
3774
|
-
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):
|
3775
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3776
|
-
else:
|
3777
|
-
cred = credential.Credential(
|
3778
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3779
|
-
)
|
3780
|
-
http_profile = HttpProfile(
|
3781
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3782
|
-
reqMethod="POST",
|
3783
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
3784
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3785
|
-
)
|
3786
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3787
|
-
if g_param[OptionsDefine.Language]:
|
3788
|
-
profile.language = g_param[OptionsDefine.Language]
|
3789
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3790
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
3791
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
3792
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3793
|
-
model = models.RunForceSucScheduleInstancesRequest()
|
3794
|
-
model.from_json_string(json.dumps(args))
|
3795
|
-
start_time = time.time()
|
3796
|
-
while True:
|
3797
|
-
rsp = client.RunForceSucScheduleInstances(model)
|
3433
|
+
rsp = client.DescribeTaskRunHistory(model)
|
3798
3434
|
result = rsp.to_json_string()
|
3799
3435
|
try:
|
3800
3436
|
json_obj = json.loads(result)
|
@@ -3813,7 +3449,7 @@ def doRunForceSucScheduleInstances(args, parsed_globals):
|
|
3813
3449
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3814
3450
|
|
3815
3451
|
|
3816
|
-
def
|
3452
|
+
def doRunForceSucScheduleInstances(args, parsed_globals):
|
3817
3453
|
g_param = parse_global_arg(parsed_globals)
|
3818
3454
|
|
3819
3455
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3842,11 +3478,11 @@ def doDescribeProject(args, parsed_globals):
|
|
3842
3478
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
3843
3479
|
client._sdkVersion += ("_CLI_" + __version__)
|
3844
3480
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3845
|
-
model = models.
|
3481
|
+
model = models.RunForceSucScheduleInstancesRequest()
|
3846
3482
|
model.from_json_string(json.dumps(args))
|
3847
3483
|
start_time = time.time()
|
3848
3484
|
while True:
|
3849
|
-
rsp = client.
|
3485
|
+
rsp = client.RunForceSucScheduleInstances(model)
|
3850
3486
|
result = rsp.to_json_string()
|
3851
3487
|
try:
|
3852
3488
|
json_obj = json.loads(result)
|
@@ -3865,7 +3501,7 @@ def doDescribeProject(args, parsed_globals):
|
|
3865
3501
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3866
3502
|
|
3867
3503
|
|
3868
|
-
def
|
3504
|
+
def doDescribeProject(args, parsed_globals):
|
3869
3505
|
g_param = parse_global_arg(parsed_globals)
|
3870
3506
|
|
3871
3507
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3894,11 +3530,11 @@ def doDescribeAllUsedVersionSon(args, parsed_globals):
|
|
3894
3530
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
3895
3531
|
client._sdkVersion += ("_CLI_" + __version__)
|
3896
3532
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3897
|
-
model = models.
|
3533
|
+
model = models.DescribeProjectRequest()
|
3898
3534
|
model.from_json_string(json.dumps(args))
|
3899
3535
|
start_time = time.time()
|
3900
3536
|
while True:
|
3901
|
-
rsp = client.
|
3537
|
+
rsp = client.DescribeProject(model)
|
3902
3538
|
result = rsp.to_json_string()
|
3903
3539
|
try:
|
3904
3540
|
json_obj = json.loads(result)
|
@@ -3917,7 +3553,7 @@ def doDescribeAllUsedVersionSon(args, parsed_globals):
|
|
3917
3553
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3918
3554
|
|
3919
3555
|
|
3920
|
-
def
|
3556
|
+
def doDescribeAllUsedVersionSon(args, parsed_globals):
|
3921
3557
|
g_param = parse_global_arg(parsed_globals)
|
3922
3558
|
|
3923
3559
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3946,11 +3582,11 @@ def doDescribeOrganizationalFunctions(args, parsed_globals):
|
|
3946
3582
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
3947
3583
|
client._sdkVersion += ("_CLI_" + __version__)
|
3948
3584
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3949
|
-
model = models.
|
3585
|
+
model = models.DescribeAllUsedVersionSonRequest()
|
3950
3586
|
model.from_json_string(json.dumps(args))
|
3951
3587
|
start_time = time.time()
|
3952
3588
|
while True:
|
3953
|
-
rsp = client.
|
3589
|
+
rsp = client.DescribeAllUsedVersionSon(model)
|
3954
3590
|
result = rsp.to_json_string()
|
3955
3591
|
try:
|
3956
3592
|
json_obj = json.loads(result)
|
@@ -3969,7 +3605,7 @@ def doDescribeOrganizationalFunctions(args, parsed_globals):
|
|
3969
3605
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3970
3606
|
|
3971
3607
|
|
3972
|
-
def
|
3608
|
+
def doDescribeOrganizationalFunctions(args, parsed_globals):
|
3973
3609
|
g_param = parse_global_arg(parsed_globals)
|
3974
3610
|
|
3975
3611
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3998,11 +3634,11 @@ def doDeleteInLongAgent(args, parsed_globals):
|
|
3998
3634
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
3999
3635
|
client._sdkVersion += ("_CLI_" + __version__)
|
4000
3636
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
4001
|
-
model = models.
|
3637
|
+
model = models.DescribeOrganizationalFunctionsRequest()
|
4002
3638
|
model.from_json_string(json.dumps(args))
|
4003
3639
|
start_time = time.time()
|
4004
3640
|
while True:
|
4005
|
-
rsp = client.
|
3641
|
+
rsp = client.DescribeOrganizationalFunctions(model)
|
4006
3642
|
result = rsp.to_json_string()
|
4007
3643
|
try:
|
4008
3644
|
json_obj = json.loads(result)
|
@@ -5113,7 +4749,7 @@ def doDescribeDataSourceList(args, parsed_globals):
|
|
5113
4749
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5114
4750
|
|
5115
4751
|
|
5116
|
-
def
|
4752
|
+
def doModifyTaskInfo(args, parsed_globals):
|
5117
4753
|
g_param = parse_global_arg(parsed_globals)
|
5118
4754
|
|
5119
4755
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5142,11 +4778,11 @@ def doSetTaskAlarmNew(args, parsed_globals):
|
|
5142
4778
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
5143
4779
|
client._sdkVersion += ("_CLI_" + __version__)
|
5144
4780
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5145
|
-
model = models.
|
4781
|
+
model = models.ModifyTaskInfoRequest()
|
5146
4782
|
model.from_json_string(json.dumps(args))
|
5147
4783
|
start_time = time.time()
|
5148
4784
|
while True:
|
5149
|
-
rsp = client.
|
4785
|
+
rsp = client.ModifyTaskInfo(model)
|
5150
4786
|
result = rsp.to_json_string()
|
5151
4787
|
try:
|
5152
4788
|
json_obj = json.loads(result)
|
@@ -6153,110 +5789,6 @@ def doBatchRerunIntegrationTaskInstances(args, parsed_globals):
|
|
6153
5789
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6154
5790
|
|
6155
5791
|
|
6156
|
-
def doCreateInLongAgent(args, parsed_globals):
|
6157
|
-
g_param = parse_global_arg(parsed_globals)
|
6158
|
-
|
6159
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6160
|
-
cred = credential.CVMRoleCredential()
|
6161
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6162
|
-
cred = credential.STSAssumeRoleCredential(
|
6163
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6164
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6165
|
-
)
|
6166
|
-
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):
|
6167
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6168
|
-
else:
|
6169
|
-
cred = credential.Credential(
|
6170
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6171
|
-
)
|
6172
|
-
http_profile = HttpProfile(
|
6173
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6174
|
-
reqMethod="POST",
|
6175
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
6176
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6177
|
-
)
|
6178
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6179
|
-
if g_param[OptionsDefine.Language]:
|
6180
|
-
profile.language = g_param[OptionsDefine.Language]
|
6181
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6182
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
6183
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
6184
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6185
|
-
model = models.CreateInLongAgentRequest()
|
6186
|
-
model.from_json_string(json.dumps(args))
|
6187
|
-
start_time = time.time()
|
6188
|
-
while True:
|
6189
|
-
rsp = client.CreateInLongAgent(model)
|
6190
|
-
result = rsp.to_json_string()
|
6191
|
-
try:
|
6192
|
-
json_obj = json.loads(result)
|
6193
|
-
except TypeError as e:
|
6194
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6195
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6196
|
-
break
|
6197
|
-
cur_time = time.time()
|
6198
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6199
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6200
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6201
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6202
|
-
else:
|
6203
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6204
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6205
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6206
|
-
|
6207
|
-
|
6208
|
-
def doUpdateInLongAgent(args, parsed_globals):
|
6209
|
-
g_param = parse_global_arg(parsed_globals)
|
6210
|
-
|
6211
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6212
|
-
cred = credential.CVMRoleCredential()
|
6213
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6214
|
-
cred = credential.STSAssumeRoleCredential(
|
6215
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6216
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6217
|
-
)
|
6218
|
-
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):
|
6219
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6220
|
-
else:
|
6221
|
-
cred = credential.Credential(
|
6222
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6223
|
-
)
|
6224
|
-
http_profile = HttpProfile(
|
6225
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6226
|
-
reqMethod="POST",
|
6227
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
6228
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6229
|
-
)
|
6230
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6231
|
-
if g_param[OptionsDefine.Language]:
|
6232
|
-
profile.language = g_param[OptionsDefine.Language]
|
6233
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6234
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
6235
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
6236
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6237
|
-
model = models.UpdateInLongAgentRequest()
|
6238
|
-
model.from_json_string(json.dumps(args))
|
6239
|
-
start_time = time.time()
|
6240
|
-
while True:
|
6241
|
-
rsp = client.UpdateInLongAgent(model)
|
6242
|
-
result = rsp.to_json_string()
|
6243
|
-
try:
|
6244
|
-
json_obj = json.loads(result)
|
6245
|
-
except TypeError as e:
|
6246
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6247
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6248
|
-
break
|
6249
|
-
cur_time = time.time()
|
6250
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6251
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6252
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6253
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6254
|
-
else:
|
6255
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6256
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6257
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6258
|
-
|
6259
|
-
|
6260
5792
|
def doDescribeSchedulerTaskCntByStatus(args, parsed_globals):
|
6261
5793
|
g_param = parse_global_arg(parsed_globals)
|
6262
5794
|
|
@@ -6725,58 +6257,6 @@ def doCreateBaseline(args, parsed_globals):
|
|
6725
6257
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6726
6258
|
|
6727
6259
|
|
6728
|
-
def doDescribeRealTimeTaskInstanceNodeInfo(args, parsed_globals):
|
6729
|
-
g_param = parse_global_arg(parsed_globals)
|
6730
|
-
|
6731
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6732
|
-
cred = credential.CVMRoleCredential()
|
6733
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6734
|
-
cred = credential.STSAssumeRoleCredential(
|
6735
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6736
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6737
|
-
)
|
6738
|
-
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):
|
6739
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6740
|
-
else:
|
6741
|
-
cred = credential.Credential(
|
6742
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6743
|
-
)
|
6744
|
-
http_profile = HttpProfile(
|
6745
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6746
|
-
reqMethod="POST",
|
6747
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
6748
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6749
|
-
)
|
6750
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6751
|
-
if g_param[OptionsDefine.Language]:
|
6752
|
-
profile.language = g_param[OptionsDefine.Language]
|
6753
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6754
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
6755
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
6756
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6757
|
-
model = models.DescribeRealTimeTaskInstanceNodeInfoRequest()
|
6758
|
-
model.from_json_string(json.dumps(args))
|
6759
|
-
start_time = time.time()
|
6760
|
-
while True:
|
6761
|
-
rsp = client.DescribeRealTimeTaskInstanceNodeInfo(model)
|
6762
|
-
result = rsp.to_json_string()
|
6763
|
-
try:
|
6764
|
-
json_obj = json.loads(result)
|
6765
|
-
except TypeError as e:
|
6766
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6767
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6768
|
-
break
|
6769
|
-
cur_time = time.time()
|
6770
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6771
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6772
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6773
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6774
|
-
else:
|
6775
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6776
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6777
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6778
|
-
|
6779
|
-
|
6780
6260
|
def doDiagnosePlus(args, parsed_globals):
|
6781
6261
|
g_param = parse_global_arg(parsed_globals)
|
6782
6262
|
|
@@ -9117,7 +8597,7 @@ def doDeleteTaskDs(args, parsed_globals):
|
|
9117
8597
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9118
8598
|
|
9119
8599
|
|
9120
|
-
def
|
8600
|
+
def doDescribeTableQualityDetails(args, parsed_globals):
|
9121
8601
|
g_param = parse_global_arg(parsed_globals)
|
9122
8602
|
|
9123
8603
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -9146,11 +8626,11 @@ def doModifyDataSource(args, parsed_globals):
|
|
9146
8626
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
9147
8627
|
client._sdkVersion += ("_CLI_" + __version__)
|
9148
8628
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9149
|
-
model = models.
|
8629
|
+
model = models.DescribeTableQualityDetailsRequest()
|
9150
8630
|
model.from_json_string(json.dumps(args))
|
9151
8631
|
start_time = time.time()
|
9152
8632
|
while True:
|
9153
|
-
rsp = client.
|
8633
|
+
rsp = client.DescribeTableQualityDetails(model)
|
9154
8634
|
result = rsp.to_json_string()
|
9155
8635
|
try:
|
9156
8636
|
json_obj = json.loads(result)
|
@@ -13277,7 +12757,7 @@ def doBatchCreateIntegrationTaskAlarms(args, parsed_globals):
|
|
13277
12757
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13278
12758
|
|
13279
12759
|
|
13280
|
-
def
|
12760
|
+
def doModifyDataSource(args, parsed_globals):
|
13281
12761
|
g_param = parse_global_arg(parsed_globals)
|
13282
12762
|
|
13283
12763
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -13306,11 +12786,11 @@ def doDescribeInLongTkeClusterList(args, parsed_globals):
|
|
13306
12786
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
13307
12787
|
client._sdkVersion += ("_CLI_" + __version__)
|
13308
12788
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
13309
|
-
model = models.
|
12789
|
+
model = models.ModifyDataSourceRequest()
|
13310
12790
|
model.from_json_string(json.dumps(args))
|
13311
12791
|
start_time = time.time()
|
13312
12792
|
while True:
|
13313
|
-
rsp = client.
|
12793
|
+
rsp = client.ModifyDataSource(model)
|
13314
12794
|
result = rsp.to_json_string()
|
13315
12795
|
try:
|
13316
12796
|
json_obj = json.loads(result)
|
@@ -14525,7 +14005,7 @@ def doDescribeSonInstances(args, parsed_globals):
|
|
14525
14005
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
14526
14006
|
|
14527
14007
|
|
14528
|
-
def
|
14008
|
+
def doDescribeRealTimeTaskInstanceNodeInfo(args, parsed_globals):
|
14529
14009
|
g_param = parse_global_arg(parsed_globals)
|
14530
14010
|
|
14531
14011
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -14554,11 +14034,11 @@ def doRestartInLongAgent(args, parsed_globals):
|
|
14554
14034
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
14555
14035
|
client._sdkVersion += ("_CLI_" + __version__)
|
14556
14036
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
14557
|
-
model = models.
|
14037
|
+
model = models.DescribeRealTimeTaskInstanceNodeInfoRequest()
|
14558
14038
|
model.from_json_string(json.dumps(args))
|
14559
14039
|
start_time = time.time()
|
14560
14040
|
while True:
|
14561
|
-
rsp = client.
|
14041
|
+
rsp = client.DescribeRealTimeTaskInstanceNodeInfo(model)
|
14562
14042
|
result = rsp.to_json_string()
|
14563
14043
|
try:
|
14564
14044
|
json_obj = json.loads(result)
|
@@ -14889,7 +14369,7 @@ def doBatchResumeIntegrationTasks(args, parsed_globals):
|
|
14889
14369
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
14890
14370
|
|
14891
14371
|
|
14892
|
-
def
|
14372
|
+
def doSetTaskAlarmNew(args, parsed_globals):
|
14893
14373
|
g_param = parse_global_arg(parsed_globals)
|
14894
14374
|
|
14895
14375
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -14918,11 +14398,11 @@ def doModifyTaskInfo(args, parsed_globals):
|
|
14918
14398
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
14919
14399
|
client._sdkVersion += ("_CLI_" + __version__)
|
14920
14400
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
14921
|
-
model = models.
|
14401
|
+
model = models.SetTaskAlarmNewRequest()
|
14922
14402
|
model.from_json_string(json.dumps(args))
|
14923
14403
|
start_time = time.time()
|
14924
14404
|
while True:
|
14925
|
-
rsp = client.
|
14405
|
+
rsp = client.SetTaskAlarmNew(model)
|
14926
14406
|
result = rsp.to_json_string()
|
14927
14407
|
try:
|
14928
14408
|
json_obj = json.loads(result)
|
@@ -15253,58 +14733,6 @@ def doDescribeTemplateDimCount(args, parsed_globals):
|
|
15253
14733
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
15254
14734
|
|
15255
14735
|
|
15256
|
-
def doDescribeInLongAgentTaskList(args, parsed_globals):
|
15257
|
-
g_param = parse_global_arg(parsed_globals)
|
15258
|
-
|
15259
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
15260
|
-
cred = credential.CVMRoleCredential()
|
15261
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
15262
|
-
cred = credential.STSAssumeRoleCredential(
|
15263
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
15264
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
15265
|
-
)
|
15266
|
-
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):
|
15267
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
15268
|
-
else:
|
15269
|
-
cred = credential.Credential(
|
15270
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
15271
|
-
)
|
15272
|
-
http_profile = HttpProfile(
|
15273
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
15274
|
-
reqMethod="POST",
|
15275
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
15276
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
15277
|
-
)
|
15278
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
15279
|
-
if g_param[OptionsDefine.Language]:
|
15280
|
-
profile.language = g_param[OptionsDefine.Language]
|
15281
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
15282
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
15283
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
15284
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
15285
|
-
model = models.DescribeInLongAgentTaskListRequest()
|
15286
|
-
model.from_json_string(json.dumps(args))
|
15287
|
-
start_time = time.time()
|
15288
|
-
while True:
|
15289
|
-
rsp = client.DescribeInLongAgentTaskList(model)
|
15290
|
-
result = rsp.to_json_string()
|
15291
|
-
try:
|
15292
|
-
json_obj = json.loads(result)
|
15293
|
-
except TypeError as e:
|
15294
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
15295
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
15296
|
-
break
|
15297
|
-
cur_time = time.time()
|
15298
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
15299
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
15300
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
15301
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
15302
|
-
else:
|
15303
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
15304
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
15305
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
15306
|
-
|
15307
|
-
|
15308
14736
|
def doDescribeRuleExecHistory(args, parsed_globals):
|
15309
14737
|
g_param = parse_global_arg(parsed_globals)
|
15310
14738
|
|
@@ -16577,24 +16005,19 @@ ACTION_MAP = {
|
|
16577
16005
|
"DescribeScheduleInstances": doDescribeScheduleInstances,
|
16578
16006
|
"BatchStopOpsTasks": doBatchStopOpsTasks,
|
16579
16007
|
"DescribeTaskByCycleReport": doDescribeTaskByCycleReport,
|
16580
|
-
"DescribeTableQualityDetails": doDescribeTableQualityDetails,
|
16581
16008
|
"DescribeDataCheckStat": doDescribeDataCheckStat,
|
16582
16009
|
"DescribeRuleExecResultsByPage": doDescribeRuleExecResultsByPage,
|
16583
|
-
"DescribeInLongAgentVpcList": doDescribeInLongAgentVpcList,
|
16584
|
-
"DescribeInLongAgentList": doDescribeInLongAgentList,
|
16585
16010
|
"KillInstances": doKillInstances,
|
16586
16011
|
"BatchKillIntegrationTaskInstances": doBatchKillIntegrationTaskInstances,
|
16587
16012
|
"ModifyExecStrategy": doModifyExecStrategy,
|
16588
16013
|
"DescribeIntegrationStatisticsTaskStatusTrend": doDescribeIntegrationStatisticsTaskStatusTrend,
|
16589
16014
|
"CreateHiveTable": doCreateHiveTable,
|
16590
16015
|
"DescribeDrInstancePage": doDescribeDrInstancePage,
|
16591
|
-
"DescribeClusterNamespaceList": doDescribeClusterNamespaceList,
|
16592
16016
|
"DescribeOperateOpsTasks": doDescribeOperateOpsTasks,
|
16593
16017
|
"DescribeInstanceByCycle": doDescribeInstanceByCycle,
|
16594
16018
|
"CreateIntegrationNode": doCreateIntegrationNode,
|
16595
16019
|
"DescribeIntegrationNode": doDescribeIntegrationNode,
|
16596
16020
|
"DescribeDatabaseMetas": doDescribeDatabaseMetas,
|
16597
|
-
"DescribeStandardRuleDetailInfoList": doDescribeStandardRuleDetailInfoList,
|
16598
16021
|
"DescribeTaskByCycle": doDescribeTaskByCycle,
|
16599
16022
|
"DescribeInstanceLogFile": doDescribeInstanceLogFile,
|
16600
16023
|
"SubmitWorkflow": doSubmitWorkflow,
|
@@ -16605,7 +16028,6 @@ ACTION_MAP = {
|
|
16605
16028
|
"BatchDeleteTasksNew": doBatchDeleteTasksNew,
|
16606
16029
|
"ResumeIntegrationTask": doResumeIntegrationTask,
|
16607
16030
|
"DeleteWorkflowNew": doDeleteWorkflowNew,
|
16608
|
-
"DescribeIntegrationStatisticsAgentStatus": doDescribeIntegrationStatisticsAgentStatus,
|
16609
16031
|
"StopBaseline": doStopBaseline,
|
16610
16032
|
"DescribeInstanceLogList": doDescribeInstanceLogList,
|
16611
16033
|
"CreateTaskVersionDs": doCreateTaskVersionDs,
|
@@ -16640,7 +16062,6 @@ ACTION_MAP = {
|
|
16640
16062
|
"DescribeProject": doDescribeProject,
|
16641
16063
|
"DescribeAllUsedVersionSon": doDescribeAllUsedVersionSon,
|
16642
16064
|
"DescribeOrganizationalFunctions": doDescribeOrganizationalFunctions,
|
16643
|
-
"DeleteInLongAgent": doDeleteInLongAgent,
|
16644
16065
|
"DescribeDrSonInstance": doDescribeDrSonInstance,
|
16645
16066
|
"DescribeDsFolderTree": doDescribeDsFolderTree,
|
16646
16067
|
"SubmitTaskTestRun": doSubmitTaskTestRun,
|
@@ -16662,7 +16083,7 @@ ACTION_MAP = {
|
|
16662
16083
|
"DescribeRuleHistoryByPage": doDescribeRuleHistoryByPage,
|
16663
16084
|
"KillOpsMakePlanInstances": doKillOpsMakePlanInstances,
|
16664
16085
|
"DescribeDataSourceList": doDescribeDataSourceList,
|
16665
|
-
"
|
16086
|
+
"ModifyTaskInfo": doModifyTaskInfo,
|
16666
16087
|
"DescribeRuleTablesByPage": doDescribeRuleTablesByPage,
|
16667
16088
|
"TriggerDsEvent": doTriggerDsEvent,
|
16668
16089
|
"DescribeEventTypes": doDescribeEventTypes,
|
@@ -16682,8 +16103,6 @@ ACTION_MAP = {
|
|
16682
16103
|
"DescribeWorkflowInfoById": doDescribeWorkflowInfoById,
|
16683
16104
|
"DescribeTaskByStatusReport": doDescribeTaskByStatusReport,
|
16684
16105
|
"BatchRerunIntegrationTaskInstances": doBatchRerunIntegrationTaskInstances,
|
16685
|
-
"CreateInLongAgent": doCreateInLongAgent,
|
16686
|
-
"UpdateInLongAgent": doUpdateInLongAgent,
|
16687
16106
|
"DescribeSchedulerTaskCntByStatus": doDescribeSchedulerTaskCntByStatus,
|
16688
16107
|
"CreateFolder": doCreateFolder,
|
16689
16108
|
"DescribeTasksByPage": doDescribeTasksByPage,
|
@@ -16693,7 +16112,6 @@ ACTION_MAP = {
|
|
16693
16112
|
"DescribeFunctionTypes": doDescribeFunctionTypes,
|
16694
16113
|
"DescribeTaskReportDetailList": doDescribeTaskReportDetailList,
|
16695
16114
|
"CreateBaseline": doCreateBaseline,
|
16696
|
-
"DescribeRealTimeTaskInstanceNodeInfo": doDescribeRealTimeTaskInstanceNodeInfo,
|
16697
16115
|
"DiagnosePlus": doDiagnosePlus,
|
16698
16116
|
"DescribeFunctionKinds": doDescribeFunctionKinds,
|
16699
16117
|
"DeleteIntegrationNode": doDeleteIntegrationNode,
|
@@ -16739,7 +16157,7 @@ ACTION_MAP = {
|
|
16739
16157
|
"DescribeEvent": doDescribeEvent,
|
16740
16158
|
"DescribeTableScoreTrend": doDescribeTableScoreTrend,
|
16741
16159
|
"DeleteTaskDs": doDeleteTaskDs,
|
16742
|
-
"
|
16160
|
+
"DescribeTableQualityDetails": doDescribeTableQualityDetails,
|
16743
16161
|
"DescribeRuleGroupsByPage": doDescribeRuleGroupsByPage,
|
16744
16162
|
"DescribeColumnsMeta": doDescribeColumnsMeta,
|
16745
16163
|
"DescribeEventDetail": doDescribeEventDetail,
|
@@ -16819,7 +16237,7 @@ ACTION_MAP = {
|
|
16819
16237
|
"DescribeDependTaskLists": doDescribeDependTaskLists,
|
16820
16238
|
"SaveCustomFunction": doSaveCustomFunction,
|
16821
16239
|
"BatchCreateIntegrationTaskAlarms": doBatchCreateIntegrationTaskAlarms,
|
16822
|
-
"
|
16240
|
+
"ModifyDataSource": doModifyDataSource,
|
16823
16241
|
"DescribeTaskAlarmRegulations": doDescribeTaskAlarmRegulations,
|
16824
16242
|
"DescribeIntegrationVersionNodesInfo": doDescribeIntegrationVersionNodesInfo,
|
16825
16243
|
"ModifyTaskAlarmRegular": doModifyTaskAlarmRegular,
|
@@ -16843,21 +16261,20 @@ ACTION_MAP = {
|
|
16843
16261
|
"DescribeOpsMakePlans": doDescribeOpsMakePlans,
|
16844
16262
|
"DescribeTaskInstance": doDescribeTaskInstance,
|
16845
16263
|
"DescribeSonInstances": doDescribeSonInstances,
|
16846
|
-
"
|
16264
|
+
"DescribeRealTimeTaskInstanceNodeInfo": doDescribeRealTimeTaskInstanceNodeInfo,
|
16847
16265
|
"ModifyDimensionWeight": doModifyDimensionWeight,
|
16848
16266
|
"FindAllFolder": doFindAllFolder,
|
16849
16267
|
"DescribeInstancesInfoWithTaskInfo": doDescribeInstancesInfoWithTaskInfo,
|
16850
16268
|
"RunRerunScheduleInstances": doRunRerunScheduleInstances,
|
16851
16269
|
"BatchStopWorkflowsByIds": doBatchStopWorkflowsByIds,
|
16852
16270
|
"BatchResumeIntegrationTasks": doBatchResumeIntegrationTasks,
|
16853
|
-
"
|
16271
|
+
"SetTaskAlarmNew": doSetTaskAlarmNew,
|
16854
16272
|
"DescribeRuleTemplate": doDescribeRuleTemplate,
|
16855
16273
|
"SubmitTask": doSubmitTask,
|
16856
16274
|
"SubmitSqlTask": doSubmitSqlTask,
|
16857
16275
|
"DescribeInstances": doDescribeInstances,
|
16858
16276
|
"DescribeDataSourceInfoList": doDescribeDataSourceInfoList,
|
16859
16277
|
"DescribeTemplateDimCount": doDescribeTemplateDimCount,
|
16860
|
-
"DescribeInLongAgentTaskList": doDescribeInLongAgentTaskList,
|
16861
16278
|
"DescribeRuleExecHistory": doDescribeRuleExecHistory,
|
16862
16279
|
"TaskLog": doTaskLog,
|
16863
16280
|
"DescribeRuleTemplates": doDescribeRuleTemplates,
|