tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1393.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/ai3d/v20250513/api.json +2 -2
- tccli/services/asr/v20190614/api.json +1 -1
- tccli/services/cdb/v20170320/api.json +1 -1
- tccli/services/cdn/v20180606/api.json +46 -9
- tccli/services/clb/v20180317/api.json +9 -0
- tccli/services/csip/v20221121/api.json +1 -1
- tccli/services/dbbrain/dbbrain_client.py +136 -30
- tccli/services/dbbrain/v20210527/api.json +243 -0
- tccli/services/dbbrain/v20210527/examples.json +16 -0
- tccli/services/dsgc/v20190723/api.json +73 -15
- tccli/services/eb/v20210416/api.json +28 -1
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/es/es_client.py +53 -0
- tccli/services/es/v20180416/api.json +182 -0
- tccli/services/es/v20180416/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +2 -2
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/gwlb/v20240906/api.json +70 -0
- tccli/services/lcic/v20220817/api.json +49 -3
- tccli/services/lke/lke_client.py +53 -0
- tccli/services/lke/v20231130/api.json +669 -206
- tccli/services/lke/v20231130/examples.json +14 -6
- tccli/services/mps/v20190612/api.json +288 -8
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/oceanus/oceanus_client.py +212 -0
- tccli/services/oceanus/v20190422/api.json +294 -0
- tccli/services/oceanus/v20190422/examples.json +32 -0
- tccli/services/redis/v20180412/api.json +80 -50
- tccli/services/redis/v20180412/examples.json +2 -2
- tccli/services/sms/v20190711/api.json +1 -1
- tccli/services/sms/v20210111/api.json +1 -1
- tccli/services/tat/v20201028/api.json +12 -2
- tccli/services/tcss/v20201101/api.json +6 -6
- tccli/services/tcss/v20201101/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +4 -4
- tccli/services/tione/v20211111/examples.json +2 -2
- tccli/services/vod/v20180717/api.json +6 -6
- tccli/services/vtc/v20240223/api.json +13 -13
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/RECORD +44 -44
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1393.1.dist-info}/license_files/LICENSE +0 -0
@@ -537,6 +537,58 @@ def doDescribeResourceConfigs(args, parsed_globals):
|
|
537
537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
538
|
|
539
539
|
|
540
|
+
def doCreateConnector(args, parsed_globals):
|
541
|
+
g_param = parse_global_arg(parsed_globals)
|
542
|
+
|
543
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
544
|
+
cred = credential.CVMRoleCredential()
|
545
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
546
|
+
cred = credential.STSAssumeRoleCredential(
|
547
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
548
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
549
|
+
)
|
550
|
+
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):
|
551
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
552
|
+
else:
|
553
|
+
cred = credential.Credential(
|
554
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
555
|
+
)
|
556
|
+
http_profile = HttpProfile(
|
557
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
558
|
+
reqMethod="POST",
|
559
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
560
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
561
|
+
)
|
562
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
563
|
+
if g_param[OptionsDefine.Language]:
|
564
|
+
profile.language = g_param[OptionsDefine.Language]
|
565
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
566
|
+
client = mod.OceanusClient(cred, g_param[OptionsDefine.Region], profile)
|
567
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
568
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
569
|
+
model = models.CreateConnectorRequest()
|
570
|
+
model.from_json_string(json.dumps(args))
|
571
|
+
start_time = time.time()
|
572
|
+
while True:
|
573
|
+
rsp = client.CreateConnector(model)
|
574
|
+
result = rsp.to_json_string()
|
575
|
+
try:
|
576
|
+
json_obj = json.loads(result)
|
577
|
+
except TypeError as e:
|
578
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
579
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
580
|
+
break
|
581
|
+
cur_time = time.time()
|
582
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
583
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
584
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
585
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
586
|
+
else:
|
587
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
588
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
589
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
|
+
|
591
|
+
|
540
592
|
def doModifyFolder(args, parsed_globals):
|
541
593
|
g_param = parse_global_arg(parsed_globals)
|
542
594
|
|
@@ -849,6 +901,58 @@ def doFetchSqlGatewayStatementResult(args, parsed_globals):
|
|
849
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
902
|
|
851
903
|
|
904
|
+
def doParseConnector(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.OceanusClient(cred, g_param[OptionsDefine.Region], profile)
|
931
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
932
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
933
|
+
model = models.ParseConnectorRequest()
|
934
|
+
model.from_json_string(json.dumps(args))
|
935
|
+
start_time = time.time()
|
936
|
+
while True:
|
937
|
+
rsp = client.ParseConnector(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
|
+
|
852
956
|
def doDescribeJobEvents(args, parsed_globals):
|
853
957
|
g_param = parse_global_arg(parsed_globals)
|
854
958
|
|
@@ -1213,6 +1317,58 @@ def doRunJobs(args, parsed_globals):
|
|
1213
1317
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1318
|
|
1215
1319
|
|
1320
|
+
def doCheckConnectorName(args, parsed_globals):
|
1321
|
+
g_param = parse_global_arg(parsed_globals)
|
1322
|
+
|
1323
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1324
|
+
cred = credential.CVMRoleCredential()
|
1325
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1326
|
+
cred = credential.STSAssumeRoleCredential(
|
1327
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1328
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1329
|
+
)
|
1330
|
+
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):
|
1331
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1332
|
+
else:
|
1333
|
+
cred = credential.Credential(
|
1334
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1335
|
+
)
|
1336
|
+
http_profile = HttpProfile(
|
1337
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1338
|
+
reqMethod="POST",
|
1339
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1340
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1341
|
+
)
|
1342
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1343
|
+
if g_param[OptionsDefine.Language]:
|
1344
|
+
profile.language = g_param[OptionsDefine.Language]
|
1345
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1346
|
+
client = mod.OceanusClient(cred, g_param[OptionsDefine.Region], profile)
|
1347
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1348
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1349
|
+
model = models.CheckConnectorNameRequest()
|
1350
|
+
model.from_json_string(json.dumps(args))
|
1351
|
+
start_time = time.time()
|
1352
|
+
while True:
|
1353
|
+
rsp = client.CheckConnectorName(model)
|
1354
|
+
result = rsp.to_json_string()
|
1355
|
+
try:
|
1356
|
+
json_obj = json.loads(result)
|
1357
|
+
except TypeError as e:
|
1358
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1359
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1360
|
+
break
|
1361
|
+
cur_time = time.time()
|
1362
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1363
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1364
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1365
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1366
|
+
else:
|
1367
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1368
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1369
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1370
|
+
|
1371
|
+
|
1216
1372
|
def doDescribeWorkSpaces(args, parsed_globals):
|
1217
1373
|
g_param = parse_global_arg(parsed_globals)
|
1218
1374
|
|
@@ -1837,6 +1993,58 @@ def doModifyJob(args, parsed_globals):
|
|
1837
1993
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1838
1994
|
|
1839
1995
|
|
1996
|
+
def doModifyConnector(args, parsed_globals):
|
1997
|
+
g_param = parse_global_arg(parsed_globals)
|
1998
|
+
|
1999
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2000
|
+
cred = credential.CVMRoleCredential()
|
2001
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2002
|
+
cred = credential.STSAssumeRoleCredential(
|
2003
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2004
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2005
|
+
)
|
2006
|
+
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):
|
2007
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2008
|
+
else:
|
2009
|
+
cred = credential.Credential(
|
2010
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2011
|
+
)
|
2012
|
+
http_profile = HttpProfile(
|
2013
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2014
|
+
reqMethod="POST",
|
2015
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2016
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2017
|
+
)
|
2018
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2019
|
+
if g_param[OptionsDefine.Language]:
|
2020
|
+
profile.language = g_param[OptionsDefine.Language]
|
2021
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2022
|
+
client = mod.OceanusClient(cred, g_param[OptionsDefine.Region], profile)
|
2023
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2024
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2025
|
+
model = models.ModifyConnectorRequest()
|
2026
|
+
model.from_json_string(json.dumps(args))
|
2027
|
+
start_time = time.time()
|
2028
|
+
while True:
|
2029
|
+
rsp = client.ModifyConnector(model)
|
2030
|
+
result = rsp.to_json_string()
|
2031
|
+
try:
|
2032
|
+
json_obj = json.loads(result)
|
2033
|
+
except TypeError as e:
|
2034
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2035
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2036
|
+
break
|
2037
|
+
cur_time = time.time()
|
2038
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2039
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2040
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2041
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2042
|
+
else:
|
2043
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2044
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2045
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2046
|
+
|
2047
|
+
|
1840
2048
|
def doCreateResource(args, parsed_globals):
|
1841
2049
|
g_param = parse_global_arg(parsed_globals)
|
1842
2050
|
|
@@ -2066,12 +2274,14 @@ ACTION_MAP = {
|
|
2066
2274
|
"CreateJob": doCreateJob,
|
2067
2275
|
"DescribeFolder": doDescribeFolder,
|
2068
2276
|
"DescribeResourceConfigs": doDescribeResourceConfigs,
|
2277
|
+
"CreateConnector": doCreateConnector,
|
2069
2278
|
"ModifyFolder": doModifyFolder,
|
2070
2279
|
"DescribeJobSavepoint": doDescribeJobSavepoint,
|
2071
2280
|
"DescribeJobSubmissionLog": doDescribeJobSubmissionLog,
|
2072
2281
|
"DescribeResources": doDescribeResources,
|
2073
2282
|
"DescribeJobRuntimeInfo": doDescribeJobRuntimeInfo,
|
2074
2283
|
"FetchSqlGatewayStatementResult": doFetchSqlGatewayStatementResult,
|
2284
|
+
"ParseConnector": doParseConnector,
|
2075
2285
|
"DescribeJobEvents": doDescribeJobEvents,
|
2076
2286
|
"DeleteWorkSpace": doDeleteWorkSpace,
|
2077
2287
|
"DeleteFolders": doDeleteFolders,
|
@@ -2079,6 +2289,7 @@ ACTION_MAP = {
|
|
2079
2289
|
"DeleteTableConfig": doDeleteTableConfig,
|
2080
2290
|
"TriggerJobSavepoint": doTriggerJobSavepoint,
|
2081
2291
|
"RunJobs": doRunJobs,
|
2292
|
+
"CheckConnectorName": doCheckConnectorName,
|
2082
2293
|
"DescribeWorkSpaces": doDescribeWorkSpaces,
|
2083
2294
|
"CreateFolder": doCreateFolder,
|
2084
2295
|
"CheckSavepoint": doCheckSavepoint,
|
@@ -2091,6 +2302,7 @@ ACTION_MAP = {
|
|
2091
2302
|
"DescribeTreeJobs": doDescribeTreeJobs,
|
2092
2303
|
"DescribeJobs": doDescribeJobs,
|
2093
2304
|
"ModifyJob": doModifyJob,
|
2305
|
+
"ModifyConnector": doModifyConnector,
|
2094
2306
|
"CreateResource": doCreateResource,
|
2095
2307
|
"DescribeSystemResources": doDescribeSystemResources,
|
2096
2308
|
"GetMetaTable": doGetMetaTable,
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"CheckConnectorName": {
|
4
|
+
"document": "查询资源名是否重复",
|
5
|
+
"input": "CheckConnectorNameRequest",
|
6
|
+
"name": "查询Connector名是否重复",
|
7
|
+
"output": "CheckConnectorNameResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"CheckSavepoint": {
|
4
11
|
"document": "检查快照是否可用",
|
5
12
|
"input": "CheckSavepointRequest",
|
@@ -14,6 +21,13 @@
|
|
14
21
|
"output": "CopyJobsResponse",
|
15
22
|
"status": "online"
|
16
23
|
},
|
24
|
+
"CreateConnector": {
|
25
|
+
"document": "创建Connector",
|
26
|
+
"input": "CreateConnectorRequest",
|
27
|
+
"name": "创建Connector",
|
28
|
+
"output": "CreateConnectorResponse",
|
29
|
+
"status": "online"
|
30
|
+
},
|
17
31
|
"CreateFolder": {
|
18
32
|
"document": "作业列表页面新建文件夹请求",
|
19
33
|
"input": "CreateFolderRequest",
|
@@ -224,6 +238,13 @@
|
|
224
238
|
"output": "GetMetaTableResponse",
|
225
239
|
"status": "online"
|
226
240
|
},
|
241
|
+
"ModifyConnector": {
|
242
|
+
"document": "修改Connector",
|
243
|
+
"input": "ModifyConnectorRequest",
|
244
|
+
"name": "修改Connector",
|
245
|
+
"output": "ModifyConnectorResponse",
|
246
|
+
"status": "online"
|
247
|
+
},
|
227
248
|
"ModifyFolder": {
|
228
249
|
"document": "自定义树状结构页面拖拽文件夹",
|
229
250
|
"input": "ModifyFolderRequest",
|
@@ -245,6 +266,13 @@
|
|
245
266
|
"output": "ModifyWorkSpaceResponse",
|
246
267
|
"status": "online"
|
247
268
|
},
|
269
|
+
"ParseConnector": {
|
270
|
+
"document": "解析用户上传connector",
|
271
|
+
"input": "ParseConnectorRequest",
|
272
|
+
"name": "解析用户自定义Connector",
|
273
|
+
"output": "ParseConnectorResponse",
|
274
|
+
"status": "online"
|
275
|
+
},
|
248
276
|
"RunJobs": {
|
249
277
|
"document": "批量启动或者恢复作业,批量操作数量上限20",
|
250
278
|
"input": "RunJobsRequest",
|
@@ -317,6 +345,43 @@
|
|
317
345
|
],
|
318
346
|
"usage": "out"
|
319
347
|
},
|
348
|
+
"CheckConnectorNameRequest": {
|
349
|
+
"document": "CheckConnectorName请求参数结构体",
|
350
|
+
"members": [
|
351
|
+
{
|
352
|
+
"disabled": false,
|
353
|
+
"document": "资源名",
|
354
|
+
"example": "mj-test",
|
355
|
+
"member": "string",
|
356
|
+
"name": "Name",
|
357
|
+
"required": true,
|
358
|
+
"type": "string"
|
359
|
+
}
|
360
|
+
],
|
361
|
+
"type": "object"
|
362
|
+
},
|
363
|
+
"CheckConnectorNameResponse": {
|
364
|
+
"document": "CheckConnectorName返回参数结构体",
|
365
|
+
"members": [
|
366
|
+
{
|
367
|
+
"disabled": false,
|
368
|
+
"document": "是否存在",
|
369
|
+
"example": "true",
|
370
|
+
"member": "bool",
|
371
|
+
"name": "Exists",
|
372
|
+
"output_required": true,
|
373
|
+
"type": "bool",
|
374
|
+
"value_allowed_null": false
|
375
|
+
},
|
376
|
+
{
|
377
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
378
|
+
"member": "string",
|
379
|
+
"name": "RequestId",
|
380
|
+
"type": "string"
|
381
|
+
}
|
382
|
+
],
|
383
|
+
"type": "object"
|
384
|
+
},
|
320
385
|
"CheckSavepointRequest": {
|
321
386
|
"document": "CheckSavepoint请求参数结构体",
|
322
387
|
"members": [
|
@@ -1500,6 +1565,45 @@
|
|
1500
1565
|
],
|
1501
1566
|
"usage": "out"
|
1502
1567
|
},
|
1568
|
+
"Connectors": {
|
1569
|
+
"document": "解析Connector",
|
1570
|
+
"members": [
|
1571
|
+
{
|
1572
|
+
"disabled": false,
|
1573
|
+
"document": "连接方式",
|
1574
|
+
"example": "1,2",
|
1575
|
+
"member": "string",
|
1576
|
+
"name": "ConnectionMethod",
|
1577
|
+
"output_required": true,
|
1578
|
+
"required": false,
|
1579
|
+
"type": "string",
|
1580
|
+
"value_allowed_null": false
|
1581
|
+
},
|
1582
|
+
{
|
1583
|
+
"disabled": false,
|
1584
|
+
"document": "连接器名称",
|
1585
|
+
"example": "kafka",
|
1586
|
+
"member": "string",
|
1587
|
+
"name": "Connector",
|
1588
|
+
"output_required": true,
|
1589
|
+
"required": false,
|
1590
|
+
"type": "string",
|
1591
|
+
"value_allowed_null": false
|
1592
|
+
},
|
1593
|
+
{
|
1594
|
+
"disabled": false,
|
1595
|
+
"document": "是否已经被使用",
|
1596
|
+
"example": "true",
|
1597
|
+
"member": "bool",
|
1598
|
+
"name": "Existed",
|
1599
|
+
"output_required": true,
|
1600
|
+
"required": false,
|
1601
|
+
"type": "bool",
|
1602
|
+
"value_allowed_null": false
|
1603
|
+
}
|
1604
|
+
],
|
1605
|
+
"usage": "both"
|
1606
|
+
},
|
1503
1607
|
"CopyJobItem": {
|
1504
1608
|
"document": "复制作业单条明细",
|
1505
1609
|
"members": [
|
@@ -1737,6 +1841,69 @@
|
|
1737
1841
|
],
|
1738
1842
|
"type": "object"
|
1739
1843
|
},
|
1844
|
+
"CreateConnectorRequest": {
|
1845
|
+
"document": "CreateConnector请求参数结构体",
|
1846
|
+
"members": [
|
1847
|
+
{
|
1848
|
+
"disabled": false,
|
1849
|
+
"document": "资源id",
|
1850
|
+
"example": "resource-123qwe",
|
1851
|
+
"member": "string",
|
1852
|
+
"name": "ResourceId",
|
1853
|
+
"required": true,
|
1854
|
+
"type": "string"
|
1855
|
+
},
|
1856
|
+
{
|
1857
|
+
"disabled": false,
|
1858
|
+
"document": "空间",
|
1859
|
+
"example": "space-qwe123",
|
1860
|
+
"member": "string",
|
1861
|
+
"name": "WorkSpaceId",
|
1862
|
+
"required": true,
|
1863
|
+
"type": "string"
|
1864
|
+
},
|
1865
|
+
{
|
1866
|
+
"disabled": false,
|
1867
|
+
"document": "资源版本",
|
1868
|
+
"example": "1",
|
1869
|
+
"member": "int64",
|
1870
|
+
"name": "VersionId",
|
1871
|
+
"required": true,
|
1872
|
+
"type": "int"
|
1873
|
+
},
|
1874
|
+
{
|
1875
|
+
"disabled": false,
|
1876
|
+
"document": "连接器名称",
|
1877
|
+
"example": "kafka",
|
1878
|
+
"member": "string",
|
1879
|
+
"name": "Connector",
|
1880
|
+
"required": true,
|
1881
|
+
"type": "string"
|
1882
|
+
},
|
1883
|
+
{
|
1884
|
+
"disabled": false,
|
1885
|
+
"document": "连接方式",
|
1886
|
+
"example": "1",
|
1887
|
+
"member": "string",
|
1888
|
+
"name": "ConnectionMethod",
|
1889
|
+
"required": true,
|
1890
|
+
"type": "string"
|
1891
|
+
}
|
1892
|
+
],
|
1893
|
+
"type": "object"
|
1894
|
+
},
|
1895
|
+
"CreateConnectorResponse": {
|
1896
|
+
"document": "CreateConnector返回参数结构体",
|
1897
|
+
"members": [
|
1898
|
+
{
|
1899
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1900
|
+
"member": "string",
|
1901
|
+
"name": "RequestId",
|
1902
|
+
"type": "string"
|
1903
|
+
}
|
1904
|
+
],
|
1905
|
+
"type": "object"
|
1906
|
+
},
|
1740
1907
|
"CreateFolderRequest": {
|
1741
1908
|
"document": "CreateFolder请求参数结构体",
|
1742
1909
|
"members": [
|
@@ -6036,6 +6203,78 @@
|
|
6036
6203
|
],
|
6037
6204
|
"usage": "out"
|
6038
6205
|
},
|
6206
|
+
"ModifyConnectorRequest": {
|
6207
|
+
"document": "ModifyConnector请求参数结构体",
|
6208
|
+
"members": [
|
6209
|
+
{
|
6210
|
+
"disabled": false,
|
6211
|
+
"document": "空间",
|
6212
|
+
"example": "space-qwe123",
|
6213
|
+
"member": "string",
|
6214
|
+
"name": "WorkSpaceId",
|
6215
|
+
"required": true,
|
6216
|
+
"type": "string"
|
6217
|
+
},
|
6218
|
+
{
|
6219
|
+
"disabled": false,
|
6220
|
+
"document": "connector ID",
|
6221
|
+
"example": "resource-123qwe",
|
6222
|
+
"member": "string",
|
6223
|
+
"name": "ConnectorResourceId",
|
6224
|
+
"required": true,
|
6225
|
+
"type": "string"
|
6226
|
+
},
|
6227
|
+
{
|
6228
|
+
"disabled": false,
|
6229
|
+
"document": "资源id",
|
6230
|
+
"example": "resource-123qwe",
|
6231
|
+
"member": "string",
|
6232
|
+
"name": "ResourceId",
|
6233
|
+
"required": false,
|
6234
|
+
"type": "string"
|
6235
|
+
},
|
6236
|
+
{
|
6237
|
+
"disabled": false,
|
6238
|
+
"document": "资源版本",
|
6239
|
+
"example": "1",
|
6240
|
+
"member": "int64",
|
6241
|
+
"name": "VersionId",
|
6242
|
+
"required": false,
|
6243
|
+
"type": "int"
|
6244
|
+
},
|
6245
|
+
{
|
6246
|
+
"disabled": false,
|
6247
|
+
"document": "连接器名称",
|
6248
|
+
"example": "kafka",
|
6249
|
+
"member": "string",
|
6250
|
+
"name": "Connector",
|
6251
|
+
"required": false,
|
6252
|
+
"type": "string"
|
6253
|
+
},
|
6254
|
+
{
|
6255
|
+
"disabled": false,
|
6256
|
+
"document": "连接方式",
|
6257
|
+
"example": "1",
|
6258
|
+
"member": "string",
|
6259
|
+
"name": "ConnectionMethod",
|
6260
|
+
"required": false,
|
6261
|
+
"type": "string"
|
6262
|
+
}
|
6263
|
+
],
|
6264
|
+
"type": "object"
|
6265
|
+
},
|
6266
|
+
"ModifyConnectorResponse": {
|
6267
|
+
"document": "ModifyConnector返回参数结构体",
|
6268
|
+
"members": [
|
6269
|
+
{
|
6270
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6271
|
+
"member": "string",
|
6272
|
+
"name": "RequestId",
|
6273
|
+
"type": "string"
|
6274
|
+
}
|
6275
|
+
],
|
6276
|
+
"type": "object"
|
6277
|
+
},
|
6039
6278
|
"ModifyFolderRequest": {
|
6040
6279
|
"document": "ModifyFolder请求参数结构体",
|
6041
6280
|
"members": [
|
@@ -6346,6 +6585,61 @@
|
|
6346
6585
|
],
|
6347
6586
|
"usage": "out"
|
6348
6587
|
},
|
6588
|
+
"ParseConnectorRequest": {
|
6589
|
+
"document": "ParseConnector请求参数结构体",
|
6590
|
+
"members": [
|
6591
|
+
{
|
6592
|
+
"disabled": false,
|
6593
|
+
"document": "资源id",
|
6594
|
+
"example": "resource-6zoqt0tz",
|
6595
|
+
"member": "string",
|
6596
|
+
"name": "ResourceId",
|
6597
|
+
"required": true,
|
6598
|
+
"type": "string"
|
6599
|
+
},
|
6600
|
+
{
|
6601
|
+
"disabled": false,
|
6602
|
+
"document": "资源版本",
|
6603
|
+
"example": "2",
|
6604
|
+
"member": "int64",
|
6605
|
+
"name": "VersionId",
|
6606
|
+
"required": true,
|
6607
|
+
"type": "int"
|
6608
|
+
},
|
6609
|
+
{
|
6610
|
+
"disabled": false,
|
6611
|
+
"document": "空间",
|
6612
|
+
"example": "space-sd12ad1",
|
6613
|
+
"member": "string",
|
6614
|
+
"name": "WorkSpaceId",
|
6615
|
+
"required": false,
|
6616
|
+
"type": "string"
|
6617
|
+
}
|
6618
|
+
],
|
6619
|
+
"type": "object"
|
6620
|
+
},
|
6621
|
+
"ParseConnectorResponse": {
|
6622
|
+
"document": "ParseConnector返回参数结构体",
|
6623
|
+
"members": [
|
6624
|
+
{
|
6625
|
+
"disabled": false,
|
6626
|
+
"document": "连接器",
|
6627
|
+
"example": "[{\"ConnectionMethod\":\"\",\"Connector\":\"jdbc\",\"Existed\":false}]",
|
6628
|
+
"member": "Connectors",
|
6629
|
+
"name": "Connectors",
|
6630
|
+
"output_required": true,
|
6631
|
+
"type": "list",
|
6632
|
+
"value_allowed_null": false
|
6633
|
+
},
|
6634
|
+
{
|
6635
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6636
|
+
"member": "string",
|
6637
|
+
"name": "RequestId",
|
6638
|
+
"type": "string"
|
6639
|
+
}
|
6640
|
+
],
|
6641
|
+
"type": "object"
|
6642
|
+
},
|
6349
6643
|
"Property": {
|
6350
6644
|
"document": "系统配置属性",
|
6351
6645
|
"members": [
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"CheckConnectorName": [
|
4
|
+
{
|
5
|
+
"document": "",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckConnectorName\n<公共请求参数>\n\n{\n \"Name\": \"true\"\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"Exists\": true,\n \"RequestId\": \"5f124d6f-b035-4d29-9467-dd62eccdbf23\"\n }\n}",
|
8
|
+
"title": "CheckConnectorName"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"CheckSavepoint": [
|
4
12
|
{
|
5
13
|
"document": "",
|
@@ -22,6 +30,14 @@
|
|
22
30
|
"title": "复制作业"
|
23
31
|
}
|
24
32
|
],
|
33
|
+
"CreateConnector": [
|
34
|
+
{
|
35
|
+
"document": "",
|
36
|
+
"input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateConnector\n<公共请求参数>\n\n{\n \"ConnectionMethod\": \"1\",\n \"Connector\": \"kafka\",\n \"ResourceId\": \"cql-n8yaia0y\",\n \"VersionId\": 1,\n \"WorkSpaceId\": \"2000\"\n}",
|
37
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5f124d6f-b035-4d29-9467-dd62eccdbf23\"\n }\n}",
|
38
|
+
"title": "创建Connector"
|
39
|
+
}
|
40
|
+
],
|
25
41
|
"CreateFolder": [
|
26
42
|
{
|
27
43
|
"document": "",
|
@@ -292,6 +308,14 @@
|
|
292
308
|
"title": "查询元数据表信息"
|
293
309
|
}
|
294
310
|
],
|
311
|
+
"ModifyConnector": [
|
312
|
+
{
|
313
|
+
"document": "",
|
314
|
+
"input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyConnector\n<公共请求参数>\n\n\n\n{\n \"ConnectionMethod\": \"1\",\n \"Connector\": \"kafka\",\n \"ConnectorResourceId\": \"resouce-23s432\",\n \"ResourceId\": \"resouce-23s432\",\n \"VersionId\": 1,\n \"WorkSpaceId\": \"space-test\"\n}",
|
315
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"5f124d6f-b035-4d29-9467-dd62eccdbf23\"\n }\n}",
|
316
|
+
"title": "ModifyConnector"
|
317
|
+
}
|
318
|
+
],
|
295
319
|
"ModifyFolder": [
|
296
320
|
{
|
297
321
|
"document": "",
|
@@ -322,6 +346,14 @@
|
|
322
346
|
"title": "修改项目空间"
|
323
347
|
}
|
324
348
|
],
|
349
|
+
"ParseConnector": [
|
350
|
+
{
|
351
|
+
"document": "",
|
352
|
+
"input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ParseConnector\n<公共请求参数>\n\n{\n \"ResourceId\": \"resource-qjgxki5r\",\n \"VersionId\": 1,\n \"WorkSpaceId\": \"space-erzb4bkl\"\n}",
|
353
|
+
"output": "{\n \"Response\": {\n \"Connectors\": [\n {\n \"ConnectionMethod\": \"1,3\",\n \"Connector\": \"jdbc\",\n \"Existed\": false\n },\n {\n \"ConnectionMethod\": \"\",\n \"Connector\": \"jdbc\",\n \"Existed\": false\n }\n ],\n \"RequestId\": \"509757a9-f29e-46c8-8e5d-214e8220dd4d\"\n }\n}",
|
354
|
+
"title": "解析用户Connector"
|
355
|
+
}
|
356
|
+
],
|
325
357
|
"RunJobs": [
|
326
358
|
{
|
327
359
|
"document": "",
|