tccli-intl-en 3.0.1269.1__py2.py3-none-any.whl → 3.0.1271.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/__init__.py +2 -1
- tccli/services/ccc/ccc_client.py +65 -12
- tccli/services/ccc/v20200210/api.json +112 -15
- tccli/services/ccc/v20200210/examples.json +8 -0
- tccli/services/clb/v20180317/api.json +29 -14
- tccli/services/cynosdb/cynosdb_client.py +114 -8
- tccli/services/cynosdb/v20190107/api.json +718 -54
- tccli/services/cynosdb/v20190107/examples.json +20 -4
- tccli/services/dlc/dlc_client.py +175 -16
- tccli/services/dlc/v20210125/api.json +282 -6
- tccli/services/dlc/v20210125/examples.json +24 -0
- tccli/services/faceid/v20180301/examples.json +1 -1
- tccli/services/mdl/v20200326/api.json +104 -0
- tccli/services/monitor/monitor_client.py +273 -8
- tccli/services/monitor/v20180724/api.json +649 -0
- tccli/services/monitor/v20180724/examples.json +40 -0
- tccli/services/mps/v20190612/api.json +179 -30
- tccli/services/mps/v20190612/examples.json +8 -8
- tccli/services/quota/v20241204/api.json +13 -2
- tccli/services/quota/v20241204/examples.json +4 -3
- tccli/services/redis/v20180412/api.json +225 -113
- tccli/services/redis/v20180412/examples.json +19 -19
- tccli/services/wedata/v20250806/api.json +13644 -0
- tccli/services/wedata/v20250806/examples.json +621 -0
- tccli/services/wedata/wedata_client.py +4663 -789
- {tccli_intl_en-3.0.1269.1.dist-info → tccli_intl_en-3.0.1271.1.dist-info}/METADATA +2 -2
- {tccli_intl_en-3.0.1269.1.dist-info → tccli_intl_en-3.0.1271.1.dist-info}/RECORD +32 -30
- {tccli_intl_en-3.0.1269.1.dist-info → tccli_intl_en-3.0.1271.1.dist-info}/LICENSE +0 -0
- {tccli_intl_en-3.0.1269.1.dist-info → tccli_intl_en-3.0.1271.1.dist-info}/WHEEL +0 -0
- {tccli_intl_en-3.0.1269.1.dist-info → tccli_intl_en-3.0.1271.1.dist-info}/entry_points.txt +0 -0
- {tccli_intl_en-3.0.1269.1.dist-info → tccli_intl_en-3.0.1271.1.dist-info}/top_level.txt +0 -0
|
@@ -225,6 +225,58 @@ def doModifyBinlogConfig(args, parsed_globals):
|
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
226
226
|
|
|
227
227
|
|
|
228
|
+
def doCreateIntegrateCluster(args, parsed_globals):
|
|
229
|
+
g_param = parse_global_arg(parsed_globals)
|
|
230
|
+
|
|
231
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
232
|
+
cred = credential.CVMRoleCredential()
|
|
233
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
234
|
+
cred = credential.STSAssumeRoleCredential(
|
|
235
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
236
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
237
|
+
)
|
|
238
|
+
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):
|
|
239
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
240
|
+
else:
|
|
241
|
+
cred = credential.Credential(
|
|
242
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
243
|
+
)
|
|
244
|
+
http_profile = HttpProfile(
|
|
245
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
246
|
+
reqMethod="POST",
|
|
247
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
248
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
249
|
+
)
|
|
250
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
251
|
+
if g_param[OptionsDefine.Language]:
|
|
252
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
253
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
254
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
257
|
+
model = models.CreateIntegrateClusterRequest()
|
|
258
|
+
model.from_json_string(json.dumps(args))
|
|
259
|
+
start_time = time.time()
|
|
260
|
+
while True:
|
|
261
|
+
rsp = client.CreateIntegrateCluster(model)
|
|
262
|
+
result = rsp.to_json_string()
|
|
263
|
+
try:
|
|
264
|
+
json_obj = json.loads(result)
|
|
265
|
+
except TypeError as e:
|
|
266
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
267
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
268
|
+
break
|
|
269
|
+
cur_time = time.time()
|
|
270
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
271
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
272
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
273
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
274
|
+
else:
|
|
275
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
276
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
277
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
278
|
+
|
|
279
|
+
|
|
228
280
|
def doCreateProxyEndPoint(args, parsed_globals):
|
|
229
281
|
g_param = parse_global_arg(parsed_globals)
|
|
230
282
|
|
|
@@ -1577,7 +1629,7 @@ def doDescribeClusterInstanceGrps(args, parsed_globals):
|
|
|
1577
1629
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1578
1630
|
|
|
1579
1631
|
|
|
1580
|
-
def
|
|
1632
|
+
def doDescribeIsolatedInstances(args, parsed_globals):
|
|
1581
1633
|
g_param = parse_global_arg(parsed_globals)
|
|
1582
1634
|
|
|
1583
1635
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1606,11 +1658,11 @@ def doUpgradeProxyVersion(args, parsed_globals):
|
|
|
1606
1658
|
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1607
1659
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1608
1660
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1609
|
-
model = models.
|
|
1661
|
+
model = models.DescribeIsolatedInstancesRequest()
|
|
1610
1662
|
model.from_json_string(json.dumps(args))
|
|
1611
1663
|
start_time = time.time()
|
|
1612
1664
|
while True:
|
|
1613
|
-
rsp = client.
|
|
1665
|
+
rsp = client.DescribeIsolatedInstances(model)
|
|
1614
1666
|
result = rsp.to_json_string()
|
|
1615
1667
|
try:
|
|
1616
1668
|
json_obj = json.loads(result)
|
|
@@ -4905,6 +4957,58 @@ def doInquirePriceRenew(args, parsed_globals):
|
|
|
4905
4957
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
4906
4958
|
|
|
4907
4959
|
|
|
4960
|
+
def doDescribeIntegrateTask(args, parsed_globals):
|
|
4961
|
+
g_param = parse_global_arg(parsed_globals)
|
|
4962
|
+
|
|
4963
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
4964
|
+
cred = credential.CVMRoleCredential()
|
|
4965
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
4966
|
+
cred = credential.STSAssumeRoleCredential(
|
|
4967
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
4968
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
4969
|
+
)
|
|
4970
|
+
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):
|
|
4971
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
4972
|
+
else:
|
|
4973
|
+
cred = credential.Credential(
|
|
4974
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
4975
|
+
)
|
|
4976
|
+
http_profile = HttpProfile(
|
|
4977
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
4978
|
+
reqMethod="POST",
|
|
4979
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
4980
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
4981
|
+
)
|
|
4982
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
4983
|
+
if g_param[OptionsDefine.Language]:
|
|
4984
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
4985
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
4986
|
+
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
4987
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
4988
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
4989
|
+
model = models.DescribeIntegrateTaskRequest()
|
|
4990
|
+
model.from_json_string(json.dumps(args))
|
|
4991
|
+
start_time = time.time()
|
|
4992
|
+
while True:
|
|
4993
|
+
rsp = client.DescribeIntegrateTask(model)
|
|
4994
|
+
result = rsp.to_json_string()
|
|
4995
|
+
try:
|
|
4996
|
+
json_obj = json.loads(result)
|
|
4997
|
+
except TypeError as e:
|
|
4998
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
4999
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
5000
|
+
break
|
|
5001
|
+
cur_time = time.time()
|
|
5002
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
5003
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
5004
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
5005
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
5006
|
+
else:
|
|
5007
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
5008
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
5009
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5010
|
+
|
|
5011
|
+
|
|
4908
5012
|
def doReloadBalanceProxyNode(args, parsed_globals):
|
|
4909
5013
|
g_param = parse_global_arg(parsed_globals)
|
|
4910
5014
|
|
|
@@ -5009,7 +5113,7 @@ def doDescribeBackupDownloadRestriction(args, parsed_globals):
|
|
|
5009
5113
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
5010
5114
|
|
|
5011
5115
|
|
|
5012
|
-
def
|
|
5116
|
+
def doUpgradeProxyVersion(args, parsed_globals):
|
|
5013
5117
|
g_param = parse_global_arg(parsed_globals)
|
|
5014
5118
|
|
|
5015
5119
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -5038,11 +5142,11 @@ def doDescribeIsolatedInstances(args, parsed_globals):
|
|
|
5038
5142
|
client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
|
|
5039
5143
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
5040
5144
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
5041
|
-
model = models.
|
|
5145
|
+
model = models.UpgradeProxyVersionRequest()
|
|
5042
5146
|
model.from_json_string(json.dumps(args))
|
|
5043
5147
|
start_time = time.time()
|
|
5044
5148
|
while True:
|
|
5045
|
-
rsp = client.
|
|
5149
|
+
rsp = client.UpgradeProxyVersion(model)
|
|
5046
5150
|
result = rsp.to_json_string()
|
|
5047
5151
|
try:
|
|
5048
5152
|
json_obj = json.loads(result)
|
|
@@ -7208,6 +7312,7 @@ ACTION_MAP = {
|
|
|
7208
7312
|
"DescribeInstanceSpecs": doDescribeInstanceSpecs,
|
|
7209
7313
|
"ReplayInstanceAuditLog": doReplayInstanceAuditLog,
|
|
7210
7314
|
"ModifyBinlogConfig": doModifyBinlogConfig,
|
|
7315
|
+
"CreateIntegrateCluster": doCreateIntegrateCluster,
|
|
7211
7316
|
"CreateProxyEndPoint": doCreateProxyEndPoint,
|
|
7212
7317
|
"DescribeResourcePackageList": doDescribeResourcePackageList,
|
|
7213
7318
|
"CreateAuditRuleTemplate": doCreateAuditRuleTemplate,
|
|
@@ -7234,7 +7339,7 @@ ACTION_MAP = {
|
|
|
7234
7339
|
"CloseClusterPasswordComplexity": doCloseClusterPasswordComplexity,
|
|
7235
7340
|
"DescribeBinlogSaveDays": doDescribeBinlogSaveDays,
|
|
7236
7341
|
"DescribeClusterInstanceGrps": doDescribeClusterInstanceGrps,
|
|
7237
|
-
"
|
|
7342
|
+
"DescribeIsolatedInstances": doDescribeIsolatedInstances,
|
|
7238
7343
|
"ModifyClusterName": doModifyClusterName,
|
|
7239
7344
|
"ModifyProxyRwSplit": doModifyProxyRwSplit,
|
|
7240
7345
|
"ModifyVipVport": doModifyVipVport,
|
|
@@ -7298,9 +7403,10 @@ ACTION_MAP = {
|
|
|
7298
7403
|
"DescribeAccounts": doDescribeAccounts,
|
|
7299
7404
|
"SetRenewFlag": doSetRenewFlag,
|
|
7300
7405
|
"InquirePriceRenew": doInquirePriceRenew,
|
|
7406
|
+
"DescribeIntegrateTask": doDescribeIntegrateTask,
|
|
7301
7407
|
"ReloadBalanceProxyNode": doReloadBalanceProxyNode,
|
|
7302
7408
|
"DescribeBackupDownloadRestriction": doDescribeBackupDownloadRestriction,
|
|
7303
|
-
"
|
|
7409
|
+
"UpgradeProxyVersion": doUpgradeProxyVersion,
|
|
7304
7410
|
"ModifyAuditRuleTemplates": doModifyAuditRuleTemplates,
|
|
7305
7411
|
"OpenReadOnlyInstanceExclusiveAccess": doOpenReadOnlyInstanceExclusiveAccess,
|
|
7306
7412
|
"DescribeBackupList": doDescribeBackupList,
|