tccli 3.0.1329.1__py2.py3-none-any.whl → 3.0.1330.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 +3 -3
- tccli/services/autoscaling/v20180419/examples.json +1 -1
- tccli/services/btoe/v20210514/api.json +26 -26
- tccli/services/ckafka/v20190819/api.json +9 -0
- tccli/services/ess/v20201111/api.json +10 -1
- tccli/services/essbasic/v20210526/api.json +11 -2
- tccli/services/essbasic/v20210526/examples.json +3 -3
- tccli/services/faceid/v20180301/api.json +45 -0
- tccli/services/gs/v20191118/api.json +1 -1
- tccli/services/hai/hai_client.py +57 -4
- tccli/services/hai/v20230812/api.json +43 -0
- tccli/services/hai/v20230812/examples.json +8 -0
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/mps/v20190612/api.json +11 -0
- tccli/services/ocr/v20181119/api.json +40 -0
- tccli/services/postgres/v20170312/api.json +1 -1
- tccli/services/sms/v20190711/api.json +4 -4
- tccli/services/sms/v20210111/api.json +4 -4
- tccli/services/tcss/tcss_client.py +57 -4
- tccli/services/tcss/v20201101/api.json +79 -0
- tccli/services/tcss/v20201101/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +59 -1
- tccli/services/tke/v20180525/examples.json +4 -4
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/vod/v20180717/api.json +25 -13
- tccli/services/vod/v20180717/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +4144 -447
- tccli/services/wedata/v20210820/examples.json +52 -10
- tccli/services/wedata/wedata_client.py +403 -85
- {tccli-3.0.1329.1.dist-info → tccli-3.0.1330.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1329.1.dist-info → tccli-3.0.1330.1.dist-info}/RECORD +35 -35
- {tccli-3.0.1329.1.dist-info → tccli-3.0.1330.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1329.1.dist-info → tccli-3.0.1330.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1329.1.dist-info → tccli-3.0.1330.1.dist-info}/license_files/LICENSE +0 -0
@@ -1213,7 +1213,7 @@ def doDescribeInstanceByCycle(args, parsed_globals):
|
|
1213
1213
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1214
|
|
1215
1215
|
|
1216
|
-
def
|
1216
|
+
def doCreateIntegrationNode(args, parsed_globals):
|
1217
1217
|
g_param = parse_global_arg(parsed_globals)
|
1218
1218
|
|
1219
1219
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1242,11 +1242,11 @@ def doDescribeProject(args, parsed_globals):
|
|
1242
1242
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
1243
1243
|
client._sdkVersion += ("_CLI_" + __version__)
|
1244
1244
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1245
|
-
model = models.
|
1245
|
+
model = models.CreateIntegrationNodeRequest()
|
1246
1246
|
model.from_json_string(json.dumps(args))
|
1247
1247
|
start_time = time.time()
|
1248
1248
|
while True:
|
1249
|
-
rsp = client.
|
1249
|
+
rsp = client.CreateIntegrationNode(model)
|
1250
1250
|
result = rsp.to_json_string()
|
1251
1251
|
try:
|
1252
1252
|
json_obj = json.loads(result)
|
@@ -5789,7 +5789,7 @@ def doDescribeFunctionTypes(args, parsed_globals):
|
|
5789
5789
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5790
5790
|
|
5791
5791
|
|
5792
|
-
def
|
5792
|
+
def doDeleteLink(args, parsed_globals):
|
5793
5793
|
g_param = parse_global_arg(parsed_globals)
|
5794
5794
|
|
5795
5795
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -5818,11 +5818,11 @@ def doDescribeIntegrationTasks(args, parsed_globals):
|
|
5818
5818
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
5819
5819
|
client._sdkVersion += ("_CLI_" + __version__)
|
5820
5820
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
5821
|
-
model = models.
|
5821
|
+
model = models.DeleteLinkRequest()
|
5822
5822
|
model.from_json_string(json.dumps(args))
|
5823
5823
|
start_time = time.time()
|
5824
5824
|
while True:
|
5825
|
-
rsp = client.
|
5825
|
+
rsp = client.DeleteLink(model)
|
5826
5826
|
result = rsp.to_json_string()
|
5827
5827
|
try:
|
5828
5828
|
json_obj = json.loads(result)
|
@@ -5997,6 +5997,58 @@ def doDescribeFunctionKinds(args, parsed_globals):
|
|
5997
5997
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
5998
5998
|
|
5999
5999
|
|
6000
|
+
def doDescribeWorkflowByFordIds(args, parsed_globals):
|
6001
|
+
g_param = parse_global_arg(parsed_globals)
|
6002
|
+
|
6003
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6004
|
+
cred = credential.CVMRoleCredential()
|
6005
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6006
|
+
cred = credential.STSAssumeRoleCredential(
|
6007
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6008
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6009
|
+
)
|
6010
|
+
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):
|
6011
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6012
|
+
else:
|
6013
|
+
cred = credential.Credential(
|
6014
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6015
|
+
)
|
6016
|
+
http_profile = HttpProfile(
|
6017
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6018
|
+
reqMethod="POST",
|
6019
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6020
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6021
|
+
)
|
6022
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6023
|
+
if g_param[OptionsDefine.Language]:
|
6024
|
+
profile.language = g_param[OptionsDefine.Language]
|
6025
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6026
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
6027
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6028
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6029
|
+
model = models.DescribeWorkflowByFordIdsRequest()
|
6030
|
+
model.from_json_string(json.dumps(args))
|
6031
|
+
start_time = time.time()
|
6032
|
+
while True:
|
6033
|
+
rsp = client.DescribeWorkflowByFordIds(model)
|
6034
|
+
result = rsp.to_json_string()
|
6035
|
+
try:
|
6036
|
+
json_obj = json.loads(result)
|
6037
|
+
except TypeError as e:
|
6038
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6039
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6040
|
+
break
|
6041
|
+
cur_time = time.time()
|
6042
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6043
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6044
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6045
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6046
|
+
else:
|
6047
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6048
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6049
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6050
|
+
|
6051
|
+
|
6000
6052
|
def doDeleteIntegrationNode(args, parsed_globals):
|
6001
6053
|
g_param = parse_global_arg(parsed_globals)
|
6002
6054
|
|
@@ -6049,6 +6101,58 @@ def doDeleteIntegrationNode(args, parsed_globals):
|
|
6049
6101
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6050
6102
|
|
6051
6103
|
|
6104
|
+
def doBatchDeleteIntegrationTasks(args, parsed_globals):
|
6105
|
+
g_param = parse_global_arg(parsed_globals)
|
6106
|
+
|
6107
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6108
|
+
cred = credential.CVMRoleCredential()
|
6109
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6110
|
+
cred = credential.STSAssumeRoleCredential(
|
6111
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6112
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6113
|
+
)
|
6114
|
+
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):
|
6115
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6116
|
+
else:
|
6117
|
+
cred = credential.Credential(
|
6118
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6119
|
+
)
|
6120
|
+
http_profile = HttpProfile(
|
6121
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6122
|
+
reqMethod="POST",
|
6123
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6124
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6125
|
+
)
|
6126
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6127
|
+
if g_param[OptionsDefine.Language]:
|
6128
|
+
profile.language = g_param[OptionsDefine.Language]
|
6129
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6130
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
6131
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6132
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6133
|
+
model = models.BatchDeleteIntegrationTasksRequest()
|
6134
|
+
model.from_json_string(json.dumps(args))
|
6135
|
+
start_time = time.time()
|
6136
|
+
while True:
|
6137
|
+
rsp = client.BatchDeleteIntegrationTasks(model)
|
6138
|
+
result = rsp.to_json_string()
|
6139
|
+
try:
|
6140
|
+
json_obj = json.loads(result)
|
6141
|
+
except TypeError as e:
|
6142
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6143
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6144
|
+
break
|
6145
|
+
cur_time = time.time()
|
6146
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6147
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6148
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6149
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6150
|
+
else:
|
6151
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6152
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6153
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6154
|
+
|
6155
|
+
|
6052
6156
|
def doStopIntegrationTask(args, parsed_globals):
|
6053
6157
|
g_param = parse_global_arg(parsed_globals)
|
6054
6158
|
|
@@ -6777,6 +6881,58 @@ def doFreezeOpsTasks(args, parsed_globals):
|
|
6777
6881
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6778
6882
|
|
6779
6883
|
|
6884
|
+
def doDescribeProject(args, parsed_globals):
|
6885
|
+
g_param = parse_global_arg(parsed_globals)
|
6886
|
+
|
6887
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6888
|
+
cred = credential.CVMRoleCredential()
|
6889
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6890
|
+
cred = credential.STSAssumeRoleCredential(
|
6891
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6892
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6893
|
+
)
|
6894
|
+
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):
|
6895
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6896
|
+
else:
|
6897
|
+
cred = credential.Credential(
|
6898
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6899
|
+
)
|
6900
|
+
http_profile = HttpProfile(
|
6901
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6902
|
+
reqMethod="POST",
|
6903
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6904
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6905
|
+
)
|
6906
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6907
|
+
if g_param[OptionsDefine.Language]:
|
6908
|
+
profile.language = g_param[OptionsDefine.Language]
|
6909
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6910
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
6911
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6912
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6913
|
+
model = models.DescribeProjectRequest()
|
6914
|
+
model.from_json_string(json.dumps(args))
|
6915
|
+
start_time = time.time()
|
6916
|
+
while True:
|
6917
|
+
rsp = client.DescribeProject(model)
|
6918
|
+
result = rsp.to_json_string()
|
6919
|
+
try:
|
6920
|
+
json_obj = json.loads(result)
|
6921
|
+
except TypeError as e:
|
6922
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6923
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6924
|
+
break
|
6925
|
+
cur_time = time.time()
|
6926
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6927
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6928
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6929
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6930
|
+
else:
|
6931
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6932
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6933
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6934
|
+
|
6935
|
+
|
6780
6936
|
def doDescribeRuleGroup(args, parsed_globals):
|
6781
6937
|
g_param = parse_global_arg(parsed_globals)
|
6782
6938
|
|
@@ -6985,6 +7141,58 @@ def doDescribeDatabaseInfoList(args, parsed_globals):
|
|
6985
7141
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6986
7142
|
|
6987
7143
|
|
7144
|
+
def doDescribeIntegrationTasks(args, parsed_globals):
|
7145
|
+
g_param = parse_global_arg(parsed_globals)
|
7146
|
+
|
7147
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7148
|
+
cred = credential.CVMRoleCredential()
|
7149
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7150
|
+
cred = credential.STSAssumeRoleCredential(
|
7151
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7152
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7153
|
+
)
|
7154
|
+
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):
|
7155
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7156
|
+
else:
|
7157
|
+
cred = credential.Credential(
|
7158
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7159
|
+
)
|
7160
|
+
http_profile = HttpProfile(
|
7161
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7162
|
+
reqMethod="POST",
|
7163
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7164
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7165
|
+
)
|
7166
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7167
|
+
if g_param[OptionsDefine.Language]:
|
7168
|
+
profile.language = g_param[OptionsDefine.Language]
|
7169
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7170
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
7171
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7172
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7173
|
+
model = models.DescribeIntegrationTasksRequest()
|
7174
|
+
model.from_json_string(json.dumps(args))
|
7175
|
+
start_time = time.time()
|
7176
|
+
while True:
|
7177
|
+
rsp = client.DescribeIntegrationTasks(model)
|
7178
|
+
result = rsp.to_json_string()
|
7179
|
+
try:
|
7180
|
+
json_obj = json.loads(result)
|
7181
|
+
except TypeError as e:
|
7182
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7183
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7184
|
+
break
|
7185
|
+
cur_time = time.time()
|
7186
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7187
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7188
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7189
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7190
|
+
else:
|
7191
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7192
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7193
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7194
|
+
|
7195
|
+
|
6988
7196
|
def doDescribeDependOpsTasks(args, parsed_globals):
|
6989
7197
|
g_param = parse_global_arg(parsed_globals)
|
6990
7198
|
|
@@ -7453,6 +7661,58 @@ def doDescribeTaskLineage(args, parsed_globals):
|
|
7453
7661
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7454
7662
|
|
7455
7663
|
|
7664
|
+
def doBatchDeleteOpsTasks(args, parsed_globals):
|
7665
|
+
g_param = parse_global_arg(parsed_globals)
|
7666
|
+
|
7667
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
7668
|
+
cred = credential.CVMRoleCredential()
|
7669
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
7670
|
+
cred = credential.STSAssumeRoleCredential(
|
7671
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
7672
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
7673
|
+
)
|
7674
|
+
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):
|
7675
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
7676
|
+
else:
|
7677
|
+
cred = credential.Credential(
|
7678
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
7679
|
+
)
|
7680
|
+
http_profile = HttpProfile(
|
7681
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
7682
|
+
reqMethod="POST",
|
7683
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
7684
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
7685
|
+
)
|
7686
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
7687
|
+
if g_param[OptionsDefine.Language]:
|
7688
|
+
profile.language = g_param[OptionsDefine.Language]
|
7689
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
7690
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
7691
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
7692
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7693
|
+
model = models.BatchDeleteOpsTasksRequest()
|
7694
|
+
model.from_json_string(json.dumps(args))
|
7695
|
+
start_time = time.time()
|
7696
|
+
while True:
|
7697
|
+
rsp = client.BatchDeleteOpsTasks(model)
|
7698
|
+
result = rsp.to_json_string()
|
7699
|
+
try:
|
7700
|
+
json_obj = json.loads(result)
|
7701
|
+
except TypeError as e:
|
7702
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
7703
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
7704
|
+
break
|
7705
|
+
cur_time = time.time()
|
7706
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
7707
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
7708
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
7709
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
7710
|
+
else:
|
7711
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
7712
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
7713
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7714
|
+
|
7715
|
+
|
7456
7716
|
def doDescribeResourceManagePathTrees(args, parsed_globals):
|
7457
7717
|
g_param = parse_global_arg(parsed_globals)
|
7458
7718
|
|
@@ -8545,58 +8805,6 @@ def doBatchCreateTaskVersionAsync(args, parsed_globals):
|
|
8545
8805
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8546
8806
|
|
8547
8807
|
|
8548
|
-
def doModifyMonitorStatus(args, parsed_globals):
|
8549
|
-
g_param = parse_global_arg(parsed_globals)
|
8550
|
-
|
8551
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
8552
|
-
cred = credential.CVMRoleCredential()
|
8553
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
8554
|
-
cred = credential.STSAssumeRoleCredential(
|
8555
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
8556
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
8557
|
-
)
|
8558
|
-
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):
|
8559
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
8560
|
-
else:
|
8561
|
-
cred = credential.Credential(
|
8562
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
8563
|
-
)
|
8564
|
-
http_profile = HttpProfile(
|
8565
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
8566
|
-
reqMethod="POST",
|
8567
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
8568
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
8569
|
-
)
|
8570
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
8571
|
-
if g_param[OptionsDefine.Language]:
|
8572
|
-
profile.language = g_param[OptionsDefine.Language]
|
8573
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
8574
|
-
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
8575
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
8576
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8577
|
-
model = models.ModifyMonitorStatusRequest()
|
8578
|
-
model.from_json_string(json.dumps(args))
|
8579
|
-
start_time = time.time()
|
8580
|
-
while True:
|
8581
|
-
rsp = client.ModifyMonitorStatus(model)
|
8582
|
-
result = rsp.to_json_string()
|
8583
|
-
try:
|
8584
|
-
json_obj = json.loads(result)
|
8585
|
-
except TypeError as e:
|
8586
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
8587
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
8588
|
-
break
|
8589
|
-
cur_time = time.time()
|
8590
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
8591
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
8592
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
8593
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
8594
|
-
else:
|
8595
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
8596
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
8597
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8598
|
-
|
8599
|
-
|
8600
8808
|
def doDeleteProjectUsers(args, parsed_globals):
|
8601
8809
|
g_param = parse_global_arg(parsed_globals)
|
8602
8810
|
|
@@ -8649,7 +8857,7 @@ def doDeleteProjectUsers(args, parsed_globals):
|
|
8649
8857
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
8650
8858
|
|
8651
8859
|
|
8652
|
-
def
|
8860
|
+
def doGetOfflineDIInstanceList(args, parsed_globals):
|
8653
8861
|
g_param = parse_global_arg(parsed_globals)
|
8654
8862
|
|
8655
8863
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -8678,11 +8886,11 @@ def doDeleteFile(args, parsed_globals):
|
|
8678
8886
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
8679
8887
|
client._sdkVersion += ("_CLI_" + __version__)
|
8680
8888
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
8681
|
-
model = models.
|
8889
|
+
model = models.GetOfflineDIInstanceListRequest()
|
8682
8890
|
model.from_json_string(json.dumps(args))
|
8683
8891
|
start_time = time.time()
|
8684
8892
|
while True:
|
8685
|
-
rsp = client.
|
8893
|
+
rsp = client.GetOfflineDIInstanceList(model)
|
8686
8894
|
result = rsp.to_json_string()
|
8687
8895
|
try:
|
8688
8896
|
json_obj = json.loads(result)
|
@@ -9481,7 +9689,7 @@ def doDescribeIntegrationStatisticsTaskStatusTrend(args, parsed_globals):
|
|
9481
9689
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9482
9690
|
|
9483
9691
|
|
9484
|
-
def
|
9692
|
+
def doModifyMonitorStatus(args, parsed_globals):
|
9485
9693
|
g_param = parse_global_arg(parsed_globals)
|
9486
9694
|
|
9487
9695
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -9510,11 +9718,11 @@ def doDescribeTaskLockStatus(args, parsed_globals):
|
|
9510
9718
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
9511
9719
|
client._sdkVersion += ("_CLI_" + __version__)
|
9512
9720
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9513
|
-
model = models.
|
9721
|
+
model = models.ModifyMonitorStatusRequest()
|
9514
9722
|
model.from_json_string(json.dumps(args))
|
9515
9723
|
start_time = time.time()
|
9516
9724
|
while True:
|
9517
|
-
rsp = client.
|
9725
|
+
rsp = client.ModifyMonitorStatus(model)
|
9518
9726
|
result = rsp.to_json_string()
|
9519
9727
|
try:
|
9520
9728
|
json_obj = json.loads(result)
|
@@ -9793,7 +10001,7 @@ def doDescribeEventCases(args, parsed_globals):
|
|
9793
10001
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9794
10002
|
|
9795
10003
|
|
9796
|
-
def
|
10004
|
+
def doDescribeRelatedTasksByTaskId(args, parsed_globals):
|
9797
10005
|
g_param = parse_global_arg(parsed_globals)
|
9798
10006
|
|
9799
10007
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -9822,11 +10030,11 @@ def doGetOfflineDIInstanceList(args, parsed_globals):
|
|
9822
10030
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
9823
10031
|
client._sdkVersion += ("_CLI_" + __version__)
|
9824
10032
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9825
|
-
model = models.
|
10033
|
+
model = models.DescribeRelatedTasksByTaskIdRequest()
|
9826
10034
|
model.from_json_string(json.dumps(args))
|
9827
10035
|
start_time = time.time()
|
9828
10036
|
while True:
|
9829
|
-
rsp = client.
|
10037
|
+
rsp = client.DescribeRelatedTasksByTaskId(model)
|
9830
10038
|
result = rsp.to_json_string()
|
9831
10039
|
try:
|
9832
10040
|
json_obj = json.loads(result)
|
@@ -10209,7 +10417,7 @@ def doSubmitWorkflow(args, parsed_globals):
|
|
10209
10417
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
10210
10418
|
|
10211
10419
|
|
10212
|
-
def
|
10420
|
+
def doDescribeParentTask(args, parsed_globals):
|
10213
10421
|
g_param = parse_global_arg(parsed_globals)
|
10214
10422
|
|
10215
10423
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -10238,11 +10446,11 @@ def doBatchDeleteIntegrationTasks(args, parsed_globals):
|
|
10238
10446
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
10239
10447
|
client._sdkVersion += ("_CLI_" + __version__)
|
10240
10448
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
10241
|
-
model = models.
|
10449
|
+
model = models.DescribeParentTaskRequest()
|
10242
10450
|
model.from_json_string(json.dumps(args))
|
10243
10451
|
start_time = time.time()
|
10244
10452
|
while True:
|
10245
|
-
rsp = client.
|
10453
|
+
rsp = client.DescribeParentTask(model)
|
10246
10454
|
result = rsp.to_json_string()
|
10247
10455
|
try:
|
10248
10456
|
json_obj = json.loads(result)
|
@@ -11561,6 +11769,58 @@ def doDeleteCustomFunction(args, parsed_globals):
|
|
11561
11769
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11562
11770
|
|
11563
11771
|
|
11772
|
+
def doDeleteFile(args, parsed_globals):
|
11773
|
+
g_param = parse_global_arg(parsed_globals)
|
11774
|
+
|
11775
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
11776
|
+
cred = credential.CVMRoleCredential()
|
11777
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
11778
|
+
cred = credential.STSAssumeRoleCredential(
|
11779
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
11780
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
11781
|
+
)
|
11782
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
11783
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
11784
|
+
else:
|
11785
|
+
cred = credential.Credential(
|
11786
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
11787
|
+
)
|
11788
|
+
http_profile = HttpProfile(
|
11789
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
11790
|
+
reqMethod="POST",
|
11791
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
11792
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
11793
|
+
)
|
11794
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
11795
|
+
if g_param[OptionsDefine.Language]:
|
11796
|
+
profile.language = g_param[OptionsDefine.Language]
|
11797
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
11798
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
11799
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
11800
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
11801
|
+
model = models.DeleteFileRequest()
|
11802
|
+
model.from_json_string(json.dumps(args))
|
11803
|
+
start_time = time.time()
|
11804
|
+
while True:
|
11805
|
+
rsp = client.DeleteFile(model)
|
11806
|
+
result = rsp.to_json_string()
|
11807
|
+
try:
|
11808
|
+
json_obj = json.loads(result)
|
11809
|
+
except TypeError as e:
|
11810
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
11811
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
11812
|
+
break
|
11813
|
+
cur_time = time.time()
|
11814
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
11815
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
11816
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
11817
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
11818
|
+
else:
|
11819
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
11820
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
11821
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11822
|
+
|
11823
|
+
|
11564
11824
|
def doDescribeFolderWorkflowList(args, parsed_globals):
|
11565
11825
|
g_param = parse_global_arg(parsed_globals)
|
11566
11826
|
|
@@ -11925,7 +12185,7 @@ def doDescribeWorkflowExecuteById(args, parsed_globals):
|
|
11925
12185
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
11926
12186
|
|
11927
12187
|
|
11928
|
-
def
|
12188
|
+
def doDescribeTaskLockStatus(args, parsed_globals):
|
11929
12189
|
g_param = parse_global_arg(parsed_globals)
|
11930
12190
|
|
11931
12191
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -11954,11 +12214,11 @@ def doCreateIntegrationNode(args, parsed_globals):
|
|
11954
12214
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
11955
12215
|
client._sdkVersion += ("_CLI_" + __version__)
|
11956
12216
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
11957
|
-
model = models.
|
12217
|
+
model = models.DescribeTaskLockStatusRequest()
|
11958
12218
|
model.from_json_string(json.dumps(args))
|
11959
12219
|
start_time = time.time()
|
11960
12220
|
while True:
|
11961
|
-
rsp = client.
|
12221
|
+
rsp = client.DescribeTaskLockStatus(model)
|
11962
12222
|
result = rsp.to_json_string()
|
11963
12223
|
try:
|
11964
12224
|
json_obj = json.loads(result)
|
@@ -13121,6 +13381,58 @@ def doUpdateProjectUserRole(args, parsed_globals):
|
|
13121
13381
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13122
13382
|
|
13123
13383
|
|
13384
|
+
def doDescribeTaskDetailDs(args, parsed_globals):
|
13385
|
+
g_param = parse_global_arg(parsed_globals)
|
13386
|
+
|
13387
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
13388
|
+
cred = credential.CVMRoleCredential()
|
13389
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
13390
|
+
cred = credential.STSAssumeRoleCredential(
|
13391
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
13392
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
13393
|
+
)
|
13394
|
+
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):
|
13395
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
13396
|
+
else:
|
13397
|
+
cred = credential.Credential(
|
13398
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
13399
|
+
)
|
13400
|
+
http_profile = HttpProfile(
|
13401
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
13402
|
+
reqMethod="POST",
|
13403
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
13404
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
13405
|
+
)
|
13406
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
13407
|
+
if g_param[OptionsDefine.Language]:
|
13408
|
+
profile.language = g_param[OptionsDefine.Language]
|
13409
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
13410
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
13411
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
13412
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
13413
|
+
model = models.DescribeTaskDetailDsRequest()
|
13414
|
+
model.from_json_string(json.dumps(args))
|
13415
|
+
start_time = time.time()
|
13416
|
+
while True:
|
13417
|
+
rsp = client.DescribeTaskDetailDs(model)
|
13418
|
+
result = rsp.to_json_string()
|
13419
|
+
try:
|
13420
|
+
json_obj = json.loads(result)
|
13421
|
+
except TypeError as e:
|
13422
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
13423
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
13424
|
+
break
|
13425
|
+
cur_time = time.time()
|
13426
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
13427
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
13428
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
13429
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
13430
|
+
else:
|
13431
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
13432
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
13433
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13434
|
+
|
13435
|
+
|
13124
13436
|
def doTaskLog(args, parsed_globals):
|
13125
13437
|
g_param = parse_global_arg(parsed_globals)
|
13126
13438
|
|
@@ -13381,7 +13693,7 @@ def doLockIntegrationTask(args, parsed_globals):
|
|
13381
13693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
13382
13694
|
|
13383
13695
|
|
13384
|
-
def
|
13696
|
+
def doRegisterDsEventListener(args, parsed_globals):
|
13385
13697
|
g_param = parse_global_arg(parsed_globals)
|
13386
13698
|
|
13387
13699
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -13410,11 +13722,11 @@ def doBatchDeleteOpsTasks(args, parsed_globals):
|
|
13410
13722
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
13411
13723
|
client._sdkVersion += ("_CLI_" + __version__)
|
13412
13724
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
13413
|
-
model = models.
|
13725
|
+
model = models.RegisterDsEventListenerRequest()
|
13414
13726
|
model.from_json_string(json.dumps(args))
|
13415
13727
|
start_time = time.time()
|
13416
13728
|
while True:
|
13417
|
-
rsp = client.
|
13729
|
+
rsp = client.RegisterDsEventListener(model)
|
13418
13730
|
result = rsp.to_json_string()
|
13419
13731
|
try:
|
13420
13732
|
json_obj = json.loads(result)
|
@@ -14143,7 +14455,7 @@ ACTION_MAP = {
|
|
14143
14455
|
"DescribeDrInstancePage": doDescribeDrInstancePage,
|
14144
14456
|
"DescribeOperateOpsTasks": doDescribeOperateOpsTasks,
|
14145
14457
|
"DescribeInstanceByCycle": doDescribeInstanceByCycle,
|
14146
|
-
"
|
14458
|
+
"CreateIntegrationNode": doCreateIntegrationNode,
|
14147
14459
|
"DescribeIntegrationNode": doDescribeIntegrationNode,
|
14148
14460
|
"DescribeDatabaseMetas": doDescribeDatabaseMetas,
|
14149
14461
|
"DescribeTaskByCycle": doDescribeTaskByCycle,
|
@@ -14231,11 +14543,13 @@ ACTION_MAP = {
|
|
14231
14543
|
"DescribeTableSchemaInfo": doDescribeTableSchemaInfo,
|
14232
14544
|
"ModifyRule": doModifyRule,
|
14233
14545
|
"DescribeFunctionTypes": doDescribeFunctionTypes,
|
14234
|
-
"
|
14546
|
+
"DeleteLink": doDeleteLink,
|
14235
14547
|
"DescribeRealTimeTaskInstanceNodeInfo": doDescribeRealTimeTaskInstanceNodeInfo,
|
14236
14548
|
"DescribeColumnsMeta": doDescribeColumnsMeta,
|
14237
14549
|
"DescribeFunctionKinds": doDescribeFunctionKinds,
|
14550
|
+
"DescribeWorkflowByFordIds": doDescribeWorkflowByFordIds,
|
14238
14551
|
"DeleteIntegrationNode": doDeleteIntegrationNode,
|
14552
|
+
"BatchDeleteIntegrationTasks": doBatchDeleteIntegrationTasks,
|
14239
14553
|
"StopIntegrationTask": doStopIntegrationTask,
|
14240
14554
|
"DescribeTableMetas": doDescribeTableMetas,
|
14241
14555
|
"DescribeRealTimeTaskSpeed": doDescribeRealTimeTaskSpeed,
|
@@ -14250,10 +14564,12 @@ ACTION_MAP = {
|
|
14250
14564
|
"CreateOpsMakePlan": doCreateOpsMakePlan,
|
14251
14565
|
"DescribeColumnLineage": doDescribeColumnLineage,
|
14252
14566
|
"FreezeOpsTasks": doFreezeOpsTasks,
|
14567
|
+
"DescribeProject": doDescribeProject,
|
14253
14568
|
"DescribeRuleGroup": doDescribeRuleGroup,
|
14254
14569
|
"DescribeInstanceLogDetail": doDescribeInstanceLogDetail,
|
14255
14570
|
"FindAllFolder": doFindAllFolder,
|
14256
14571
|
"DescribeDatabaseInfoList": doDescribeDatabaseInfoList,
|
14572
|
+
"DescribeIntegrationTasks": doDescribeIntegrationTasks,
|
14257
14573
|
"DescribeDependOpsTasks": doDescribeDependOpsTasks,
|
14258
14574
|
"JudgeResourceFile": doJudgeResourceFile,
|
14259
14575
|
"SubmitTask": doSubmitTask,
|
@@ -14263,6 +14579,7 @@ ACTION_MAP = {
|
|
14263
14579
|
"DeleteDsFolder": doDeleteDsFolder,
|
14264
14580
|
"DescribeBatchOperateTask": doDescribeBatchOperateTask,
|
14265
14581
|
"DescribeTaskLineage": doDescribeTaskLineage,
|
14582
|
+
"BatchDeleteOpsTasks": doBatchDeleteOpsTasks,
|
14266
14583
|
"DescribeResourceManagePathTrees": doDescribeResourceManagePathTrees,
|
14267
14584
|
"BatchForceSuccessIntegrationTaskInstances": doBatchForceSuccessIntegrationTaskInstances,
|
14268
14585
|
"DescribeTasksForCodeTemplate": doDescribeTasksForCodeTemplate,
|
@@ -14284,9 +14601,8 @@ ACTION_MAP = {
|
|
14284
14601
|
"DescribeTablePartitions": doDescribeTablePartitions,
|
14285
14602
|
"UploadResource": doUploadResource,
|
14286
14603
|
"BatchCreateTaskVersionAsync": doBatchCreateTaskVersionAsync,
|
14287
|
-
"ModifyMonitorStatus": doModifyMonitorStatus,
|
14288
14604
|
"DeleteProjectUsers": doDeleteProjectUsers,
|
14289
|
-
"
|
14605
|
+
"GetOfflineDIInstanceList": doGetOfflineDIInstanceList,
|
14290
14606
|
"BatchMakeUpIntegrationTasks": doBatchMakeUpIntegrationTasks,
|
14291
14607
|
"DescribeRulesByPage": doDescribeRulesByPage,
|
14292
14608
|
"DescribeCodeTemplateDetail": doDescribeCodeTemplateDetail,
|
@@ -14302,13 +14618,13 @@ ACTION_MAP = {
|
|
14302
14618
|
"ModifyApproveStatus": doModifyApproveStatus,
|
14303
14619
|
"DescribeInstanceLogFile": doDescribeInstanceLogFile,
|
14304
14620
|
"DescribeIntegrationStatisticsTaskStatusTrend": doDescribeIntegrationStatisticsTaskStatusTrend,
|
14305
|
-
"
|
14621
|
+
"ModifyMonitorStatus": doModifyMonitorStatus,
|
14306
14622
|
"DescribeAllByFolderNew": doDescribeAllByFolderNew,
|
14307
14623
|
"UpdateWorkflowOwner": doUpdateWorkflowOwner,
|
14308
14624
|
"UpdateWorkflowInfo": doUpdateWorkflowInfo,
|
14309
14625
|
"DescribeTableLineage": doDescribeTableLineage,
|
14310
14626
|
"DescribeEventCases": doDescribeEventCases,
|
14311
|
-
"
|
14627
|
+
"DescribeRelatedTasksByTaskId": doDescribeRelatedTasksByTaskId,
|
14312
14628
|
"DeleteWorkflowById": doDeleteWorkflowById,
|
14313
14629
|
"DescribeRules": doDescribeRules,
|
14314
14630
|
"RobAndLockIntegrationTask": doRobAndLockIntegrationTask,
|
@@ -14316,7 +14632,7 @@ ACTION_MAP = {
|
|
14316
14632
|
"DeleteResourceFiles": doDeleteResourceFiles,
|
14317
14633
|
"DescribeReportTaskList": doDescribeReportTaskList,
|
14318
14634
|
"SubmitWorkflow": doSubmitWorkflow,
|
14319
|
-
"
|
14635
|
+
"DescribeParentTask": doDescribeParentTask,
|
14320
14636
|
"DescribeTableBasicInfo": doDescribeTableBasicInfo,
|
14321
14637
|
"ModifyTaskScript": doModifyTaskScript,
|
14322
14638
|
"GetTaskInstance": doGetTaskInstance,
|
@@ -14342,6 +14658,7 @@ ACTION_MAP = {
|
|
14342
14658
|
"DescribeProjectUsers": doDescribeProjectUsers,
|
14343
14659
|
"DescribeWorkflowSchedulerInfoDs": doDescribeWorkflowSchedulerInfoDs,
|
14344
14660
|
"DeleteCustomFunction": doDeleteCustomFunction,
|
14661
|
+
"DeleteFile": doDeleteFile,
|
14345
14662
|
"DescribeFolderWorkflowList": doDescribeFolderWorkflowList,
|
14346
14663
|
"DescribeIntegrationTask": doDescribeIntegrationTask,
|
14347
14664
|
"DescribeDataServicePublishedApiDetail": doDescribeDataServicePublishedApiDetail,
|
@@ -14349,7 +14666,7 @@ ACTION_MAP = {
|
|
14349
14666
|
"DescribeIntegrationStatisticsRecordsTrend": doDescribeIntegrationStatisticsRecordsTrend,
|
14350
14667
|
"DescribeRealViewSchemaPage": doDescribeRealViewSchemaPage,
|
14351
14668
|
"DescribeWorkflowExecuteById": doDescribeWorkflowExecuteById,
|
14352
|
-
"
|
14669
|
+
"DescribeTaskLockStatus": doDescribeTaskLockStatus,
|
14353
14670
|
"BatchSuspendIntegrationTasks": doBatchSuspendIntegrationTasks,
|
14354
14671
|
"ListInstances": doListInstances,
|
14355
14672
|
"CommitRuleGroupTask": doCommitRuleGroupTask,
|
@@ -14372,12 +14689,13 @@ ACTION_MAP = {
|
|
14372
14689
|
"DescribeDataSourceInfoList": doDescribeDataSourceInfoList,
|
14373
14690
|
"DescribeTemplateDimCount": doDescribeTemplateDimCount,
|
14374
14691
|
"UpdateProjectUserRole": doUpdateProjectUserRole,
|
14692
|
+
"DescribeTaskDetailDs": doDescribeTaskDetailDs,
|
14375
14693
|
"TaskLog": doTaskLog,
|
14376
14694
|
"DescribeRuleTemplates": doDescribeRuleTemplates,
|
14377
14695
|
"UpdateCodeTemplate": doUpdateCodeTemplate,
|
14378
14696
|
"SuspendIntegrationTask": doSuspendIntegrationTask,
|
14379
14697
|
"LockIntegrationTask": doLockIntegrationTask,
|
14380
|
-
"
|
14698
|
+
"RegisterDsEventListener": doRegisterDsEventListener,
|
14381
14699
|
"CreateDataModel": doCreateDataModel,
|
14382
14700
|
"GetIntegrationNodeColumnSchema": doGetIntegrationNodeColumnSchema,
|
14383
14701
|
"DescribeOpsWorkflows": doDescribeOpsWorkflows,
|